chore(build): update

This commit is contained in:
moklick
2019-07-15 18:26:54 +02:00
parent a6113d3a11
commit f903f91941
3 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ const GraphView = (props) => {
<div className="react-graph__renderer">
<NodeRenderer />
<EdgeRenderer width={graphContext.width} height={graphContext.height} />
<ZoomNode className="react-graph__zoomnode" ref={zoomNode} />
<div className="react-graph__zoomnode" ref={zoomNode} />
</div>
);
};
+6 -2
View File
@@ -9,13 +9,17 @@ import './style.css';
class ReactGraph extends PureComponent {
render() {
const {
style, onNodeClick, children, onLoad, onMove, elements
style, onNodeClick, children, onLoad, onMove, onChange, elements
} = this.props;
return (
<div style={style} className="react-graph">
<Provider {...separateElements(elements)} onNodeClick={onNodeClick}>
<GraphView onLoad={onLoad} onMove={onMove} />
<GraphView
onLoad={onLoad}
onMove={onMove}
onChange={onChange}
/>
{children}
</Provider>
</div>