add removal tool in vectorizer #1984
slvamegestic
started this conversation in
Ideas
Replies: 1 comment 7 replies
-
If you choose to use low-level APIs (Vectorizer or native SVG) to draw objects, you can't expect high-level classes (elementTools, linkTools) to work with them (they only work with ElementView and LinkView). You need to attach event listeners using DOM API and render the button using Vectorizer or DOM API. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi I am using jointjs 3.6.5,
var line = V("rect", { x: 20, y: 20 width: 100, height: 100, "stroke-width": 3, fill: "transparent", stroke: "#142f5a", }); V(this.bgPaper.viewport).append(line);
The above code draws a rectangle as a line(the image shows multiple rectangle lines in black). When hovering over the lines, I want a removal tool to appear. How can I do that ?
Beta Was this translation helpful? Give feedback.
All reactions