Resizing an element like in freeTransform plugin #1662
-
Hi all I found that there is no such an out-of-the-box tool in JointJS core, only FreeTransform plugin , which is in JointJS+, that is not affordable for my project. I'm looking for a way to implement resizing by myself, but struggling with how to start.
I found something about resizing here - https://github.com/Rodsevich/JointTooledViewPlugin/blob/master/tooledViewPlugin.js and common idea is clear (detecting mousemove and calling resize on mouseup). But how to implement some common routine that could be attached to any shape? Any ideas would be appreciated |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can use the https://codepen.io/jointjs/pen/poaEpKx Or implement your own |
Beta Was this translation helpful? Give feedback.
You can use the
elementTools.Control
as shown in this example:https://codepen.io/jointjs/pen/poaEpKx
Or implement your own
elementTool
(by inheriting fromdia.ToolView
) similar to this.