UNPKG

polygonjs-engine

Version:

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

32 lines (31 loc) 1.55 kB
import { Number3, StringOrNumber3 } from '../../types/GlobalTypes'; import { TypedMultipleParam } from './_Multiple'; import { Color } from 'three/src/math/Color'; import { ParamType } from '../poly/ParamType'; import { FloatParam } from './Float'; import { ParamValuesTypeMap } from './types/ParamValuesTypeMap'; import { ParamInitValuesTypeMap } from './types/ParamInitValuesTypeMap'; export declare class ColorParam extends TypedMultipleParam<ParamType.COLOR> { protected _value: Color; protected _value_pre_conversion: Color; private _value_serialized_dirty; private _value_serialized; private _value_pre_conversion_serialized; r: FloatParam; g: FloatParam; b: FloatParam; static type(): ParamType; get component_names(): Readonly<string[]>; get default_value_serialized(): StringOrNumber3; get value_serialized(): Number3; get value_pre_conversion_serialized(): Number3; private _copied_value; protected _copy_value(param: ColorParam): void; protected _clone_raw_input(raw_input: ParamInitValuesTypeMap[ParamType.COLOR]): StringOrNumber3 | Color; static are_raw_input_equal(raw_input1: ParamInitValuesTypeMap[ParamType.COLOR], raw_input2: ParamInitValuesTypeMap[ParamType.COLOR]): boolean; static are_values_equal(val1: ParamValuesTypeMap[ParamType.COLOR], val2: ParamValuesTypeMap[ParamType.COLOR]): boolean; init_components(): void; private _update_value_serialized_if_required; get value_pre_conversion(): Color; set_value_from_components(): void; }