.new DefineModule(name, data)
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
name |
String
|
|
data |
Object
|
Example
Creating a DefineModule with PerspectiveCamera as camera module and passing it to App's modules
new App([
// ...
new DefineModule('camera', new PerspectiveCamera())
]);