UNPKG

@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

18 lines (17 loc) 630 B
import { Project, Item, PortValue } from "./types"; import RuntimeNode from "./runtime-node"; export default class Context { project: Project; assetMap: Map<string, any>; dependencies: Map<string, Project>; warnings: string[]; runtimeNodes: Map<string, RuntimeNode>; initializers: Map<string, any>; portValues: Map<string, PortValue>; clientId: string; instanceId: number; constructor(project: Project, assetMap: Map<string, any>, dependencies: Map<string, Project>); generateId(): string; lookupItemByName(fqId: string): Item | undefined; lookupItemById(fqId: string): Item; }