UNPKG

@selenite/graph-editor

Version:

A graph editor for visual programming, based on rete and svelte.

15 lines (14 loc) 603 B
import type { Position } from '../../../../../common'; import type { Schemes } from '../../../../../schemes'; import { type Component } from 'svelte'; declare const ConnectionWrapper: Component<{ component: Component; data: Schemes["Connection"] & { isLoop?: boolean; }; start: Position | ((cb: (value: Position) => void) => () => void); end: Position | ((cb: (value: Position) => void) => () => void); path: (start: Position, end: Position) => Promise<string>; }, {}, "">; type ConnectionWrapper = ReturnType<typeof ConnectionWrapper>; export default ConnectionWrapper;