Inkscape.org
Beginners' Questions Hyperlinks on transparent objects: Is this possible?
  1. #1
    BoozeOperator BoozeOperator @BoozeOperator

    I have already posted a request on GitHub, but now feel like there could be other ways to get a hyperlink working on the area surrounding a fine-lined object, which is itself too difficult to touch with the mouse pointer.

    The attempt to create a transparent background object which will be linked in the same way, has failed so far.

    Would you have a different idea?

    TY.

  2. #2
    Polygon Polygon @Polygon🌶
    *

    How would one detect an invisible linked area. Why not make it the same color of the background then like here:

     

  3. #3
    Tyler Durden Tyler Durden @TylerDurden

    Nathan Lee's reply on GitLab looks promising. https://gitlab.com/inkscape/inbox/-/issues/6766#note_906909482

  4. #4
    inklinea inklinea @inklinea⛰️
    🏆

    You can use fill-opacity:0 with a solid fill. 

    Tested in Chrome, Firefox works fine.

  5. #5
    Polygon Polygon @Polygon🌶

    Doesn´t work here - it´s the same as an invisible object and don´t accept context-menu access anymore. Maybe an XML hack but I didn´t test it.

  6. #6
    Tyler Durden Tyler Durden @TylerDurden
    *

    Working here. :-D 

    Yes, added the code with XML editor.

  7. #7
    Polygon Polygon @Polygon🌶

    Doesn´t translate into PDF here - if that´s the goal anyway.

  8. #8
    inklinea inklinea @inklinea⛰️

    .

    Transparent Link
  9. #9
    Polygon Polygon @Polygon🌶
    *

    Tyler´s file don´t translate to PDF - "0" opacity objects simply don´t make it into a PDF here. Objects with "1"% opacity will.

    Got it to work in AffinityPublisher along the same specs with zero Opacity. To make a long story short the answer is: "Yes, transparent objects can be used for hyperlinking." Although I´m not sure if that´s a friendly approach.

  10. #10
    BoozeOperator BoozeOperator @BoozeOperator

    Friendly or not, I am okay with your hints and the statement that this is tricky to accomplish. ;)

    Erm.., no. I am doing this for the Web. No PDF in sight.

    Looks awkward, *is* awkward but I am having fun. You cannot take it seriously, in view of the time and the fiddly manipulation of curves that it takes to create anything potentially usable.

  11. #11
    BoozeOperator BoozeOperator @BoozeOperator
    *

    BTW... those who follow the discussion on GitLab (not GitHub of course) have probably seen the mention of the pointer-event attribute to the link-tag. 

    AFAIS, this is a cool way to make the transparent background-object do, what I want. The XML-editor (Shift+Ctrl+X) is just what it needs to modify the code of my graphic accordingly. 😂

Inkscape Inkscape.org Inkscape Forum Beginners' Questions Hyperlinks on transparent objects: Is this possible?