Non-volatile state management for a ControllerNode.

The default implementation for matter.js uses synchronous APIs for storage. However, this will change in the future, and other implementations may be backed by asynchronous storage. So the public API is asynchronous.

Implements

Constructors

  • Create a new store.

    TODO - implement conversion from 0.7 format so people can change API seamlessly

    Parameters

    Returns ControllerStore

Accessors

  • get caStorage(): StorageContext<any>
  • Returns StorageContext<any>

  • get fabricStorage(): StorageContext<any>
  • Returns StorageContext<any>

  • get nodesStorage(): StorageContext<any>
  • Returns StorageContext<any>

  • get sessionStorage(): StorageContext<any>
  • Returns StorageContext<any>

Methods

  • Returns Promise<void>

  • Returns Promise<void>

  • Parameters

    Returns Promise<ControllerStore>