SessionStorageAPIΒΆ
Interface SessionStorageAPI
Hierarchy
- SessionStorageAPI
Methods
change Snapshot
- change
Snapshot(snapshotID: number, properties: SnapshotProperties): SnapshotProperties -
Changes one or more properties of a Snapshot with the specified ID.
Parameters
-
snapshotID: number
The ID of the Snapshot you want to change.
-
properties: SnapshotProperties
The properties of the Snapshot you want to change.
Returns SnapshotProperties
An object with the changed Properties.
-
- change
Snapshot(snapshotID: number, name?: string, screenshotURL?: string, order?: number): SnapshotProperties -
This changes the textual description of the Snapshot for given snapshotID to the value of text.
Deprecated
Calling changeSnapshot with single parameters is deprecated, please use SnapshotProperties instead.
Parameters
-
snapshotID: number
The ID of the Snapshot.
-
Optionalname: stringThe new name of the Snapshot.
-
OptionalscreenshotURL: stringThe new screenshot URL of the Snapshot.
-
Optionalorder: number
Returns SnapshotProperties
-
create Snapshot
- create
Snapshot(name?: string, options?: SnapshotCreationOptions): Promise<number> -
Creates a Snapshot of the current.
Parameters
-
Optionalname: stringThe Name of the Snapshot.
-
Optionaloptions: SnapshotCreationOptionsOptions used for the Snapshot creation.
Returns Promise<number>
The Snapshot ID.
-
get Snapshot Data
- get
Snapshot Data(snapshotID: number): { attachmentID: number; name: string; order: number } -
Deprecated
getSnapshotData is deprecated, please use requestSnapshotData instead.
Parameters
-
snapshotID: number
Returns { attachmentID: number; name: string; order: number }
The data of the specified Snapshot.
-
attachmentID: number
-
name: string
-
order: number
-
get Snapshots
import Session
is Offline Storage Available
remove Snapshot
request Snapshot Data
- request
Snapshot Data(snapshotID: number): Promise<SnapshotProperties> -
Parameters
-
snapshotID: number
Returns Promise<SnapshotProperties>
The data of the specified Snapshot.
-
restore Session
restore Snapshot
- restore
Snapshot(snapshotID: number, options?: SnapshotRestoreOptions): Promise<void> -
Restores the Snapshot for the given snapshotID. The settings parameter allows to control the subset of the Snapshot data to be restored.
Parameters
-
snapshotID: number
-
Optionaloptions: SnapshotRestoreOptions
Returns Promise<void>
-
store Session
- store
Session(offline?: boolean, progressCallback?: StoreSessionProgressCallback): Promise<string | void> -
Temporarily stores the Session in the infrastructure and returns a handle.
Parameters
-
Optionaloffline: booleansets the space domain to the local one
-
OptionalprogressCallback: StoreSessionProgressCallback
Returns Promise<string | void>
-
With these functions the user can control webvis' management of SessionStorage objects and Snapshots.
The Session describes the whole state of the 3D Space, which can be shared, stored and restored. Snapshot are a subset of a 3D Space and describe a momentary state, which can include other elements of the 3D Space like Clipplanes and Measurements.