Service adapter for the Matter.js storage API.

Constructors

Accessors

Methods

Constructors

Accessors

  • set factory(factory): void
  • Install a factory for opening storage. Without such a factory storage is unavailable.

    Parameters

    Returns void

  • get location(): undefined | string
  • The storage location. Only used for diagnostic purposes.

    Returns undefined | string

  • set location(location): void
  • Parameters

    • location: undefined | string

    Returns void

Methods

  • Returns (string | Record<string, unknown> & Diagnostic)[]

  • Open storage. The storage is initialized but the caller must take ownership.

    Parameters

    • namespace: string

      a unique namespace identifier such as a root node ID

    Returns Promise<StorageManager<Storage>>