feat(renderer): pass nodeTypes

This commit is contained in:
moklick
2019-07-16 12:33:05 +02:00
parent e40ae6d841
commit f330b0c4ee
6 changed files with 36 additions and 8 deletions
+2 -1
View File
@@ -9,7 +9,7 @@ import './style.css';
class ReactGraph extends PureComponent {
render() {
const {
style, onNodeClick, children, onLoad, onMove, onChange, elements
style, onNodeClick, children, onLoad, onMove, onChange, elements, nodeTypes
} = this.props;
const { nodes, edges } = separateElements(elements);
@@ -21,6 +21,7 @@ class ReactGraph extends PureComponent {
onLoad={onLoad}
onMove={onMove}
onChange={onChange}
nodeTypes={nodeTypes}
/>
{children}
</Provider>