@nmfa wrote:
We have nodes with ports, and the ports are highlighted when their link is selected. As such the temporaryToNode and temporaryFromNode have a style set:
tempNodeStyle = this.getNodeStyleTemplate(); linkingTool.temporaryToNode = tempNodeStyle; linkingTool.temporaryToPort = tempNodeStyle.port; getNodeStyleTemplate(): go.Node { return this.$(go.Node, {layerName: 'Tool'}, this.$(go.Shape, 'Circle', { fill: null, portId: '', desiredSize: new go.Size(8, 8), stroke: 'lime', //this.gojsDiagramStyleProvider.getLinkDuringDrawStyle().stroke, strokeWidth: Number(this.gojsDiagramStyleProvider.getLinkDuringDrawStyle().strokeWidth.replace('px', '')) })); }
The stroke change is to prove to myself that I'm looking at the right thing, and works as expected. However, the desiredSize is being ignored. What I am after, is the overlay being the same size as the existing port, but at the moment it seems one pixel larger, and the size seems unalterable.
Posts: 3
Participants: 2