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
+4 -2
View File
@@ -34407,7 +34407,7 @@
}, React__default.createElement(NodeRenderer, null), React__default.createElement(EdgeRenderer, {
width: graphContext.width,
height: graphContext.height
}), React__default.createElement(ZoomNode, {
}), React__default.createElement("div", {
className: "react-graph__zoomnode",
ref: zoomNode
}));
@@ -34467,6 +34467,7 @@
children = _this$props.children,
onLoad = _this$props.onLoad,
onMove = _this$props.onMove,
onChange = _this$props.onChange,
elements = _this$props.elements;
return React__default.createElement("div", {
style: style,
@@ -34475,7 +34476,8 @@
onNodeClick: onNodeClick
}), React__default.createElement(GraphView$1, {
onLoad: onLoad,
onMove: onMove
onMove: onMove,
onChange: onChange
}), children));
}
}]);
+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>