feat(rfInstance): add getElements function #274

This commit is contained in:
moklick
2020-06-02 16:06:08 +02:00
parent 02bcd1be11
commit 3f3a79b5f6
5 changed files with 26 additions and 2 deletions
+2 -1
View File
@@ -11,7 +11,7 @@ import useD3Zoom from '../../hooks/useD3Zoom';
import useGlobalKeyHandler from '../../hooks/useGlobalKeyHandler';
import useElementUpdater from '../../hooks/useElementUpdater';
import { getDimensions } from '../../utils';
import { fitView, zoomIn, zoomOut, project } from '../../utils/graph';
import { fitView, zoomIn, zoomOut, project, getElements } from '../../utils/graph';
import {
Elements,
NodeTypesType,
@@ -133,6 +133,7 @@ const GraphView = memo(
zoomIn,
zoomOut,
project,
getElements,
});
}
}, [d3Initialised, onLoad]);