d3-hierarchy
d3-hierarchy copied to clipboard
node.copy drops node.id.
The node.id property is set by d3-stratify, but it isn’t an “official” part of the node interface, and so it’s not copied by node.copy. It’d be nice if it were.
Related #33, node.name.
I’m not sure we want to make node.id part of the official API; we might want node.name instead. I think this should be reconsidered as part of the effort to make hierarchies immutable. #148