Interface GeometryProgressEvent

Event that measures the progress of the model loading.

interface GeometryProgressEvent {
    buffer?: ArrayBuffer | Uint8Array;
    data: number;
    file: string | Model | File | Assembly | ArrayBuffer | File | Blob;
    model?: Model;
    type: "geometryprogress";
}

Properties

buffer?: ArrayBuffer | Uint8Array

Deprecated since 26.4. Use file instead.

data: number

The non-rounded progress value from 0 to 1. To get a percentage (%), multiply the data by 100.

file: string | Model | File | Assembly | ArrayBuffer | File | Blob

File to load.

model?: Model

Model from file to load. Only defined when loading a file from the Open Cloud Server.

type: "geometryprogress"

Event type.