Skip to main content

Class: PluginsManager

PluginsManager

Methods

(static) connectWASM(factory, st, baseURLopt) → {Module}

WebAssembly plugin integration in bundles env, like webpack

Parameters:
NameTypeAttributesDefaultDescription
factoryfunctionPlugin @digital-ink/wasm export
stbooleanWhen is true, single thread distribution will be loaded
baseURLURI<optional>/node_modules/@digital-ink/wasmnative parent folder (applicable for non mjs env)
Returns:

wasm functionality

Type

Module

(static) connectWorkers(factory, baseURLopt) → {Module}

Workers plugin integration in bundles env, like webpack

Parameters:
NameTypeAttributesDefaultDescription
factoryfunctionPlugin @digital-ink/workers export
baseURLURI<optional>/node_modules/@digital-ink/workersworkers parent folder (applicable for non mjs env)
Returns:

workers functionality

Type

Module

(static) installWASM(prefixopt, stopt) → {Module}

WebAssembly plugin integration

Parameters:
NameTypeAttributesDefaultDescription
prefixstring<optional>""URI prefix Appends prefix on every dependency template
stboolean<optional>falseWhen is true, single thread distribution will be loaded. When SharedArrayBuffer is not available it is true.
Returns:

wasm functionality

Type

Module

(static) installWorkers(prefixopt) → {Module}

Workers plugin integration

Parameters:
NameTypeAttributesDefaultDescription
prefixstring<optional>""URI prefix Appends prefix on every dependency template
Returns:

workers functionality

Type

Module

Home