Skip to content

@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

ts
new VtkWasmRuntime(module, key): VtkWasmRuntime;

Defined in: runtime.js:152

Parameters

ParameterType
moduleany
keyany

Returns

VtkWasmRuntime

Accessors

module

Get Signature

ts
get module(): any;

Defined in: runtime.js:158

The underlying Emscripten module. Escape hatch; prefer the session API.

Returns

any

Methods

[dispose]()

ts
dispose: void;

Defined in: runtime.js:201

Returns

void


createRemoteSession()

ts
createRemoteSession(): RemoteSession;

Defined in: runtime.js:180

Create a server-driven remote session.

Returns

RemoteSession


createStandaloneSession()

ts
createStandaloneSession(): StandaloneSession;

Defined in: runtime.js:171

Create an in-browser standalone session.

Returns

StandaloneSession


dispose()

ts
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()

ts
isAsync(): boolean;

Defined in: runtime.js:163

Returns

boolean

whether this runtime executes methods asynchronously (JSPI).