@n0gare wrote:
Hello there,
I have a problem with the resizingTool.
Take a look at my codediagram.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 lineresizable: 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
adornedObjectwas null, so I tried to set this value, well it didn't worked.this.handleis nullthis.cellSizeis NaN
same fordiagram.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!
Posts: 1
Participants: 1