@ahmetgundogdu wrote:
Hello,
I have svg list.
I make new shape using svg paths.
But shapes is not equal.
Example images:
I use the node template:
this.diagram.nodeTemplateMap.add(Enums.AbsoluteFormNodeTemplates.UnifiedShapes,
goMake(go.Node, “Auto”, {
minLocation: new go.Point(0, 0),
locationObjectName: “Panel”,
locationSpot: go.Spot.Center,
selectable: true,
selectionAdornmentTemplate: this.nodeSelectionAdornmentTemplate,
selectionObjectName: “Panel”,
resizeObjectName: “Panel”,
resizeAdornmentTemplate: this.nodeResizeAdornmentTemplate,
resizable: true,
},
new go.Binding(“location”, “”, this.bindShapeLocation).makeTwoWay(this.converterShapeLocation),
new go.Binding(“isActionable”, “”, this.bindShapeLock).makeTwoWay(),
new go.Binding(“visible”, “”, this.bindNodeVisible),
goMake(go.Panel, “Auto”, {
name: “Panel”
},
new go.Binding(“desiredSize”, “”, this.bindShapeSize).makeTwoWay(this.converterShapeSize),
new go.Binding(“itemArray”, “”, this.bindPanelItemArray.bind(this)),
{
itemTemplate:
goMake(go.Panel, “Auto”,
new go.Binding(“desiredSize”, “”, this.bindPanelItemSize.bind(this)).makeTwoWay(),
goMake(go.Shape, “RoundedRectangle”,
{
fill: “#91E3E0”,
alignment: go.Spot.Center,
},
new go.Binding(“stroke”, “”, this.bindPanelItemBorderColor.bind(this)).makeTwoWay(),
new go.Binding(“fill”, “”, this.bindPanelItemColor.bind(this)).makeTwoWay(),
new go.Binding(“geometry”, “”, this.bindShapeGeometry.bind(this)),
new go.Binding(“strokeWidth”, “”, this.bindPanelItemBorderThickness.bind(this)),
new go.Binding(“strokeDashArray”, “”, this.bindPanelItemBorderType.bind(this)).makeTwoWay(),
//new go.Binding(“desiredSize”, “”, this.bindPanelItemSize.bind(this)).makeTwoWay(),
))
})
)
);I have to use a panel to create the shape of a svg. Because i need all paths in svg
Posts: 8
Participants: 2