PropertyType<T>#

Type alias PropertyType<T>

PropertyType<T>: T extends "activatable"
    ? boolean
    : T extends "animation"
        ? {
            name: string;
        } & AnimationOptions
        : T extends "appearanceURI"
            ? string | number | undefined | null
            : T extends "attachment"
                ? any
                : T extends "auxContent"
                    ? any
                    : T extends "auxEnabled"
                        ? EnabledState | boolean
                        : T extends "auxNodes"
                            ? number[]
                            : T extends "children"
                                ? number[]
                                : T extends "comparisonGroup"
                                    ? ComparisonGroup
                                    : T extends "depth"
                                        ? number
                                        : T extends "enabled"
                                            ? EnabledState | boolean
                                            : T extends "globalTransform"
                                                ? [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number] | Float32Array
                                                : T extends "globalVolume"
                                                    ? BoxVolume
                                                    : T extends "hasAuxStructure"
                                                        ? boolean
                                                        : T extends "hidden"
                                                            ? boolean
                                                            : T extends "infoState"
                                                                ? NodeInfoState
                                                                : T extends "label"
                                                                    ? string
                                                                    : T extends "localTransform"
                                                                        ? [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number] | Float32Array
                                                                        : T extends "localVolume"
                                                                            ? BoxVolume
                                                                            : T extends "modelViews"
                                                                                ? number[]
                                                                                : T extends "names"
                                                                                    ? string[]
                                                                                    : T extends "nodeRepresentation"
                                                                                        ? NodeRepresentation
                                                                                        : T extends "parent"
                                                                                            ? number
                                                                                            : T extends "pickable"
                                                                                                ? boolean
                                                                                                : T extends "real"
                                                                                                    ? EnabledState | boolean
                                                                                                    : T extends "realOccluder"
                                                                                                        ? boolean
                                                                                                        : T extends "renderMode"
                                                                                                            ? RenderMode
                                                                                                            : T extends "resourceState"
                                                                                                                ? NodeResourceState
                                                                                                                : T extends "selected"
                                                                                                                    ? boolean
                                                                                                                    : T extends "state"
                                                                                                                        ? NodeState
                                                                                                                        : T extends "subType"
                                                                                                                            ? string
                                                                                                                            : T extends "type"
                                                                                                                                ? NodeType
                                                                                                                                : T extends "userData"
                                                                                                                                    ? Serializable | undefined
                                                                                                                                    : any

The available property types.

Type Parameters

  • T