Extend resizing tool

Hi,

I’m trying to extend the resizing tool to perform a function while resizing but i’m getting an error, ‘Cannot read property ‘size’ of undefined’.

this is the code (without the extra function):

var tool = diagram.toolManager.resizingTool;
tool.resize = function() {
  go.ResizingTool.prototype.resize.call(tool);
};

any idea why it gives me the error?

Thanks,
Tim

ResizingTool | GoJS API takes an argument that you are not passing on when you call the base method.

right, my bad… thanks!