@ndbx/runtime
Version:
The `@ndbx/runtime` package provides a runtime environment to embed NodeBox visualizations directly into React applications. NodeBox is a powerful tool for creating interactive and generative visualizations, and this runtime allows you to integrate those
19 lines (18 loc) • 1.85 kB
TypeScript
import { Project, Item, Network, Node, Port, PortValue, Parameter, Connection, NetworkItem, ParameterValue, LiteralValue, NodeToOutletConnection } from "./types";
import Context from "./context";
export declare function findItemById(project: Project, id: string): Item | undefined;
export declare function findItemByName(project: Project, name: string): Item | undefined;
export declare function findNetworkItemById(network: Network, id: string): NetworkItem | undefined;
export declare function findNodeById(network: Network, id: string): Node | undefined;
export declare function findNodeByName(network: Network, name: string): Node | undefined;
export declare function findInputPort(cx: Context, node: Node, portName: string): Port | undefined;
export declare function findOutputPort(cx: Context, node: Node, portName: string): Port | undefined;
export declare function findParameter(cx: Context, node: Node, parameterName: string): Parameter | undefined;
export declare function findInputConnection(network: Network, inNode: Node, inPort: string): Connection | undefined;
export declare function findOutputConnectionsForNode(network: Network, outNode: Node): Connection[];
export declare function findOutputConnections(network: Network, outNode: Node, outPort: string): Connection[];
export declare function findOutletConnection(network: Network, outlet: string): NodeToOutletConnection | undefined;
export declare function findRenderedNodeOutputs(cx: Context, network: Network): Map<string, PortValue>;
export declare function getParameterValue(cx: Context, node: Node, parameterName: string): ParameterValue | undefined;
export declare function getValue(cx: Context, node: Node, parameterName: string): LiteralValue | undefined;
export declare function getNetworkOutput(cx: Context, network: Network, portName: string): PortValue | undefined;