refactor(packages): add @reactflow/system

This commit is contained in:
moklick
2023-02-16 16:37:47 +01:00
parent 216bf1bcd3
commit a12c893226
40 changed files with 1104 additions and 78 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
import { get, type Writable } from 'svelte/store';
import { drag as d3Drag, type D3DragEvent, type SubjectPosition } from 'd3-drag';
import { select } from 'd3-selection';
import type { XYPosition, CoordinateExtent, Node, Transform } from '@reactflow/core';
import type { XYPosition, CoordinateExtent, Node, Transform } from '@reactflow/system';
import { getDragItems, hasSelector, calcNextPosition } from './utils';
+1 -1
View File
@@ -5,7 +5,7 @@ import type {
NodeInternals,
NodeOrigin,
XYPosition
} from '@reactflow/core';
} from '@reactflow/system';
import { clampPosition, isNumeric } from '../../../utils';
+1 -1
View File
@@ -3,7 +3,7 @@ import type { Writable } from 'svelte/store';
import { select } from 'd3-selection';
import { zoom as d3Zoom, zoomIdentity } from 'd3-zoom';
import type { D3ZoomEvent } from 'd3-zoom';
import type { Transform } from '@reactflow/core';
import type { Transform } from '@reactflow/system';
const isWrappedWithClass = (event: any, className: string | undefined) =>
event.target.closest(`.${className}`);