Hi Walter,
Thank you for the suggestion, unfortunately I am still getting the same error. Here is the configuration for the diagram and the dimensioning links, maybe this will help:
this.diagram = new go.Diagram(htmlId, {
contentAlignment: go.Spot.Center,
grid: new go.Panel('Grid', { gridCellSize: this.cellSize }).add(
new go.Shape('LineH', {
stroke: '#D0E5F9',
}),
new go.Shape('LineV', {
stroke: '#D0E5F9',
})
),
initialAutoScale: go.AutoScale.Uniform,
'grid.visible': true,
'animationManager.isEnabled': false,
'undoManager.isEnabled': true,
'draggingTool.dragsLink': true,
'draggingTool.mayDragLink': (link: DimensioningLink) => {
if (!link.movable) return false;
return this.diagram && this.diagram.allowRelink;
},
'relinkingTool.isUnconnectedLinkValid': true,
'linkingTool.isUnconnectedLinkValid': true,
'draggingTool.isGridSnapEnabled': true,
'draggingTool.gridSnapCellSpot': go.Spot.TopLeft,
'resizingTool.isGridSnapEnabled': true,
'resizingTool.cellSize': this.cellSize,
'draggingTool.gridSnapCellSize': this.cellSize,
'draggingTool.isCopyEnabled': false,
'toolManager.mouseWheelBehavior': go.WheelMode.Zoom,
'padding': new go.Margin(this.gridPadding),
minScale: 0.03,
maxScale: 8,
model: new go.GraphLinksModel({
linkKeyProperty: 'key',
}),
});
export const measurementLinkTemplate = new DimensioningLink({
layerName: NodeLayers.Measurements,
movable: false,
})
.bind('fromSpot', 'fromSpot', go.Spot.parse)
.bind('toSpot', 'toSpot', go.Spot.parse)
.bind('direction')
.bind('extension')
.bind('inset')
.bind('gap')
.bind('decimalSeparator')
.bind('unit')
.bind('visible')
Hopefully this helps, let me know if there is anything else I can provide.