Skip to content
Discussion options

You must be logged in to vote

I don't believe it's actually resizing all the shapes, just your view of them. As confirmation, I created a 1000×1000 canvas and centered a 500×500 rectangle within it. In the SVG file I see

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
   width="1000"
   height="1000"
   id="svg2"
   version="1.1"
   inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)"
   sodipodi:docname="junk.svg"
   viewBox="0 0 1000 1000"

and later,

    <rect
       style="fill:#5500d4;stroke:#000000;stroke-width:2;stop-color:#000000"
       id="rect416"
       width="500"
       height="500"
       x="250"
       y="250" />

After executing

svg_root.set('height', 150)
svg_root.set('width', 150)

with Simple…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@spakin
Comment options

Answer selected by spakin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #70 on January 24, 2023 01:55.