Extract iD.Difference

iD.Difference represents the difference between two graphs.
It knows how to calculate the set of entities that were
created, modified, or deleted, and also contains the logic
for recursively extending a difference to the complete set
of entities that will require a redraw, taking into account
child and parent relationships.

Additionally, all history mutators now return a difference.
This commit is contained in:
John Firebaugh
2013-02-02 18:28:44 -05:00
parent 09dac581be
commit ddc5e324f6
10 changed files with 375 additions and 204 deletions
+1
View File
@@ -119,6 +119,7 @@
<script src='js/id/operations/reverse.js'></script>
<script src='js/id/operations/split.js'></script>
<script src='js/id/graph/difference.js'></script>
<script src='js/id/graph/entity.js'></script>
<script src='js/id/graph/graph.js'></script>
<script src='js/id/graph/history.js'></script>