@logicflow/vue-node-registry
Version:
LogicFlow Vue Component Node Registry
24 lines (23 loc) • 931 B
TypeScript
import LogicFlow, { GraphModel } from '@logicflow/core';
import RegisterConfig = LogicFlow.RegisterConfig;
export type VueNodeConfig = {
type: string;
component: any;
effect?: (keyof LogicFlow.PropertiesType)[];
} & Partial<RegisterConfig>;
type VueNodeEntry = {
component: any;
effect?: (keyof LogicFlow.PropertiesType)[];
};
/**
* @deprecated Use {@link getVueNodeConfig} instead for multi-instance support.
* This global map is still populated for backward compatibility but does NOT
* isolate registrations across different LogicFlow instances.
*/
export declare const vueNodesMap: Record<string, VueNodeEntry>;
/**
* Retrieve the Vue node configuration scoped to a specific LogicFlow instance.
*/
export declare function getVueNodeConfig(type: string, graphModel?: GraphModel | null): VueNodeEntry | undefined;
export declare function register(config: VueNodeConfig, lf: LogicFlow): void;
export {};