Skip to content
forresto edited this page Oct 17, 2012 · 4 revisions

I chopped lots of spaghetti out with this rewrite. Here are a few areas:

  • module pattern (to be simplified further)
  • collection views... this plugin automatically adds/removes views synced to the collection.
  • No global: Iframework used Iframework.shownGraph too much. Now I'm traversing up to the current graph when I need it, which will make subgraphs easier.
  • passing graph to node/edge initializer so it is available (this means I have to use a custom .toJSON() to avoid cyclical references when calling JSON.stringify())
  • Events: Triggering and listening to events.
    • ex: Dataflow.graph.edges.on("add", function(edge){...});
  • .id prevents duplicate nodes and edges.
Clone this wiki locally