Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 6977

Shape in the pallete to be smaller after being dragged to the canvas

$
0
0

@ItayK wrote:

Hi
I want the the shape size in the pallete will be smaller after drag it to the canvas

The 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

Read full topic


Viewing all articles
Browse latest Browse all 6977

Trending Articles