Hi,
i'm export JS aplicattion to TypeScript. I have a problem with event "nodeSizeChange" because it never fire.
var diagram = new ej.datavisualization.Diagram(myContainer, { selectionChange: this.onSelectionChange, drop: this.onDrop, rotationChange: function (args) { debugger;}, height: "100%", width: "100%", enableAutoScroll: false, nodeSizeChange: function (args) { debugger; } }); |
Rotation fire but nodeSizeChange no.
Instead, Javascript work:
var diagram = $("#Diagram1").data("ejDiagram");
//On node size change diagram.model.sizeChange = function (args) { var h = args.element.height; var w = args.element.width; args.element.addInfo.height = h; args.element.addInfo.width = w; //Change size container if(args.element !=undefined && args.element.addInfo!=undefined) { args.element.addInfo.setDimension(w,h); } }; |
Any idea?
Thanks!
Versions:
TypeScriptToolsVersion:1.5.2.0
Syncfusion TypeScript :version : 13.4.0.53
Syncfusion.Core, Version=13.4450.0.53
Syncfusion.EJ, Version=13.4450.0.53
Syncfusion.EJ.Mvc, Version=13.4500.0.53