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

Refresh diagram model from json with Backbone

$
0
0

@Klim wrote:

Hello!
I`m using Backbone model to syncronize data from server. To set diagram model I use diagram.model = go.GraphLinksModel.fromJson(backboneModel.toJSON()).
How can I refresh diagram model when backboneModel changed? If I set from json again, diagram is refreshing, but I need to save diagram state (positions, expanded groups, etc.)

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles