@Ratatule wrote:
I have created a shape using the svg path and PolygonDrawing tool.
diagram.nodeTemplateMap.add('PolygonDrawing', GO(go.Node, 'Spot', { resizable: false, resizeObjectName: "SHAPE", rotatable: false, rotateObjectName: "SHAPE", reshapable: true, selectionAdorned: false, name: 'NODE' }, { itemTemplateMap: createItemTemplates('editor'), itemCategoryProperty: 'type' }, new go.Binding('itemArray', 'labels'), new go.Binding("location", "loc", go.Point.parse).makeTwoWay(go.Point.stringify), GO(go.Shape, { name: 'SHAPE', fill: 'white', strokeWidth: 10, stroke: '#dadada' }, new go.Binding('desiredSize', 'size', go.Size.parse).makeTwoWay(go.Size.stringify), new go.Binding('angle').makeTwoWay(), new go.Binding('geometryString', 'F M0 0 L150 0 L150 150 L0 150Z').makeTwoWay(), new go.Binding('fill'), new go.Binding('stroke'), new go.Binding('strokeWidth'), new go.Binding('type') ) ) );I want something like this.
Posts: 7
Participants: 2