UNPKG

react-hierarchy-tree-graph

Version:

React component to create interactive D3 tree hierarchies

103 lines (51 loc) 1 kB
`Node` (component) ================== Props ----- ### `allowForeignObjects` (required) type: `bool` ### `attributes` type: `object` defaultValue: `undefined` ### `circleRadius` type: `number` defaultValue: `undefined` ### `name` (required) type: `string` ### `nodeData` (required) type: `object` ### `nodeLabelComponent` type: `object` defaultValue: `null` ### `nodeSize` (required) type: `object` ### `nodeSvgShape` (required) type: `object` ### `onClick` (required) type: `func` ### `onMouseOut` (required) type: `func` ### `onMouseOver` (required) type: `func` ### `orientation` (required) type: `enum('horizontal'|'vertical')` ### `styles` type: `object` defaultValue: `{ node: { circle: {}, name: {}, attributes: {}, }, leafNode: { circle: {}, name: {}, attributes: {}, }, }` ### `subscriptions` (required) type: `object` ### `textLayout` (required) type: `object` ### `transitionDuration` (required) type: `number`