Azuzu
Azuzu

Reputation: 11

Is there a way to update the graph/paper or all modified elements in the graph in JointJS?

Basically I'm receiving Cell attributes from a file and I want to replace the corresponding Cells in the graph with the updated attributes but I can't seem to refresh the graph after I've applied the new attributes.

Based on the JointJS docs, it seems like graph.resetCells is what I'm looking for but it doesn't actually do anything when I try it. Any ideas?

Upvotes: 0

Views: 1007

Answers (1)

Tremmillicious
Tremmillicious

Reputation: 506

paper.render()

paper is the view and graph is the model

Upvotes: 0

Related Questions