@kitware/vtk-wasm / @kitware/vtk-wasm / VtkWasmRuntime
Class: VtkWasmRuntime
Defined in: runtime.js:181
A loaded VTK.wasm WebAssembly module. Acts as the single factory for sessions.
Constructors
Constructor
new VtkWasmRuntime(module, key): VtkWasmRuntime;Defined in: runtime.js:186
Parameters
| Parameter | Type |
|---|---|
module | any |
key | any |
Returns
VtkWasmRuntime
Accessors
id
Get Signature
get id(): any;Defined in: runtime.js:193
The unique identifier for the wasm module that this runtime was created from. Looks like: url::wasmBaseName::config.rendering::config.exec
Returns
any
module
Get Signature
get module(): any;Defined in: runtime.js:198
The underlying Emscripten module. Escape hatch; prefer the session API.
Returns
any
Methods
[dispose]()
dispose: void;Defined in: runtime.js:241
Returns
void
createRemoteSession()
createRemoteSession(): RemoteSession;Defined in: runtime.js:220
Create a server-driven remote session.
Returns
createStandaloneSession()
createStandaloneSession(): StandaloneSession;Defined in: runtime.js:211
Create an in-browser standalone session.
Returns
dispose()
dispose(): void;Defined in: runtime.js:230
Drop this runtime from the shared cache and release the module reference. Note: Emscripten cannot reclaim a runtime's heap before page reload; disposing individual sessions is what actually frees C++ memory.
Returns
void
isAsync()
isAsync(): boolean;Defined in: runtime.js:203
Returns
boolean
whether this runtime executes methods asynchronously (JSPI).