Class
MathPlugin
View sourceExtendsPlugin
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
Methods
register(app: App): void
View sourceEnables math type support for an App.
After registration, the app can use Hisabati math values with engine features that support them.
requires(): TypeId[]
View sourceReturns the plugin IDs required for math type support.
The app must already have CorePlugin and ReflectPlugin
registered. Registering MathPlugin does not install those
dependencies automatically.
