refactor(utils): use utils from system package
This commit is contained in:
@@ -30,10 +30,14 @@
|
||||
|
||||
<script lang="ts">
|
||||
import { createEventDispatcher } from 'svelte';
|
||||
import { SelectionMode, getEventPosition, getNodesInside } from '@xyflow/system';
|
||||
import {
|
||||
SelectionMode,
|
||||
getEventPosition,
|
||||
getNodesInside,
|
||||
getConnectedEdges
|
||||
} from '@xyflow/system';
|
||||
|
||||
import { useStore } from '$lib/store';
|
||||
import { getConnectedEdges } from '$lib/utils';
|
||||
import type { Node, Edge } from '$lib/types';
|
||||
import type { PaneProps } from './types';
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ import {
|
||||
getElementsToRemove,
|
||||
panBy as panBySystem,
|
||||
updateNodeDimensions as updateNodeDimensionsSystem,
|
||||
addEdge as addEdgeUtil,
|
||||
type UpdateNodePositions,
|
||||
type NodeDimensionUpdate,
|
||||
type ViewportHelperFunctionOptions,
|
||||
@@ -19,7 +20,6 @@ import {
|
||||
errorMessages
|
||||
} from '@xyflow/system';
|
||||
|
||||
import { addEdge as addEdgeUtil } from '$lib/utils';
|
||||
import type { EdgeTypes, NodeTypes, Node, Edge, FitViewOptions, ConnectionData } from '$lib/types';
|
||||
import { initialEdgeTypes, initialNodeTypes, getInitialStore } from './initial-store';
|
||||
import type { SvelteFlowStore } from './types';
|
||||
|
||||
Reference in New Issue
Block a user