fix(test): selection

This commit is contained in:
moklick
2019-10-03 23:23:10 +02:00
parent 68ec18570f
commit b95883a358
5 changed files with 28 additions and 23 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ import { fitView, zoomIn, zoomOut } from '../graph-utils';
const GraphView = memo(({
nodeTypes, edgeTypes, onMove, onLoad,
onElementClick, onNodeDragStop, connectionLineType, connectionLineStyle,
selectionKey
selectionKeyCode
}) => {
const zoomPane = useRef();
const rendererNode = useRef();
@@ -28,7 +28,7 @@ const GraphView = memo(({
const updateSize = useStoreActions(actions => actions.updateSize);
const setNodesSelection = useStoreActions(actions => actions.setNodesSelection);
const selectionKeyPressed = useKeyPress(selectionKey);
const selectionKeyPressed = useKeyPress(selectionKeyCode);
const updateDimensions = () => {
const size = getDimensions(rendererNode.current);
updateSize(size);