Class
GeometryPlugin
View sourceExtendsPlugin
Adds geometry value support to an App.
Register this plugin when the app uses BoundType,
BoundingBox2D, or BoundingCircle with engine features
that support geometry values. The app must register CorePlugin,
ReflectPlugin, and MathPlugin separately; registering
GeometryPlugin does not install those dependencies automatically.
Examples
import { App } from '@wimaengine/app'
import { CorePlugin } from '@wimaengine/core'
import { GeometryPlugin } from '@wimaengine/geometry'
import { MathPlugin } from '@wimaengine/math'
import { ReflectPlugin } from '@wimaengine/reflect'
new App()
.registerPlugin(new ReflectPlugin())
.registerPlugin(new CorePlugin())
.registerPlugin(new MathPlugin())
.registerPlugin(new GeometryPlugin())
.run()Constructor
Methods
register(app: App): void
View sourceEnables geometry value support for an App.
After registration, the app can use BoundType,
BoundingBox2D, and BoundingCircle with its geometry-
aware features.
requires(): TypeId[]
View sourceReports the plugins required for geometry support.
The app must already have CorePlugin, ReflectPlugin,
and MathPlugin registered. Registering GeometryPlugin
does not install those dependencies automatically.
