Releases: danielcaldas/react-d3-graph
Releases · danielcaldas/react-d3-graph
Exposing node information on all callbacks, bug fixes, documentation improvements
Implemented enhancements:
- Arrow color go out of sync with link color when link.color or link.highlightColor is updated #360
- Error: react-d3-graph :: Graph :: you have not provided enough data for react-d3-graph to render something. You need to provide at least one node #347
- get x, y and other node informations with event onMouseOverNode() #306
- Arrows don't point to nodes as expected #265
- feature: expose node information to node related callbacks #385 (LonelyPrincess)
- Don't throw error when there are no nodes #381 (LonelyPrincess)
Fixed bugs:
- Some properties make the graph becomes unresetable #372
- Node does not move/update when given coordinates or new coordinates #295
Closed issues:
- Bendable links #373
- High res pdf #356
- Rendering graph with initial node positions doesn't properly place nodes without links #350
- Enhance control on links appearance - support dashed links #343
- Error when attempting to drag custom nodes #338
- fontSize parameter should be working for single node #330
- Adding the ability to completely freeze the graph #308
Merged pull requests:
- Chore/documentation improvements #413 (danielcaldas)
- Bump ini from 1.3.5 to 1.3.7 #411 (dependabot[bot])
- Adding missing onNodePositionChange property in Graph.jsx doc #405 (antoninklopp)
- Bump highlight.js from 9.18.1 to 9.18.5 #402 (dependabot[bot])
- Add Antonin to Core Team section #398 (danielcaldas)
- allow dashed links #397 (lironhl)
- Chore/clean up repo add core team section #392 (danielcaldas)
- New freezeAllDragEvents configuration property to prevent node drag-and-drop #388 (Antrikshy)
- fix label offset calculation when labelPosition is horizontal #379 (lironhl)
- Add the ability to make link cross multiple points across its route from source node to target node #378 (lironhl)
- Fixing graph reset #377 (antoninklopp)
- node.fontSize value now overrides config.node.fontSize value #376 (lironhl)
- Bugs with focusedNodeId #374 (TranquilMarmot)
- Update actions matrix to run against different react versions #371 (danielcaldas)
- Bug fix around node offset improvement for arrow positioning #271 #370 (danielcaldas)
- Bump http-proxy from 1.18.0 to 1.18.1 #369 (dependabot[bot])
- Chore/change indentation to tab with 2 spaces #363 (danielcaldas)
- Fix to change arrow color when link color or highlight color changes #361 (chetanladha)
- Fix package.json scripts to be cross-platform #358 (TranquilMarmot)
- Add onZoomChange prop to Graph #354 (TranquilMarmot)
- Use fx and fy when initializing nodes #353 (TranquilMarmot)
- Bump elliptic from 6.5.2 to 6.5.3 #352 (dependabot[bot])
Support w/h in node.size, control node's label positioning, better arrow overlap computation
Implemented enhancements:
- make node.size accept both height and width #336
Fixed bugs:
- Passing an empty data.links array throws a warning #323
- renderLabel params are not working for single node #322
- The release version does not contain some fixes #314
Closed issues:
- Docs missing collapsible sandbox example #337
- Multiple Edges between 2 nodes #335
- Ability to display node labels in different positions relative to the node center #299
Merged pull requests:
- Added ability to configure a node's width and height separately #342 (terahn)
- Bump websocket-extensions from 0.1.3 to 0.1.4 #331 (dependabot[bot])
- Misc improvements cleanup from previous PRs #327 (danielcaldas)
- Add GitHub Actions Workflow for library CI #326 (danielcaldas)
- Fix/misc documentation sandbox improvements #315 (danielcaldas)
- Feature/initial zoom #289 (Morta1)
- Reorganizing the computation of arrows and links for circle nodes #271 (antoninklopp)
Extended configuration API, bug fixes, documentation improvements
Special announcement:
- After DefinitelyTyped/DefinitelyTyped#42240 being merged thanks to @hrngoode
react-d3-graph
is not available on DefinitelyTyped in case you use TypeScript. 🎉 🎉 🎉
Implemented enhancements:
- Make link end marker's width and height configurable #238
- Avoid flashing graph when drag&drop node #237
- Make
node.renderLabel
available at node level #192
Sandbox & Documentation
- Anchored links per each configuration property starting on version 2.4.0
- Deleting node is sandbox breaks the demo if the number of nodes reaches 0 #287
Fixed bugs:
- Collapsible node with no links errors out on click #292
- Deleting node is sandbox breaks the demo if the number of nodes reaches 0 #287
- onNodePositionChange doesn't always trigger #264
- Custom node example is not loading on the sandbox #252
- Not passing data.links breaks the library while it should throw a custom error #211
Closed issues:
- automaticRearrangeAfterDropNode - play button from live demo #261
- Improve live example by replacing all window.alerts by toasts or other non blocking alerts #241
- Add tooltips to sandbox playground configs #239
- Make use of jest
.toMatchSnapshot
in library unit tests #236 - link.type only can make effect in global #234
- Node drag and drop methods #204
Merged pull requests:
- Chore: Misc bug bix travis node upgrade #305 (danielcaldas)
- Fix error on collapse for node with no links #293 (vsramanujan)
- Stop node removal when node count reaches 1 #288 (pushpinder107)
- Docs: Added missing event to <Graph /> #286 (mknepprath)
- Fix typos #279 (pushpinder107)
- Adding a parameter in config to be able to disable link force #278 (antoninklopp)
- node_label changes enabled local param for renderLabel #267 (gopherine)
- fix/remove delta validation for onNodePositionChange #266 (Kav91)
- Update docs for automaticRearrangeAfterDropNode prop #262 (danielcaldas)
- Bug/custom nodes sandbox additions #256 (danielcaldas)
- Pass the event of onClickGraph to the prop #254 (jameskfry)
- local link type added #247 (gopherine)
- Fix: data links error #246 (mecm1993)
- Making Marker height and width configurable #245 (SachinVarghese)
- Feature/better sandbox alerts #244 (danielcaldas)
- Fix: Update test with .toMatchSnapshot to test UI #243 (nguyenami)
- Prevent graph flashing when dragging and dropping nodes #242 (danielcaldas)
- Feature/sandbox generate tooltips from jsdoc #240 (danielcaldas)
Please move to 2.4.1
onNodePositionChange, update to babel7, other misc. improvements
Merged pull requests:
- Misc refactor improvements #231 (danielcaldas)
- onNodePositionChange #228 (danielcaldas) thanks to @jiriproX for the contribution here 👏
- Upgrade to babel7 #225 (danielcaldas)
staticGraphWithDragAndDrop, fix custom link props, bug fixing
Fixed bugs:
- Drag&Drop does not work for leaf nodes after collapsing and "uncollapsing" #223
- [Sandbox] Fail to remove links / nodes in the live demo example #212
- Error clicking nodes composed of
mdi-react
icons #201
Closed issues:
Merged pull requests:
- Fix uncollapsing nodes causes entire graph to be dragged #224 (danielcaldas)
- Fix/allow custom properties to pass on update for links #220 (danielcaldas)
- Feature/new config static graph with drag and drop #217 (danielcaldas)
- Fix/Fail to remove links / nodes in the live demo #216 (danielcaldas)
- Feature/allow pass function in link.label property #215 (danielcaldas)
- Run CI on node 10.14.0 (additionally) #214 (danielcaldas)
- Use setState to set highlightedLink #213 (danielcaldas)
Chore:
- Supporting spread operator for objects. Moving from Object.assign().
- Update cypress from
v2.1.0
tov.3.4.1
. - Use UNSAFE_componentWillReceiveProps instead of
componentWillReceiveProps
TBD: migrate to static getDerivedStateFromProps(props, state)
onDoubleClickNode and bug fix
Bug fix delete nodes and links from graph
Links get disappeared while dragging the nodes
2.0.1
Fixed bugs:
- Links get disappeared while dragging the nodes #180 Thanks (kbtganesh), (wendymungovan) and (prateekgoel) for reporting
Links colors and label, bug fixing, more granular properties
2.0.0
Fixed bugs:
- Link Colors not used when adding to graph #169
- Node id 0 not set properly #160
- Nodes added or deleted from a graph with nodes in fixed positions will cause issues #151
- Collapsible config option can cause orphaned nodes to not be displayed #129
Closed issues:
- Reverse the direction of arrows for "directed" property #153
- viewGenerator key being dropped in config merge #142
- Links labeling #47
Merged pull requests:
- Refactor/run lint on sandbox #179 (danielcaldas)
- Feature/labels on links #178 (danielcaldas)
- fix: Add link with custom color in existing graph #170 (LonelyPrincess)
- More granular resolution of node and link parameters #166 (sauln)
- Fix/0 number id edge case #161 (danielcaldas)
- Update webpack-dev-server and react-dom #159 (danielcaldas)
- Refactor/split graph helper logic #158 (danielcaldas)
- Refactor/tooling upgrade #157 (danielcaldas)
- Feature/linting prettier improvements #156 (danielcaldas)
- Simplified test folder file structure merging "component" and "snapshot" #155 (danielcaldas)
- Fix/collapsible orphan nodes and last node #154 (danielcaldas)