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
Scaling is broken af as there are no specfic points to scale the points around.
A possible approach is to calculate the center of every shape and move and scale all children accordingly to this.
This would be incredibly complicated though and might result in lag.
Another approach is the css transform: scale(1.2) rule, which effects have to be explored though
Interesting approach: using the viewbox attribute to set the aspect ratio of the image and enable scaling. Usage in combination with preserveAspectRatio="xMinYMin meet" or maybe better: preserveAspectRatio="xMinYMin slice". Downside: scaling also scales the available space for the engine
Research has revealed that scaling using viewBox and preserveAspectRatio works the best and the easiest. The calculating approach might be implemented for easy components later
Scaling is broken af as there are no specfic points to scale the points around.
A possible approach is to calculate the center of every shape and move and scale all children accordingly to this.
This would be incredibly complicated though and might result in lag.
Another approach is the css
transform: scale(1.2)
rule, which effects have to be explored thoughInteresting approach: using the
viewbox
attribute to set the aspect ratio of the image and enable scaling. Usage in combination withpreserveAspectRatio="xMinYMin meet"
or maybe better:preserveAspectRatio="xMinYMin slice"
. Downside: scaling also scales the available space for the enginehttps://css-tricks.com/scale-svg/
The text was updated successfully, but these errors were encountered: