diff --git a/src/components/graph/Graph.jsx b/src/components/graph/Graph.jsx index 536699b0c..dcf51a31b 100644 --- a/src/components/graph/Graph.jsx +++ b/src/components/graph/Graph.jsx @@ -235,7 +235,7 @@ export default class Graph extends React.Component { draggedNode.oldX = draggedNode.x; draggedNode.oldY = draggedNode.y; - + draggedNode.x += d3Event.dx; draggedNode.y += d3Event.dy; @@ -244,6 +244,7 @@ export default class Graph extends React.Component { draggedNode["fy"] = draggedNode.y; this._tick({ draggedNode }); + this.props.onDragMoveCallBack(ev, index, nodeList, d3Event.dx, d3Event.dy) } }; @@ -664,6 +665,8 @@ export default class Graph extends React.Component { const svgStyle = { height: this.state.config.height, width: this.state.config.width, + 'background-color': this.state.config.backgroundColor, + 'border-style': this.state.config.border, }; const containerProps = this._generateFocusAnimationProps();