I am working on a perspective project. I have added a symbol into my view, and I have eliminated some elements to get what I need. However, I am trying to get rid of the extra space where the elements were previously. Is that possible?
If you set the aspectRatio property to xMaxYMax
, you should be able to drag the left handle all of the way up to the edge of the remaining symbol.
I tried that but it shrinks the symbol itself. It doesn’t get rid of the extra space
You need to drag the handles yourself. the aspectRatio setting just defines how the space should be used. A setting of xMaxYMax should allow the svg to fill up as much space as it can in the boundaries, and any extra space can be removed by dragging the handles. Could you supply a screenshot of the settings for that svg so that I can see the aspectRatio setting?
Yes, the height is adjustable so I am able to get rid of empty space on the top, however, when I try dragging the width over, it shrinks the symbol.
This was the symbol before removing a few elements that I don’t need. I just want to remove the extra space because it won’t let me click on components on the back of this symbol due to the white space.
Ah, okay. I was able to do trim the extra space by modifying the values in the viewBox
property. You’ll need to experiment with those values, which define where the svgs internal boundaries should be in relation to the “picture” as a whole. I suspect setting the first 0
of the viewBox property to something around 70 should help. You probably also need to reset the aspectRatio property to xMidYMid
to take advantage of viewBox changes.
I see. I will try that, thank you!