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

How to save collate angle?

$
0
0

@dmaurya24 wrote:

before saving collate position

after loading

please tell me how to load this collate position same again?

code is
`
var CollateTemplate =
GO(go.Node, "Auto", nodeStyle(), {resizable: true, resizeObjectName: "Collate", rotatable: true},
GO(go.Shape, "Collate",
{name: "Collate", width: 40, height: 60, fill: "#F48FB1"},
new go.Binding("desiredSize", "size", go.Size.parse).makeTwoWay(go.Size.stringify)),
{
toolTip: // define a tooltip for each node that displays the color as text
GO(go.Adornment, "Auto",
GO(go.Shape, {fill: "#FFFFCC"}),
GO(go.TextBlock, {textAlign: "center", margin: 7},
new go.Binding("text", "tooltip"))
) // end of Adornment
});

        myDiagram.nodeTemplateMap.add("Collate", CollateTemplate);`

Posts: 6

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles