Skip to content
On this page

Interface: AccessorFromProps

WebSG.AccessorFromProps

Interface describing the properties of an Accessor created from an ArrayBuffer.

Table of contents

Properties

Properties

componentType

componentType: AccessorComponentType

The data type of individual components in the data.

Defined in

websg.d.ts:49


count

count: number

The number of elements in the accessor.

Defined in

websg.d.ts:53


dynamic

Optional dynamic: boolean

Whether the accessor's data is dynamic and can change over time (default is false).

Defined in

websg.d.ts:61


max

Optional max: number[]

The maximum values of the accessor's components (optional).

Defined in

websg.d.ts:69


min

Optional min: number[]

The minimum values of the accessor's components (optional).

Defined in

websg.d.ts:65


normalized

Optional normalized: boolean

Whether the data should be normalized when accessed (default is false).

Defined in

websg.d.ts:57


type

type: AccessorType

The shape of the data the accessor represents.

Defined in

websg.d.ts:45