@ItayK wrote:
Hi
I want the the shape size in the pallete will be smaller after drag it to the canvasThe shape:
myDiagram.nodeTemplateMap.add("Validation",
GoJs(go.Node, "Spot", nodeStyle(),
GoJs(go.Panel, "Auto",
GoJs(go.Shape, "Rectangle",
{ minSize: new go.Size(140, 80), fill: "#76b7e8", stroke: '#ffff00', strokeWidth: 4 }),
GoJs(go.TextBlock, "Validation",
{ font: "bold 11pt Open Sans", stroke: lightText },
new go.Binding("text", "designerDisplayName"))
),
makePort("T", go.Spot.Top, true, true),
makePort("L", go.Spot.Left, true, true),
makePort("R", go.Spot.Right, true, true),
makePort("B", go.Spot.Bottom, true, true)
));Thanks
Itay
Posts: 2
Participants: 2