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, { }, React__default.createElement(NodeRenderer, null), React__default.createElement(EdgeRenderer, {
width: graphContext.width, width: graphContext.width,
height: graphContext.height height: graphContext.height
}), React__default.createElement(ZoomNode, { }), React__default.createElement("div", {
className: "react-graph__zoomnode", className: "react-graph__zoomnode",
ref: zoomNode ref: zoomNode
})); }));
@@ -34467,6 +34467,7 @@
children = _this$props.children, children = _this$props.children,
onLoad = _this$props.onLoad, onLoad = _this$props.onLoad,
onMove = _this$props.onMove, onMove = _this$props.onMove,
onChange = _this$props.onChange,
elements = _this$props.elements; elements = _this$props.elements;
return React__default.createElement("div", { return React__default.createElement("div", {
style: style, style: style,
@@ -34475,7 +34476,8 @@
onNodeClick: onNodeClick onNodeClick: onNodeClick
}), React__default.createElement(GraphView$1, { }), React__default.createElement(GraphView$1, {
onLoad: onLoad, onLoad: onLoad,
onMove: onMove onMove: onMove,
onChange: onChange
}), children)); }), children));
} }
}]); }]);
+1 -1
View File
@@ -55,7 +55,7 @@ const GraphView = (props) => {
<div className="react-graph__renderer"> <div className="react-graph__renderer">
<NodeRenderer /> <NodeRenderer />
<EdgeRenderer width={graphContext.width} height={graphContext.height} /> <EdgeRenderer width={graphContext.width} height={graphContext.height} />
<ZoomNode className="react-graph__zoomnode" ref={zoomNode} /> <div className="react-graph__zoomnode" ref={zoomNode} />
</div> </div>
); );
}; };
+6 -2
View File
@@ -9,13 +9,17 @@ import './style.css';
class ReactGraph extends PureComponent { class ReactGraph extends PureComponent {
render() { render() {
const { const {
style, onNodeClick, children, onLoad, onMove, elements style, onNodeClick, children, onLoad, onMove, onChange, elements
} = this.props; } = this.props;
return ( return (
<div style={style} className="react-graph"> <div style={style} className="react-graph">
<Provider {...separateElements(elements)} onNodeClick={onNodeClick}> <Provider {...separateElements(elements)} onNodeClick={onNodeClick}>
<GraphView onLoad={onLoad} onMove={onMove} /> <GraphView
onLoad={onLoad}
onMove={onMove}
onChange={onChange}
/>
{children} {children}
</Provider> </Provider>
</div> </div>