@selenite/graph-editor
Version:
A graph editor for visual programming, based on rete and svelte.
13 lines (12 loc) • 805 B
TypeScript
import type { NodeEditorSaveData } from './editor';
import type { StoredGraph } from './storage/types';
import type { Variable } from './variables';
export declare function isNodeEditorSaveData(a: unknown): a is NodeEditorSaveData;
export declare const dragGraphType = "selenite/graph";
export declare const dragVariableType = "selenite/graph-variable";
export declare function onGraphDragStart(g: StoredGraph): (e: DragEvent) => void;
export declare function isDraggedGraph(e: DragEvent): boolean;
export declare function getDraggedGraph(e: DragEvent): StoredGraph | undefined;
export declare function variableDragStart(v: Variable): (e: DragEvent) => void;
export declare function isDraggedVariable(e: DragEvent): boolean;
export declare function getDraggedVariableId(e: DragEvent): string | undefined;