Replace existing node with a new one...

23 views
Skip to first unread message

Horst Heistermann

unread,
Nov 22, 2019, 1:10:21 PM11/22/19
to jsPlumb
Hi,

  I would like to know if it is possible to replace an existing node with a new one and have the edges preserved. I know there is a toolkit.updateNode method but this is not satisfactory because we are using an r-each loop in the node's template and this loop is not re-evaluated during an update. So I thought just creating a new node and inserting it into the old node's location would be sufficient. I would like to avoid an entire diagram re-render and just have this 1 node re-rendered.  Is this possible?

thx

Simon Porritt

unread,
Nov 22, 2019, 3:37:03 PM11/22/19
to jsPlumb
Recent versions of the Toolkit do update the r-each loop during an update. 

--
You received this message because you are subscribed to the Google Groups "jsPlumb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jsplumb+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jsplumb/f4dafe27-6147-4749-a365-ba5f848ceacc%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages