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

Diagram.model value is not an instance of Model: GraphLinksModel

$
0
0

@Parthi wrote:

Hi walter,

Good Morning
Please help.
I am facing the below problem when i use cdn link of gojs its working fine.
https://cdnjs.cloudflare.com/ajax/libs/gojs/1.8.35/go-debug.js.
In my project i am using flowchart samples.
I am assgin the diagram values using below script
myDiagram.model = go.Model.fromJson(document.getElementById(“mySavedModel”).value);

my values to load in diagram is below

{ "class": "go.GraphLinksModel",

"linkFromPortIdProperty": "fromPort",

"linkToPortIdProperty": "toPort",

"nodeDataArray": [

{"key":0, "category":"Start", "loc":"126.99999999999997 -134", "text":"Start"},

{"text":"New contract / \nNew Job data \n", "key":1, "loc":"127 -47"},

{"category":"Conditional", "text":"Is the key to open ", "key":2, "loc":"127.00000000000006 79.00000000000003"}

],

"linkDataArray": [

{"from":"0", "to":"1", "points":[126.99999999999997,-113.99118095220521,126.99999999999997,-103.99118095220521,126.99999999999997,-100.05613582522369,127,-100.05613582522369,127,-96.12109069824218,127,-86.12109069824218]},

{"from":"1", "to":"2", "points":[127,-7.878909301757815,127,2.1210906982421847,127,11.999999999999988,127.00000000000003,11.999999999999988,127.00000000000003,21.87890930175779,127.00000000000003,31.87890930175779]}

]

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles