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
I agree to follow the Code of Conduct that this project adheres to.
I have searched the issue tracker for a feature request that matches the one I want to file, without success.
You must agree to search and the code of conduct. You must fill in this entire template. If you delete part/all or miss parts out your issue will be closed.
If you are technical, you should report bugs along the lines of https://marker.io/blog/how-to-write-bug-report. If you are not technical, we will make allowances, please try to make an effort to understand the process.
Describe the bug
Found an old issue (#3960) about groups not being preserved in SVG export and noticed it should be happening since v24.6.0, but it seems there is an issue now where groups are being added to the exported document although they are not populated properly.
To Reproduce
Steps to reproduce the behavior:
Go to draw.io
Open a blank diagram
Group a bunch of random shapes
Export as SVG (all options disabled)
Expected behavior
All grouped shapes are encapsulated by a <g> element representing the grouping.
Screenshots
Exported SVG:
No plugins:
You can see the group element was exported, but none of the child objects are within the group.
If I export using the svgdata plugin and add custom cell identifiers I see the same result. This also does show that the plugin does not seem to add the metadata to the original content but instead wraps it more.
Recreated with svgdata:
I noticed this issue when working on a large floorplan and exported the SVG to display elsewhere with interaction. Since the groups didn't actually wrap the elements none of the interactions worked so I dug into this a bit.
Multiple groups not wrapping any content:
draw.io version (In the Help->About menu of the draw.io editor):
draw.io version: Web v26.0.3
Desktop (please complete the following information):
OS: Windows 10
Browser: Firefox
Browser Version: 133.0.3
Smartphone (please complete the following information):
Device: N/A
OS: N/A
Browser: N/A
Browser Version: N/A
I tested the problem in incognito/private mode with all browser extensions switched off, write "yes" below:
yes
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
mandrewpowers
changed the title
Groups not being propulated by children correctly in SVG export
Groups not being populated by children correctly in SVG export
Jan 10, 2025
Preflight Checklist
You must agree to search and the code of conduct. You must fill in this entire template. If you delete part/all or miss parts out your issue will be closed.
If you are technical, you should report bugs along the lines of https://marker.io/blog/how-to-write-bug-report. If you are not technical, we will make allowances, please try to make an effort to understand the process.
Describe the bug
Found an old issue (#3960) about groups not being preserved in SVG export and noticed it should be happening since
v24.6.0
, but it seems there is an issue now where groups are being added to the exported document although they are not populated properly.To Reproduce
Steps to reproduce the behavior:
Expected behavior
All grouped shapes are encapsulated by a
<g>
element representing the grouping.Screenshots
Exported SVG:
No plugins:
![No plugins](https://camo.githubusercontent.com/38d87e04997a37702a12038463117abad69e9c7d00ba6a04d008650fdb2815bf/68747470733a2f2f692e696d6775722e636f6d2f486359585a746c2e706e67)
You can see the group element was exported, but none of the child objects are within the group.
If I export using the
svgdata
plugin and add custom cell identifiers I see the same result. This also does show that the plugin does not seem to add the metadata to the original content but instead wraps it more.Recreated with svgdata:
![Recreated with svgdata](https://camo.githubusercontent.com/2d614b948daae219b8cab69376e7257dcb603c143c0f30901fe92b2c4209a672/68747470733a2f2f692e696d6775722e636f6d2f515268353776492e706e67)
I noticed this issue when working on a large floorplan and exported the SVG to display elsewhere with interaction. Since the groups didn't actually wrap the elements none of the interactions worked so I dug into this a bit.
Multiple groups not wrapping any content:
![Multiple groups not wrapping any content](https://camo.githubusercontent.com/5c8328d311ea4b8efddc65cd8b16067b076b30d9237279745ca979da30227323/68747470733a2f2f692e696d6775722e636f6d2f726a684d5777362e706e67)
draw.io version (In the Help->About menu of the draw.io editor):
v26.0.3
Desktop (please complete the following information):
Windows 10
Firefox
133.0.3
Smartphone (please complete the following information):
I tested the problem in incognito/private mode with all browser extensions switched off, write "yes" below:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: