react-d3-tree

React component to create interactive D3 tree graphs

MIT License

Downloads
296.7K
Stars
1K
Committers
30
react-d3-tree - v3.6.2 Latest Release

Published by bkrem 10 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/bkrem/react-d3-tree/compare/v3.6.1...v3.6.2

react-d3-tree - v3.6.1

Published by bkrem over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/bkrem/react-d3-tree/compare/v3.6.0...v3.6.1

react-d3-tree - v3.6.0

Published by bkrem over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/bkrem/react-d3-tree/compare/v3.5.2...v3.6.0

react-d3-tree - v3.5.2

Published by bkrem over 1 year ago

What's Changed

  • Fix: center on node feature works with collapsible disabled by @jawwad-btrt in https://github.com/bkrem/react-d3-tree/pull/457
  • fix(types): expose types properly at top level (#454)
  • fix(draggable): avoids dragging triggered via dblclick event (supersedes #455, thank you @Liu233w)

New Contributors

Full Changelog: https://github.com/bkrem/react-d3-tree/compare/v3.5.1...v3.5.2

react-d3-tree - v3.5.1

Published by bkrem over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/bkrem/react-d3-tree/compare/v3.5.0...v3.5.1

react-d3-tree - v3.5.0

Published by bkrem almost 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/bkrem/react-d3-tree/compare/v3.4.2...v3.5.0

react-d3-tree - v3.4.2

Published by bkrem almost 2 years ago

What's Changed

  • feat(build): adds ESM outputs, separate types into lib/types dir by @bkrem in https://github.com/bkrem/react-d3-tree/pull/425
    • This was originally shipped as 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

react-d3-tree - v3.3.6

Published by bkrem almost 2 years ago

What's Changed

Full Changelog: https://github.com/bkrem/react-d3-tree/compare/v3.3.5...v3.3.6

react-d3-tree - v3.3.5

Published by bkrem about 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/bkrem/react-d3-tree/compare/v3.3.4...v3.3.5

react-d3-tree - v3.3.4

Published by bkrem over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/bkrem/react-d3-tree/compare/v3.3.2...v3.3.4

react-d3-tree -

Published by bkrem over 2 years ago

  • Add centeringTransitionDuration prop to allow user to control time of transition. (#385, thank you @kalebm1) f7355dd

https://github.com/bkrem/react-d3-tree/compare/v3.3.1...v3.3.2

react-d3-tree -

Published by bkrem over 2 years ago

  • fix: add centerNode to demo, fix 'horizontal' orientation bug for dimensions/centerNode behaviour (#384, thank you @kalebm1) c451295

https://github.com/bkrem/react-d3-tree/compare/v3.3.0...v3.3.1

react-d3-tree -

Published by bkrem over 2 years ago

  • feat: implementing center node on click functionality (#381, thank you @kalebm1) c29ad80
  • fix: adds stroke: none for label title and attribs 667d514
  • chore(css): improvement of the readability (#377, thank you @YoranSys) e71a1c6

https://github.com/bkrem/react-d3-tree/compare/v3.2.1...v3.3.0

react-d3-tree -

Published by bkrem almost 3 years ago

Summary

  • Event handlers (onNodeClick, onNodeMouseOver, onNodeMouseOut) defined on Tree are now passed to the renderCustomNodeElement function as props by default (thank you @lucasdellabella)

Changeset

  • chore(ts): updates typings for CustomNodeElementProps a28e72c
  • Add handlers to custom node element (#372) d538b08

https://github.com/bkrem/react-d3-tree/compare/v3.2.0...v3.2.1

react-d3-tree -

Published by bkrem almost 3 years ago

  • docs: tweaks prop documentation for hasInteractiveNodes 38b2c4a
  • refactor(demo): simplifes MixedNodeInputElement example be623ac
  • fix(demo): fixes order of custom node element options 75c4b73
  • Add 'hasInteractiveNodes' prop to Tree that enables/disables d3 drag and pan handlers on foreignObject nodes (#370, thank you @chingmunn) cfec09a

https://github.com/bkrem/react-d3-tree/compare/v3.1.1...v3.2.0

react-d3-tree -

Published by bkrem over 3 years ago

  • fix(types): moves @types/d3-hierarchy to prod deps (#357)
react-d3-tree -

Published by bkrem over 3 years ago

  • feat: provide HierarchyPointNode for renderCustomNodeElement (#355, h/t @Joroze)
react-d3-tree -

Published by bkrem over 3 years ago

  • refactor: aligns onNode handler parameter signatures with onLink handlers (#349)
    • BREAKING CHANGE: All top-level onNode handlers now pass node: HierarchyPointNode<TreeNodeDatum> as their first parameter instead of previous node: TreeNodeDatum.
    • This change affects the following event handlers: onNodeClick, onNodeMouseOver, onNodeMouseOut.
    • If you're currently using v2.x, you can preserve your existing handler behaviour in v3.x by simply accessing the data property on the passed node:
      • v2: onNodeClick={ (node, event) => { console.log(node) } }
      • v3: onNodeClick={ (node, event) => { console.log(node.data) } }
    • The change aligns Node handlers with those of Link, which already return HierarchyPointNode<TreeNodeDatum> for their sourceNode and targetNode parameters.
    • See the updated type definition for TreeNodeEventCallback for more details.
react-d3-tree -

Published by bkrem over 3 years ago

  • fix(zoomable): allows for dragging without scaling if props.zoomable is set to false.
  • fix(ts): widens type for 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>.
    • This change widens the used Record type to additionally accept number and boolean primitives as possible values.
    • See the RawNodeDatum docs for more details.
react-d3-tree -

Published by bkrem over 3 years ago

  • Fixes npm install failing on npm@7 without additional flags due to a peer dependency mismatch (#347)