we have a problem when copying and pasting nodes and connectors after we change properties (color, annotations, addInfo data). When pasting all changes are lost. Note that we serialize the diagram and it is saved and reloaded correctly.
I've seen the same behavior (losing changes) in some examples in the website, while not in others.
BMBalasubramanian Manikandan Syncfusion Team February 3, 2023 01:25 PM UTC
Use the doBinding function to set the annotations
value to resolve your issue. In our getting started documentation, they
have used getNodeDefaults function which is triggered on adding node
dynamically. So, the old annotation is preserved on copy and paste. We will
update the documentation's getting started page, which will be reflected in the
upcoming volume 1 release, which is scheduled to release on March 2023.
Refer to the below-mentioned code example and sample.