refactor(packages): change package structure
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { derived } from 'svelte/store';
|
||||
import { getBezierPath, getSmoothStepPath, getStraightPath } from '@reactflow/edge-utils';
|
||||
import { ConnectionLineType, ConnectionMode, Position, internalsSymbol } from '@reactflow/system';
|
||||
import { getBezierPath, getSmoothStepPath, getStraightPath } from '@xyflow/system';
|
||||
import { ConnectionLineType, ConnectionMode, Position, internalsSymbol } from '@xyflow/system';
|
||||
|
||||
import type { SvelteFlowStoreState } from './types';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { derived } from 'svelte/store';
|
||||
import { Position } from '@reactflow/system';
|
||||
import { getHandle } from '@reactflow/edge-utils';
|
||||
import { Position } from '@xyflow/system';
|
||||
import { getHandle } from '@xyflow/system';
|
||||
|
||||
import { getEdgePositions, getNodeData } from '$lib/container/EdgeRenderer/utils';
|
||||
import type { EdgeLayouted } from '$lib/types';
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
type XYPosition,
|
||||
type CoordinateExtent,
|
||||
type UpdateConnection
|
||||
} from '@reactflow/system';
|
||||
} from '@xyflow/system';
|
||||
import {
|
||||
createMarkerIds,
|
||||
fitView as fitViewUtil,
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
getElementsToRemove,
|
||||
getHandleBounds,
|
||||
infiniteExtent
|
||||
} from '@reactflow/utils';
|
||||
} from '@xyflow/system';
|
||||
|
||||
import { addEdge as addEdgeUtil } from '$lib/utils';
|
||||
import type { EdgeTypes, NodeTypes, Node, Edge, ConnectionData, FitViewOptions } from '$lib/types';
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
type PanZoomInstance,
|
||||
type CoordinateExtent,
|
||||
type IsValidConnection
|
||||
} from '@reactflow/system';
|
||||
} from '@xyflow/system';
|
||||
|
||||
import DefaultNode from '$lib/components/nodes/DefaultNode.svelte';
|
||||
import InputNode from '$lib/components/nodes/InputNode.svelte';
|
||||
@@ -20,7 +20,7 @@ import StraightEdge from '$lib/components/edges/StraightEdge.svelte';
|
||||
import SmoothStepEdge from '$lib/components/edges/SmoothStepEdge.svelte';
|
||||
import StepEdge from '$lib/components/edges/StepEdge.svelte';
|
||||
import type { ConnectionData, NodeTypes, EdgeTypes, EdgeLayouted, Edge, Node } from '$lib/types';
|
||||
import { infiniteExtent } from '@reactflow/utils';
|
||||
import { infiniteExtent } from '@xyflow/system';
|
||||
|
||||
export const initConnectionData = {
|
||||
connectionStartHandle: null,
|
||||
|
||||
@@ -6,7 +6,7 @@ import type {
|
||||
UpdateNodePositions,
|
||||
CoordinateExtent,
|
||||
UpdateConnection
|
||||
} from '@reactflow/system';
|
||||
} from '@xyflow/system';
|
||||
|
||||
import type { initialStoreState } from './initial-store';
|
||||
import type { Node, Edge, NodeTypes, EdgeTypes, FitViewOptions } from '$lib/types';
|
||||
|
||||
Reference in New Issue
Block a user