import Runner from '@mobilizing/library/js/Mobilizing/core/Runner.js'
Runner
A runner is used to instanciate a Mobilizing.js user's script inside a specific context. It is requiered to use a Runner to initiate a context and to attech a script to it.
Constructor Summary
Public Constructor | ||
public | constructor(params: Object) |
Member Summary
Public Members | ||
public | autoPrepare: * | |
public | context: * | |
public | ||
public | useCSSLoader: * |
Method Summary
Public Methods | ||
public | onFrameBegin | |
public | onFrameEnd |
Public Constructors
Public Methods
public onFrameBegin() source
onFrameBegin
public onFrameEnd() source
onFrameEnd
Private Methods
private loop() source
Runner's requestAnimationFrame loop manager
private run() source
Runs the runner, create the preLoader and launch it, then execute the script. NB : this fires a "setupDone" event to inform any exterior process that setup has ended
private startLoop() source
Starts the loop of the user's script, that is the update function