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

http://gojs.net/latest/api/symbols/ResizingTool.html#resize takes an argument that you are not passing on when you call the base method.

right, my bad… thanks!