@ptag wrote:
This is my diagram configuration FYI.
myDiagram = $$(go.Diagram, "diagram", { initialContentAlignment: go.Spot.Center, scrollMode: go.Diagram.InfiniteScroll, allowDrop: true, "undoManager.isEnabled": true, contextMenu: myDiagramContextMenu, **"linkingTool.isUnconnectedLinkValid": true,**** “linkingTool.portGravity”: 20,**
** “relinkingTool.isUnconnectedLinkValid”: true,**
** “relinkingTool.portGravity”: 20,**
“relinkingTool.fromHandleArchetype”:
$$(go.Shape, “Diamond”, { segmentIndex: 0, cursor: “pointer”, desiredSize: new go.Size(8, 8), fill: “tomato”, stroke: “darkred” }),
“relinkingTool.toHandleArchetype”:
$$(go.Shape, “Diamond”, { segmentIndex: -1, cursor: “pointer”, desiredSize: new go.Size(8, 8), fill: “darkred”, stroke: “tomato” }),
“linkReshapingTool.handleArchetype”:
$$(go.Shape, “Diamond”, { desiredSize: new go.Size(7, 7), fill: “lightblue”, stroke: “deepskyblue” }),
“commandHandler.pasteFromClipboard”: function(){
var curOffset = go.CommandHandler.prototype.pasteFromClipboard.call(this);
var newOffset = new go.Point(20, 20);
this.diagram.moveParts(curOffset, newOffset);
}
});
Posts: 1
Participants: 1