MathPlugin

View source

ExtendsPlugin

Adds Hisabati math type support to an App.

Register this plugin when the app uses Hisabati math values with engine features that support them. The plugin requires CorePlugin and ReflectPlugin; registering MathPlugin does not install either dependency automatically.

Examples

import { App } from '@wimaengine/app'
import { CorePlugin } from '@wimaengine/core'
import { MathPlugin } from '@wimaengine/math'
import { ReflectPlugin } from '@wimaengine/reflect'

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

Constructor


constructor()

Methods


register(app: App): void

View source

Enables math type support for an App.

After registration, the app can use Hisabati math values with engine features that support them.

Parameters

NameDescriptionDefault
app

App to configure.

—