Closed khokm closed 7 months ago
I have a following tree structure:
interface Node extends RawNodeDatum { children: Node[]; foo(); }
But d3 makes a copy of data when converting RawNodeDatum to TreeNodeDatum, so the foo method is lost in resulting TreeNodeDatum object.
foo
TreeNodeDatum
I have a following tree structure:
But d3 makes a copy of data when converting RawNodeDatum to TreeNodeDatum, so the
foo
method is lost in resultingTreeNodeDatum
object.