We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Microsoft has ended support for older versions of IE. For the best experience, upgrade to the latest version of IE, or view this page in another browser.
I am generating a diagram programmatically and now getting this quite often: TypeError: undefined is not an object (evaluating 'layout.levels[intersect[0]].rBounds')
it happens on layout and also when I select the diagram.
Any idea what causes this? Really annoying it keeps doing this.. and no real indication of what it could be.
I am using the diagramInstance.addNode and diagramInstance.addConnector APIs. Is there something I should watch out for when using the APIs?
Please use diagram add method to add a node/connector at runtime. Also, you should not change the node/connector id property at runtime. We have created a sample in which we have added node and connector at runtime. Could you please check in the below sample? Still if you face any issues, please share us more details such as modify the below sample.
Ok... after many hours of comparing and copying code.. I am able to reproduce the error in your example. Very painful to track down.
simply add constraints to the diagram . and it will throw the error I am getting. I was trying to add the virtualization constraint as in my other note
please help!!
Error occurred:
undefined is not an object (evaluating 'e.width.toString')
so I added this from the other examples you shared on enabling virtualization:
We have logged “Exception raised while adding node at runtime by enabling virtualization” as a defect. The fix for this issue is estimated to be available on 27th November, 2019.
You can track the status of the issue from the below feedback link.
This page will automatically be redirected to the sign-in page in 10 seconds.
You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.