@kitware/vtk-wasm / @kitware/vtk-wasm / VtkWasmRuntime
Class: VtkWasmRuntime
Defined in: runtime.js:147
A loaded VTK.wasm WebAssembly module. Acts as the single factory for sessions.
Constructors
Constructor
new VtkWasmRuntime(module, key): VtkWasmRuntime;Defined in: runtime.js:152
Parameters
| Parameter | Type |
|---|---|
module | any |
key | any |
Returns
VtkWasmRuntime
Accessors
module
Get Signature
get module(): any;Defined in: runtime.js:158
The underlying Emscripten module. Escape hatch; prefer the session API.
Returns
any
Methods
[dispose]()
dispose: void;Defined in: runtime.js:201
Returns
void
createRemoteSession()
createRemoteSession(): RemoteSession;Defined in: runtime.js:180
Create a server-driven remote session.
Returns
createStandaloneSession()
createStandaloneSession(): StandaloneSession;Defined in: runtime.js:171
Create an in-browser standalone session.
Returns
dispose()
dispose(): void;Defined in: runtime.js:190
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:163
Returns
boolean
whether this runtime executes methods asynchronously (JSPI).