Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 6977

Issue when copying a collection with non-copyable node

$
0
0

@Dominic.Lerbs wrote:

Hello,

two questions regarding this example (the Delta node is set to copyable=false):
https://codepen.io/dominic-simplan/pen/dyobOpQ?editors=1010

  1. If I select all elements, copy all using Ctrl+C and paste them using Ctrl+V, the ModelChangedListener receives events about removed links. Why? The data is copied, so I shouldn’t get a remove event? I assume internally the links of the non-coypable nodes are removed, but this shouldn’t trigger a ModelChangedEvent as this is not a change I would expect to occur on my model if I copy something?

  2. If I select all elements, and copy them by pressing Ctrl and dragging them using the mouse, exeptions are logged in the console: TypeError: a.diagram is null

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6977

Latest Images

Trending Articles



Latest Images