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 "ghosted"
                                                ? 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 "outlined"
                                                                                                ? boolean
                                                                                                : 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


Did you find this page useful? Please give it a rating:
Thank you for rating this page!
Any issues or feedback?
What kind of problem would you like to report?
Please tell us more about what's wrong: