UNPKG

polygonjs-engine

Version:

node-based webgl 3D engine https://polygonjs.com

75 lines (74 loc) 3.02 kB
import { NodeContext } from '../../poly/NodeContext'; import { TypedContainer } from '../_Base'; import { AnimationContainer } from '../Animation'; import { EventContainer } from '../Event'; import { GeometryContainer } from '../Geometry'; import { GlContainer } from '../Gl'; import { JsContainer } from '../Js'; import { ManagerContainer } from '../Manager'; import { MaterialContainer } from '../Material'; import { ObjectContainer } from '../Object'; import { TextureContainer } from '../Texture'; import { PostProcessContainer } from '../PostProcess'; import { RopContainer } from '../Rop'; import { TypedNode } from '../../nodes/_Base'; import { BaseAnimNodeType } from '../../nodes/anim/_Base'; import { BaseEventNodeType } from '../../nodes/event/_Base'; import { BaseSopNodeType } from '../../nodes/sop/_Base'; import { BaseGlNodeType } from '../../nodes/gl/_Base'; import { BaseJsNodeType } from '../../nodes/js/_Base'; import { BaseManagerNodeType } from '../../nodes/manager/_Base'; import { BaseMatNodeType } from '../../nodes/mat/_Base'; import { BaseObjNodeType } from '../../nodes/obj/_Base'; import { BaseCopNodeType } from '../../nodes/cop/_Base'; import { BasePostProcessNodeType } from '../../nodes/post/_Base'; import { BaseRopNodeType } from '../../nodes/rop/_Base'; export declare type ContainerClassMapGeneric = { [key in NodeContext]: TypedContainer<key>; }; export declare const ContainerClassMap: { anim: typeof AnimationContainer; cop: typeof TextureContainer; event: typeof EventContainer; gl: typeof GlContainer; js: typeof JsContainer; manager: typeof ManagerContainer; mat: typeof MaterialContainer; obj: typeof ObjectContainer; post: typeof PostProcessContainer; rop: typeof RopContainer; sop: typeof GeometryContainer; }; declare type ContainerMapGeneric = { [key in NodeContext]: TypedContainer<key>; }; export interface ContainerMap extends ContainerMapGeneric { [NodeContext.ANIM]: AnimationContainer; [NodeContext.COP]: TextureContainer; [NodeContext.EVENT]: EventContainer; [NodeContext.GL]: GlContainer; [NodeContext.JS]: JsContainer; [NodeContext.MANAGER]: ManagerContainer; [NodeContext.MAT]: MaterialContainer; [NodeContext.OBJ]: ObjectContainer; [NodeContext.POST]: PostProcessContainer; [NodeContext.ROP]: RopContainer; [NodeContext.SOP]: GeometryContainer; } export declare type NodeTypeMapGeneric = { [key in NodeContext]: TypedNode<key, any>; }; export interface NodeTypeMap extends NodeTypeMapGeneric { [NodeContext.ANIM]: BaseAnimNodeType; [NodeContext.COP]: BaseCopNodeType; [NodeContext.EVENT]: BaseEventNodeType; [NodeContext.GL]: BaseGlNodeType; [NodeContext.JS]: BaseJsNodeType; [NodeContext.MANAGER]: BaseManagerNodeType; [NodeContext.MAT]: BaseMatNodeType; [NodeContext.OBJ]: BaseObjNodeType; [NodeContext.POST]: BasePostProcessNodeType; [NodeContext.ROP]: BaseRopNodeType; [NodeContext.SOP]: BaseSopNodeType; } export {};