Documentation - v20.0.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.

    isCategory: boolean = false

    A category of the group holding it: drawn by an interface inside that group (e.g. the post-processing's antialiasing and ambient occlusion), which stays a group of its own even without settings of its own (a group of groups only is drawn in place, e.g. the engine's).

    isSettings: true

    Tells a group of settings from a setting, without instanceof.

    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

    • The values changed from their default, group by group, but those never saved (ValueControllerOptions.skipSave): a config for applyConfig, what is saved.

      Returns SettingsConfig<this>

    • 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