refactor(utils): put in folder
This commit is contained in:
@@ -2,7 +2,7 @@ import React, { memo } from 'react';
|
||||
import { useStoreState } from 'easy-peasy';
|
||||
|
||||
import ConnectionLine from '../../components/ConnectionLine';
|
||||
import { isEdge } from '../../graph-utils';
|
||||
import { isEdge } from '../../utils/graph';
|
||||
|
||||
function getHandlePosition(position, node, handle = null) {
|
||||
if (!handle) {
|
||||
|
||||
@@ -10,7 +10,7 @@ import useD3Zoom from '../../hooks/useD3Zoom';
|
||||
import useGlobalKeyHandler from '../../hooks/useGlobalKeyHandler';
|
||||
import useElementUpdater from '../../hooks/useElementUpdater'
|
||||
import { getDimensions } from '../../utils';
|
||||
import { fitView, zoomIn, zoomOut } from '../../graph-utils';
|
||||
import { fitView, zoomIn, zoomOut } from '../../utils/graph';
|
||||
|
||||
const GraphView = memo(({
|
||||
nodeTypes, edgeTypes, onMove, onLoad,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React, { memo } from 'react';
|
||||
import { useStoreState } from 'easy-peasy';
|
||||
|
||||
import { isNode } from '../../graph-utils';
|
||||
import { isNode } from '../../utils/graph';
|
||||
|
||||
function renderNode(d, props, state) {
|
||||
const nodeType = d.type || 'default';
|
||||
|
||||
Reference in New Issue
Block a user