chore(build): update
This commit is contained in:
@@ -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