Background:
I am working on a test project to explore a directed graph within THREE.js, I have a data structure that is not a DOM, but shares many properties with it. Namely, the structure is hierarchical and I can perform (subgraph) selection. I have built a layout engine. Now I want to make it dynamic. By this I mean that I would like to be able to add / remove / update nodes which in this case are represented by scene objects.
I like the way that this is handled in D3.js however the library seems to be heavily reliant upon the data existing in a DOM (?)
I have examined the source code and made my head hurt a little.
Question:
Does anyone know how Mike Bostock's enter, exit, update pattern is coded as I would like to make a toy implementation that will handle my (non-DOM) scenario.
Many thanks in advance.