UNPKG

polygonjs-engine

Version:

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

90 lines (89 loc) 3.43 kB
import { BaseSopNodeType } from '../nodes/sop/_Base'; import { BaseAnimNodeType } from '../nodes/anim/_Base'; import { BaseCopNodeType } from '../nodes/cop/_Base'; import { BaseEventNodeType } from '../nodes/event/_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 { BasePostProcessNodeType } from '../nodes/post/_Base'; import { BaseRopNodeType } from '../nodes/rop/_Base'; import { GeoNodeChildrenMap } from './registers/nodes/Sop'; import { GlNodeChildrenMap } from './registers/nodes/Gl'; import { EventNodeChildrenMap } from './registers/nodes/Event'; import { CopNodeChildrenMap } from './registers/nodes/Cop'; import { AnimNodeChildrenMap } from './registers/nodes/Anim'; import { MatNodeChildrenMap } from './registers/nodes/Mat'; import { ObjNodeChildrenMap } from './registers/nodes/Obj'; import { PostNodeChildrenMap } from './registers/nodes/Post'; import { RopNodeChildrenMap } from './registers/nodes/Rop'; export declare enum NodeContext { ANIM = "anim", COP = "cop", EVENT = "event", GL = "gl", JS = "js", MANAGER = "manager", MAT = "mat", OBJ = "obj", POST = "post", ROP = "rop", SOP = "sop" } export declare type NodeContextUnion = NodeContext.ANIM | NodeContext.COP | NodeContext.EVENT | NodeContext.GL | NodeContext.JS | NodeContext.MANAGER | NodeContext.MAT | NodeContext.OBJ | NodeContext.POST | NodeContext.ROP | NodeContext.SOP; export declare enum NetworkNodeType { ANIM = "animations", COP = "cop", EVENT = "events", MAT = "materials", POST = "postProcess", ROP = "renderers" } export declare enum NetworkChildNodeType { INPUT = "subnetInput", OUTPUT = "subnetOutput" } export declare enum CameraNodeType { PERSPECTIVE = "perspectiveCamera", ORTHOGRAPHIC = "orthographicCamera" } export declare enum GlNodeType { ATTRIBUTE = "attribute" } export declare enum CameraControlsNodeType { DEVICE_ORIENTATION = "cameraDeviceOrientationControls", MAP = "cameraMapControls", ORBIT = "cameraOrbitControls" } export declare const CAMERA_CONTROLS_NODE_TYPES: Readonly<string[]>; export interface BaseNodeByContextMap { [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.SOP]: BaseSopNodeType; [NodeContext.ROP]: BaseRopNodeType; } export interface ChildrenNodeMapByContextMap { [NodeContext.ANIM]: AnimNodeChildrenMap; [NodeContext.COP]: CopNodeChildrenMap; [NodeContext.EVENT]: EventNodeChildrenMap; [NodeContext.GL]: GlNodeChildrenMap; [NodeContext.JS]: BaseJsNodeType; [NodeContext.MANAGER]: {}; [NodeContext.MAT]: MatNodeChildrenMap; [NodeContext.OBJ]: ObjNodeChildrenMap; [NodeContext.POST]: PostNodeChildrenMap; [NodeContext.SOP]: GeoNodeChildrenMap; [NodeContext.ROP]: RopNodeChildrenMap; } export interface NodeContextAndType { context: NodeContext; type: string; }