@selenite/graph-editor
Version:
A graph editor for visual programming, based on rete and svelte.
21 lines (20 loc) • 889 B
TypeScript
import type { NodeFactory } from '../editor';
import type { Scope } from 'rete';
import type { BaseArea } from 'rete-area-plugin';
export { CommentExtensions } from 'rete-comment-plugin';
import { CommentPlugin as BaseCommentPlugin, type ExpectedSchemes, type Props, Comment } from 'rete-comment-plugin';
export declare class CommentPlugin<Schemes extends ExpectedSchemes, K = BaseArea<Schemes>> extends BaseCommentPlugin<Schemes, K> {
lastPointerEvent?: PointerEvent;
protected readonly factory: NodeFactory;
constructor(props: {
factory: NodeFactory;
} & Props);
setParent(scope: Scope<K | BaseArea<Schemes>, []>): void;
private makeComment;
addFrame(text?: string, links?: string[] | undefined, params?: {
id?: string;
editPrompt?: boolean;
}): void;
openEditPrompt(comment: Comment): void;
add(comment: Comment): void;
}