React component to create interactive D3 tree graphs
MIT License
Full Changelog: https://github.com/bkrem/react-d3-tree/compare/v3.6.1...v3.6.2
Published by bkrem over 1 year ago
Full Changelog: https://github.com/bkrem/react-d3-tree/compare/v3.6.0...v3.6.1
Published by bkrem over 1 year ago
dataKey
prop - Allow adding children to node without refreshing the whole tree by @fsvergara in https://github.com/bkrem/react-d3-tree/pull/417
Full Changelog: https://github.com/bkrem/react-d3-tree/compare/v3.5.2...v3.6.0
Published by bkrem over 1 year ago
dblclick
event (supersedes #455, thank you @Liu233w)Full Changelog: https://github.com/bkrem/react-d3-tree/compare/v3.5.1...v3.5.2
Published by bkrem over 1 year ago
Full Changelog: https://github.com/bkrem/react-d3-tree/compare/v3.5.0...v3.5.1
Published by bkrem almost 2 years ago
draggable
prop by @gouldie in https://github.com/bkrem/react-d3-tree/pull/433
Full Changelog: https://github.com/bkrem/react-d3-tree/compare/v3.4.2...v3.5.0
Published by bkrem almost 2 years ago
3.4.0
, but had to be reverted (3.4.1
) as another ESM-related issue (ERR_UNSUPPORTED_DIR_IMPORT
) emerged only after additional testing post-release.Full Changelog: https://github.com/bkrem/react-d3-tree/compare/v3.4.1...v3.4.2
Published by bkrem almost 2 years ago
d3-zoom
, d3-selection
to fix vuln by @bkrem in https://github.com/bkrem/react-d3-tree/pull/415
Full Changelog: https://github.com/bkrem/react-d3-tree/compare/v3.3.5...v3.3.6
Published by bkrem about 2 years ago
Full Changelog: https://github.com/bkrem/react-d3-tree/compare/v3.3.4...v3.3.5
Published by bkrem over 2 years ago
Full Changelog: https://github.com/bkrem/react-d3-tree/compare/v3.3.2...v3.3.4
https://github.com/bkrem/react-d3-tree/compare/v3.3.1...v3.3.2
dimensions
/centerNode behaviour (#384, thank you @kalebm1) c451295https://github.com/bkrem/react-d3-tree/compare/v3.3.0...v3.3.1
stroke: none
for label title and attribs 667d514https://github.com/bkrem/react-d3-tree/compare/v3.2.1...v3.3.0
onNodeClick
, onNodeMouseOver
, onNodeMouseOut
) defined on Tree
are now passed to the renderCustomNodeElement
function as props by default (thank you @lucasdellabella)CustomNodeElementProps
a28e72chttps://github.com/bkrem/react-d3-tree/compare/v3.2.0...v3.2.1
hasInteractiveNodes
38b2c4aMixedNodeInputElement
example be623achttps://github.com/bkrem/react-d3-tree/compare/v3.1.1...v3.2.0
onNode
handler parameter signatures with onLink
handlers (#349)
onNode
handlers now pass node: HierarchyPointNode<TreeNodeDatum>
as their first parameter instead of previous node: TreeNodeDatum
.onNodeClick
, onNodeMouseOver
, onNodeMouseOut
.v2.x
, you can preserve your existing handler behaviour in v3.x
by simply accessing the data
property on the passed node
:
onNodeClick={ (node, event) => { console.log(node) } }
onNodeClick={ (node, event) => { console.log(node.data) } }
Node
handlers with those of Link
, which already return HierarchyPointNode<TreeNodeDatum>
for their sourceNode
and targetNode
parameters.TreeNodeEventCallback
for more details.props.zoomable
is set to false
.RawNodeDatum["attributes"]
(#350)
attributes
was made unintentionally restrictive during the v2 refactor to Typescript, by moving from a loose implicit object
type to Record<string,string>
.Record
type to additionally accept number
and boolean
primitives as possible values.RawNodeDatum
docs for more details.