Questions about using snap and scale together #1173
Replies: 4 comments
-
Can you clarify what behavior do you want? Snapping for resize may be it bit more complex. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I still don't understand what you want. What do you mean by "When transforming rect with sandbox, the starting point of the transform becomes the snapped point."? What kind of snap do you want when you resize if transformer? Snap what? Snap to what? |
Beta Was this translation helpful? Give feedback.
-
I apologize for not being able to give a clear explanation. As shown in the gif image, when I scale, the image may be scaled starting from the snapped coordinates. It means that you don't want to center scale at the snap position of the middle of the rect. you know how to make the transformer expand while maintaining the starting point (top-left) when it is first dragged, please let me know. |
Beta Was this translation helpful? Give feedback.
-
Hello.
I'm using konva in my Company product!
I have a question.
Is there a way to maintain the starting point of a transform when scale and snap are used together?
sample( We actually use react-konva in my product. )
https://codesandbox.io/s/boring-brattain-zyu1i?file=/index.html
When transforming rect with sandbox, the starting point of the transform becomes the snapped point.
If you know how to fix it, please let me know!
Beta Was this translation helpful? Give feedback.
All reactions