Repository navigation
v4.0.0-next.0
Pre-release
Pre-release
First v4 prerelease, published under the next dist-tag. latest stays on 3.x.
- ESM only, for React 18 or 19.
importworks in every bundler and in Node 14 or later;require()works on Node 20.19 or later, or 22.12 or later. Treeis a function component with a ref handle (TreeHandle) that centers nodes, expands and collapses them, and reads or sets the transform.- Stable node ids, controlled or uncontrolled collapse state (
collapsedandonCollapsedChange), andonTransformChangefor zoom and pan. - The tree measures its own container, and
centerOnClickreplacesdimensions. - Removed:
enableLegacyTransitions,transitionDuration,addChildren,dataKey,onUpdate, and thedataarray form. Animations return in a 4.x minor. - Runtime dependencies are down to four d3 modules.
Migration guide: https://github.com/bkrem/react-d3-tree/blob/v4.0.0-next.0/MIGRATION.md
Live demo: https://bkrem.github.io/react-d3-tree/next/
Full Changelog: v3.7.0-rc.1...v4.0.0-next.0