Add hover to vertices and be able to remove vertex by click on hover icon #2559
-
Beta Was this translation helpful? Give feedback.
Answered by
kumilingus
Mar 3, 2024
Replies: 1 comment 3 replies
-
The const customVertices = new linkTools.Vertices({
handleClass: linkTools.Vertices.VertexHandle.extend({
tagName: 'g',
children: util.svg`<rect fill="red" width="10" height="20" x="-10" y="-10"/>`,
onRender() {
this.renderChildren();
}
}),
vertexAdding: false,
vertexRemoving: false,
}); |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's easier to use the same mechanisms that were used in the original
VertexHandle
class.Would this work? https://jsfiddle.net/kumilingus/ke60L73q/