I am using gojs pallet and diagram, while dropping objects into diagram I need to check its scale so the I can resize object as follows:
new go.Binding(“strokeWidth”, “”, function () {
return 1 / mydiagram.scale;
}).makeTwoWay(),
new go.Binding(“height”, “height”, function (s) {
return s / mydiagram.scale;
}).makeTwoWay(),
new go.Binding(“width”, “width”, function (s) {
return s / mydiagram.scale;
}).makeTwoWay(),
but when I am zooming to scale level 5 or above object is flickering on resize and working fine in I using 1-way binding. I need 2-binding with smooth resizing/reshaping because I am saving object for future use.