refactor(bundle): create separate plugins bundle closes #15

This commit is contained in:
moklick
2019-10-08 20:53:00 +02:00
parent 956f4fb978
commit 161ab7fdfd
10 changed files with 245 additions and 40 deletions
-1
View File
@@ -3,7 +3,6 @@ import ReactFlow from './container/ReactFlow';
export default ReactFlow;
export { default as Handle } from './components/Handle';
export { MiniMap, Controls } from './plugins';
export {
isNode,
-11
View File
@@ -182,14 +182,3 @@ export const zoomOut = () => {
const state = store.getState();
state.d3Zoom.scaleTo(state.d3Selection, state.transform[2] - 0.2);
};
export default {
isEdge,
getBoundingBox,
graphPosToZoomedPos,
getConnectedEdges,
parseElement,
fitView,
zoomIn,
zoomOut
};