Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

graph.fromJSON() throws an exception when link's z level is in between its source and target #39

Closed
DavidDurman opened this issue Sep 10, 2013 · 1 comment
Assignees
Labels

Comments

@DavidDurman
Copy link
Member

  1. Create two elements in the paper and link them together.
  2. el1. set('z', 1); el2.set('z', 3); link.set('z', 2)
  3. o = JSON.stringify(graph.toJSON()); graph.clear(); graph.fromJSON(JSON.parse(o))

TypeError: Cannot call method 'bbox' of undefined.

This is because when the link view is created in paper.resetCells(), its target is not yet in the paper.

@ghost ghost assigned DavidDurman Sep 10, 2013
@DavidDurman
Copy link
Member Author

Fixed in commit 40fe048

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant