Skip to content

Interface: Plugin<N, S> ​

Defined in: core/types.ts:134

A plugin adds a feature that does not draw on the canvas. It is also a configuration section.

Extends ​

Extended by ​

Type Parameters ​

Type ParameterDefault type
N extends stringstring
S extends SchemaSchema

Properties ​

PropertyModifierTypeDescriptionInherited fromDefined in
namereadonlyNThe unique name of the section. It is the key in the configuration document.Section.nameconfig/types.ts:56
schemareadonlySThe fields of the section.Section.schemaconfig/types.ts:58

Methods ​

configure()? ​

ts
optional configure(config, theme): void;

Defined in: core/types.ts:139

Gets the resolved values of the section after each change. The engine does not call it while enabled is false.

Parameters ​

ParameterType
configEffectConfig<S>
themeThemeConfig

Returns ​

void


destroy()? ​

ts
optional destroy(): void;

Defined in: core/types.ts:141

Releases all resources.

Returns ​

void


setup() ​

ts
setup(context): void;

Defined in: core/types.ts:137

Gets the services of the engine. The engine calls it one time.

Parameters ​

ParameterType
contextPluginContext

Returns ​

void