clientIO / joint

A proven SVG-based JavaScript diagramming library powering exceptional UIs
https://jointjs.com
Mozilla Public License 2.0
4.68k stars 852 forks source link

linkTools.Vertices: prevent vertex creation on labels #2688

Open kumilingus opened 4 months ago

kumilingus commented 4 months ago

Discussed in https://github.com/clientIO/joint/discussions/2686

Originally posted by **dsrdh** June 8, 2024 ### Introduction I have a label that opens a pop-up when clicked. This link has two tools - vertex tool & remove tool. The vertex tool shouldn't work on areas overlapping the labels - so that it doesn't prevent the pop-up from opening. Additionally, the remove tool should be placed above the label in case it overlaps the label. How can I achieve this functionality in JointJs v4? ### Steps to reproduce _No response_ ### Restrictions & Constraints _No response_ ### Does your question relate to JointJS or JointJS+. Select both if applicable. JointJS
kumilingus commented 1 day ago

Fixed by https://github.com/clientIO/joint/pull/2689.