ColorPlugin

View source

ExtendsPlugin

Adds Color component support to an App.

Register this plugin to make Color available as a structured color component. It depends on CorePlugin and ReflectPlugin. Registering ColorPlugin does not install missing dependencies automatically.

Examples

import { App } from '@wimaengine/app'
import { ColorPlugin } from '@wimaengine/color'
import { CorePlugin } from '@wimaengine/core'
import { ReflectPlugin } from '@wimaengine/reflect'

new App()
  .registerPlugin(new ReflectPlugin())
  .registerPlugin(new CorePlugin())
  .registerPlugin(new ColorPlugin())
  .run()

Constructor


constructor()

Methods


register(app: App): void

View source

Enables color component support for an App.

Parameters

NameDescriptionDefault
app

App to configure.

—

requires(): TypeId[]

View source

Returns the plugin IDs required for color component support.

The app must already have CorePlugin and ReflectPlugin registered. Registering this plugin does not install them automatically.

Returns

Required plugin TypeId values.