Hi,
how can I get the shape of the item (node or connector) which is being added into the diagram space. I know that collectionChange event fired but I am not
not able to get the shape. I am adding my code here
collectionChange(args: ICollectionChangeEventArgs) {
let obj = args.element;
if (args.state === 'Changed') {
//checking if node is added
if (obj instanceof Node) {
console.log(args.element.shape); //here I am not getting
}
//checking if connector
else{
console.log(args.element.shape)
}
}
Thanks in advance