UpdateTargetBindings when move or resize node

Hi,
i want to update some bindings of other nodes when i move or resize some “special” nodes.
But i want this when i move the mouse. Also i don’t want to use the diagram events “SelectionMoved” and “PartResized”. How can i do this? Thx for help!

You’ll need to override methods on the DraggingTool and ResizingTool.

It is most common to override DraggingTool | GoJS API and ResizingTool | GoJS API.

And how can i resize the node so width and height are equal?

If the GraphObject being resized starts off with equal width and height, then you can force keeping the same aspect ratio by overriding ResizingTool.computeResize:

$(go.Diagram, . . .,
  { . . .,
    "resizingTool.computeResize": function(newPoint, spot, min, max, cell, reshape) {
      return go.ResizingTool.prototype.computeResize.call(this, newPoint, spot, min, max, cell, false);
    };
  })

Note that users can do that when they please by holding down the Shift key while dragging a resize handle.

Alternatively you could override this same method to call the super method, look at its return value, and figure out what Rect you actually want to return.