SessionStorageAPI#
Interface SessionStorageAPI
Hierarchy
- SessionStorageAPI
Methods
change Snapshot
- change
Snapshot(snapshotID, properties): 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, name?, screenshotURL?, order?): SnapshotProperties -
This changes the textual description of the Snapshot for given snapshotID to the value of text.
Parameters
-
snapshotID: number
The ID of the Snapshot.
-
Optional
name: stringThe new name of the Snapshot.
-
Optional
screenshotURL: stringThe new screenshot URL of the Snapshot.
-
Optional
order: numberThe order inside the List of Snapshots.
Returns SnapshotProperties
Deprecated
Calling changeSnapshot with single parameters is deprecated, please use SnapshotProperties instead.
-
create Snapshot
- create
Snapshot(name?, options?): Promise<number> -
Creates a Snapshot of the current.
Parameters
-
Optional
name: stringThe Name of the Snapshot.
-
Optional
options: SnapshotCreationOptionsOptions used for the Snapshot creation.
Returns Promise<number>
The Snapshot ID.
-
get Snapshot Data
- get
Snapshot Data(snapshotID): {
attachmentID: number;
name: string;
order: number;
} -
Parameters
-
snapshotID: number
Returns {
attachmentID: number;
name: string;
order: number;
}The data of the specified Snapshot.
-
attachmentID: number
-
name: string
-
order: number
Deprecated
getSnapshotData is deprecated, please use requestSnapshotData instead.
-
get Snapshots
import Session
is Offline Storage Available
remove Snapshot
request Snapshot Data
- request
Snapshot Data(snapshotID): Promise<SnapshotProperties> -
Parameters
-
snapshotID: number
Returns Promise<SnapshotProperties>
The data of the specified Snapshot.
-
restore Session
restore Snapshot
- restore
Snapshot(snapshotID, options?): 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
-
Optional
options: SnapshotRestoreOptions
Returns Promise<void>
-
store Session
- store
Session(offline?, progressCallback?): Promise<string | void> -
Temporarily stores the Session in the infrastructure and returns a handle.
Parameters
-
Optional
offline: booleansets the space domain to the local one
-
Optional
progressCallback: 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.