Matter.js uses this key/value API to manage persistent state.

Hierarchy (view full)

Constructors

Properties

committed: Promise<void>
isInitialized: boolean
store: any
commitDelay: number

We store changes after a value was set to the storage, but not more often than this setting (in ms).

Accessors

  • get data(): any
  • Returns any

  • get initialized(): boolean
  • Returns boolean

Methods

  • Returns void

  • Parameters

    • contexts: string[]

    Returns void

  • Returns Promise<void>

  • Parameters

    • contexts: string[]

    Returns string[]

  • Parameters

    • contexts: string[]
    • key: string

    Returns void

  • Type Parameters

    Parameters

    • contexts: string[]
    • key: string

    Returns undefined | T

  • Returns Promise<void>

  • Parameters

    • contexts: string[]

    Returns string[]