You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ x] I agree to follow the Code of Conduct that this project adheres to.
[x ] I have searched the issue tracker for a feature request that matches the one I want to file, without success.
Describe the bug
I create a shape (rectangle, ellipse, closed path) with a transparent interior and a visible boundary. The shape has a text label and an associated hyperlink. I then export this to SVG. The rough structure of the relevant SVG is:
When using the SVG, only the boundary of the shape is sensitive as a hyperlink active area, the interior isn't. What is missing, to make the full shape usable as an anchor, is a pointer-event="all" attribute in the <rect> element.
The strange thing is that sometimes draw.io does add this attribute, yielding the expected behavior. I have found no rational explanation when it happens and when it does not, nor have I found a user interface setting to control the behavior.
Expected behavior
Ideally, the behavior should be settable by the user (if there is such a setting, then my apologies for the noise, but I did spend quite some time to locate it...). In the absence, in my view, the attribute should be set systematically; there is no reason why a non-filled shape with an associated link should restrict its active area to the boundary.
draw.io version (In the Help->About menu of the draw.io editor):
draw.io version 21.6.8 standalone application
Desktop (please complete the following information):
OS: MacOS Ventura 13.5
Browser n/a (used it as a separate application, although the behavior was similar when used draw.io from within google drive
Version n/a
Additional context
Setting the shape with a specific background, ie, fill it, would of course solve the issue, but it creates problem with a switch on/off of night mode with the generated SVG.
The text was updated successfully, but these errors were encountered:
Thanks for nudging me, @alderg, for a test case, because while I was doing it, it revealed something that might help to locate a bug.
I have put a test draw.io on Google Drive (I hope you can access it without further ado). I have also put the generated SVG. The SVG file shows that the ellipse has the required attribute, whereas the two rectangles do not.
The interesting point is that, in the original diagram, the two rectangles (labeled as secretKeyMultibase and publicKeyMultibase) are grouped. If I ungroup them, then things are all right. This may help to locate the bug.
The further interesting experience is that, somehow, this problem "contaminates" a whole diagram. I indeed started with a much larger diagram that I was working on, and which went wrong; if I removed a larger group that included those rectangles, the rest generated proper SVG-s, and otherwise all shapes went wrong... (even shapes that do not have a direct "connection", in terms of grouping, with the suspects...)
Preflight Checklist
Describe the bug
I create a shape (rectangle, ellipse, closed path) with a transparent interior and a visible boundary. The shape has a text label and an associated hyperlink. I then export this to SVG. The rough structure of the relevant SVG is:
When using the SVG, only the boundary of the shape is sensitive as a hyperlink active area, the interior isn't. What is missing, to make the full shape usable as an anchor, is a
pointer-event="all"
attribute in the<rect>
element.The strange thing is that sometimes draw.io does add this attribute, yielding the expected behavior. I have found no rational explanation when it happens and when it does not, nor have I found a user interface setting to control the behavior.
Expected behavior
Ideally, the behavior should be settable by the user (if there is such a setting, then my apologies for the noise, but I did spend quite some time to locate it...). In the absence, in my view, the attribute should be set systematically; there is no reason why a non-filled shape with an associated link should restrict its active area to the boundary.
draw.io version (In the Help->About menu of the draw.io editor):
Desktop (please complete the following information):
Additional context
Setting the shape with a specific background, ie, fill it, would of course solve the issue, but it creates problem with a switch on/off of night mode with the generated SVG.
The text was updated successfully, but these errors were encountered: