tldraw
tldraw copied to clipboard
[Feature]: Support an option to lock the movement to be only orthogonal
What's the feature?
The use case is similar to what I documented here: https://github.com/tldraw/tldraw/issues/2466
Is it possible to have the option to turn on/off ortho move for the vertices?
https://github.com/tldraw/tldraw/assets/2915573/b4dc2a6e-d2e0-4b3a-938f-666cf7309623
cc: @AntonelloDN
Contact Details
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
I've been thinking a bit about how we might tackle this. @mostaphaRoudsari do you have a since of which of these two approaches would fit your use-case best and why?
https://www.tldraw.com/v/ympMmJLYoLKBVC4eEyJTr?viewport=-2612,1729,4173,2347&page=page:page
how set are you on this being a mode that you can enable/disable rather than say a modifier key or part of standard snapping in the case of the 'maintain angles' approach?
Hi @SomeHats,
The option 1: true orthogonal movement is the better fit for our case. Mainly because that's how it is implemented in the CAD tools that our users are used to using. Once the user enables the mode the movement is only limited along the x or y axis.
In the Rhino world, the second option that you mentioned is referred to as smart tracking. See here. Rhino allows you to pick the points to create the axis but your approach for using the existing edge is also a nice option. I don't think we will use this option much for this particular case.
how set are you on this being a mode that you can enable/disable rather than say a modifier key or part of standard snapping in the case of the 'maintain angles' approach?
Hmm. As long as the user has the option to limit the movement it should get the job done for our scenario. I'm not sure what you are referring to as standard snapping but it will be nice to give the user the option to select which snapping options they want to be active at a time. Here are the options in Rhino.
AutoCAD provides similar functionality to choose from: https://help.autodesk.com/view/ACDLT/2023/ENU/?guid=GUID-CF5780AD-D1AB-4526-9608-83D7952749E7
I hope I understood your questions correctly, and answered them! Let me know if you have any other questions.
This issue is stale because it has been open for 180 days with no activity.
Adding comment to keep issue open.
This issue has been marked as stale because it has been open for 150 days with no activity. If there's no further discussion, it'll be closed in 30 days time. If you would like to ensure it stays open, you can comment on the issue and revive the discussion. Or, you can add the 'keep' label to prevent it from being closed.
This issue was closed because it has been inactive for 30 days since being marked as stale.