An instance of this class manages a binding between a Trackable value and the URL hash state. The binding is initialized in the constructor, and is removed when dispose is called.

Hierarchy

Constructors

Properties

credentialsManager: CredentialsManager
disposedStacks: any
multiUserMode: boolean
parseError: WatchableValue<undefined | Error> = ...

Most recent error parsing URL hash.

prevUrlString: undefined | string

Most recently parsed or set state string.

refCount: number = 1
root: Trackable
stateAPI: StateAPI

ActiveBrainAtlas fork: Create ActiveBrainAtlas state API endpoint.

stateData: State
stateID: null | string
user: User
wasDisposed: undefined | boolean

Methods

  • ActiveBrainAtlas fork: Update the local state upon a firebase update. This is called only in the multi user mode so we know there is a stateID and multiUser=1

    Returns void

  • ActiveBrainAtlas fork: Do not change URL when the current state changes. Instead, when the current state change in the multi-user mode, push the update to Firebase.

    Returns void

  • ActiveBrainAtlas fork: Fetch the state from ActiveBrainAtlas server according to the GET parameter id. The user mode is determined by the GET parameter multi: 0 - single user mode; 1 - multi user mode. This is called upon initial load of the page. This is called from src/main_python.ts

    Returns void

Generated using TypeDoc