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)