@selenite/graph-editor
Version:
A graph editor for visual programming, based on rete and svelte.
17 lines (16 loc) • 629 B
TypeScript
import type { Position } from '../../../../../common';
import type { Schemes } from '../../../../../schemes';
import { type Component } from 'svelte';
type PositionWatcher = (cb: (value: Position) => void) => () => void;
type Props = {
component: Component;
data: Schemes['Connection'] & {
isLoop?: boolean;
};
start: Position | PositionWatcher;
end: Position | PositionWatcher;
path: (start: Position, end: Position) => Promise<string>;
};
declare const ConnectionWrapper: Component<Props, {}, "">;
type ConnectionWrapper = ReturnType<typeof ConnectionWrapper>;
export default ConnectionWrapper;