@selenite/graph-editor
Version:
A graph editor for visual programming, based on rete and svelte.
20 lines (19 loc) • 625 B
TypeScript
import { BaseComponent } from '../components';
import type { NodeFactory } from './NodeFactory.svelte';
import { type XmlSchema } from '@selenite/commons';
export declare class CodeIntegration extends BaseComponent<NodeFactory> {
/**
* Pulls the selected nodes from the graph editor to the code editor
*/
toCode({ text, schema }: {
text?: string;
schema: XmlSchema;
}): Promise<string>;
/**
* Pushes the selected text from the code editor to the graph editor
*/
toGraph({ text: xml, schema }: {
schema: XmlSchema;
text: string;
}): Promise<void>;
}