UNPKG

rete-angular-jellytech-plugin

Version:

Angular Jellytech ==== Plugin for displaying SCADA and overview elements

19 lines (18 loc) 740 B
import { BaseSchemes } from "rete"; import { AngularPlugin } from "../core"; export type RenderPreset<Schemes extends BaseSchemes, T> = { attach?: (plugin: AngularPlugin<Schemes, T>) => void; update: (context: Extract<T, { type: "render"; }>, plugin: AngularPlugin<Schemes, T>) => Record<string, unknown> | undefined | null | void; updateNode?: (context: Extract<T, { type: "render"; }>, plugin: AngularPlugin<Schemes, T>) => Record<string, unknown> | undefined | null | void; mount: (context: Extract<T, { type: "render"; }>, plugin: AngularPlugin<Schemes, T>) => { key: string; component: any; props: Record<string, unknown>; } | undefined | null | void; };