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

Click on the middle point for optimization

Open Thunder7991 opened this issue 1 year ago • 3 comments

image

Click on the middle point, and the two newly added points can be directly dragged . This can greatly improve the efficiency of editing and drawing polygons ,

When dragging the middle point, two new points are automatically added, and both new points can be directly dragged。

Thunder7991 avatar Mar 05 '24 02:03 Thunder7991

@JamesLMilner I suggest changing the onClick event at the midpoint to be triggered when keydown, rather than when keyup, so that you don't have to click before dragging

LarryZhu-dev avatar Mar 07 '24 02:03 LarryZhu-dev

Thanks for raising this idea. A feature like this might be possible but requires a bit of thinking about how it works with the wider select mode without making the code harder to maintain. A feature like this would be behind a flag and which developers could opt into by turning it on. I will look into it and see if it's possible, but can't promise anything on time lines.

JamesLMilner avatar Mar 07 '24 19:03 JamesLMilner

Thanks for raising this idea. A feature like this might be possible but requires a bit of thinking about how it works with the wider select mode without making the code harder to maintain. A feature like this would be behind a flag and which developers could opt into by turning it on. I will look into it and see if it's possible, but can't promise anything on time lines.

@JamesLMilner, thanks a lot.

Thunder7991 avatar Mar 07 '24 19:03 Thunder7991