chore(build): update
This commit is contained in:
Vendored
+4
-2
@@ -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));
|
||||
}
|
||||
}]);
|
||||
|
||||
@@ -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
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user