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'm trying to open a svg file as a template and position objects programmatically.
I expected a new file with the rectangle and the circle but not the triangle (that worked), where circle and rectangle are placed at the same coordinate in the top left corner (that didn't work).
instead, when looking to the resulting svg i can see that elements get the "translate()" transformation, which is move by 20 to the right and 20 to bottom.
I also met similar issues when using this tool to compose some SVG images, I don't have time to check the code, but according to my experience, I guess this is probably related to the unit your SVG file is saved in (i.e. px or pt). another weird problem is you may do the wrong rotation even if you think you set the right and reasonable parameters(like the rotating pivot), but you may get the wrong final SVG image.
I fix these issues by myself through change each elementary SVG files unit manually using Inkscape (File>Document Properties>Units).
another issue when I use this tool is the code can not get the right width/height if you edit your SVG files using Adobe Illustrator, this is because the format of SVG changed after editing by AI, I fix this issue by "Save as a Copy" through Inkscape.
I do think this tool is fantastic for someone like me to produce publication-quality figures, but it does have some space to improve.
yes, agreed. The name of the method is misleading. If you feel like it, please open a MR to rename it. You can delegate moveto to moveby and add a deprectiation warning.
Hi,
I'm trying to open a svg file as a template and position objects programmatically.
I expected a new file with the rectangle and the circle but not the triangle (that worked), where circle and rectangle are placed at the same coordinate in the top left corner (that didn't work).
instead, when looking to the resulting svg i can see that elements get the "translate()" transformation, which is move by 20 to the right and 20 to bottom.
The text was updated successfully, but these errors were encountered: