Line notes disappear when call loadDiagram by another diagram

Hi,

I have two diagram, one is only show outside, and another is in the design page.

When open the design page, will call loadDiagram, then the outside diagram line notes disappear.

Mybe the two diagram have same connectors id, cause confusion between two diagram. 

You can check the gif.





2 Replies

LO lorryl June 20, 2022 07:09 AM UTC

The opened design line note is fine:



The first diagram disappeared line note:




AR Aravind Ravi Syncfusion Team June 21, 2022 08:00 AM UTC

Hi Lorryl,


On analyzing the provided video, we suspect that you have set the ID for the connector’s annotation. So that when you try to render the two diagrams on the same page, the first diagram connector’s annotation gets disappeared and the second diagram connector’s annotation only get visible. To overcome this issue, please do not set the ID for the line’s annotation or add the randomID at end of the annotation id.


let connector: ConnectorModel = {

    id: 'connector1', sourcePoint: { x: 300, y: 400 }, targetPoint: { x: 500, y: 500 }, annotations: [{

        content: 'Connector',

        id: 'content' + randomId()

    }]

};


Regards

Aravind Ravi


Loader.
Up arrow icon