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

Model.toJson returns empty diagram

$
0
0

@o2587149 wrote:

this is my simple diagram :

var diagram = $(go.Diagram, "myDiagramDiv");

diagram.add(
  $(go.Part, "Auto",
    $(go.Shape, "RoundedRectangle", {
      fill: "#fb0"
    }),
    $(go.TextBlock, {
      text: "a Text Block"
    })
  )
);

and my problem is :

diagram.model.toJson()

return empty diagram . the result is :

{ “class”: “go.GraphLinksModel”,
“nodeDataArray”: [],
“linkDataArray”: []}

changes (element positions) and elements are not presented in result at all

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles