@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
46 lines (45 loc) • 2.42 kB
TypeScript
import { NodeContext, NodeContextUnion } from '../../../../poly/NodeContext';
import { BaseGlConnectionPoint, GlConnectionPointType, GlConnectionPoint } from './Gl';
import { BaseJsConnectionPoint, JsConnectionPointType, JsConnectionPoint } from './Js';
import { BaseEventConnectionPoint, EventConnectionPoint, EventConnectionPointType } from './Event';
type ConnectionPointTypeMapGeneric = {
[]: BaseEventConnectionPoint | BaseGlConnectionPoint | BaseJsConnectionPoint | undefined;
};
export interface ConnectionPointTypeMap extends ConnectionPointTypeMapGeneric {
[]: undefined;
[]: undefined;
[]: undefined;
[]: BaseEventConnectionPoint;
[]: BaseGlConnectionPoint;
[]: BaseJsConnectionPoint;
[]: undefined;
[]: undefined;
[]: undefined;
[]: undefined;
[]: undefined;
[]: undefined;
}
type ConnectionPointEnumMapGeneric = {
[]: EventConnectionPointType | GlConnectionPointType | JsConnectionPointType | undefined;
};
export interface ConnectionPointEnumMap extends ConnectionPointEnumMapGeneric {
[]: undefined;
[]: undefined;
[]: undefined;
[]: EventConnectionPointType;
[]: GlConnectionPointType;
[]: JsConnectionPointType;
[]: undefined;
[]: undefined;
[]: undefined;
[]: undefined;
[]: undefined;
[]: undefined;
}
type IConnectionPointEnumMap = {
[]: ConnectionPointEnumMap[key];
};
export declare const DEFAULT_CONNECTION_POINT_ENUM_MAP: IConnectionPointEnumMap;
export declare function createConnectionPoint<NC extends NodeContext>(context: NC, name: string, type: ConnectionPointEnumMap[NC]): GlConnectionPoint<GlConnectionPointType> | JsConnectionPoint<JsConnectionPointType> | EventConnectionPoint<EventConnectionPointType> | undefined;
export declare function paramTypeToConnectionPointTypeMap<NC extends NodeContext>(context: NC): import("./Js").IJsParamTypeToConnectionPointTypeMap | import("./Gl").IGLParamTypeToConnectionPointTypeMap | undefined;
export {};