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
first of all i want to say i really like your work. I am new to javascript so i might be missing something.
I already made my first goal working - svg inside html to position and rotate rectangles of variable sizes which represent individual cabinets in room. Grid snaping works just fine.
So to get to my problem. I have svg element inside which are rectangles of variable sizes, positions and rotations. Is it possible to have multiple elementOrigin for snapping, eg. to not to only snap by origin point of rectangle but by other three corners as well?
Basically is possible to make two rectangles with some rotations "snapable" BY all 4 corners of moving rect TO all 4 corners of target rect??
I found examples for my second related question about interaction with other rectangles snaping to multiple anchors and all their corners, so i think i could manage this one on my own. I am just not sure how to implement "the moving rectangle" snapping.
I would appreciate If you could just point me somewhere to look for the answer or tell me if it is even possible. Thanks
The text was updated successfully, but these errors were encountered:
I've recently been making a lot of changes to snapping (per-action settings, unified snap modes) which made it a lot easier to support what you'd like to achieve. I've now created a relativePoints option for snapping which works like multiple elementOrigins.
It's explained a bit more in the pull request description. This feature hasn't yet been released but you can download a version with it here. Try it and let me know how it goes.
Hello,
first of all i want to say i really like your work. I am new to javascript so i might be missing something.
I already made my first goal working - svg inside html to position and rotate rectangles of variable sizes which represent individual cabinets in room. Grid snaping works just fine.
So to get to my problem. I have svg element inside which are rectangles of variable sizes, positions and rotations. Is it possible to have multiple elementOrigin for snapping, eg. to not to only snap by origin point of rectangle but by other three corners as well?
Basically is possible to make two rectangles with some rotations "snapable" BY all 4 corners of moving rect TO all 4 corners of target rect??
I found examples for my second related question about interaction with other rectangles snaping to multiple anchors and all their corners, so i think i could manage this one on my own. I am just not sure how to implement "the moving rectangle" snapping.
I would appreciate If you could just point me somewhere to look for the answer or tell me if it is even possible. Thanks
The text was updated successfully, but these errors were encountered: