UNPKG

@selenite/graph-editor

Version:

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

20 lines (19 loc) 775 B
import { NodeEditor, type NodeEditorSaveData, NodeFactory } from '../editor'; import type { EditorExample } from '../old-examples'; import type { MakutuClassRepository } from '../../backend-interaction/types'; import type { GeosDataContext } from '../../geos'; import type { NewGeosContext, getModalStore } from '../../global/todo.svelte'; export declare function setupEditor(params: { container: HTMLElement; makutuClasses: MakutuClassRepository; loadExample?: EditorExample; saveData?: NodeEditorSaveData; geosContext: GeosDataContext; geosContextV2: NewGeosContext; modalStore: ReturnType<typeof getModalStore>; }): Promise<{ destroy: () => void; firstDisplay: () => Promise<void>; editor: NodeEditor; factory: NodeFactory; }>;