Documentation - v19.16.0-dev
    Preparing search index...

    The settings of the file loading (MeshLoader, FileReader), hidden, read at the start of each load.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    batchMeshes: NumberController = ...

    A loading worker sends the objects of a file in batches of this many objects at most, or of sliceMs of reading, the first reached: a batch of light objects stays small, the main thread handling one at a time.

    groupMeshes: NumberController = ...

    Objects the queue holds at most: the objects reusing stored geometries (many instances, a model loaded again) take no new bytes, but their adding costs.

    icon: "loading" = 'loading'

    Drawn by an interface before its title.

    maxWorkers: NumberController = ...

    Workers of a file loader at most, the cores of the machine by default and at most (as the viewer's loadingWorkersCount); a core is left to the page.

    sliceMs: NumberController = ...

    A loading worker sends a batch after this many milliseconds of reading at most.

    targetContainerSizeMB: NumberController = ...

    The objects received wait in a queue until their new geometries take this many MB (10^6 bytes), or it holds groupMeshes objects: the queue is then added at once, the object that filled it last, its new geometries into a Container of their exact size (about this one). An object larger alone is added at once, in a Container of its own.

    title: "Loading" = 'Loading'

    Shown by an interface above its settings.

    Methods

    • Sets the settings config gives, each validated (see ValueController.validate): a value refused is skipped with a warning, the others set. The keys that are not settings are ignored (e.g. of a config saved by another version).

      Parameters

      Returns void

    • Disconnects every listener of the settings: they are not used after.

      Returns void

    • Sets the settings saved under key in the local storage (saveToLocalStorage); none saved: unchanged. A value refused (e.g. by a later version) is skipped with a warning, the others set (see applyConfig); saved settings that cannot be read are ignored with a warning.

      Parameters

      • key: string

      Returns void

    • Sets every setting back to its default.

      Returns void

    • Saves the values changed from their default under key in the local storage, the key removed when none is: the others follow the defaults of the next versions.

      Parameters

      • key: string

      Returns void