UNPKG

polygonjs-engine

Version:

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

34 lines (32 loc) 1.67 kB
// import {BooleanParam} from '../Boolean'; // import {ButtonParam} from '../Button'; // import {ColorParam} from '../Color'; // import {FloatParam} from '../Float'; // import {IntegerParam} from '../Integer'; // import {OperatorPathParam} from '../OperatorPath'; // import {RampParam} from '../Ramp'; // import {SeparatorParam} from '../Separator'; // import {StringParam} from '../String'; // import {Vector2Param} from '../Vector2'; // import {Vector3Param} from '../Vector3'; // import {Vector4Param} from '../Vector4'; import {StringOrNumber2, StringOrNumber3, StringOrNumber4} from '../../../types/GlobalTypes'; import {RampValueJson} from '../ramp/RampValue'; import {ParamType} from '../../poly/ParamType'; import {ParamInitValuesTypeMap} from './ParamInitValuesTypeMap'; type ParamInitValueSerializedTypeMapGeneric = {[key in ParamType]: any}; export interface ParamInitValueSerializedTypeMap extends ParamInitValueSerializedTypeMapGeneric { [ParamType.BOOLEAN]: ParamInitValuesTypeMap[ParamType.BOOLEAN]; [ParamType.BUTTON]: ParamInitValuesTypeMap[ParamType.BUTTON]; [ParamType.COLOR]: StringOrNumber3; [ParamType.FLOAT]: ParamInitValuesTypeMap[ParamType.FLOAT]; [ParamType.FOLDER]: ParamInitValuesTypeMap[ParamType.FOLDER]; [ParamType.INTEGER]: ParamInitValuesTypeMap[ParamType.INTEGER]; [ParamType.OPERATOR_PATH]: ParamInitValuesTypeMap[ParamType.OPERATOR_PATH]; [ParamType.RAMP]: RampValueJson; [ParamType.SEPARATOR]: ParamInitValuesTypeMap[ParamType.SEPARATOR]; [ParamType.STRING]: ParamInitValuesTypeMap[ParamType.STRING]; [ParamType.VECTOR2]: StringOrNumber2; [ParamType.VECTOR3]: StringOrNumber3; [ParamType.VECTOR4]: StringOrNumber4; }