Skip to content

Interface: PanelPlugin ​

Defined in: panel/plugin.ts:41

The settings panel plugin. The plugin instance opens and closes the panel.

Extends ​

Properties ​

PropertyModifierTypeDescriptionInherited fromDefined in
isOpenreadonlybooleanTrue while the panel is open.-panel/plugin.ts:43
namereadonly"panel"The unique name of the section. It is the key in the configuration document.Plugin.nameconfig/types.ts:56
schemareadonlySThe fields of the section.Plugin.schemaconfig/types.ts:58

Methods ​

close() ​

ts
close(): void;

Defined in: panel/plugin.ts:47

Hide the panel.

Returns ​

void


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

Inherited from ​

Plugin.configure


destroy()? ​

ts
optional destroy(): void;

Defined in: core/types.ts:141

Releases all resources.

Returns ​

void

Inherited from ​

Plugin.destroy


open() ​

ts
open(): Promise<void>;

Defined in: panel/plugin.ts:45

Load Tweakpane if necessary, then show the panel.

Returns ​

Promise<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

Inherited from ​

Plugin.setup


toggle() ​

ts
toggle(): Promise<void>;

Defined in: panel/plugin.ts:49

Close the panel if it is open. Otherwise, open the panel.

Returns ​

Promise<void>