Hello there,
I have a problem with the resizingTool.
Take a look at my code
diagram.nodeTemplate = $(go.Node, "Table", { locationObjectName: "", toolTip: map.toolTipTemplate, locationSpot: go.Spot.Center, selectable: true, selectionAdornmentTemplate: map.nodeSelectionAdornmentTemplate, resizable: true, resizeObjectName: "PANEL", resizeAdornmentTemplate: map.nodeResizeAdornmentTemplate, rotatable: true, rotateAdornmentTemplate: map.nodeRotateAdornmentTemplate },
As far as I understand the line resizable: true,
should do it.
Well looks like I am wrong.
So I tried to figure the problem out, by myself.
Unfortunaly that was not succesful.
Trying to detect the problem I came up with this
diagram.toolManager.resizingTool.doStart = function () { console.log(this); this.adornedObject = diagram.findNodeForData(currentItem); console.log(this.handle); console.log(this.cellSize); console.log(diagram.toolManager.draggingTool.gridSnapCellSize); }
I noticed that adornedObject
was null, so I tried to set this value, well it didn’t worked.
this.handle
is null
this.cellSize
is NaN
same for diagram.toolManager.draggingTool.gridSnapCellSize
.
Why are the needed values null
?
I hope you can suggest another direction, where I can look for the problem.
Best regards!