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

The rectangle doesn't save correctly in model

$
0
0

@tesicg wrote:

The code looks as following:

var image9Template =
    $(go.Node, "Vertical", nodeStyle(),
        {
            resizable: true,
            resizeObjectName: "SHAPE", selectionObjectName: "SHAPE"
        },
    $(go.Shape, "Rectangle",
        {
            name: "SHAPE",
            fill: transparent,
            width: 60,
            height: 40,
            stroke: black,
            strokeWidth: 1,
            strokeDashArray: [5, 5]
        })
    );

The diagram looks as following:

The diagram model looks as following:

{ "class": "go.GraphLinksModel",
  "linkFromPortIdProperty": "fromPort",
  "linkToPortIdProperty": "toPort",
  "nodeDataArray": [ {"guid":119, "category":"image9", "key":-9, "loc":"-482.3833312988281 -279.9499969482422"} ],
  "linkDataArray": []}

But, when I load the model I've got the small rectangle as the one in palette:

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles