Full-screen loading spinner with an animated 3D cube and progress bar.

LoadingSpinner displays a modal loading overlay intended for model loading workflows.

The spinner listens to sdkProgress task events to increment total and completed work, while also allowing progress to be driven explicitly with LoadingSpinner.setTotal, LoadingSpinner.setLoaded and LoadingSpinner.itemLoaded.

const spinner = new LoadingSpinner();

spinner.setTotal(10);

// Later...
spinner.itemLoaded();

When configured with autoHide: true, the spinner hides itself shortly after progress reaches 100%.

Constructors

Methods

  • Sets the total number of items to load.

    Optionally preserves the current loaded count.

    Parameters

    • totalThings: number

      Total number of items.

    • keepLoaded: boolean = false

      When true, preserves the current loaded count instead of resetting it.

    Returns void