Skip to content

How do I make nodes with flex points on Paper default lines? #2633

Answered by kumilingus
makleo2002 asked this question in Q&A
Discussion options

You must be logged in to vote

You can listen for the add event, which fires every time a cell is added to the graph.

graph.on('add', (cell) => {
   if (cell.isElement()) return;
   cell.findView(paper).addTools(/* ... *.);
});

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@makleo2002
Comment options

@kumilingus
Comment options

@makleo2002
Comment options

@kumilingus
Comment options

Answer selected by makleo2002
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants