@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