Editing Nodes Vertix

Greetings,

I've read in many places here that we can change the vertex of any node. I've also set AllowVertexEdit to true. Now how to change those Vertices? (edit, add, remove ... etc) by mouse?

Regards,

Ayman


2 Replies

DT Deepa Thiruppathy Syncfusion Team July 12, 2022 12:22 PM UTC

Hi Ayman,


Requirement: how to add, remove and edit the node’s Vertices by using mouse


We do not have any direct support for your requirement. We will check and try possible work around solutions and get back to you with more details on July 14, 2022.



DT Deepa Thiruppathy Syncfusion Team July 14, 2022 12:49 PM UTC

Hi Ayman,


Requirement: how to add, remove and edit the node’s Vertices by using mouse


We have created a simple sample to achieve your requirement using Click event. In that sample, We have added a new vertex point to nodes at current mouse point on a node, when pressing Control key and mouse down, and you can remove the any vertex point of a node again pressing control key and mouse down. To edit the vertex points you need to set the DefaultHandleEditMode to Vertex.


Sample link: https://www.syncfusion.com/downloads/support/directtrac/general/ze/VertexEditAddRemove-262861890


Loader.
Up arrow icon