chore(svelte): cleanup

This commit is contained in:
moklick
2023-06-05 16:10:48 +02:00
parent 8354759f57
commit 1b4f4a034e
14 changed files with 44 additions and 44 deletions
@@ -1,6 +1,13 @@
import { derived } from 'svelte/store';
import { getBezierPath, getSmoothStepPath, getStraightPath } from '@xyflow/system';
import { ConnectionLineType, ConnectionMode, Position, internalsSymbol } from '@xyflow/system';
import {
getBezierPath,
getSmoothStepPath,
getStraightPath,
ConnectionLineType,
ConnectionMode,
Position,
internalsSymbol
} from '@xyflow/system';
import type { SvelteFlowStoreState } from './types';
@@ -1,6 +1,5 @@
import { derived } from 'svelte/store';
import { Position } from '@xyflow/system';
import { getHandle } from '@xyflow/system';
import { Position, getHandle } from '@xyflow/system';
import { getEdgePositions, getNodeData } from '$lib/container/EdgeRenderer/utils';
import type { EdgeLayouted } from '$lib/types';
+8 -10
View File
@@ -1,26 +1,24 @@
import { getContext } from 'svelte';
import { derived, get } from 'svelte/store';
import {
internalsSymbol,
createMarkerIds,
fitView as fitViewUtil,
getDimensions,
getElementsToRemove,
getHandleBounds,
infiniteExtent,
type UpdateNodePositions,
type NodeDimensionUpdate,
internalsSymbol,
type ViewportHelperFunctionOptions,
type Connection,
type XYPosition,
type CoordinateExtent,
type UpdateConnection
} from '@xyflow/system';
import {
createMarkerIds,
fitView as fitViewUtil,
getDimensions,
getElementsToRemove,
getHandleBounds,
infiniteExtent
} from '@xyflow/system';
import { addEdge as addEdgeUtil } from '$lib/utils';
import type { EdgeTypes, NodeTypes, Node, Edge, ConnectionData, FitViewOptions } from '$lib/types';
import type { EdgeTypes, NodeTypes, Node, Edge, FitViewOptions } from '$lib/types';
import { getEdgesLayouted } from './edges-layouted';
import { getConnectionPath } from './connection-path';
import {
@@ -1,5 +1,6 @@
import { readable, writable } from 'svelte/store';
import {
infiniteExtent,
SelectionMode,
ConnectionMode,
ConnectionLineType,
@@ -20,7 +21,6 @@ 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 '@xyflow/system';
export const initConnectionData = {
connectionStartHandle: null,
+1 -1
View File
@@ -1,3 +1,4 @@
import type { Writable } from 'svelte/store';
import type {
NodeDimensionUpdate,
XYPosition,
@@ -10,7 +11,6 @@ import type {
import type { initialStoreState } from './initial-store';
import type { Node, Edge, NodeTypes, EdgeTypes, FitViewOptions } from '$lib/types';
import type { Writable } from 'svelte/store';
export type SvelteFlowStoreActions = {
setNodeTypes: (nodeTypes: NodeTypes) => void;