Syntax
new Animator(core)
Parameters
- core
- A Core object, that will be set to Animator.prototype.core as is. Animator.prototype.props and Animator.prototype.arms are initialized as empty arrays.
Examples
const core = new jmotion.Core("#board");
const animator = new jmotion.Animator(core);
// animator = {
// "arms": [],
// "props": [],
// "core": {
// "back": g#board_back,
// "defs": defs#board_definition,
// "front": g#board_front,
// "middle": g#board_middle,
// "props": [
// use#board_prop_0,
// use#board_prop_1,
// ...
// ],
// "scale": 1,
// "svg": svg#board,
// },
// "index": 0,
// "speed": 1,
// "status": {
// "runnable": false,
// "running": false,
// },
// }