UNPKG

@polygonjs/polygonjs

Version:

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

17 lines (16 loc) 828 B
import { Object3D } from 'three'; import { ObjectNamedFunction2, ObjectNamedFunction3 } from './_Base'; import { AttribValue } from '../../types/GlobalTypes'; import { JsIConnectionPointTypeToDataTypeMap, ParamConvertibleJsType } from '../nodes/utils/io/connections/Js'; export declare class getObjectAttribute<T extends ParamConvertibleJsType> extends ObjectNamedFunction3<[ string, T, JsIConnectionPointTypeToDataTypeMap[T] ]> { static type(): string; func(object3D: Object3D, attribName: string, type: T, defaultValue: JsIConnectionPointTypeToDataTypeMap[T]): AttribValue; } export declare class getObjectAttributeAutoDefault<T extends ParamConvertibleJsType> extends ObjectNamedFunction2<[string, T]> { static type(): string; func(object3D: Object3D, attribName: string, type: T): AttribValue; }