terra-draw icon indicating copy to clipboard operation
terra-draw copied to clipboard

[Feature Request] Optional click+drag support for TerraDrawRectangleMode

Open kaczowkad opened this issue 1 month ago • 6 comments

Is your feature request related to a problem? Please describe. We are looking at using terra-draw as an alternative to Google's Drawing Library. Terra-draw works well for our use case. Updating the application to use terra-draw is fairly straightforward.

One feature of Drawing Library our users rely on is click+drag to draw rectangles. Drawing Library supports both click+drag or clicks to set the start point and end point. Going without click+option it is not an option for our users.

Describe your proposed idea for the solution to this problem Adding an option to Rectangle mode to allow click+drag to draw rectangles in addition to the current way of clicking to set the start and end points.

Describe alternatives you've considered Looking into creating a custom mode to draw rectangles with click+draw.

Additional context While a custom mode is an option, click+drag seems like the type of feature other terra-draw users could use. It appears possible to support click+drag in TerraDrawRectangleMode. Are there known issues with supporting click+drag? Would a PR be welcome?

kaczowkad avatar Oct 09 '25 20:10 kaczowkad