import ComponentProxy from '@mobilizing/library/js/Mobilizing/core/ComponentProxy.js'
ComponentProxy
Extends:
* → ComponentProxy
ComponentProxy is a proxy that converts (like a kind of casting) scripts into Mobilizing Components. It was designed specifically to convert users script to regular Components, so they can be used besides all the other Components used by the program. The script should implement the methods preLoad(), setup(), update(). Users can define their own Component using this class for converting their script to a regular Mobilizing Component.
Example:
//to do
Constructor Summary
Public Constructor | ||
public | constructor(params: Object) |
Member Summary
Public Members | ||
public | targetScript: * |
Method Summary
Public Constructors
Public Members
public targetScript: * source
Public Methods
public postUpdate() source
public preLoad(args: Rest param) source
preLoad the targetScript
Params:
Name | Type | Attribute | Description |
args | Rest param |
public preUpdate() source
public prepare(args: ...*) source
Params:
Name | Type | Attribute | Description |
args | ...* |
public setup() source
Set's up the targetScript
public update() source
Update the targetScript