svgdotjs / svg.resize.js

An extension of svg.js which allows to resize elements which are selected
MIT License
92 stars 67 forks source link

Free Transform tool #69

Open olwethumlimi opened 1 month ago

olwethumlimi commented 1 month ago

Is there anyway the center can be controlled rather than manipulating it in the code . Like images (2)

Fuzzyma commented 1 month ago

What du you mean by that? Do you want to move the shape around? Do you want to scale around the center?

olwethumlimi commented 1 month ago

I mean allow to drag the red dot as shown and move it around , as a point of transform origin. which means, when rotating, it'll rotate around that point. image

Fuzzyma commented 1 month ago

No, this is not implemented. I am 70% certain it could work with the current code. You just need a handle and adapt the origin depending on the handle position when resizing / rotating. Would you be open to create a PR for implementation?