Interface ITypedArray

PixiJS classes use this type instead of ArrayBuffer and typed arrays to support expressions like geometry.buffers[0].data[0] = position.x.

Gives access to indexing and length field.

  • @popelyshev: If data is actually ArrayBuffer and throws Exception on indexing - its user problem :)

PIXI

interface ITypedArray {
    "[toStringTag]": string;
    byteLength: number;
    BYTES_PER_ELEMENT: number;
    length: number;
    slice(begin: number, end?: number): ArrayBuffer;
    [index: number]: number;
}

Hierarchy (View Summary)

Indexable

  • [index: number]: number

Properties

"[toStringTag]": string
byteLength: number

Read-only. The length of the ArrayBuffer (in bytes).

BYTES_PER_ELEMENT: number
length: number

Methods

  • Returns a section of an ArrayBuffer.

    Parameters

    • begin: number
    • Optionalend: number

    Returns ArrayBuffer