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
@@ -6,7 +6,7 @@ import {
type XYPosition,
Position,
internalsSymbol
} from '@reactflow/core';
} from '@reactflow/system';
export function getNodeData(node?: Node): [Rect, NodeHandleBounds | null, boolean] {
const handleBounds = node?.[internalsSymbol]?.handleBounds || null;
@@ -1,7 +1,7 @@
<script lang="ts">
import { setContext, onMount } from 'svelte'
import cc from 'classcat';
import type { Node, Edge } from '@reactflow/core';
import type { Node, Edge } from '@reactflow/system';
import { key, createStore } from '$lib/store';
import Viewport from '$lib/container/Viewport.svelte';