refactor(core): use getHandleBounds from utils package

This commit is contained in:
moklick
2023-03-14 13:19:59 +01:00
parent 97e2863c49
commit e7826faede
+1 -2
View File
@@ -1,6 +1,6 @@
import { createStore } from 'zustand';
import { zoomIdentity } from 'd3-zoom';
import { clampPosition, getDimensions, fitView } from '@reactflow/utils';
import { clampPosition, getDimensions, fitView, getHandleBounds } from '@reactflow/utils';
import {
internalsSymbol,
type NodeDimensionUpdate,
@@ -10,7 +10,6 @@ import {
} from '@reactflow/system';
import { applyNodeChanges, createSelectionChange, getSelectionChanges } from '../utils/changes';
import { getHandleBounds } from '../components/Nodes/utils';
import { createNodeInternals, updateAbsoluteNodePositions, updateNodesAndEdgesSelections } from './utils';
import initialState from './initialState';
import type {