shamansir / rpd

:ok_hand: A Minimal Engine for creating Node-Based Visual Programming User Interfaces
http://shamansir.github.io/rpd
443 stars 48 forks source link

Use d3 following its own philosophy #441

Open shamansir opened 7 years ago

shamansir commented 7 years ago

Since I've chosen d3-selection to serve as (being honest now) jQuery alternative, it is used in a wrong way now, in case of RPD. There are mostly no arrays of data etc., and no parent/children hierarchies of selections, in a d3 way of thinking. (See docs-patch example with Planets as a proper implementation of it).

When I've changed from d3_tiny to actual new version of d3, I discovered those issues immediately, for example https://github.com/d3/d3-selection/issues/106#issuecomment-280843339.

shamansir commented 7 years ago

Could be hard since in our case the data for children is not ready when we create a parent (root has no patches at start, patch has no nodes at start, nodes have no inlets/outlets and start & s.o)

shamansir commented 7 years ago

Also see http://stackoverflow.com/questions/26935274/d3-data-loads-partially