tldraw icon indicating copy to clipboard operation
tldraw copied to clipboard

[Feature]: Support an option to lock the movement to be only orthogonal

Open mostaphaRoudsari opened this issue 1 year ago • 4 comments

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

[email protected]

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

mostaphaRoudsari avatar Jan 12 '24 22:01 mostaphaRoudsari

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?

image

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?

SomeHats avatar Jan 23 '24 16:01 SomeHats

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.

image

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.

mostaphaRoudsari avatar Jan 23 '24 16:01 mostaphaRoudsari

This issue is stale because it has been open for 180 days with no activity.

github-actions[bot] avatar Aug 01 '24 00:08 github-actions[bot]

Adding comment to keep issue open.

mimecuvalo avatar Aug 01 '24 11:08 mimecuvalo

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.

github-actions[bot] avatar Mar 01 '25 00:03 github-actions[bot]

This issue was closed because it has been inactive for 30 days since being marked as stale.

github-actions[bot] avatar Apr 01 '25 00:04 github-actions[bot]