-
Notifications
You must be signed in to change notification settings - Fork 37
Description
Thank you in general for this excellent work!
Figma can save to SVG, but when I read in a file that contains things like this:
(Note penultimate code line.)
<rect id="Rectangle 833_18"
x="98.5" y="65.5" width="11" height="11" rx="0.5"
fill="#2B2925" stroke="#393939"/>
<rect id="Rectangle 835_18"
x="101.5" y="71.5" width="1" height="5"
transform="rotate(-90 101.5 71.5)"
fill="#A1A1A1" stroke="#4D4D4D"/>
The path.segments PathEvents seem to have non-rotated rects.
Here's a close-up of my resulting display, where the white glyphs toward the left should be + and - signs (to open & close subtrees in this embryonic tree-grid):
Am I doing something wrong?
Or do others see this and can I request an enhancement to implement this rotate?
(Seems like even if we don't want to support every part of SVG, Figma dumps are common usages?)
P.S. Did a quick check and turned one rect into an ellipse; same issue--I'm guessing rotate() can be used on all basic shapes. Both rotated rects & ellipses render properly rotated in InkScape and Brave.
Thanks!
Brad
