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,12 +1,12 @@
import { CSSProperties, useCallback } from 'react';
import { shallow } from 'zustand/shallow';
import cc from 'classcat';
import { internalsSymbol } from '@reactflow/system';
import { useStore } from '../../hooks/useStore';
import { getBezierPath } from '../Edges/BezierEdge';
import { getSmoothStepPath } from '../Edges/SmoothStepEdge';
import { getSimpleBezierPath } from '../Edges/SimpleBezierEdge';
import { internalsSymbol } from '../../utils';
import type {
ConnectionLineComponent,
ConnectionStatus,
+2 -1
View File
@@ -1,7 +1,8 @@
import { MouseEvent as ReactMouseEvent, TouchEvent as ReactTouchEvent } from 'react';
import { internalsSymbol } from '@reactflow/system';
import { ConnectionMode, ConnectionStatus } from '../../types';
import { getEventPosition, internalsSymbol } from '../../utils';
import { getEventPosition } from '../../utils';
import type { Connection, HandleType, XYPosition, Node, NodeHandleBounds } from '../../types';
export type ConnectionHandle = {