Yqnn / svg-path-editor

Online editor to create and manipulate SVG paths
https://yqnn.github.io/svg-path-editor/
Apache License 2.0
4.11k stars 335 forks source link

Feature Request: Split command into two #99

Closed sunnygoyal closed 1 year ago

sunnygoyal commented 1 year ago

Provide ability to split a command into two, by inserting a new point in the middle. This is useful when trying to match two path commands for morphing

Yqnn commented 1 year ago

That's already supported: click on the previous point, then ... > Insert After > Line to or just press L on keyboard.

https://user-images.githubusercontent.com/588624/224789560-a1a381a9-dcff-4702-91f7-bd332073dbad.mp4

sunnygoyal commented 1 year ago

My request is a different than what is mentioned above. What I am requesting is splitting the existing curve into half without modifying it visually: https://stackoverflow.com/questions/18655135/divide-bezier-curve-into-two-equal-halves

All the existing methods add a new curve at the end and any manual cursor dragging ends up changing the image