diff --git a/docs/ast/source/layer.mjs.json b/docs/ast/source/layer.mjs.json new file mode 100644 index 0000000..de4e49d --- /dev/null +++ b/docs/ast/source/layer.mjs.json @@ -0,0 +1,23228 @@ +{ + "type": "File", + "start": 0, + "end": 6998, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 159, + "column": 1 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 6998, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 159, + "column": 1 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 42, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 42 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 9, + "end": 17, + "loc": { + "start": { + "line": 1, + "column": 9 + }, + "end": { + "line": 1, + "column": 17 + } + }, + "imported": { + "type": "Identifier", + "start": 9, + "end": 17, + "loc": { + "start": { + "line": 1, + "column": 9 + }, + "end": { + "line": 1, + "column": 17 + }, + "identifierName": "Parallax" + }, + "name": "Parallax" + }, + "local": { + "type": "Identifier", + "start": 9, + "end": 17, + "loc": { + "start": { + "line": 1, + "column": 9 + }, + "end": { + "line": 1, + "column": 17 + }, + "identifierName": "Parallax" + }, + "name": "Parallax" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 25, + "end": 41, + "loc": { + "start": { + "line": 1, + "column": 25 + }, + "end": { + "line": 1, + "column": 41 + } + }, + "extra": { + "rawValue": "./parallax.mjs", + "raw": "'./parallax.mjs'" + }, + "value": "./parallax.mjs" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 46, + "end": 6998, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 159, + "column": 1 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "ClassDeclaration", + "start": 53, + "end": 6998, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 159, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 59, + "end": 64, + "loc": { + "start": { + "line": 3, + "column": 13 + }, + "end": { + "line": 3, + "column": 18 + }, + "identifierName": "Layer" + }, + "name": "Layer" + }, + "superClass": null, + "body": { + "type": "ClassBody", + "start": 65, + "end": 6998, + "loc": { + "start": { + "line": 3, + "column": 19 + }, + "end": { + "line": 159, + "column": 1 + } + }, + "body": [ + { + "type": "ClassProperty", + "start": 631, + "end": 860, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 21, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 631, + "end": 637, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 10 + }, + "identifierName": "config" + }, + "name": "config", + "leadingComments": null + }, + "value": { + "type": "ObjectExpression", + "start": 640, + "end": 860, + "loc": { + "start": { + "line": 14, + "column": 13 + }, + "end": { + "line": 21, + "column": 5 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 725, + "end": 743, + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 16, + "column": 26 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 725, + "end": 740, + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 16, + "column": 23 + }, + "identifierName": "horizontalSpeed" + }, + "name": "horizontalSpeed", + "leadingComments": null + }, + "value": { + "type": "NumericLiteral", + "start": 742, + "end": 743, + "loc": { + "start": { + "line": 16, + "column": 25 + }, + "end": { + "line": 16, + "column": 26 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Move the instance with the camera if the parallax is set to 0", + "start": 651, + "end": 715, + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 72 + } + } + } + ] + }, + { + "type": "ObjectProperty", + "start": 754, + "end": 770, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 24 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 754, + "end": 767, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 21 + }, + "identifierName": "verticalSpeed" + }, + "name": "verticalSpeed" + }, + "value": { + "type": "NumericLiteral", + "start": 769, + "end": 770, + "loc": { + "start": { + "line": 17, + "column": 23 + }, + "end": { + "line": 17, + "column": 24 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + }, + { + "type": "ObjectProperty", + "start": 781, + "end": 789, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 16 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 781, + "end": 786, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 13 + }, + "identifierName": "plane" + }, + "name": "plane" + }, + "value": { + "type": "NumericLiteral", + "start": 788, + "end": 789, + "loc": { + "start": { + "line": 18, + "column": 15 + }, + "end": { + "line": 18, + "column": 16 + } + }, + "extra": { + "rawValue": 1, + "raw": "1" + }, + "value": 1 + } + }, + { + "type": "ObjectProperty", + "start": 800, + "end": 822, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 30 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 800, + "end": 811, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 19 + }, + "identifierName": "backgrounds" + }, + "name": "backgrounds" + }, + "value": { + "type": "NewExpression", + "start": 813, + "end": 822, + "loc": { + "start": { + "line": 19, + "column": 21 + }, + "end": { + "line": 19, + "column": 30 + } + }, + "callee": { + "type": "Identifier", + "start": 817, + "end": 820, + "loc": { + "start": { + "line": 19, + "column": 25 + }, + "end": { + "line": 19, + "column": 28 + }, + "identifierName": "Set" + }, + "name": "Set" + }, + "arguments": [] + } + }, + { + "type": "ObjectProperty", + "start": 833, + "end": 853, + "loc": { + "start": { + "line": 20, + "column": 8 + }, + "end": { + "line": 20, + "column": 28 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 833, + "end": 842, + "loc": { + "start": { + "line": 20, + "column": 8 + }, + "end": { + "line": 20, + "column": 17 + }, + "identifierName": "instances" + }, + "name": "instances" + }, + "value": { + "type": "NewExpression", + "start": 844, + "end": 853, + "loc": { + "start": { + "line": 20, + "column": 19 + }, + "end": { + "line": 20, + "column": 28 + } + }, + "callee": { + "type": "Identifier", + "start": 848, + "end": 851, + "loc": { + "start": { + "line": 20, + "column": 23 + }, + "end": { + "line": 20, + "column": 26 + }, + "identifierName": "Set" + }, + "name": "Set" + }, + "arguments": [] + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Creates a new Parallax layer with the supplied configuration.\r\n * When creating a layer, all instances and backgrounds should already be on the map.\r\n * @param {Object} pConfig - The configuration of the parallax layer.\r\n * @prop {number} pConfig.horizontalSpeed - The horizontal speed of the layer.\r\n * @prop {number} pConfig.verticalSpeed - The vertical speed of the layer. \r\n * @prop {number} pConfig.plane - The plane this layer will occupy.\r\n * @param {Diob[] | MapObject[]} pConfig.backgrounds - An array of instances that will serve as the background. These are automatically toggled to repeat.\r\n * @prop {Diob[] | MapObject[]} pConfig.instances - The instances that will be added to the layer. \r\n ", + "start": 866, + "end": 1617, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 31, + "column": 7 + } + } + } + ] + } + ], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * The configuration object of this layer.\r\n * @private\r\n * @type {Object}\r\n * @param {number} horizontalSpeed - The horizontal speed of the layer.\r\n * @param {number} verticalSpeed - The vertical speed of the layer.\r\n * @param {number} plane - The plane this parallax layer will occupy.\r\n * @param {Diob[] | MapObject[]} backgrounds - An array of instances that will serve as the background. These are automatically toggled to repeat.\r\n * @param {Set} instances - A set of instances currently on the layer.\r\n ", + "start": 72, + "end": 625, + "loc": { + "start": { + "line": 4, + "column": 4 + }, + "end": { + "line": 13, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Creates a new Parallax layer with the supplied configuration.\r\n * When creating a layer, all instances and backgrounds should already be on the map.\r\n * @param {Object} pConfig - The configuration of the parallax layer.\r\n * @prop {number} pConfig.horizontalSpeed - The horizontal speed of the layer.\r\n * @prop {number} pConfig.verticalSpeed - The vertical speed of the layer. \r\n * @prop {number} pConfig.plane - The plane this layer will occupy.\r\n * @param {Diob[] | MapObject[]} pConfig.backgrounds - An array of instances that will serve as the background. These are automatically toggled to repeat.\r\n * @prop {Diob[] | MapObject[]} pConfig.instances - The instances that will be added to the layer. \r\n ", + "start": 866, + "end": 1617, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 31, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 1623, + "end": 2708, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 61, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1623, + "end": 1634, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 15 + }, + "identifierName": "constructor" + }, + "name": "constructor" + }, + "kind": "constructor", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1635, + "end": 1642, + "loc": { + "start": { + "line": 32, + "column": 16 + }, + "end": { + "line": 32, + "column": 23 + }, + "identifierName": "pConfig" + }, + "name": "pConfig" + } + ], + "body": { + "type": "BlockStatement", + "start": 1644, + "end": 2708, + "loc": { + "start": { + "line": 32, + "column": 25 + }, + "end": { + "line": 61, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1655, + "end": 1693, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 46 + } + }, + "expression": { + "type": "CallExpression", + "start": 1655, + "end": 1692, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 45 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1655, + "end": 1677, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 30 + } + }, + "object": { + "type": "ThisExpression", + "start": 1655, + "end": 1659, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1660, + "end": 1677, + "loc": { + "start": { + "line": 33, + "column": 13 + }, + "end": { + "line": 33, + "column": 30 + }, + "identifierName": "updateConfigSpeed" + }, + "name": "updateConfigSpeed" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1678, + "end": 1685, + "loc": { + "start": { + "line": 33, + "column": 31 + }, + "end": { + "line": 33, + "column": 38 + }, + "identifierName": "pConfig" + }, + "name": "pConfig" + }, + { + "type": "BooleanLiteral", + "start": 1687, + "end": 1691, + "loc": { + "start": { + "line": 33, + "column": 40 + }, + "end": { + "line": 33, + "column": 44 + } + }, + "value": true + } + ] + } + }, + { + "type": "IfStatement", + "start": 1705, + "end": 1995, + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 39, + "column": 9 + } + }, + "test": { + "type": "BinaryExpression", + "start": 1709, + "end": 1743, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 35, + "column": 46 + } + }, + "left": { + "type": "UnaryExpression", + "start": 1709, + "end": 1730, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 35, + "column": 33 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "UnaryExpression", + "start": 1710, + "end": 1730, + "loc": { + "start": { + "line": 35, + "column": 13 + }, + "end": { + "line": 35, + "column": 33 + } + }, + "operator": "typeof", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 1717, + "end": 1730, + "loc": { + "start": { + "line": 35, + "column": 20 + }, + "end": { + "line": 35, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 1717, + "end": 1724, + "loc": { + "start": { + "line": 35, + "column": 20 + }, + "end": { + "line": 35, + "column": 27 + }, + "identifierName": "pConfig" + }, + "name": "pConfig" + }, + "property": { + "type": "Identifier", + "start": 1725, + "end": 1730, + "loc": { + "start": { + "line": 35, + "column": 28 + }, + "end": { + "line": 35, + "column": 33 + }, + "identifierName": "plane" + }, + "name": "plane" + }, + "computed": false + }, + "extra": { + "parenthesizedArgument": false + } + }, + "extra": { + "parenthesizedArgument": false + } + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 1735, + "end": 1743, + "loc": { + "start": { + "line": 35, + "column": 38 + }, + "end": { + "line": 35, + "column": 46 + } + }, + "extra": { + "rawValue": "number", + "raw": "'number'" + }, + "value": "number" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 1745, + "end": 1929, + "loc": { + "start": { + "line": 35, + "column": 48 + }, + "end": { + "line": 37, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1760, + "end": 1918, + "loc": { + "start": { + "line": 36, + "column": 12 + }, + "end": { + "line": 36, + "column": 170 + } + }, + "expression": { + "type": "CallExpression", + "start": 1760, + "end": 1917, + "loc": { + "start": { + "line": 36, + "column": 12 + }, + "end": { + "line": 36, + "column": 169 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1760, + "end": 1806, + "loc": { + "start": { + "line": 36, + "column": 12 + }, + "end": { + "line": 36, + "column": 58 + } + }, + "object": { + "type": "CallExpression", + "start": 1760, + "end": 1801, + "loc": { + "start": { + "line": 36, + "column": 12 + }, + "end": { + "line": 36, + "column": 53 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1760, + "end": 1782, + "loc": { + "start": { + "line": 36, + "column": 12 + }, + "end": { + "line": 36, + "column": 34 + } + }, + "object": { + "type": "MemberExpression", + "start": 1760, + "end": 1775, + "loc": { + "start": { + "line": 36, + "column": 12 + }, + "end": { + "line": 36, + "column": 27 + } + }, + "object": { + "type": "Identifier", + "start": 1760, + "end": 1768, + "loc": { + "start": { + "line": 36, + "column": 12 + }, + "end": { + "line": 36, + "column": 20 + }, + "identifierName": "Parallax" + }, + "name": "Parallax" + }, + "property": { + "type": "Identifier", + "start": 1769, + "end": 1775, + "loc": { + "start": { + "line": 36, + "column": 21 + }, + "end": { + "line": 36, + "column": 27 + }, + "identifierName": "logger" + }, + "name": "logger" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1776, + "end": 1782, + "loc": { + "start": { + "line": 36, + "column": 28 + }, + "end": { + "line": 36, + "column": 34 + }, + "identifierName": "prefix" + }, + "name": "prefix" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 1783, + "end": 1800, + "loc": { + "start": { + "line": 36, + "column": 35 + }, + "end": { + "line": 36, + "column": 52 + } + }, + "extra": { + "rawValue": "Parallax-Module", + "raw": "'Parallax-Module'" + }, + "value": "Parallax-Module" + } + ] + }, + "property": { + "type": "Identifier", + "start": 1802, + "end": 1806, + "loc": { + "start": { + "line": 36, + "column": 54 + }, + "end": { + "line": 36, + "column": 58 + }, + "identifierName": "warn" + }, + "name": "warn" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 1807, + "end": 1861, + "loc": { + "start": { + "line": 36, + "column": 59 + }, + "end": { + "line": 36, + "column": 113 + } + }, + "extra": { + "rawValue": "Expected a number for \"pConfig.plane\", but received:", + "raw": "'Expected a number for \"pConfig.plane\", but received:'" + }, + "value": "Expected a number for \"pConfig.plane\", but received:" + }, + { + "type": "UnaryExpression", + "start": 1863, + "end": 1883, + "loc": { + "start": { + "line": 36, + "column": 115 + }, + "end": { + "line": 36, + "column": 135 + } + }, + "operator": "typeof", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 1870, + "end": 1883, + "loc": { + "start": { + "line": 36, + "column": 122 + }, + "end": { + "line": 36, + "column": 135 + } + }, + "object": { + "type": "Identifier", + "start": 1870, + "end": 1877, + "loc": { + "start": { + "line": 36, + "column": 122 + }, + "end": { + "line": 36, + "column": 129 + }, + "identifierName": "pConfig" + }, + "name": "pConfig" + }, + "property": { + "type": "Identifier", + "start": 1878, + "end": 1883, + "loc": { + "start": { + "line": 36, + "column": 130 + }, + "end": { + "line": 36, + "column": 135 + }, + "identifierName": "plane" + }, + "name": "plane" + }, + "computed": false + }, + "extra": { + "parenthesizedArgument": false + } + }, + { + "type": "StringLiteral", + "start": 1885, + "end": 1916, + "loc": { + "start": { + "line": 36, + "column": 137 + }, + "end": { + "line": 36, + "column": 168 + } + }, + "extra": { + "rawValue": "\n Default plane of \"1\" used.", + "raw": "'\\n Default plane of \"1\" used.'" + }, + "value": "\n Default plane of \"1\" used." + } + ] + } + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 1935, + "end": 1995, + "loc": { + "start": { + "line": 37, + "column": 15 + }, + "end": { + "line": 39, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1950, + "end": 1984, + "loc": { + "start": { + "line": 38, + "column": 12 + }, + "end": { + "line": 38, + "column": 46 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1950, + "end": 1983, + "loc": { + "start": { + "line": 38, + "column": 12 + }, + "end": { + "line": 38, + "column": 45 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1950, + "end": 1967, + "loc": { + "start": { + "line": 38, + "column": 12 + }, + "end": { + "line": 38, + "column": 29 + } + }, + "object": { + "type": "MemberExpression", + "start": 1950, + "end": 1961, + "loc": { + "start": { + "line": 38, + "column": 12 + }, + "end": { + "line": 38, + "column": 23 + } + }, + "object": { + "type": "ThisExpression", + "start": 1950, + "end": 1954, + "loc": { + "start": { + "line": 38, + "column": 12 + }, + "end": { + "line": 38, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 1955, + "end": 1961, + "loc": { + "start": { + "line": 38, + "column": 17 + }, + "end": { + "line": 38, + "column": 23 + }, + "identifierName": "config" + }, + "name": "config" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1962, + "end": 1967, + "loc": { + "start": { + "line": 38, + "column": 24 + }, + "end": { + "line": 38, + "column": 29 + }, + "identifierName": "plane" + }, + "name": "plane" + }, + "computed": false + }, + "right": { + "type": "MemberExpression", + "start": 1970, + "end": 1983, + "loc": { + "start": { + "line": 38, + "column": 32 + }, + "end": { + "line": 38, + "column": 45 + } + }, + "object": { + "type": "Identifier", + "start": 1970, + "end": 1977, + "loc": { + "start": { + "line": 38, + "column": 32 + }, + "end": { + "line": 38, + "column": 39 + }, + "identifierName": "pConfig" + }, + "name": "pConfig" + }, + "property": { + "type": "Identifier", + "start": 1978, + "end": 1983, + "loc": { + "start": { + "line": 38, + "column": 40 + }, + "end": { + "line": 38, + "column": 45 + }, + "identifierName": "plane" + }, + "name": "plane" + }, + "computed": false + } + } + } + ], + "directives": [] + } + }, + { + "type": "VariableDeclaration", + "start": 2007, + "end": 2129, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 44, + "column": 9 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2013, + "end": 2129, + "loc": { + "start": { + "line": 41, + "column": 14 + }, + "end": { + "line": 44, + "column": 9 + } + }, + "id": { + "type": "Identifier", + "start": 2013, + "end": 2027, + "loc": { + "start": { + "line": 41, + "column": 14 + }, + "end": { + "line": 41, + "column": 28 + }, + "identifierName": "instanceConfig" + }, + "name": "instanceConfig" + }, + "init": { + "type": "ObjectExpression", + "start": 2030, + "end": 2129, + "loc": { + "start": { + "line": 41, + "column": 31 + }, + "end": { + "line": 44, + "column": 9 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 2045, + "end": 2075, + "loc": { + "start": { + "line": 42, + "column": 12 + }, + "end": { + "line": 42, + "column": 42 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2045, + "end": 2046, + "loc": { + "start": { + "line": 42, + "column": 12 + }, + "end": { + "line": 42, + "column": 13 + }, + "identifierName": "x" + }, + "name": "x" + }, + "value": { + "type": "MemberExpression", + "start": 2048, + "end": 2075, + "loc": { + "start": { + "line": 42, + "column": 15 + }, + "end": { + "line": 42, + "column": 42 + } + }, + "object": { + "type": "MemberExpression", + "start": 2048, + "end": 2059, + "loc": { + "start": { + "line": 42, + "column": 15 + }, + "end": { + "line": 42, + "column": 26 + } + }, + "object": { + "type": "ThisExpression", + "start": 2048, + "end": 2052, + "loc": { + "start": { + "line": 42, + "column": 15 + }, + "end": { + "line": 42, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "start": 2053, + "end": 2059, + "loc": { + "start": { + "line": 42, + "column": 20 + }, + "end": { + "line": 42, + "column": 26 + }, + "identifierName": "config" + }, + "name": "config" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2060, + "end": 2075, + "loc": { + "start": { + "line": 42, + "column": 27 + }, + "end": { + "line": 42, + "column": 42 + }, + "identifierName": "horizontalSpeed" + }, + "name": "horizontalSpeed" + }, + "computed": false + } + }, + { + "type": "ObjectProperty", + "start": 2090, + "end": 2118, + "loc": { + "start": { + "line": 43, + "column": 12 + }, + "end": { + "line": 43, + "column": 40 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2090, + "end": 2091, + "loc": { + "start": { + "line": 43, + "column": 12 + }, + "end": { + "line": 43, + "column": 13 + }, + "identifierName": "y" + }, + "name": "y" + }, + "value": { + "type": "MemberExpression", + "start": 2093, + "end": 2118, + "loc": { + "start": { + "line": 43, + "column": 15 + }, + "end": { + "line": 43, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 2093, + "end": 2104, + "loc": { + "start": { + "line": 43, + "column": 15 + }, + "end": { + "line": 43, + "column": 26 + } + }, + "object": { + "type": "ThisExpression", + "start": 2093, + "end": 2097, + "loc": { + "start": { + "line": 43, + "column": 15 + }, + "end": { + "line": 43, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "start": 2098, + "end": 2104, + "loc": { + "start": { + "line": 43, + "column": 20 + }, + "end": { + "line": 43, + "column": 26 + }, + "identifierName": "config" + }, + "name": "config" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2105, + "end": 2118, + "loc": { + "start": { + "line": 43, + "column": 27 + }, + "end": { + "line": 43, + "column": 40 + }, + "identifierName": "verticalSpeed" + }, + "name": "verticalSpeed" + }, + "computed": false + } + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "IfStatement", + "start": 2141, + "end": 2369, + "loc": { + "start": { + "line": 46, + "column": 8 + }, + "end": { + "line": 51, + "column": 9 + } + }, + "test": { + "type": "CallExpression", + "start": 2145, + "end": 2177, + "loc": { + "start": { + "line": 46, + "column": 12 + }, + "end": { + "line": 46, + "column": 44 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2145, + "end": 2158, + "loc": { + "start": { + "line": 46, + "column": 12 + }, + "end": { + "line": 46, + "column": 25 + } + }, + "object": { + "type": "Identifier", + "start": 2145, + "end": 2150, + "loc": { + "start": { + "line": 46, + "column": 12 + }, + "end": { + "line": 46, + "column": 17 + }, + "identifierName": "Array" + }, + "name": "Array" + }, + "property": { + "type": "Identifier", + "start": 2151, + "end": 2158, + "loc": { + "start": { + "line": 46, + "column": 18 + }, + "end": { + "line": 46, + "column": 25 + }, + "identifierName": "isArray" + }, + "name": "isArray" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 2159, + "end": 2176, + "loc": { + "start": { + "line": 46, + "column": 26 + }, + "end": { + "line": 46, + "column": 43 + } + }, + "object": { + "type": "Identifier", + "start": 2159, + "end": 2166, + "loc": { + "start": { + "line": 46, + "column": 26 + }, + "end": { + "line": 46, + "column": 33 + }, + "identifierName": "pConfig" + }, + "name": "pConfig" + }, + "property": { + "type": "Identifier", + "start": 2167, + "end": 2176, + "loc": { + "start": { + "line": 46, + "column": 34 + }, + "end": { + "line": 46, + "column": 43 + }, + "identifierName": "instances" + }, + "name": "instances" + }, + "computed": false + } + ] + }, + "consequent": { + "type": "BlockStatement", + "start": 2179, + "end": 2369, + "loc": { + "start": { + "line": 46, + "column": 46 + }, + "end": { + "line": 51, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2194, + "end": 2358, + "loc": { + "start": { + "line": 47, + "column": 12 + }, + "end": { + "line": 50, + "column": 15 + } + }, + "expression": { + "type": "CallExpression", + "start": 2194, + "end": 2357, + "loc": { + "start": { + "line": 47, + "column": 12 + }, + "end": { + "line": 50, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2194, + "end": 2219, + "loc": { + "start": { + "line": 47, + "column": 12 + }, + "end": { + "line": 47, + "column": 37 + } + }, + "object": { + "type": "MemberExpression", + "start": 2194, + "end": 2211, + "loc": { + "start": { + "line": 47, + "column": 12 + }, + "end": { + "line": 47, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 2194, + "end": 2201, + "loc": { + "start": { + "line": 47, + "column": 12 + }, + "end": { + "line": 47, + "column": 19 + }, + "identifierName": "pConfig" + }, + "name": "pConfig" + }, + "property": { + "type": "Identifier", + "start": 2202, + "end": 2211, + "loc": { + "start": { + "line": 47, + "column": 20 + }, + "end": { + "line": 47, + "column": 29 + }, + "identifierName": "instances" + }, + "name": "instances" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2212, + "end": 2219, + "loc": { + "start": { + "line": 47, + "column": 30 + }, + "end": { + "line": 47, + "column": 37 + }, + "identifierName": "forEach" + }, + "name": "forEach" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 2220, + "end": 2356, + "loc": { + "start": { + "line": 47, + "column": 38 + }, + "end": { + "line": 50, + "column": 13 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2220, + "end": 2229, + "loc": { + "start": { + "line": 47, + "column": 38 + }, + "end": { + "line": 47, + "column": 47 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + } + ], + "body": { + "type": "BlockStatement", + "start": 2233, + "end": 2356, + "loc": { + "start": { + "line": 47, + "column": 51 + }, + "end": { + "line": 50, + "column": 13 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2252, + "end": 2288, + "loc": { + "start": { + "line": 48, + "column": 16 + }, + "end": { + "line": 48, + "column": 52 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2252, + "end": 2287, + "loc": { + "start": { + "line": 48, + "column": 16 + }, + "end": { + "line": 48, + "column": 51 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 2252, + "end": 2267, + "loc": { + "start": { + "line": 48, + "column": 16 + }, + "end": { + "line": 48, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 2252, + "end": 2261, + "loc": { + "start": { + "line": 48, + "column": 16 + }, + "end": { + "line": 48, + "column": 25 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 2262, + "end": 2267, + "loc": { + "start": { + "line": 48, + "column": 26 + }, + "end": { + "line": 48, + "column": 31 + }, + "identifierName": "plane" + }, + "name": "plane" + }, + "computed": false + }, + "right": { + "type": "MemberExpression", + "start": 2270, + "end": 2287, + "loc": { + "start": { + "line": 48, + "column": 34 + }, + "end": { + "line": 48, + "column": 51 + } + }, + "object": { + "type": "MemberExpression", + "start": 2270, + "end": 2281, + "loc": { + "start": { + "line": 48, + "column": 34 + }, + "end": { + "line": 48, + "column": 45 + } + }, + "object": { + "type": "ThisExpression", + "start": 2270, + "end": 2274, + "loc": { + "start": { + "line": 48, + "column": 34 + }, + "end": { + "line": 48, + "column": 38 + } + } + }, + "property": { + "type": "Identifier", + "start": 2275, + "end": 2281, + "loc": { + "start": { + "line": 48, + "column": 39 + }, + "end": { + "line": 48, + "column": 45 + }, + "identifierName": "config" + }, + "name": "config" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2282, + "end": 2287, + "loc": { + "start": { + "line": 48, + "column": 46 + }, + "end": { + "line": 48, + "column": 51 + }, + "identifierName": "plane" + }, + "name": "plane" + }, + "computed": false + } + } + }, + { + "type": "ExpressionStatement", + "start": 2306, + "end": 2341, + "loc": { + "start": { + "line": 49, + "column": 16 + }, + "end": { + "line": 49, + "column": 51 + } + }, + "expression": { + "type": "CallExpression", + "start": 2306, + "end": 2341, + "loc": { + "start": { + "line": 49, + "column": 16 + }, + "end": { + "line": 49, + "column": 51 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2306, + "end": 2314, + "loc": { + "start": { + "line": 49, + "column": 16 + }, + "end": { + "line": 49, + "column": 24 + } + }, + "object": { + "type": "ThisExpression", + "start": 2306, + "end": 2310, + "loc": { + "start": { + "line": 49, + "column": 16 + }, + "end": { + "line": 49, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "start": 2311, + "end": 2314, + "loc": { + "start": { + "line": 49, + "column": 21 + }, + "end": { + "line": 49, + "column": 24 + }, + "identifierName": "add" + }, + "name": "add" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 2315, + "end": 2324, + "loc": { + "start": { + "line": 49, + "column": 25 + }, + "end": { + "line": 49, + "column": 34 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + { + "type": "Identifier", + "start": 2326, + "end": 2340, + "loc": { + "start": { + "line": 49, + "column": 36 + }, + "end": { + "line": 49, + "column": 50 + }, + "identifierName": "instanceConfig" + }, + "name": "instanceConfig" + } + ] + } + } + ], + "directives": [] + } + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "IfStatement", + "start": 2381, + "end": 2701, + "loc": { + "start": { + "line": 53, + "column": 8 + }, + "end": { + "line": 60, + "column": 9 + } + }, + "test": { + "type": "CallExpression", + "start": 2385, + "end": 2419, + "loc": { + "start": { + "line": 53, + "column": 12 + }, + "end": { + "line": 53, + "column": 46 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2385, + "end": 2398, + "loc": { + "start": { + "line": 53, + "column": 12 + }, + "end": { + "line": 53, + "column": 25 + } + }, + "object": { + "type": "Identifier", + "start": 2385, + "end": 2390, + "loc": { + "start": { + "line": 53, + "column": 12 + }, + "end": { + "line": 53, + "column": 17 + }, + "identifierName": "Array" + }, + "name": "Array" + }, + "property": { + "type": "Identifier", + "start": 2391, + "end": 2398, + "loc": { + "start": { + "line": 53, + "column": 18 + }, + "end": { + "line": 53, + "column": 25 + }, + "identifierName": "isArray" + }, + "name": "isArray" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 2399, + "end": 2418, + "loc": { + "start": { + "line": 53, + "column": 26 + }, + "end": { + "line": 53, + "column": 45 + } + }, + "object": { + "type": "Identifier", + "start": 2399, + "end": 2406, + "loc": { + "start": { + "line": 53, + "column": 26 + }, + "end": { + "line": 53, + "column": 33 + }, + "identifierName": "pConfig" + }, + "name": "pConfig" + }, + "property": { + "type": "Identifier", + "start": 2407, + "end": 2418, + "loc": { + "start": { + "line": 53, + "column": 34 + }, + "end": { + "line": 53, + "column": 45 + }, + "identifierName": "backgrounds" + }, + "name": "backgrounds" + }, + "computed": false + } + ] + }, + "consequent": { + "type": "BlockStatement", + "start": 2421, + "end": 2701, + "loc": { + "start": { + "line": 53, + "column": 48 + }, + "end": { + "line": 60, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2483, + "end": 2510, + "loc": { + "start": { + "line": 55, + "column": 12 + }, + "end": { + "line": 55, + "column": 39 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2483, + "end": 2509, + "loc": { + "start": { + "line": 55, + "column": 12 + }, + "end": { + "line": 55, + "column": 38 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 2483, + "end": 2502, + "loc": { + "start": { + "line": 55, + "column": 12 + }, + "end": { + "line": 55, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 2483, + "end": 2497, + "loc": { + "start": { + "line": 55, + "column": 12 + }, + "end": { + "line": 55, + "column": 26 + }, + "identifierName": "instanceConfig" + }, + "name": "instanceConfig", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 2498, + "end": 2502, + "loc": { + "start": { + "line": 55, + "column": 27 + }, + "end": { + "line": 55, + "column": 31 + }, + "identifierName": "loop" + }, + "name": "loop" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "BooleanLiteral", + "start": 2505, + "end": 2509, + "loc": { + "start": { + "line": 55, + "column": 34 + }, + "end": { + "line": 55, + "column": 38 + } + }, + "value": true + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Backgrounds automatically loop", + "start": 2436, + "end": 2469, + "loc": { + "start": { + "line": 54, + "column": 12 + }, + "end": { + "line": 54, + "column": 45 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 2524, + "end": 2690, + "loc": { + "start": { + "line": 56, + "column": 12 + }, + "end": { + "line": 59, + "column": 15 + } + }, + "expression": { + "type": "CallExpression", + "start": 2524, + "end": 2689, + "loc": { + "start": { + "line": 56, + "column": 12 + }, + "end": { + "line": 59, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2524, + "end": 2551, + "loc": { + "start": { + "line": 56, + "column": 12 + }, + "end": { + "line": 56, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 2524, + "end": 2543, + "loc": { + "start": { + "line": 56, + "column": 12 + }, + "end": { + "line": 56, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 2524, + "end": 2531, + "loc": { + "start": { + "line": 56, + "column": 12 + }, + "end": { + "line": 56, + "column": 19 + }, + "identifierName": "pConfig" + }, + "name": "pConfig" + }, + "property": { + "type": "Identifier", + "start": 2532, + "end": 2543, + "loc": { + "start": { + "line": 56, + "column": 20 + }, + "end": { + "line": 56, + "column": 31 + }, + "identifierName": "backgrounds" + }, + "name": "backgrounds" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2544, + "end": 2551, + "loc": { + "start": { + "line": 56, + "column": 32 + }, + "end": { + "line": 56, + "column": 39 + }, + "identifierName": "forEach" + }, + "name": "forEach" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 2552, + "end": 2688, + "loc": { + "start": { + "line": 56, + "column": 40 + }, + "end": { + "line": 59, + "column": 13 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2552, + "end": 2561, + "loc": { + "start": { + "line": 56, + "column": 40 + }, + "end": { + "line": 56, + "column": 49 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + } + ], + "body": { + "type": "BlockStatement", + "start": 2565, + "end": 2688, + "loc": { + "start": { + "line": 56, + "column": 53 + }, + "end": { + "line": 59, + "column": 13 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2584, + "end": 2620, + "loc": { + "start": { + "line": 57, + "column": 16 + }, + "end": { + "line": 57, + "column": 52 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2584, + "end": 2619, + "loc": { + "start": { + "line": 57, + "column": 16 + }, + "end": { + "line": 57, + "column": 51 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 2584, + "end": 2599, + "loc": { + "start": { + "line": 57, + "column": 16 + }, + "end": { + "line": 57, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 2584, + "end": 2593, + "loc": { + "start": { + "line": 57, + "column": 16 + }, + "end": { + "line": 57, + "column": 25 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 2594, + "end": 2599, + "loc": { + "start": { + "line": 57, + "column": 26 + }, + "end": { + "line": 57, + "column": 31 + }, + "identifierName": "plane" + }, + "name": "plane" + }, + "computed": false + }, + "right": { + "type": "MemberExpression", + "start": 2602, + "end": 2619, + "loc": { + "start": { + "line": 57, + "column": 34 + }, + "end": { + "line": 57, + "column": 51 + } + }, + "object": { + "type": "MemberExpression", + "start": 2602, + "end": 2613, + "loc": { + "start": { + "line": 57, + "column": 34 + }, + "end": { + "line": 57, + "column": 45 + } + }, + "object": { + "type": "ThisExpression", + "start": 2602, + "end": 2606, + "loc": { + "start": { + "line": 57, + "column": 34 + }, + "end": { + "line": 57, + "column": 38 + } + } + }, + "property": { + "type": "Identifier", + "start": 2607, + "end": 2613, + "loc": { + "start": { + "line": 57, + "column": 39 + }, + "end": { + "line": 57, + "column": 45 + }, + "identifierName": "config" + }, + "name": "config" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2614, + "end": 2619, + "loc": { + "start": { + "line": 57, + "column": 46 + }, + "end": { + "line": 57, + "column": 51 + }, + "identifierName": "plane" + }, + "name": "plane" + }, + "computed": false + } + } + }, + { + "type": "ExpressionStatement", + "start": 2638, + "end": 2673, + "loc": { + "start": { + "line": 58, + "column": 16 + }, + "end": { + "line": 58, + "column": 51 + } + }, + "expression": { + "type": "CallExpression", + "start": 2638, + "end": 2673, + "loc": { + "start": { + "line": 58, + "column": 16 + }, + "end": { + "line": 58, + "column": 51 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2638, + "end": 2646, + "loc": { + "start": { + "line": 58, + "column": 16 + }, + "end": { + "line": 58, + "column": 24 + } + }, + "object": { + "type": "ThisExpression", + "start": 2638, + "end": 2642, + "loc": { + "start": { + "line": 58, + "column": 16 + }, + "end": { + "line": 58, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "start": 2643, + "end": 2646, + "loc": { + "start": { + "line": 58, + "column": 21 + }, + "end": { + "line": 58, + "column": 24 + }, + "identifierName": "add" + }, + "name": "add" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 2647, + "end": 2656, + "loc": { + "start": { + "line": 58, + "column": 25 + }, + "end": { + "line": 58, + "column": 34 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + { + "type": "Identifier", + "start": 2658, + "end": 2672, + "loc": { + "start": { + "line": 58, + "column": 36 + }, + "end": { + "line": 58, + "column": 50 + }, + "identifierName": "instanceConfig" + }, + "name": "instanceConfig" + } + ] + } + } + ], + "directives": [] + } + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Updates the configuration speed of the layer.\r\n * @param {Object} pConfig - The speed configuration of the parallax layer.\r\n * @prop {number} pConfig.horizontalSpeed - The horizontal speed of the layer.\r\n * @prop {number} pConfig.verticalSpeed - The vertical speed of the layer. \r\n * @param {boolean} pUpdateLayerConfigOnly - If only to update the layer config and not the instance config.\r\n ", + "start": 2714, + "end": 3140, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 68, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 3146, + "end": 3373, + "loc": { + "start": { + "line": 69, + "column": 4 + }, + "end": { + "line": 72, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3146, + "end": 3163, + "loc": { + "start": { + "line": 69, + "column": 4 + }, + "end": { + "line": 69, + "column": 21 + }, + "identifierName": "updateConfigSpeed" + }, + "name": "updateConfigSpeed", + "leadingComments": null + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3164, + "end": 3171, + "loc": { + "start": { + "line": 69, + "column": 22 + }, + "end": { + "line": 69, + "column": 29 + }, + "identifierName": "pConfig" + }, + "name": "pConfig" + }, + { + "type": "Identifier", + "start": 3173, + "end": 3195, + "loc": { + "start": { + "line": 69, + "column": 31 + }, + "end": { + "line": 69, + "column": 53 + }, + "identifierName": "pUpdateLayerConfigOnly" + }, + "name": "pUpdateLayerConfigOnly" + } + ], + "body": { + "type": "BlockStatement", + "start": 3197, + "end": 3373, + "loc": { + "start": { + "line": 69, + "column": 55 + }, + "end": { + "line": 72, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 3208, + "end": 3284, + "loc": { + "start": { + "line": 70, + "column": 8 + }, + "end": { + "line": 70, + "column": 84 + } + }, + "expression": { + "type": "CallExpression", + "start": 3208, + "end": 3283, + "loc": { + "start": { + "line": 70, + "column": 8 + }, + "end": { + "line": 70, + "column": 83 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3208, + "end": 3234, + "loc": { + "start": { + "line": 70, + "column": 8 + }, + "end": { + "line": 70, + "column": 34 + } + }, + "object": { + "type": "ThisExpression", + "start": 3208, + "end": 3212, + "loc": { + "start": { + "line": 70, + "column": 8 + }, + "end": { + "line": 70, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 3213, + "end": 3234, + "loc": { + "start": { + "line": 70, + "column": 13 + }, + "end": { + "line": 70, + "column": 34 + }, + "identifierName": "updateHorizontalSpeed" + }, + "name": "updateHorizontalSpeed" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 3235, + "end": 3258, + "loc": { + "start": { + "line": 70, + "column": 35 + }, + "end": { + "line": 70, + "column": 58 + } + }, + "object": { + "type": "Identifier", + "start": 3235, + "end": 3242, + "loc": { + "start": { + "line": 70, + "column": 35 + }, + "end": { + "line": 70, + "column": 42 + }, + "identifierName": "pConfig" + }, + "name": "pConfig" + }, + "property": { + "type": "Identifier", + "start": 3243, + "end": 3258, + "loc": { + "start": { + "line": 70, + "column": 43 + }, + "end": { + "line": 70, + "column": 58 + }, + "identifierName": "horizontalSpeed" + }, + "name": "horizontalSpeed" + }, + "computed": false + }, + { + "type": "Identifier", + "start": 3260, + "end": 3282, + "loc": { + "start": { + "line": 70, + "column": 60 + }, + "end": { + "line": 70, + "column": 82 + }, + "identifierName": "pUpdateLayerConfigOnly" + }, + "name": "pUpdateLayerConfigOnly" + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 3294, + "end": 3366, + "loc": { + "start": { + "line": 71, + "column": 8 + }, + "end": { + "line": 71, + "column": 80 + } + }, + "expression": { + "type": "CallExpression", + "start": 3294, + "end": 3365, + "loc": { + "start": { + "line": 71, + "column": 8 + }, + "end": { + "line": 71, + "column": 79 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3294, + "end": 3318, + "loc": { + "start": { + "line": 71, + "column": 8 + }, + "end": { + "line": 71, + "column": 32 + } + }, + "object": { + "type": "ThisExpression", + "start": 3294, + "end": 3298, + "loc": { + "start": { + "line": 71, + "column": 8 + }, + "end": { + "line": 71, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 3299, + "end": 3318, + "loc": { + "start": { + "line": 71, + "column": 13 + }, + "end": { + "line": 71, + "column": 32 + }, + "identifierName": "updateVerticalSpeed" + }, + "name": "updateVerticalSpeed" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 3319, + "end": 3340, + "loc": { + "start": { + "line": 71, + "column": 33 + }, + "end": { + "line": 71, + "column": 54 + } + }, + "object": { + "type": "Identifier", + "start": 3319, + "end": 3326, + "loc": { + "start": { + "line": 71, + "column": 33 + }, + "end": { + "line": 71, + "column": 40 + }, + "identifierName": "pConfig" + }, + "name": "pConfig" + }, + "property": { + "type": "Identifier", + "start": 3327, + "end": 3340, + "loc": { + "start": { + "line": 71, + "column": 41 + }, + "end": { + "line": 71, + "column": 54 + }, + "identifierName": "verticalSpeed" + }, + "name": "verticalSpeed" + }, + "computed": false + }, + { + "type": "Identifier", + "start": 3342, + "end": 3364, + "loc": { + "start": { + "line": 71, + "column": 56 + }, + "end": { + "line": 71, + "column": 78 + }, + "identifierName": "pUpdateLayerConfigOnly" + }, + "name": "pUpdateLayerConfigOnly" + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Updates the configuration speed of the layer.\r\n * @param {Object} pConfig - The speed configuration of the parallax layer.\r\n * @prop {number} pConfig.horizontalSpeed - The horizontal speed of the layer.\r\n * @prop {number} pConfig.verticalSpeed - The vertical speed of the layer. \r\n * @param {boolean} pUpdateLayerConfigOnly - If only to update the layer config and not the instance config.\r\n ", + "start": 2714, + "end": 3140, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 68, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Updates the horizontal speed of this layer.\r\n * @param {number} pHorizontalSpeed - The new horizontal speed.\r\n * @param {boolean} pUpdateLayerConfigOnly - If only to update the layer config and not the instance config.\r\n ", + "start": 3379, + "end": 3626, + "loc": { + "start": { + "line": 73, + "column": 4 + }, + "end": { + "line": 77, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 3632, + "end": 4522, + "loc": { + "start": { + "line": 78, + "column": 4 + }, + "end": { + "line": 101, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3632, + "end": 3653, + "loc": { + "start": { + "line": 78, + "column": 4 + }, + "end": { + "line": 78, + "column": 25 + }, + "identifierName": "updateHorizontalSpeed" + }, + "name": "updateHorizontalSpeed", + "leadingComments": null + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3654, + "end": 3670, + "loc": { + "start": { + "line": 78, + "column": 26 + }, + "end": { + "line": 78, + "column": 42 + }, + "identifierName": "pHorizontalSpeed" + }, + "name": "pHorizontalSpeed" + }, + { + "type": "Identifier", + "start": 3672, + "end": 3694, + "loc": { + "start": { + "line": 78, + "column": 44 + }, + "end": { + "line": 78, + "column": 66 + }, + "identifierName": "pUpdateLayerConfigOnly" + }, + "name": "pUpdateLayerConfigOnly" + } + ], + "body": { + "type": "BlockStatement", + "start": 3696, + "end": 4522, + "loc": { + "start": { + "line": 78, + "column": 68 + }, + "end": { + "line": 101, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 3707, + "end": 3790, + "loc": { + "start": { + "line": 79, + "column": 8 + }, + "end": { + "line": 79, + "column": 91 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 3713, + "end": 3789, + "loc": { + "start": { + "line": 79, + "column": 14 + }, + "end": { + "line": 79, + "column": 90 + } + }, + "id": { + "type": "Identifier", + "start": 3713, + "end": 3730, + "loc": { + "start": { + "line": 79, + "column": 14 + }, + "end": { + "line": 79, + "column": 31 + }, + "identifierName": "inValidHorizontal" + }, + "name": "inValidHorizontal" + }, + "init": { + "type": "LogicalExpression", + "start": 3733, + "end": 3789, + "loc": { + "start": { + "line": 79, + "column": 34 + }, + "end": { + "line": 79, + "column": 90 + } + }, + "left": { + "type": "Identifier", + "start": 3733, + "end": 3749, + "loc": { + "start": { + "line": 79, + "column": 34 + }, + "end": { + "line": 79, + "column": 50 + }, + "identifierName": "pHorizontalSpeed" + }, + "name": "pHorizontalSpeed" + }, + "operator": "&&", + "right": { + "type": "BinaryExpression", + "start": 3753, + "end": 3789, + "loc": { + "start": { + "line": 79, + "column": 54 + }, + "end": { + "line": 79, + "column": 90 + } + }, + "left": { + "type": "UnaryExpression", + "start": 3753, + "end": 3776, + "loc": { + "start": { + "line": 79, + "column": 54 + }, + "end": { + "line": 79, + "column": 77 + } + }, + "operator": "typeof", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 3760, + "end": 3776, + "loc": { + "start": { + "line": 79, + "column": 61 + }, + "end": { + "line": 79, + "column": 77 + }, + "identifierName": "pHorizontalSpeed" + }, + "name": "pHorizontalSpeed" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "operator": "!==", + "right": { + "type": "StringLiteral", + "start": 3781, + "end": 3789, + "loc": { + "start": { + "line": 79, + "column": 82 + }, + "end": { + "line": 79, + "column": 90 + } + }, + "extra": { + "rawValue": "number", + "raw": "'number'" + }, + "value": "number" + } + } + } + } + ], + "kind": "const" + }, + { + "type": "IfStatement", + "start": 3802, + "end": 4002, + "loc": { + "start": { + "line": 81, + "column": 8 + }, + "end": { + "line": 84, + "column": 9 + } + }, + "test": { + "type": "Identifier", + "start": 3806, + "end": 3823, + "loc": { + "start": { + "line": 81, + "column": 12 + }, + "end": { + "line": 81, + "column": 29 + }, + "identifierName": "inValidHorizontal" + }, + "name": "inValidHorizontal" + }, + "consequent": { + "type": "BlockStatement", + "start": 3825, + "end": 4002, + "loc": { + "start": { + "line": 81, + "column": 31 + }, + "end": { + "line": 84, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 3840, + "end": 3971, + "loc": { + "start": { + "line": 82, + "column": 12 + }, + "end": { + "line": 82, + "column": 143 + } + }, + "expression": { + "type": "CallExpression", + "start": 3840, + "end": 3970, + "loc": { + "start": { + "line": 82, + "column": 12 + }, + "end": { + "line": 82, + "column": 142 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3840, + "end": 3886, + "loc": { + "start": { + "line": 82, + "column": 12 + }, + "end": { + "line": 82, + "column": 58 + } + }, + "object": { + "type": "CallExpression", + "start": 3840, + "end": 3881, + "loc": { + "start": { + "line": 82, + "column": 12 + }, + "end": { + "line": 82, + "column": 53 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3840, + "end": 3862, + "loc": { + "start": { + "line": 82, + "column": 12 + }, + "end": { + "line": 82, + "column": 34 + } + }, + "object": { + "type": "MemberExpression", + "start": 3840, + "end": 3855, + "loc": { + "start": { + "line": 82, + "column": 12 + }, + "end": { + "line": 82, + "column": 27 + } + }, + "object": { + "type": "Identifier", + "start": 3840, + "end": 3848, + "loc": { + "start": { + "line": 82, + "column": 12 + }, + "end": { + "line": 82, + "column": 20 + }, + "identifierName": "Parallax" + }, + "name": "Parallax" + }, + "property": { + "type": "Identifier", + "start": 3849, + "end": 3855, + "loc": { + "start": { + "line": 82, + "column": 21 + }, + "end": { + "line": 82, + "column": 27 + }, + "identifierName": "logger" + }, + "name": "logger" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3856, + "end": 3862, + "loc": { + "start": { + "line": 82, + "column": 28 + }, + "end": { + "line": 82, + "column": 34 + }, + "identifierName": "prefix" + }, + "name": "prefix" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 3863, + "end": 3880, + "loc": { + "start": { + "line": 82, + "column": 35 + }, + "end": { + "line": 82, + "column": 52 + } + }, + "extra": { + "rawValue": "Parallax-Module", + "raw": "'Parallax-Module'" + }, + "value": "Parallax-Module" + } + ] + }, + "property": { + "type": "Identifier", + "start": 3882, + "end": 3886, + "loc": { + "start": { + "line": 82, + "column": 54 + }, + "end": { + "line": 82, + "column": 58 + }, + "identifierName": "warn" + }, + "name": "warn" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 3887, + "end": 3944, + "loc": { + "start": { + "line": 82, + "column": 59 + }, + "end": { + "line": 82, + "column": 116 + } + }, + "extra": { + "rawValue": "Expected a number for \"pHorizontalSpeed\", but received:", + "raw": "'Expected a number for \"pHorizontalSpeed\", but received:'" + }, + "value": "Expected a number for \"pHorizontalSpeed\", but received:" + }, + { + "type": "UnaryExpression", + "start": 3946, + "end": 3969, + "loc": { + "start": { + "line": 82, + "column": 118 + }, + "end": { + "line": 82, + "column": 141 + } + }, + "operator": "typeof", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 3953, + "end": 3969, + "loc": { + "start": { + "line": 82, + "column": 125 + }, + "end": { + "line": 82, + "column": 141 + }, + "identifierName": "pHorizontalSpeed" + }, + "name": "pHorizontalSpeed" + }, + "extra": { + "parenthesizedArgument": false + } + } + ] + } + }, + { + "type": "ReturnStatement", + "start": 3985, + "end": 3991, + "loc": { + "start": { + "line": 83, + "column": 12 + }, + "end": { + "line": 83, + "column": 18 + } + }, + "argument": null + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "ExpressionStatement", + "start": 4014, + "end": 4061, + "loc": { + "start": { + "line": 86, + "column": 8 + }, + "end": { + "line": 86, + "column": 55 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4014, + "end": 4060, + "loc": { + "start": { + "line": 86, + "column": 8 + }, + "end": { + "line": 86, + "column": 54 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 4014, + "end": 4041, + "loc": { + "start": { + "line": 86, + "column": 8 + }, + "end": { + "line": 86, + "column": 35 + } + }, + "object": { + "type": "MemberExpression", + "start": 4014, + "end": 4025, + "loc": { + "start": { + "line": 86, + "column": 8 + }, + "end": { + "line": 86, + "column": 19 + } + }, + "object": { + "type": "ThisExpression", + "start": 4014, + "end": 4018, + "loc": { + "start": { + "line": 86, + "column": 8 + }, + "end": { + "line": 86, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 4019, + "end": 4025, + "loc": { + "start": { + "line": 86, + "column": 13 + }, + "end": { + "line": 86, + "column": 19 + }, + "identifierName": "config" + }, + "name": "config" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4026, + "end": 4041, + "loc": { + "start": { + "line": 86, + "column": 20 + }, + "end": { + "line": 86, + "column": 35 + }, + "identifierName": "horizontalSpeed" + }, + "name": "horizontalSpeed" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 4044, + "end": 4060, + "loc": { + "start": { + "line": 86, + "column": 38 + }, + "end": { + "line": 86, + "column": 54 + }, + "identifierName": "pHorizontalSpeed" + }, + "name": "pHorizontalSpeed" + } + } + }, + { + "type": "IfStatement", + "start": 4073, + "end": 4515, + "loc": { + "start": { + "line": 88, + "column": 8 + }, + "end": { + "line": 100, + "column": 9 + } + }, + "test": { + "type": "UnaryExpression", + "start": 4077, + "end": 4100, + "loc": { + "start": { + "line": 88, + "column": 12 + }, + "end": { + "line": 88, + "column": 35 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 4078, + "end": 4100, + "loc": { + "start": { + "line": 88, + "column": 13 + }, + "end": { + "line": 88, + "column": 35 + }, + "identifierName": "pUpdateLayerConfigOnly" + }, + "name": "pUpdateLayerConfigOnly" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 4102, + "end": 4515, + "loc": { + "start": { + "line": 88, + "column": 37 + }, + "end": { + "line": 100, + "column": 9 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 4117, + "end": 4292, + "loc": { + "start": { + "line": 89, + "column": 12 + }, + "end": { + "line": 92, + "column": 13 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 4123, + "end": 4292, + "loc": { + "start": { + "line": 89, + "column": 18 + }, + "end": { + "line": 92, + "column": 13 + } + }, + "id": { + "type": "Identifier", + "start": 4123, + "end": 4129, + "loc": { + "start": { + "line": 89, + "column": 18 + }, + "end": { + "line": 89, + "column": 24 + }, + "identifierName": "update" + }, + "name": "update" + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 4132, + "end": 4292, + "loc": { + "start": { + "line": 89, + "column": 27 + }, + "end": { + "line": 92, + "column": 13 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 4133, + "end": 4142, + "loc": { + "start": { + "line": 89, + "column": 28 + }, + "end": { + "line": 89, + "column": 37 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + } + ], + "body": { + "type": "BlockStatement", + "start": 4147, + "end": 4292, + "loc": { + "start": { + "line": 89, + "column": 42 + }, + "end": { + "line": 92, + "column": 13 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 4166, + "end": 4227, + "loc": { + "start": { + "line": 90, + "column": 16 + }, + "end": { + "line": 90, + "column": 77 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 4172, + "end": 4226, + "loc": { + "start": { + "line": 90, + "column": 22 + }, + "end": { + "line": 90, + "column": 76 + } + }, + "id": { + "type": "Identifier", + "start": 4172, + "end": 4184, + "loc": { + "start": { + "line": 90, + "column": 22 + }, + "end": { + "line": 90, + "column": 34 + }, + "identifierName": "parallaxInfo" + }, + "name": "parallaxInfo" + }, + "init": { + "type": "CallExpression", + "start": 4187, + "end": 4226, + "loc": { + "start": { + "line": 90, + "column": 37 + }, + "end": { + "line": 90, + "column": 76 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4187, + "end": 4215, + "loc": { + "start": { + "line": 90, + "column": 37 + }, + "end": { + "line": 90, + "column": 65 + } + }, + "object": { + "type": "MemberExpression", + "start": 4187, + "end": 4211, + "loc": { + "start": { + "line": 90, + "column": 37 + }, + "end": { + "line": 90, + "column": 61 + } + }, + "object": { + "type": "Identifier", + "start": 4187, + "end": 4195, + "loc": { + "start": { + "line": 90, + "column": 37 + }, + "end": { + "line": 90, + "column": 45 + }, + "identifierName": "Parallax" + }, + "name": "Parallax" + }, + "property": { + "type": "Identifier", + "start": 4196, + "end": 4211, + "loc": { + "start": { + "line": 90, + "column": 46 + }, + "end": { + "line": 90, + "column": 61 + }, + "identifierName": "instanceWeakMap" + }, + "name": "instanceWeakMap" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4212, + "end": 4215, + "loc": { + "start": { + "line": 90, + "column": 62 + }, + "end": { + "line": 90, + "column": 65 + }, + "identifierName": "get" + }, + "name": "get" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4216, + "end": 4225, + "loc": { + "start": { + "line": 90, + "column": 66 + }, + "end": { + "line": 90, + "column": 75 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "ExpressionStatement", + "start": 4245, + "end": 4277, + "loc": { + "start": { + "line": 91, + "column": 16 + }, + "end": { + "line": 91, + "column": 48 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4245, + "end": 4276, + "loc": { + "start": { + "line": 91, + "column": 16 + }, + "end": { + "line": 91, + "column": 47 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 4245, + "end": 4259, + "loc": { + "start": { + "line": 91, + "column": 16 + }, + "end": { + "line": 91, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 4245, + "end": 4257, + "loc": { + "start": { + "line": 91, + "column": 16 + }, + "end": { + "line": 91, + "column": 28 + }, + "identifierName": "parallaxInfo" + }, + "name": "parallaxInfo" + }, + "property": { + "type": "Identifier", + "start": 4258, + "end": 4259, + "loc": { + "start": { + "line": 91, + "column": 29 + }, + "end": { + "line": 91, + "column": 30 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 4262, + "end": 4276, + "loc": { + "start": { + "line": 91, + "column": 33 + }, + "end": { + "line": 91, + "column": 47 + }, + "identifierName": "pVerticalSpeed" + }, + "name": "pVerticalSpeed" + } + } + } + ], + "directives": [] + } + } + } + ], + "kind": "const" + }, + { + "type": "ExpressionStatement", + "start": 4308, + "end": 4398, + "loc": { + "start": { + "line": 94, + "column": 12 + }, + "end": { + "line": 96, + "column": 15 + } + }, + "expression": { + "type": "CallExpression", + "start": 4308, + "end": 4397, + "loc": { + "start": { + "line": 94, + "column": 12 + }, + "end": { + "line": 96, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4308, + "end": 4330, + "loc": { + "start": { + "line": 94, + "column": 12 + }, + "end": { + "line": 94, + "column": 34 + } + }, + "object": { + "type": "MemberExpression", + "start": 4308, + "end": 4322, + "loc": { + "start": { + "line": 94, + "column": 12 + }, + "end": { + "line": 94, + "column": 26 + } + }, + "object": { + "type": "ThisExpression", + "start": 4308, + "end": 4312, + "loc": { + "start": { + "line": 94, + "column": 12 + }, + "end": { + "line": 94, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 4313, + "end": 4322, + "loc": { + "start": { + "line": 94, + "column": 17 + }, + "end": { + "line": 94, + "column": 26 + }, + "identifierName": "instances" + }, + "name": "instances" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4323, + "end": 4330, + "loc": { + "start": { + "line": 94, + "column": 27 + }, + "end": { + "line": 94, + "column": 34 + }, + "identifierName": "forEach" + }, + "name": "forEach" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 4331, + "end": 4396, + "loc": { + "start": { + "line": 94, + "column": 35 + }, + "end": { + "line": 96, + "column": 13 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 4331, + "end": 4340, + "loc": { + "start": { + "line": 94, + "column": 35 + }, + "end": { + "line": 94, + "column": 44 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + } + ], + "body": { + "type": "BlockStatement", + "start": 4344, + "end": 4396, + "loc": { + "start": { + "line": 94, + "column": 48 + }, + "end": { + "line": 96, + "column": 13 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 4363, + "end": 4381, + "loc": { + "start": { + "line": 95, + "column": 16 + }, + "end": { + "line": 95, + "column": 34 + } + }, + "expression": { + "type": "CallExpression", + "start": 4363, + "end": 4380, + "loc": { + "start": { + "line": 95, + "column": 16 + }, + "end": { + "line": 95, + "column": 33 + } + }, + "callee": { + "type": "Identifier", + "start": 4363, + "end": 4369, + "loc": { + "start": { + "line": 95, + "column": 16 + }, + "end": { + "line": 95, + "column": 22 + }, + "identifierName": "update" + }, + "name": "update" + }, + "arguments": [ + { + "type": "Identifier", + "start": 4370, + "end": 4379, + "loc": { + "start": { + "line": 95, + "column": 23 + }, + "end": { + "line": 95, + "column": 32 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + } + ] + } + } + ], + "directives": [] + } + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 4412, + "end": 4504, + "loc": { + "start": { + "line": 97, + "column": 12 + }, + "end": { + "line": 99, + "column": 15 + } + }, + "expression": { + "type": "CallExpression", + "start": 4412, + "end": 4503, + "loc": { + "start": { + "line": 97, + "column": 12 + }, + "end": { + "line": 99, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4412, + "end": 4436, + "loc": { + "start": { + "line": 97, + "column": 12 + }, + "end": { + "line": 97, + "column": 36 + } + }, + "object": { + "type": "MemberExpression", + "start": 4412, + "end": 4428, + "loc": { + "start": { + "line": 97, + "column": 12 + }, + "end": { + "line": 97, + "column": 28 + } + }, + "object": { + "type": "ThisExpression", + "start": 4412, + "end": 4416, + "loc": { + "start": { + "line": 97, + "column": 12 + }, + "end": { + "line": 97, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 4417, + "end": 4428, + "loc": { + "start": { + "line": 97, + "column": 17 + }, + "end": { + "line": 97, + "column": 28 + }, + "identifierName": "backgrounds" + }, + "name": "backgrounds" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4429, + "end": 4436, + "loc": { + "start": { + "line": 97, + "column": 29 + }, + "end": { + "line": 97, + "column": 36 + }, + "identifierName": "forEach" + }, + "name": "forEach" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 4437, + "end": 4502, + "loc": { + "start": { + "line": 97, + "column": 37 + }, + "end": { + "line": 99, + "column": 13 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 4437, + "end": 4446, + "loc": { + "start": { + "line": 97, + "column": 37 + }, + "end": { + "line": 97, + "column": 46 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + } + ], + "body": { + "type": "BlockStatement", + "start": 4450, + "end": 4502, + "loc": { + "start": { + "line": 97, + "column": 50 + }, + "end": { + "line": 99, + "column": 13 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 4469, + "end": 4487, + "loc": { + "start": { + "line": 98, + "column": 16 + }, + "end": { + "line": 98, + "column": 34 + } + }, + "expression": { + "type": "CallExpression", + "start": 4469, + "end": 4486, + "loc": { + "start": { + "line": 98, + "column": 16 + }, + "end": { + "line": 98, + "column": 33 + } + }, + "callee": { + "type": "Identifier", + "start": 4469, + "end": 4475, + "loc": { + "start": { + "line": 98, + "column": 16 + }, + "end": { + "line": 98, + "column": 22 + }, + "identifierName": "update" + }, + "name": "update" + }, + "arguments": [ + { + "type": "Identifier", + "start": 4476, + "end": 4485, + "loc": { + "start": { + "line": 98, + "column": 23 + }, + "end": { + "line": 98, + "column": 32 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + } + ] + } + } + ], + "directives": [] + } + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Updates the horizontal speed of this layer.\r\n * @param {number} pHorizontalSpeed - The new horizontal speed.\r\n * @param {boolean} pUpdateLayerConfigOnly - If only to update the layer config and not the instance config.\r\n ", + "start": 3379, + "end": 3626, + "loc": { + "start": { + "line": 73, + "column": 4 + }, + "end": { + "line": 77, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Updates the vertical speed of the layer.\r\n * @param {number} pVerticalSpeed - The new vertical speed. \r\n * @param {boolean} pUpdateLayerConfigOnly - If only to update the layer config and not the instance config.\r\n ", + "start": 4528, + "end": 4769, + "loc": { + "start": { + "line": 102, + "column": 4 + }, + "end": { + "line": 106, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 4775, + "end": 5645, + "loc": { + "start": { + "line": 107, + "column": 4 + }, + "end": { + "line": 130, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 4775, + "end": 4794, + "loc": { + "start": { + "line": 107, + "column": 4 + }, + "end": { + "line": 107, + "column": 23 + }, + "identifierName": "updateVerticalSpeed" + }, + "name": "updateVerticalSpeed", + "leadingComments": null + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 4795, + "end": 4809, + "loc": { + "start": { + "line": 107, + "column": 24 + }, + "end": { + "line": 107, + "column": 38 + }, + "identifierName": "pVerticalSpeed" + }, + "name": "pVerticalSpeed" + }, + { + "type": "Identifier", + "start": 4811, + "end": 4833, + "loc": { + "start": { + "line": 107, + "column": 40 + }, + "end": { + "line": 107, + "column": 62 + }, + "identifierName": "pUpdateLayerConfigOnly" + }, + "name": "pUpdateLayerConfigOnly" + } + ], + "body": { + "type": "BlockStatement", + "start": 4835, + "end": 5645, + "loc": { + "start": { + "line": 107, + "column": 64 + }, + "end": { + "line": 130, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 4846, + "end": 4923, + "loc": { + "start": { + "line": 108, + "column": 8 + }, + "end": { + "line": 108, + "column": 85 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 4852, + "end": 4922, + "loc": { + "start": { + "line": 108, + "column": 14 + }, + "end": { + "line": 108, + "column": 84 + } + }, + "id": { + "type": "Identifier", + "start": 4852, + "end": 4867, + "loc": { + "start": { + "line": 108, + "column": 14 + }, + "end": { + "line": 108, + "column": 29 + }, + "identifierName": "inValidVertical" + }, + "name": "inValidVertical" + }, + "init": { + "type": "LogicalExpression", + "start": 4870, + "end": 4922, + "loc": { + "start": { + "line": 108, + "column": 32 + }, + "end": { + "line": 108, + "column": 84 + } + }, + "left": { + "type": "Identifier", + "start": 4870, + "end": 4884, + "loc": { + "start": { + "line": 108, + "column": 32 + }, + "end": { + "line": 108, + "column": 46 + }, + "identifierName": "pVerticalSpeed" + }, + "name": "pVerticalSpeed" + }, + "operator": "&&", + "right": { + "type": "BinaryExpression", + "start": 4888, + "end": 4922, + "loc": { + "start": { + "line": 108, + "column": 50 + }, + "end": { + "line": 108, + "column": 84 + } + }, + "left": { + "type": "UnaryExpression", + "start": 4888, + "end": 4909, + "loc": { + "start": { + "line": 108, + "column": 50 + }, + "end": { + "line": 108, + "column": 71 + } + }, + "operator": "typeof", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 4895, + "end": 4909, + "loc": { + "start": { + "line": 108, + "column": 57 + }, + "end": { + "line": 108, + "column": 71 + }, + "identifierName": "pVerticalSpeed" + }, + "name": "pVerticalSpeed" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "operator": "!==", + "right": { + "type": "StringLiteral", + "start": 4914, + "end": 4922, + "loc": { + "start": { + "line": 108, + "column": 76 + }, + "end": { + "line": 108, + "column": 84 + } + }, + "extra": { + "rawValue": "number", + "raw": "'number'" + }, + "value": "number" + } + } + } + } + ], + "kind": "const" + }, + { + "type": "IfStatement", + "start": 4935, + "end": 5129, + "loc": { + "start": { + "line": 110, + "column": 8 + }, + "end": { + "line": 113, + "column": 9 + } + }, + "test": { + "type": "Identifier", + "start": 4939, + "end": 4954, + "loc": { + "start": { + "line": 110, + "column": 12 + }, + "end": { + "line": 110, + "column": 27 + }, + "identifierName": "inValidVertical" + }, + "name": "inValidVertical" + }, + "consequent": { + "type": "BlockStatement", + "start": 4956, + "end": 5129, + "loc": { + "start": { + "line": 110, + "column": 29 + }, + "end": { + "line": 113, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 4971, + "end": 5098, + "loc": { + "start": { + "line": 111, + "column": 12 + }, + "end": { + "line": 111, + "column": 139 + } + }, + "expression": { + "type": "CallExpression", + "start": 4971, + "end": 5097, + "loc": { + "start": { + "line": 111, + "column": 12 + }, + "end": { + "line": 111, + "column": 138 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4971, + "end": 5017, + "loc": { + "start": { + "line": 111, + "column": 12 + }, + "end": { + "line": 111, + "column": 58 + } + }, + "object": { + "type": "CallExpression", + "start": 4971, + "end": 5012, + "loc": { + "start": { + "line": 111, + "column": 12 + }, + "end": { + "line": 111, + "column": 53 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4971, + "end": 4993, + "loc": { + "start": { + "line": 111, + "column": 12 + }, + "end": { + "line": 111, + "column": 34 + } + }, + "object": { + "type": "MemberExpression", + "start": 4971, + "end": 4986, + "loc": { + "start": { + "line": 111, + "column": 12 + }, + "end": { + "line": 111, + "column": 27 + } + }, + "object": { + "type": "Identifier", + "start": 4971, + "end": 4979, + "loc": { + "start": { + "line": 111, + "column": 12 + }, + "end": { + "line": 111, + "column": 20 + }, + "identifierName": "Parallax" + }, + "name": "Parallax" + }, + "property": { + "type": "Identifier", + "start": 4980, + "end": 4986, + "loc": { + "start": { + "line": 111, + "column": 21 + }, + "end": { + "line": 111, + "column": 27 + }, + "identifierName": "logger" + }, + "name": "logger" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4987, + "end": 4993, + "loc": { + "start": { + "line": 111, + "column": 28 + }, + "end": { + "line": 111, + "column": 34 + }, + "identifierName": "prefix" + }, + "name": "prefix" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 4994, + "end": 5011, + "loc": { + "start": { + "line": 111, + "column": 35 + }, + "end": { + "line": 111, + "column": 52 + } + }, + "extra": { + "rawValue": "Parallax-Module", + "raw": "'Parallax-Module'" + }, + "value": "Parallax-Module" + } + ] + }, + "property": { + "type": "Identifier", + "start": 5013, + "end": 5017, + "loc": { + "start": { + "line": 111, + "column": 54 + }, + "end": { + "line": 111, + "column": 58 + }, + "identifierName": "warn" + }, + "name": "warn" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 5018, + "end": 5073, + "loc": { + "start": { + "line": 111, + "column": 59 + }, + "end": { + "line": 111, + "column": 114 + } + }, + "extra": { + "rawValue": "Expected a number for \"pVerticalSpeed\", but received:", + "raw": "'Expected a number for \"pVerticalSpeed\", but received:'" + }, + "value": "Expected a number for \"pVerticalSpeed\", but received:" + }, + { + "type": "UnaryExpression", + "start": 5075, + "end": 5096, + "loc": { + "start": { + "line": 111, + "column": 116 + }, + "end": { + "line": 111, + "column": 137 + } + }, + "operator": "typeof", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 5082, + "end": 5096, + "loc": { + "start": { + "line": 111, + "column": 123 + }, + "end": { + "line": 111, + "column": 137 + }, + "identifierName": "pVerticalSpeed" + }, + "name": "pVerticalSpeed" + }, + "extra": { + "parenthesizedArgument": false + } + } + ] + } + }, + { + "type": "ReturnStatement", + "start": 5112, + "end": 5118, + "loc": { + "start": { + "line": 112, + "column": 12 + }, + "end": { + "line": 112, + "column": 18 + } + }, + "argument": null + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "ExpressionStatement", + "start": 5141, + "end": 5184, + "loc": { + "start": { + "line": 115, + "column": 8 + }, + "end": { + "line": 115, + "column": 51 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 5141, + "end": 5183, + "loc": { + "start": { + "line": 115, + "column": 8 + }, + "end": { + "line": 115, + "column": 50 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 5141, + "end": 5166, + "loc": { + "start": { + "line": 115, + "column": 8 + }, + "end": { + "line": 115, + "column": 33 + } + }, + "object": { + "type": "MemberExpression", + "start": 5141, + "end": 5152, + "loc": { + "start": { + "line": 115, + "column": 8 + }, + "end": { + "line": 115, + "column": 19 + } + }, + "object": { + "type": "ThisExpression", + "start": 5141, + "end": 5145, + "loc": { + "start": { + "line": 115, + "column": 8 + }, + "end": { + "line": 115, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 5146, + "end": 5152, + "loc": { + "start": { + "line": 115, + "column": 13 + }, + "end": { + "line": 115, + "column": 19 + }, + "identifierName": "config" + }, + "name": "config" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 5153, + "end": 5166, + "loc": { + "start": { + "line": 115, + "column": 20 + }, + "end": { + "line": 115, + "column": 33 + }, + "identifierName": "verticalSpeed" + }, + "name": "verticalSpeed" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 5169, + "end": 5183, + "loc": { + "start": { + "line": 115, + "column": 36 + }, + "end": { + "line": 115, + "column": 50 + }, + "identifierName": "pVerticalSpeed" + }, + "name": "pVerticalSpeed" + } + } + }, + { + "type": "IfStatement", + "start": 5196, + "end": 5638, + "loc": { + "start": { + "line": 117, + "column": 8 + }, + "end": { + "line": 129, + "column": 9 + } + }, + "test": { + "type": "UnaryExpression", + "start": 5200, + "end": 5223, + "loc": { + "start": { + "line": 117, + "column": 12 + }, + "end": { + "line": 117, + "column": 35 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 5201, + "end": 5223, + "loc": { + "start": { + "line": 117, + "column": 13 + }, + "end": { + "line": 117, + "column": 35 + }, + "identifierName": "pUpdateLayerConfigOnly" + }, + "name": "pUpdateLayerConfigOnly" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 5225, + "end": 5638, + "loc": { + "start": { + "line": 117, + "column": 37 + }, + "end": { + "line": 129, + "column": 9 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 5240, + "end": 5415, + "loc": { + "start": { + "line": 118, + "column": 12 + }, + "end": { + "line": 121, + "column": 13 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 5246, + "end": 5415, + "loc": { + "start": { + "line": 118, + "column": 18 + }, + "end": { + "line": 121, + "column": 13 + } + }, + "id": { + "type": "Identifier", + "start": 5246, + "end": 5252, + "loc": { + "start": { + "line": 118, + "column": 18 + }, + "end": { + "line": 118, + "column": 24 + }, + "identifierName": "update" + }, + "name": "update" + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 5255, + "end": 5415, + "loc": { + "start": { + "line": 118, + "column": 27 + }, + "end": { + "line": 121, + "column": 13 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 5256, + "end": 5265, + "loc": { + "start": { + "line": 118, + "column": 28 + }, + "end": { + "line": 118, + "column": 37 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + } + ], + "body": { + "type": "BlockStatement", + "start": 5270, + "end": 5415, + "loc": { + "start": { + "line": 118, + "column": 42 + }, + "end": { + "line": 121, + "column": 13 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 5289, + "end": 5350, + "loc": { + "start": { + "line": 119, + "column": 16 + }, + "end": { + "line": 119, + "column": 77 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 5295, + "end": 5349, + "loc": { + "start": { + "line": 119, + "column": 22 + }, + "end": { + "line": 119, + "column": 76 + } + }, + "id": { + "type": "Identifier", + "start": 5295, + "end": 5307, + "loc": { + "start": { + "line": 119, + "column": 22 + }, + "end": { + "line": 119, + "column": 34 + }, + "identifierName": "parallaxInfo" + }, + "name": "parallaxInfo" + }, + "init": { + "type": "CallExpression", + "start": 5310, + "end": 5349, + "loc": { + "start": { + "line": 119, + "column": 37 + }, + "end": { + "line": 119, + "column": 76 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5310, + "end": 5338, + "loc": { + "start": { + "line": 119, + "column": 37 + }, + "end": { + "line": 119, + "column": 65 + } + }, + "object": { + "type": "MemberExpression", + "start": 5310, + "end": 5334, + "loc": { + "start": { + "line": 119, + "column": 37 + }, + "end": { + "line": 119, + "column": 61 + } + }, + "object": { + "type": "Identifier", + "start": 5310, + "end": 5318, + "loc": { + "start": { + "line": 119, + "column": 37 + }, + "end": { + "line": 119, + "column": 45 + }, + "identifierName": "Parallax" + }, + "name": "Parallax" + }, + "property": { + "type": "Identifier", + "start": 5319, + "end": 5334, + "loc": { + "start": { + "line": 119, + "column": 46 + }, + "end": { + "line": 119, + "column": 61 + }, + "identifierName": "instanceWeakMap" + }, + "name": "instanceWeakMap" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 5335, + "end": 5338, + "loc": { + "start": { + "line": 119, + "column": 62 + }, + "end": { + "line": 119, + "column": 65 + }, + "identifierName": "get" + }, + "name": "get" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 5339, + "end": 5348, + "loc": { + "start": { + "line": 119, + "column": 66 + }, + "end": { + "line": 119, + "column": 75 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "ExpressionStatement", + "start": 5368, + "end": 5400, + "loc": { + "start": { + "line": 120, + "column": 16 + }, + "end": { + "line": 120, + "column": 48 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 5368, + "end": 5399, + "loc": { + "start": { + "line": 120, + "column": 16 + }, + "end": { + "line": 120, + "column": 47 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 5368, + "end": 5382, + "loc": { + "start": { + "line": 120, + "column": 16 + }, + "end": { + "line": 120, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 5368, + "end": 5380, + "loc": { + "start": { + "line": 120, + "column": 16 + }, + "end": { + "line": 120, + "column": 28 + }, + "identifierName": "parallaxInfo" + }, + "name": "parallaxInfo" + }, + "property": { + "type": "Identifier", + "start": 5381, + "end": 5382, + "loc": { + "start": { + "line": 120, + "column": 29 + }, + "end": { + "line": 120, + "column": 30 + }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 5385, + "end": 5399, + "loc": { + "start": { + "line": 120, + "column": 33 + }, + "end": { + "line": 120, + "column": 47 + }, + "identifierName": "pVerticalSpeed" + }, + "name": "pVerticalSpeed" + } + } + } + ], + "directives": [] + } + } + } + ], + "kind": "const" + }, + { + "type": "ExpressionStatement", + "start": 5431, + "end": 5521, + "loc": { + "start": { + "line": 123, + "column": 12 + }, + "end": { + "line": 125, + "column": 15 + } + }, + "expression": { + "type": "CallExpression", + "start": 5431, + "end": 5520, + "loc": { + "start": { + "line": 123, + "column": 12 + }, + "end": { + "line": 125, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5431, + "end": 5453, + "loc": { + "start": { + "line": 123, + "column": 12 + }, + "end": { + "line": 123, + "column": 34 + } + }, + "object": { + "type": "MemberExpression", + "start": 5431, + "end": 5445, + "loc": { + "start": { + "line": 123, + "column": 12 + }, + "end": { + "line": 123, + "column": 26 + } + }, + "object": { + "type": "ThisExpression", + "start": 5431, + "end": 5435, + "loc": { + "start": { + "line": 123, + "column": 12 + }, + "end": { + "line": 123, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 5436, + "end": 5445, + "loc": { + "start": { + "line": 123, + "column": 17 + }, + "end": { + "line": 123, + "column": 26 + }, + "identifierName": "instances" + }, + "name": "instances" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 5446, + "end": 5453, + "loc": { + "start": { + "line": 123, + "column": 27 + }, + "end": { + "line": 123, + "column": 34 + }, + "identifierName": "forEach" + }, + "name": "forEach" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 5454, + "end": 5519, + "loc": { + "start": { + "line": 123, + "column": 35 + }, + "end": { + "line": 125, + "column": 13 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 5454, + "end": 5463, + "loc": { + "start": { + "line": 123, + "column": 35 + }, + "end": { + "line": 123, + "column": 44 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + } + ], + "body": { + "type": "BlockStatement", + "start": 5467, + "end": 5519, + "loc": { + "start": { + "line": 123, + "column": 48 + }, + "end": { + "line": 125, + "column": 13 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 5486, + "end": 5504, + "loc": { + "start": { + "line": 124, + "column": 16 + }, + "end": { + "line": 124, + "column": 34 + } + }, + "expression": { + "type": "CallExpression", + "start": 5486, + "end": 5503, + "loc": { + "start": { + "line": 124, + "column": 16 + }, + "end": { + "line": 124, + "column": 33 + } + }, + "callee": { + "type": "Identifier", + "start": 5486, + "end": 5492, + "loc": { + "start": { + "line": 124, + "column": 16 + }, + "end": { + "line": 124, + "column": 22 + }, + "identifierName": "update" + }, + "name": "update" + }, + "arguments": [ + { + "type": "Identifier", + "start": 5493, + "end": 5502, + "loc": { + "start": { + "line": 124, + "column": 23 + }, + "end": { + "line": 124, + "column": 32 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + } + ] + } + } + ], + "directives": [] + } + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 5535, + "end": 5627, + "loc": { + "start": { + "line": 126, + "column": 12 + }, + "end": { + "line": 128, + "column": 15 + } + }, + "expression": { + "type": "CallExpression", + "start": 5535, + "end": 5626, + "loc": { + "start": { + "line": 126, + "column": 12 + }, + "end": { + "line": 128, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5535, + "end": 5559, + "loc": { + "start": { + "line": 126, + "column": 12 + }, + "end": { + "line": 126, + "column": 36 + } + }, + "object": { + "type": "MemberExpression", + "start": 5535, + "end": 5551, + "loc": { + "start": { + "line": 126, + "column": 12 + }, + "end": { + "line": 126, + "column": 28 + } + }, + "object": { + "type": "ThisExpression", + "start": 5535, + "end": 5539, + "loc": { + "start": { + "line": 126, + "column": 12 + }, + "end": { + "line": 126, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 5540, + "end": 5551, + "loc": { + "start": { + "line": 126, + "column": 17 + }, + "end": { + "line": 126, + "column": 28 + }, + "identifierName": "backgrounds" + }, + "name": "backgrounds" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 5552, + "end": 5559, + "loc": { + "start": { + "line": 126, + "column": 29 + }, + "end": { + "line": 126, + "column": 36 + }, + "identifierName": "forEach" + }, + "name": "forEach" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 5560, + "end": 5625, + "loc": { + "start": { + "line": 126, + "column": 37 + }, + "end": { + "line": 128, + "column": 13 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 5560, + "end": 5569, + "loc": { + "start": { + "line": 126, + "column": 37 + }, + "end": { + "line": 126, + "column": 46 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + } + ], + "body": { + "type": "BlockStatement", + "start": 5573, + "end": 5625, + "loc": { + "start": { + "line": 126, + "column": 50 + }, + "end": { + "line": 128, + "column": 13 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 5592, + "end": 5610, + "loc": { + "start": { + "line": 127, + "column": 16 + }, + "end": { + "line": 127, + "column": 34 + } + }, + "expression": { + "type": "CallExpression", + "start": 5592, + "end": 5609, + "loc": { + "start": { + "line": 127, + "column": 16 + }, + "end": { + "line": 127, + "column": 33 + } + }, + "callee": { + "type": "Identifier", + "start": 5592, + "end": 5598, + "loc": { + "start": { + "line": 127, + "column": 16 + }, + "end": { + "line": 127, + "column": 22 + }, + "identifierName": "update" + }, + "name": "update" + }, + "arguments": [ + { + "type": "Identifier", + "start": 5599, + "end": 5608, + "loc": { + "start": { + "line": 127, + "column": 23 + }, + "end": { + "line": 127, + "column": 32 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + } + ] + } + } + ], + "directives": [] + } + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Updates the vertical speed of the layer.\r\n * @param {number} pVerticalSpeed - The new vertical speed. \r\n * @param {boolean} pUpdateLayerConfigOnly - If only to update the layer config and not the instance config.\r\n ", + "start": 4528, + "end": 4769, + "loc": { + "start": { + "line": 102, + "column": 4 + }, + "end": { + "line": 106, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adds the instance to the parallax layer.\r\n * When using this API the instance should already be on the map.\r\n * @param {Diob} pInstance - The instance to add to the layer.\r\n * @param {Object} pConfig - The personal config of this instance. Akin to the parallax info passed via the `Parallax.add` API.\r\n * @prop {number} pConfig.x - The horizontal speed of this instance. (This will be ignored and the layer's speed will be used.)\r\n * @prop {number} pConfig.y - The vertical speed of this instance. (This will be ignored and the layer's speed will be used.)\r\n * @prop {boolean} pConfig.loop - Whether this instance will be treated as a background and loop seamlessly.\r\n ", + "start": 5651, + "end": 6362, + "loc": { + "start": { + "line": 131, + "column": 4 + }, + "end": { + "line": 139, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 6368, + "end": 6731, + "loc": { + "start": { + "line": 140, + "column": 4 + }, + "end": { + "line": 150, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 6368, + "end": 6371, + "loc": { + "start": { + "line": 140, + "column": 4 + }, + "end": { + "line": 140, + "column": 7 + }, + "identifierName": "add" + }, + "name": "add", + "leadingComments": null + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 6372, + "end": 6381, + "loc": { + "start": { + "line": 140, + "column": 8 + }, + "end": { + "line": 140, + "column": 17 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + { + "type": "Identifier", + "start": 6383, + "end": 6390, + "loc": { + "start": { + "line": 140, + "column": 19 + }, + "end": { + "line": 140, + "column": 26 + }, + "identifierName": "pConfig" + }, + "name": "pConfig" + } + ], + "body": { + "type": "BlockStatement", + "start": 6392, + "end": 6731, + "loc": { + "start": { + "line": 140, + "column": 28 + }, + "end": { + "line": 150, + "column": 5 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 6403, + "end": 6452, + "loc": { + "start": { + "line": 141, + "column": 8 + }, + "end": { + "line": 141, + "column": 57 + } + }, + "test": { + "type": "CallExpression", + "start": 6407, + "end": 6443, + "loc": { + "start": { + "line": 141, + "column": 12 + }, + "end": { + "line": 141, + "column": 48 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6407, + "end": 6432, + "loc": { + "start": { + "line": 141, + "column": 12 + }, + "end": { + "line": 141, + "column": 37 + } + }, + "object": { + "type": "MemberExpression", + "start": 6407, + "end": 6428, + "loc": { + "start": { + "line": 141, + "column": 12 + }, + "end": { + "line": 141, + "column": 33 + } + }, + "object": { + "type": "MemberExpression", + "start": 6407, + "end": 6418, + "loc": { + "start": { + "line": 141, + "column": 12 + }, + "end": { + "line": 141, + "column": 23 + } + }, + "object": { + "type": "ThisExpression", + "start": 6407, + "end": 6411, + "loc": { + "start": { + "line": 141, + "column": 12 + }, + "end": { + "line": 141, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 6412, + "end": 6418, + "loc": { + "start": { + "line": 141, + "column": 17 + }, + "end": { + "line": 141, + "column": 23 + }, + "identifierName": "config" + }, + "name": "config" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6419, + "end": 6428, + "loc": { + "start": { + "line": 141, + "column": 24 + }, + "end": { + "line": 141, + "column": 33 + }, + "identifierName": "instances" + }, + "name": "instances" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6429, + "end": 6432, + "loc": { + "start": { + "line": 141, + "column": 34 + }, + "end": { + "line": 141, + "column": 37 + }, + "identifierName": "has" + }, + "name": "has" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 6433, + "end": 6442, + "loc": { + "start": { + "line": 141, + "column": 38 + }, + "end": { + "line": 141, + "column": 47 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + } + ] + }, + "consequent": { + "type": "ReturnStatement", + "start": 6445, + "end": 6452, + "loc": { + "start": { + "line": 141, + "column": 50 + }, + "end": { + "line": 141, + "column": 57 + } + }, + "argument": null + }, + "alternate": null + }, + { + "type": "ExpressionStatement", + "start": 6462, + "end": 6499, + "loc": { + "start": { + "line": 142, + "column": 8 + }, + "end": { + "line": 142, + "column": 45 + } + }, + "expression": { + "type": "CallExpression", + "start": 6462, + "end": 6498, + "loc": { + "start": { + "line": 142, + "column": 8 + }, + "end": { + "line": 142, + "column": 44 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6462, + "end": 6487, + "loc": { + "start": { + "line": 142, + "column": 8 + }, + "end": { + "line": 142, + "column": 33 + } + }, + "object": { + "type": "MemberExpression", + "start": 6462, + "end": 6483, + "loc": { + "start": { + "line": 142, + "column": 8 + }, + "end": { + "line": 142, + "column": 29 + } + }, + "object": { + "type": "MemberExpression", + "start": 6462, + "end": 6473, + "loc": { + "start": { + "line": 142, + "column": 8 + }, + "end": { + "line": 142, + "column": 19 + } + }, + "object": { + "type": "ThisExpression", + "start": 6462, + "end": 6466, + "loc": { + "start": { + "line": 142, + "column": 8 + }, + "end": { + "line": 142, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 6467, + "end": 6473, + "loc": { + "start": { + "line": 142, + "column": 13 + }, + "end": { + "line": 142, + "column": 19 + }, + "identifierName": "config" + }, + "name": "config" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6474, + "end": 6483, + "loc": { + "start": { + "line": 142, + "column": 20 + }, + "end": { + "line": 142, + "column": 29 + }, + "identifierName": "instances" + }, + "name": "instances" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6484, + "end": 6487, + "loc": { + "start": { + "line": 142, + "column": 30 + }, + "end": { + "line": 142, + "column": 33 + }, + "identifierName": "add" + }, + "name": "add" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 6488, + "end": 6497, + "loc": { + "start": { + "line": 142, + "column": 34 + }, + "end": { + "line": 142, + "column": 43 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + } + ] + } + }, + { + "type": "VariableDeclaration", + "start": 6509, + "end": 6682, + "loc": { + "start": { + "line": 143, + "column": 8 + }, + "end": { + "line": 148, + "column": 13 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 6515, + "end": 6682, + "loc": { + "start": { + "line": 143, + "column": 14 + }, + "end": { + "line": 148, + "column": 13 + } + }, + "id": { + "type": "Identifier", + "start": 6515, + "end": 6521, + "loc": { + "start": { + "line": 143, + "column": 14 + }, + "end": { + "line": 143, + "column": 20 + }, + "identifierName": "config" + }, + "name": "config" + }, + "init": { + "type": "ConditionalExpression", + "start": 6524, + "end": 6682, + "loc": { + "start": { + "line": 143, + "column": 23 + }, + "end": { + "line": 148, + "column": 13 + } + }, + "test": { + "type": "Identifier", + "start": 6524, + "end": 6531, + "loc": { + "start": { + "line": 143, + "column": 23 + }, + "end": { + "line": 143, + "column": 30 + }, + "identifierName": "pConfig" + }, + "name": "pConfig" + }, + "consequent": { + "type": "Identifier", + "start": 6548, + "end": 6555, + "loc": { + "start": { + "line": 144, + "column": 14 + }, + "end": { + "line": 144, + "column": 21 + }, + "identifierName": "pConfig" + }, + "name": "pConfig" + }, + "alternate": { + "type": "ObjectExpression", + "start": 6571, + "end": 6682, + "loc": { + "start": { + "line": 145, + "column": 14 + }, + "end": { + "line": 148, + "column": 13 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 6590, + "end": 6620, + "loc": { + "start": { + "line": 146, + "column": 16 + }, + "end": { + "line": 146, + "column": 46 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 6590, + "end": 6591, + "loc": { + "start": { + "line": 146, + "column": 16 + }, + "end": { + "line": 146, + "column": 17 + }, + "identifierName": "x" + }, + "name": "x" + }, + "value": { + "type": "MemberExpression", + "start": 6593, + "end": 6620, + "loc": { + "start": { + "line": 146, + "column": 19 + }, + "end": { + "line": 146, + "column": 46 + } + }, + "object": { + "type": "MemberExpression", + "start": 6593, + "end": 6604, + "loc": { + "start": { + "line": 146, + "column": 19 + }, + "end": { + "line": 146, + "column": 30 + } + }, + "object": { + "type": "ThisExpression", + "start": 6593, + "end": 6597, + "loc": { + "start": { + "line": 146, + "column": 19 + }, + "end": { + "line": 146, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "start": 6598, + "end": 6604, + "loc": { + "start": { + "line": 146, + "column": 24 + }, + "end": { + "line": 146, + "column": 30 + }, + "identifierName": "config" + }, + "name": "config" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6605, + "end": 6620, + "loc": { + "start": { + "line": 146, + "column": 31 + }, + "end": { + "line": 146, + "column": 46 + }, + "identifierName": "horizontalSpeed" + }, + "name": "horizontalSpeed" + }, + "computed": false + } + }, + { + "type": "ObjectProperty", + "start": 6639, + "end": 6667, + "loc": { + "start": { + "line": 147, + "column": 16 + }, + "end": { + "line": 147, + "column": 44 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 6639, + "end": 6640, + "loc": { + "start": { + "line": 147, + "column": 16 + }, + "end": { + "line": 147, + "column": 17 + }, + "identifierName": "y" + }, + "name": "y" + }, + "value": { + "type": "MemberExpression", + "start": 6642, + "end": 6667, + "loc": { + "start": { + "line": 147, + "column": 19 + }, + "end": { + "line": 147, + "column": 44 + } + }, + "object": { + "type": "MemberExpression", + "start": 6642, + "end": 6653, + "loc": { + "start": { + "line": 147, + "column": 19 + }, + "end": { + "line": 147, + "column": 30 + } + }, + "object": { + "type": "ThisExpression", + "start": 6642, + "end": 6646, + "loc": { + "start": { + "line": 147, + "column": 19 + }, + "end": { + "line": 147, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "start": 6647, + "end": 6653, + "loc": { + "start": { + "line": 147, + "column": 24 + }, + "end": { + "line": 147, + "column": 30 + }, + "identifierName": "config" + }, + "name": "config" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6654, + "end": 6667, + "loc": { + "start": { + "line": 147, + "column": 31 + }, + "end": { + "line": 147, + "column": 44 + }, + "identifierName": "verticalSpeed" + }, + "name": "verticalSpeed" + }, + "computed": false + } + } + ] + } + } + } + ], + "kind": "const" + }, + { + "type": "ExpressionStatement", + "start": 6692, + "end": 6724, + "loc": { + "start": { + "line": 149, + "column": 8 + }, + "end": { + "line": 149, + "column": 40 + } + }, + "expression": { + "type": "CallExpression", + "start": 6692, + "end": 6723, + "loc": { + "start": { + "line": 149, + "column": 8 + }, + "end": { + "line": 149, + "column": 39 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6692, + "end": 6704, + "loc": { + "start": { + "line": 149, + "column": 8 + }, + "end": { + "line": 149, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 6692, + "end": 6700, + "loc": { + "start": { + "line": 149, + "column": 8 + }, + "end": { + "line": 149, + "column": 16 + }, + "identifierName": "Parallax" + }, + "name": "Parallax" + }, + "property": { + "type": "Identifier", + "start": 6701, + "end": 6704, + "loc": { + "start": { + "line": 149, + "column": 17 + }, + "end": { + "line": 149, + "column": 20 + }, + "identifierName": "add" + }, + "name": "add" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 6705, + "end": 6714, + "loc": { + "start": { + "line": 149, + "column": 21 + }, + "end": { + "line": 149, + "column": 30 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + { + "type": "Identifier", + "start": 6716, + "end": 6722, + "loc": { + "start": { + "line": 149, + "column": 32 + }, + "end": { + "line": 149, + "column": 38 + }, + "identifierName": "config" + }, + "name": "config" + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adds the instance to the parallax layer.\r\n * When using this API the instance should already be on the map.\r\n * @param {Diob} pInstance - The instance to add to the layer.\r\n * @param {Object} pConfig - The personal config of this instance. Akin to the parallax info passed via the `Parallax.add` API.\r\n * @prop {number} pConfig.x - The horizontal speed of this instance. (This will be ignored and the layer's speed will be used.)\r\n * @prop {number} pConfig.y - The vertical speed of this instance. (This will be ignored and the layer's speed will be used.)\r\n * @prop {boolean} pConfig.loop - Whether this instance will be treated as a background and loop seamlessly.\r\n ", + "start": 5651, + "end": 6362, + "loc": { + "start": { + "line": 131, + "column": 4 + }, + "end": { + "line": 139, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Removes the instance from the parallax layer.\r\n * @param {Diob} pInstance - The instance to remove from the layer.\r\n ", + "start": 6737, + "end": 6876, + "loc": { + "start": { + "line": 151, + "column": 4 + }, + "end": { + "line": 154, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 6882, + "end": 6995, + "loc": { + "start": { + "line": 155, + "column": 4 + }, + "end": { + "line": 158, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 6882, + "end": 6888, + "loc": { + "start": { + "line": 155, + "column": 4 + }, + "end": { + "line": 155, + "column": 10 + }, + "identifierName": "remove" + }, + "name": "remove", + "leadingComments": null + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 6889, + "end": 6898, + "loc": { + "start": { + "line": 155, + "column": 11 + }, + "end": { + "line": 155, + "column": 20 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + } + ], + "body": { + "type": "BlockStatement", + "start": 6900, + "end": 6995, + "loc": { + "start": { + "line": 155, + "column": 22 + }, + "end": { + "line": 158, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 6911, + "end": 6951, + "loc": { + "start": { + "line": 156, + "column": 8 + }, + "end": { + "line": 156, + "column": 48 + } + }, + "expression": { + "type": "CallExpression", + "start": 6911, + "end": 6950, + "loc": { + "start": { + "line": 156, + "column": 8 + }, + "end": { + "line": 156, + "column": 47 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6911, + "end": 6939, + "loc": { + "start": { + "line": 156, + "column": 8 + }, + "end": { + "line": 156, + "column": 36 + } + }, + "object": { + "type": "MemberExpression", + "start": 6911, + "end": 6932, + "loc": { + "start": { + "line": 156, + "column": 8 + }, + "end": { + "line": 156, + "column": 29 + } + }, + "object": { + "type": "MemberExpression", + "start": 6911, + "end": 6922, + "loc": { + "start": { + "line": 156, + "column": 8 + }, + "end": { + "line": 156, + "column": 19 + } + }, + "object": { + "type": "ThisExpression", + "start": 6911, + "end": 6915, + "loc": { + "start": { + "line": 156, + "column": 8 + }, + "end": { + "line": 156, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 6916, + "end": 6922, + "loc": { + "start": { + "line": 156, + "column": 13 + }, + "end": { + "line": 156, + "column": 19 + }, + "identifierName": "config" + }, + "name": "config" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6923, + "end": 6932, + "loc": { + "start": { + "line": 156, + "column": 20 + }, + "end": { + "line": 156, + "column": 29 + }, + "identifierName": "instances" + }, + "name": "instances" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6933, + "end": 6939, + "loc": { + "start": { + "line": 156, + "column": 30 + }, + "end": { + "line": 156, + "column": 36 + }, + "identifierName": "delete" + }, + "name": "delete" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 6940, + "end": 6949, + "loc": { + "start": { + "line": 156, + "column": 37 + }, + "end": { + "line": 156, + "column": 46 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 6961, + "end": 6988, + "loc": { + "start": { + "line": 157, + "column": 8 + }, + "end": { + "line": 157, + "column": 35 + } + }, + "expression": { + "type": "CallExpression", + "start": 6961, + "end": 6987, + "loc": { + "start": { + "line": 157, + "column": 8 + }, + "end": { + "line": 157, + "column": 34 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6961, + "end": 6976, + "loc": { + "start": { + "line": 157, + "column": 8 + }, + "end": { + "line": 157, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 6961, + "end": 6969, + "loc": { + "start": { + "line": 157, + "column": 8 + }, + "end": { + "line": 157, + "column": 16 + }, + "identifierName": "Parallax" + }, + "name": "Parallax" + }, + "property": { + "type": "Identifier", + "start": 6970, + "end": 6976, + "loc": { + "start": { + "line": 157, + "column": 17 + }, + "end": { + "line": 157, + "column": 23 + }, + "identifierName": "remove" + }, + "name": "remove" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 6977, + "end": 6986, + "loc": { + "start": { + "line": 157, + "column": 24 + }, + "end": { + "line": 157, + "column": 33 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + } + ] + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Removes the instance from the parallax layer.\r\n * @param {Diob} pInstance - The instance to remove from the layer.\r\n ", + "start": 6737, + "end": 6876, + "loc": { + "start": { + "line": 151, + "column": 4 + }, + "end": { + "line": 154, + "column": 7 + } + } + } + ] + } + ] + }, + "leadingComments": [], + "trailingComments": [] + } + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\r\n * The configuration object of this layer.\r\n * @private\r\n * @type {Object}\r\n * @param {number} horizontalSpeed - The horizontal speed of the layer.\r\n * @param {number} verticalSpeed - The vertical speed of the layer.\r\n * @param {number} plane - The plane this parallax layer will occupy.\r\n * @param {Diob[] | MapObject[]} backgrounds - An array of instances that will serve as the background. These are automatically toggled to repeat.\r\n * @param {Set} instances - A set of instances currently on the layer.\r\n ", + "start": 72, + "end": 625, + "loc": { + "start": { + "line": 4, + "column": 4 + }, + "end": { + "line": 13, + "column": 7 + } + } + }, + { + "type": "CommentLine", + "value": " Move the instance with the camera if the parallax is set to 0", + "start": 651, + "end": 715, + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 72 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Creates a new Parallax layer with the supplied configuration.\r\n * When creating a layer, all instances and backgrounds should already be on the map.\r\n * @param {Object} pConfig - The configuration of the parallax layer.\r\n * @prop {number} pConfig.horizontalSpeed - The horizontal speed of the layer.\r\n * @prop {number} pConfig.verticalSpeed - The vertical speed of the layer. \r\n * @prop {number} pConfig.plane - The plane this layer will occupy.\r\n * @param {Diob[] | MapObject[]} pConfig.backgrounds - An array of instances that will serve as the background. These are automatically toggled to repeat.\r\n * @prop {Diob[] | MapObject[]} pConfig.instances - The instances that will be added to the layer. \r\n ", + "start": 866, + "end": 1617, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 31, + "column": 7 + } + } + }, + { + "type": "CommentLine", + "value": " Backgrounds automatically loop", + "start": 2436, + "end": 2469, + "loc": { + "start": { + "line": 54, + "column": 12 + }, + "end": { + "line": 54, + "column": 45 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Updates the configuration speed of the layer.\r\n * @param {Object} pConfig - The speed configuration of the parallax layer.\r\n * @prop {number} pConfig.horizontalSpeed - The horizontal speed of the layer.\r\n * @prop {number} pConfig.verticalSpeed - The vertical speed of the layer. \r\n * @param {boolean} pUpdateLayerConfigOnly - If only to update the layer config and not the instance config.\r\n ", + "start": 2714, + "end": 3140, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 68, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Updates the horizontal speed of this layer.\r\n * @param {number} pHorizontalSpeed - The new horizontal speed.\r\n * @param {boolean} pUpdateLayerConfigOnly - If only to update the layer config and not the instance config.\r\n ", + "start": 3379, + "end": 3626, + "loc": { + "start": { + "line": 73, + "column": 4 + }, + "end": { + "line": 77, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Updates the vertical speed of the layer.\r\n * @param {number} pVerticalSpeed - The new vertical speed. \r\n * @param {boolean} pUpdateLayerConfigOnly - If only to update the layer config and not the instance config.\r\n ", + "start": 4528, + "end": 4769, + "loc": { + "start": { + "line": 102, + "column": 4 + }, + "end": { + "line": 106, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Adds the instance to the parallax layer.\r\n * When using this API the instance should already be on the map.\r\n * @param {Diob} pInstance - The instance to add to the layer.\r\n * @param {Object} pConfig - The personal config of this instance. Akin to the parallax info passed via the `Parallax.add` API.\r\n * @prop {number} pConfig.x - The horizontal speed of this instance. (This will be ignored and the layer's speed will be used.)\r\n * @prop {number} pConfig.y - The vertical speed of this instance. (This will be ignored and the layer's speed will be used.)\r\n * @prop {boolean} pConfig.loop - Whether this instance will be treated as a background and loop seamlessly.\r\n ", + "start": 5651, + "end": 6362, + "loc": { + "start": { + "line": 131, + "column": 4 + }, + "end": { + "line": 139, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Removes the instance from the parallax layer.\r\n * @param {Diob} pInstance - The instance to remove from the layer.\r\n ", + "start": 6737, + "end": 6876, + "loc": { + "start": { + "line": 151, + "column": 4 + }, + "end": { + "line": 154, + "column": 7 + } + } + } + ], + "tokens": [ + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Parallax", + "start": 9, + "end": 17, + "loc": { + "start": { + "line": 1, + "column": 9 + }, + "end": { + "line": 1, + "column": 17 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 18, + "end": 19, + "loc": { + "start": { + "line": 1, + "column": 18 + }, + "end": { + "line": 1, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 20, + "end": 24, + "loc": { + "start": { + "line": 1, + "column": 20 + }, + "end": { + "line": 1, + "column": 24 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./parallax.mjs", + "start": 25, + "end": 41, + "loc": { + "start": { + "line": 1, + "column": 25 + }, + "end": { + "line": 1, + "column": 41 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 41, + "end": 42, + "loc": { + "start": { + "line": 1, + "column": 41 + }, + "end": { + "line": 1, + "column": 42 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 46, + "end": 52, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 6 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 53, + "end": 58, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Layer", + "start": 59, + "end": 64, + "loc": { + "start": { + "line": 3, + "column": 13 + }, + "end": { + "line": 3, + "column": 18 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 65, + "end": 66, + "loc": { + "start": { + "line": 3, + "column": 19 + }, + "end": { + "line": 3, + "column": 20 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * The configuration object of this layer.\r\n * @private\r\n * @type {Object}\r\n * @param {number} horizontalSpeed - The horizontal speed of the layer.\r\n * @param {number} verticalSpeed - The vertical speed of the layer.\r\n * @param {number} plane - The plane this parallax layer will occupy.\r\n * @param {Diob[] | MapObject[]} backgrounds - An array of instances that will serve as the background. These are automatically toggled to repeat.\r\n * @param {Set} instances - A set of instances currently on the layer.\r\n ", + "start": 72, + "end": 625, + "loc": { + "start": { + "line": 4, + "column": 4 + }, + "end": { + "line": 13, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "config", + "start": 631, + "end": 637, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 10 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 638, + "end": 639, + "loc": { + "start": { + "line": 14, + "column": 11 + }, + "end": { + "line": 14, + "column": 12 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 640, + "end": 641, + "loc": { + "start": { + "line": 14, + "column": 13 + }, + "end": { + "line": 14, + "column": 14 + } + } + }, + { + "type": "CommentLine", + "value": " Move the instance with the camera if the parallax is set to 0", + "start": 651, + "end": 715, + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 72 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "horizontalSpeed", + "start": 725, + "end": 740, + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 16, + "column": 23 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 740, + "end": 741, + "loc": { + "start": { + "line": 16, + "column": 23 + }, + "end": { + "line": 16, + "column": 24 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 742, + "end": 743, + "loc": { + "start": { + "line": 16, + "column": 25 + }, + "end": { + "line": 16, + "column": 26 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 743, + "end": 744, + "loc": { + "start": { + "line": 16, + "column": 26 + }, + "end": { + "line": 16, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "verticalSpeed", + "start": 754, + "end": 767, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 21 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 767, + "end": 768, + "loc": { + "start": { + "line": 17, + "column": 21 + }, + "end": { + "line": 17, + "column": 22 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 769, + "end": 770, + "loc": { + "start": { + "line": 17, + "column": 23 + }, + "end": { + "line": 17, + "column": 24 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 770, + "end": 771, + "loc": { + "start": { + "line": 17, + "column": 24 + }, + "end": { + "line": 17, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "plane", + "start": 781, + "end": 786, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 13 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 786, + "end": 787, + "loc": { + "start": { + "line": 18, + "column": 13 + }, + "end": { + "line": 18, + "column": 14 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 1, + "start": 788, + "end": 789, + "loc": { + "start": { + "line": 18, + "column": 15 + }, + "end": { + "line": 18, + "column": 16 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 789, + "end": 790, + "loc": { + "start": { + "line": 18, + "column": 16 + }, + "end": { + "line": 18, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "backgrounds", + "start": 800, + "end": 811, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 19 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 811, + "end": 812, + "loc": { + "start": { + "line": 19, + "column": 19 + }, + "end": { + "line": 19, + "column": 20 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 813, + "end": 816, + "loc": { + "start": { + "line": 19, + "column": 21 + }, + "end": { + "line": 19, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Set", + "start": 817, + "end": 820, + "loc": { + "start": { + "line": 19, + "column": 25 + }, + "end": { + "line": 19, + "column": 28 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 820, + "end": 821, + "loc": { + "start": { + "line": 19, + "column": 28 + }, + "end": { + "line": 19, + "column": 29 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 821, + "end": 822, + "loc": { + "start": { + "line": 19, + "column": 29 + }, + "end": { + "line": 19, + "column": 30 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 822, + "end": 823, + "loc": { + "start": { + "line": 19, + "column": 30 + }, + "end": { + "line": 19, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "instances", + "start": 833, + "end": 842, + "loc": { + "start": { + "line": 20, + "column": 8 + }, + "end": { + "line": 20, + "column": 17 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 842, + "end": 843, + "loc": { + "start": { + "line": 20, + "column": 17 + }, + "end": { + "line": 20, + "column": 18 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 844, + "end": 847, + "loc": { + "start": { + "line": 20, + "column": 19 + }, + "end": { + "line": 20, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Set", + "start": 848, + "end": 851, + "loc": { + "start": { + "line": 20, + "column": 23 + }, + "end": { + "line": 20, + "column": 26 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 851, + "end": 852, + "loc": { + "start": { + "line": 20, + "column": 26 + }, + "end": { + "line": 20, + "column": 27 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 852, + "end": 853, + "loc": { + "start": { + "line": 20, + "column": 27 + }, + "end": { + "line": 20, + "column": 28 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 859, + "end": 860, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Creates a new Parallax layer with the supplied configuration.\r\n * When creating a layer, all instances and backgrounds should already be on the map.\r\n * @param {Object} pConfig - The configuration of the parallax layer.\r\n * @prop {number} pConfig.horizontalSpeed - The horizontal speed of the layer.\r\n * @prop {number} pConfig.verticalSpeed - The vertical speed of the layer. \r\n * @prop {number} pConfig.plane - The plane this layer will occupy.\r\n * @param {Diob[] | MapObject[]} pConfig.backgrounds - An array of instances that will serve as the background. These are automatically toggled to repeat.\r\n * @prop {Diob[] | MapObject[]} pConfig.instances - The instances that will be added to the layer. \r\n ", + "start": 866, + "end": 1617, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 31, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "constructor", + "start": 1623, + "end": 1634, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1634, + "end": 1635, + "loc": { + "start": { + "line": 32, + "column": 15 + }, + "end": { + "line": 32, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pConfig", + "start": 1635, + "end": 1642, + "loc": { + "start": { + "line": 32, + "column": 16 + }, + "end": { + "line": 32, + "column": 23 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1642, + "end": 1643, + "loc": { + "start": { + "line": 32, + "column": 23 + }, + "end": { + "line": 32, + "column": 24 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1644, + "end": 1645, + "loc": { + "start": { + "line": 32, + "column": 25 + }, + "end": { + "line": 32, + "column": 26 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1655, + "end": 1659, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1659, + "end": 1660, + "loc": { + "start": { + "line": 33, + "column": 12 + }, + "end": { + "line": 33, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "updateConfigSpeed", + "start": 1660, + "end": 1677, + "loc": { + "start": { + "line": 33, + "column": 13 + }, + "end": { + "line": 33, + "column": 30 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1677, + "end": 1678, + "loc": { + "start": { + "line": 33, + "column": 30 + }, + "end": { + "line": 33, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pConfig", + "start": 1678, + "end": 1685, + "loc": { + "start": { + "line": 33, + "column": 31 + }, + "end": { + "line": 33, + "column": 38 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1685, + "end": 1686, + "loc": { + "start": { + "line": 33, + "column": 38 + }, + "end": { + "line": 33, + "column": 39 + } + } + }, + { + "type": { + "label": "true", + "keyword": "true", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "true", + "start": 1687, + "end": 1691, + "loc": { + "start": { + "line": 33, + "column": 40 + }, + "end": { + "line": 33, + "column": 44 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1691, + "end": 1692, + "loc": { + "start": { + "line": 33, + "column": 44 + }, + "end": { + "line": 33, + "column": 45 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1692, + "end": 1693, + "loc": { + "start": { + "line": 33, + "column": 45 + }, + "end": { + "line": 33, + "column": 46 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 1705, + "end": 1707, + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 35, + "column": 10 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1708, + "end": 1709, + "loc": { + "start": { + "line": 35, + "column": 11 + }, + "end": { + "line": 35, + "column": 12 + } + } + }, + { + "type": { + "label": "prefix", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "!", + "start": 1709, + "end": 1710, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 35, + "column": 13 + } + } + }, + { + "type": { + "label": "typeof", + "keyword": "typeof", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "typeof", + "start": 1710, + "end": 1716, + "loc": { + "start": { + "line": 35, + "column": 13 + }, + "end": { + "line": 35, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pConfig", + "start": 1717, + "end": 1724, + "loc": { + "start": { + "line": 35, + "column": 20 + }, + "end": { + "line": 35, + "column": 27 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1724, + "end": 1725, + "loc": { + "start": { + "line": 35, + "column": 27 + }, + "end": { + "line": 35, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "plane", + "start": 1725, + "end": 1730, + "loc": { + "start": { + "line": 35, + "column": 28 + }, + "end": { + "line": 35, + "column": 33 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 1731, + "end": 1734, + "loc": { + "start": { + "line": 35, + "column": 34 + }, + "end": { + "line": 35, + "column": 37 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "number", + "start": 1735, + "end": 1743, + "loc": { + "start": { + "line": 35, + "column": 38 + }, + "end": { + "line": 35, + "column": 46 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1743, + "end": 1744, + "loc": { + "start": { + "line": 35, + "column": 46 + }, + "end": { + "line": 35, + "column": 47 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1745, + "end": 1746, + "loc": { + "start": { + "line": 35, + "column": 48 + }, + "end": { + "line": 35, + "column": 49 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Parallax", + "start": 1760, + "end": 1768, + "loc": { + "start": { + "line": 36, + "column": 12 + }, + "end": { + "line": 36, + "column": 20 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1768, + "end": 1769, + "loc": { + "start": { + "line": 36, + "column": 20 + }, + "end": { + "line": 36, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "logger", + "start": 1769, + "end": 1775, + "loc": { + "start": { + "line": 36, + "column": 21 + }, + "end": { + "line": 36, + "column": 27 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1775, + "end": 1776, + "loc": { + "start": { + "line": 36, + "column": 27 + }, + "end": { + "line": 36, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "prefix", + "start": 1776, + "end": 1782, + "loc": { + "start": { + "line": 36, + "column": 28 + }, + "end": { + "line": 36, + "column": 34 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1782, + "end": 1783, + "loc": { + "start": { + "line": 36, + "column": 34 + }, + "end": { + "line": 36, + "column": 35 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Parallax-Module", + "start": 1783, + "end": 1800, + "loc": { + "start": { + "line": 36, + "column": 35 + }, + "end": { + "line": 36, + "column": 52 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1800, + "end": 1801, + "loc": { + "start": { + "line": 36, + "column": 52 + }, + "end": { + "line": 36, + "column": 53 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1801, + "end": 1802, + "loc": { + "start": { + "line": 36, + "column": 53 + }, + "end": { + "line": 36, + "column": 54 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "warn", + "start": 1802, + "end": 1806, + "loc": { + "start": { + "line": 36, + "column": 54 + }, + "end": { + "line": 36, + "column": 58 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1806, + "end": 1807, + "loc": { + "start": { + "line": 36, + "column": 58 + }, + "end": { + "line": 36, + "column": 59 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Expected a number for \"pConfig.plane\", but received:", + "start": 1807, + "end": 1861, + "loc": { + "start": { + "line": 36, + "column": 59 + }, + "end": { + "line": 36, + "column": 113 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1861, + "end": 1862, + "loc": { + "start": { + "line": 36, + "column": 113 + }, + "end": { + "line": 36, + "column": 114 + } + } + }, + { + "type": { + "label": "typeof", + "keyword": "typeof", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "typeof", + "start": 1863, + "end": 1869, + "loc": { + "start": { + "line": 36, + "column": 115 + }, + "end": { + "line": 36, + "column": 121 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pConfig", + "start": 1870, + "end": 1877, + "loc": { + "start": { + "line": 36, + "column": 122 + }, + "end": { + "line": 36, + "column": 129 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1877, + "end": 1878, + "loc": { + "start": { + "line": 36, + "column": 129 + }, + "end": { + "line": 36, + "column": 130 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "plane", + "start": 1878, + "end": 1883, + "loc": { + "start": { + "line": 36, + "column": 130 + }, + "end": { + "line": 36, + "column": 135 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1883, + "end": 1884, + "loc": { + "start": { + "line": 36, + "column": 135 + }, + "end": { + "line": 36, + "column": 136 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "\n Default plane of \"1\" used.", + "start": 1885, + "end": 1916, + "loc": { + "start": { + "line": 36, + "column": 137 + }, + "end": { + "line": 36, + "column": 168 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1916, + "end": 1917, + "loc": { + "start": { + "line": 36, + "column": 168 + }, + "end": { + "line": 36, + "column": 169 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1917, + "end": 1918, + "loc": { + "start": { + "line": 36, + "column": 169 + }, + "end": { + "line": 36, + "column": 170 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1928, + "end": 1929, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 37, + "column": 9 + } + } + }, + { + "type": { + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "else", + "start": 1930, + "end": 1934, + "loc": { + "start": { + "line": 37, + "column": 10 + }, + "end": { + "line": 37, + "column": 14 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1935, + "end": 1936, + "loc": { + "start": { + "line": 37, + "column": 15 + }, + "end": { + "line": 37, + "column": 16 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1950, + "end": 1954, + "loc": { + "start": { + "line": 38, + "column": 12 + }, + "end": { + "line": 38, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1954, + "end": 1955, + "loc": { + "start": { + "line": 38, + "column": 16 + }, + "end": { + "line": 38, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "config", + "start": 1955, + "end": 1961, + "loc": { + "start": { + "line": 38, + "column": 17 + }, + "end": { + "line": 38, + "column": 23 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1961, + "end": 1962, + "loc": { + "start": { + "line": 38, + "column": 23 + }, + "end": { + "line": 38, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "plane", + "start": 1962, + "end": 1967, + "loc": { + "start": { + "line": 38, + "column": 24 + }, + "end": { + "line": 38, + "column": 29 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1968, + "end": 1969, + "loc": { + "start": { + "line": 38, + "column": 30 + }, + "end": { + "line": 38, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pConfig", + "start": 1970, + "end": 1977, + "loc": { + "start": { + "line": 38, + "column": 32 + }, + "end": { + "line": 38, + "column": 39 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1977, + "end": 1978, + "loc": { + "start": { + "line": 38, + "column": 39 + }, + "end": { + "line": 38, + "column": 40 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "plane", + "start": 1978, + "end": 1983, + "loc": { + "start": { + "line": 38, + "column": 40 + }, + "end": { + "line": 38, + "column": 45 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1983, + "end": 1984, + "loc": { + "start": { + "line": 38, + "column": 45 + }, + "end": { + "line": 38, + "column": 46 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1994, + "end": 1995, + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 39, + "column": 9 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 2007, + "end": 2012, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "instanceConfig", + "start": 2013, + "end": 2027, + "loc": { + "start": { + "line": 41, + "column": 14 + }, + "end": { + "line": 41, + "column": 28 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 2028, + "end": 2029, + "loc": { + "start": { + "line": 41, + "column": 29 + }, + "end": { + "line": 41, + "column": 30 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2030, + "end": 2031, + "loc": { + "start": { + "line": 41, + "column": 31 + }, + "end": { + "line": 41, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "x", + "start": 2045, + "end": 2046, + "loc": { + "start": { + "line": 42, + "column": 12 + }, + "end": { + "line": 42, + "column": 13 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2046, + "end": 2047, + "loc": { + "start": { + "line": 42, + "column": 13 + }, + "end": { + "line": 42, + "column": 14 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 2048, + "end": 2052, + "loc": { + "start": { + "line": 42, + "column": 15 + }, + "end": { + "line": 42, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2052, + "end": 2053, + "loc": { + "start": { + "line": 42, + "column": 19 + }, + "end": { + "line": 42, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "config", + "start": 2053, + "end": 2059, + "loc": { + "start": { + "line": 42, + "column": 20 + }, + "end": { + "line": 42, + "column": 26 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2059, + "end": 2060, + "loc": { + "start": { + "line": 42, + "column": 26 + }, + "end": { + "line": 42, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "horizontalSpeed", + "start": 2060, + "end": 2075, + "loc": { + "start": { + "line": 42, + "column": 27 + }, + "end": { + "line": 42, + "column": 42 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2075, + "end": 2076, + "loc": { + "start": { + "line": 42, + "column": 42 + }, + "end": { + "line": 42, + "column": 43 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "y", + "start": 2090, + "end": 2091, + "loc": { + "start": { + "line": 43, + "column": 12 + }, + "end": { + "line": 43, + "column": 13 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2091, + "end": 2092, + "loc": { + "start": { + "line": 43, + "column": 13 + }, + "end": { + "line": 43, + "column": 14 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 2093, + "end": 2097, + "loc": { + "start": { + "line": 43, + "column": 15 + }, + "end": { + "line": 43, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2097, + "end": 2098, + "loc": { + "start": { + "line": 43, + "column": 19 + }, + "end": { + "line": 43, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "config", + "start": 2098, + "end": 2104, + "loc": { + "start": { + "line": 43, + "column": 20 + }, + "end": { + "line": 43, + "column": 26 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2104, + "end": 2105, + "loc": { + "start": { + "line": 43, + "column": 26 + }, + "end": { + "line": 43, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "verticalSpeed", + "start": 2105, + "end": 2118, + "loc": { + "start": { + "line": 43, + "column": 27 + }, + "end": { + "line": 43, + "column": 40 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2128, + "end": 2129, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 9 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 2141, + "end": 2143, + "loc": { + "start": { + "line": 46, + "column": 8 + }, + "end": { + "line": 46, + "column": 10 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2144, + "end": 2145, + "loc": { + "start": { + "line": 46, + "column": 11 + }, + "end": { + "line": 46, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Array", + "start": 2145, + "end": 2150, + "loc": { + "start": { + "line": 46, + "column": 12 + }, + "end": { + "line": 46, + "column": 17 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2150, + "end": 2151, + "loc": { + "start": { + "line": 46, + "column": 17 + }, + "end": { + "line": 46, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "isArray", + "start": 2151, + "end": 2158, + "loc": { + "start": { + "line": 46, + "column": 18 + }, + "end": { + "line": 46, + "column": 25 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2158, + "end": 2159, + "loc": { + "start": { + "line": 46, + "column": 25 + }, + "end": { + "line": 46, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pConfig", + "start": 2159, + "end": 2166, + "loc": { + "start": { + "line": 46, + "column": 26 + }, + "end": { + "line": 46, + "column": 33 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2166, + "end": 2167, + "loc": { + "start": { + "line": 46, + "column": 33 + }, + "end": { + "line": 46, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "instances", + "start": 2167, + "end": 2176, + "loc": { + "start": { + "line": 46, + "column": 34 + }, + "end": { + "line": 46, + "column": 43 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2176, + "end": 2177, + "loc": { + "start": { + "line": 46, + "column": 43 + }, + "end": { + "line": 46, + "column": 44 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2177, + "end": 2178, + "loc": { + "start": { + "line": 46, + "column": 44 + }, + "end": { + "line": 46, + "column": 45 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2179, + "end": 2180, + "loc": { + "start": { + "line": 46, + "column": 46 + }, + "end": { + "line": 46, + "column": 47 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pConfig", + "start": 2194, + "end": 2201, + "loc": { + "start": { + "line": 47, + "column": 12 + }, + "end": { + "line": 47, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2201, + "end": 2202, + "loc": { + "start": { + "line": 47, + "column": 19 + }, + "end": { + "line": 47, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "instances", + "start": 2202, + "end": 2211, + "loc": { + "start": { + "line": 47, + "column": 20 + }, + "end": { + "line": 47, + "column": 29 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2211, + "end": 2212, + "loc": { + "start": { + "line": 47, + "column": 29 + }, + "end": { + "line": 47, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "forEach", + "start": 2212, + "end": 2219, + "loc": { + "start": { + "line": 47, + "column": 30 + }, + "end": { + "line": 47, + "column": 37 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2219, + "end": 2220, + "loc": { + "start": { + "line": 47, + "column": 37 + }, + "end": { + "line": 47, + "column": 38 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pInstance", + "start": 2220, + "end": 2229, + "loc": { + "start": { + "line": 47, + "column": 38 + }, + "end": { + "line": 47, + "column": 47 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2230, + "end": 2232, + "loc": { + "start": { + "line": 47, + "column": 48 + }, + "end": { + "line": 47, + "column": 50 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2233, + "end": 2234, + "loc": { + "start": { + "line": 47, + "column": 51 + }, + "end": { + "line": 47, + "column": 52 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pInstance", + "start": 2252, + "end": 2261, + "loc": { + "start": { + "line": 48, + "column": 16 + }, + "end": { + "line": 48, + "column": 25 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2261, + "end": 2262, + "loc": { + "start": { + "line": 48, + "column": 25 + }, + "end": { + "line": 48, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "plane", + "start": 2262, + "end": 2267, + "loc": { + "start": { + "line": 48, + "column": 26 + }, + "end": { + "line": 48, + "column": 31 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 2268, + "end": 2269, + "loc": { + "start": { + "line": 48, + "column": 32 + }, + "end": { + "line": 48, + "column": 33 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 2270, + "end": 2274, + "loc": { + "start": { + "line": 48, + "column": 34 + }, + "end": { + "line": 48, + "column": 38 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2274, + "end": 2275, + "loc": { + "start": { + "line": 48, + "column": 38 + }, + "end": { + "line": 48, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "config", + "start": 2275, + "end": 2281, + "loc": { + "start": { + "line": 48, + "column": 39 + }, + "end": { + "line": 48, + "column": 45 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2281, + "end": 2282, + "loc": { + "start": { + "line": 48, + "column": 45 + }, + "end": { + "line": 48, + "column": 46 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "plane", + "start": 2282, + "end": 2287, + "loc": { + "start": { + "line": 48, + "column": 46 + }, + "end": { + "line": 48, + "column": 51 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2287, + "end": 2288, + "loc": { + "start": { + "line": 48, + "column": 51 + }, + "end": { + "line": 48, + "column": 52 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 2306, + "end": 2310, + "loc": { + "start": { + "line": 49, + "column": 16 + }, + "end": { + "line": 49, + "column": 20 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2310, + "end": 2311, + "loc": { + "start": { + "line": 49, + "column": 20 + }, + "end": { + "line": 49, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "add", + "start": 2311, + "end": 2314, + "loc": { + "start": { + "line": 49, + "column": 21 + }, + "end": { + "line": 49, + "column": 24 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2314, + "end": 2315, + "loc": { + "start": { + "line": 49, + "column": 24 + }, + "end": { + "line": 49, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pInstance", + "start": 2315, + "end": 2324, + "loc": { + "start": { + "line": 49, + "column": 25 + }, + "end": { + "line": 49, + "column": 34 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2324, + "end": 2325, + "loc": { + "start": { + "line": 49, + "column": 34 + }, + "end": { + "line": 49, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "instanceConfig", + "start": 2326, + "end": 2340, + "loc": { + "start": { + "line": 49, + "column": 36 + }, + "end": { + "line": 49, + "column": 50 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2340, + "end": 2341, + "loc": { + "start": { + "line": 49, + "column": 50 + }, + "end": { + "line": 49, + "column": 51 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2355, + "end": 2356, + "loc": { + "start": { + "line": 50, + "column": 12 + }, + "end": { + "line": 50, + "column": 13 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2356, + "end": 2357, + "loc": { + "start": { + "line": 50, + "column": 13 + }, + "end": { + "line": 50, + "column": 14 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2357, + "end": 2358, + "loc": { + "start": { + "line": 50, + "column": 14 + }, + "end": { + "line": 50, + "column": 15 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2368, + "end": 2369, + "loc": { + "start": { + "line": 51, + "column": 8 + }, + "end": { + "line": 51, + "column": 9 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 2381, + "end": 2383, + "loc": { + "start": { + "line": 53, + "column": 8 + }, + "end": { + "line": 53, + "column": 10 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2384, + "end": 2385, + "loc": { + "start": { + "line": 53, + "column": 11 + }, + "end": { + "line": 53, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Array", + "start": 2385, + "end": 2390, + "loc": { + "start": { + "line": 53, + "column": 12 + }, + "end": { + "line": 53, + "column": 17 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2390, + "end": 2391, + "loc": { + "start": { + "line": 53, + "column": 17 + }, + "end": { + "line": 53, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "isArray", + "start": 2391, + "end": 2398, + "loc": { + "start": { + "line": 53, + "column": 18 + }, + "end": { + "line": 53, + "column": 25 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2398, + "end": 2399, + "loc": { + "start": { + "line": 53, + "column": 25 + }, + "end": { + "line": 53, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pConfig", + "start": 2399, + "end": 2406, + "loc": { + "start": { + "line": 53, + "column": 26 + }, + "end": { + "line": 53, + "column": 33 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2406, + "end": 2407, + "loc": { + "start": { + "line": 53, + "column": 33 + }, + "end": { + "line": 53, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "backgrounds", + "start": 2407, + "end": 2418, + "loc": { + "start": { + "line": 53, + "column": 34 + }, + "end": { + "line": 53, + "column": 45 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2418, + "end": 2419, + "loc": { + "start": { + "line": 53, + "column": 45 + }, + "end": { + "line": 53, + "column": 46 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2419, + "end": 2420, + "loc": { + "start": { + "line": 53, + "column": 46 + }, + "end": { + "line": 53, + "column": 47 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2421, + "end": 2422, + "loc": { + "start": { + "line": 53, + "column": 48 + }, + "end": { + "line": 53, + "column": 49 + } + } + }, + { + "type": "CommentLine", + "value": " Backgrounds automatically loop", + "start": 2436, + "end": 2469, + "loc": { + "start": { + "line": 54, + "column": 12 + }, + "end": { + "line": 54, + "column": 45 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "instanceConfig", + "start": 2483, + "end": 2497, + "loc": { + "start": { + "line": 55, + "column": 12 + }, + "end": { + "line": 55, + "column": 26 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2497, + "end": 2498, + "loc": { + "start": { + "line": 55, + "column": 26 + }, + "end": { + "line": 55, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "loop", + "start": 2498, + "end": 2502, + "loc": { + "start": { + "line": 55, + "column": 27 + }, + "end": { + "line": 55, + "column": 31 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 2503, + "end": 2504, + "loc": { + "start": { + "line": 55, + "column": 32 + }, + "end": { + "line": 55, + "column": 33 + } + } + }, + { + "type": { + "label": "true", + "keyword": "true", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "true", + "start": 2505, + "end": 2509, + "loc": { + "start": { + "line": 55, + "column": 34 + }, + "end": { + "line": 55, + "column": 38 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2509, + "end": 2510, + "loc": { + "start": { + "line": 55, + "column": 38 + }, + "end": { + "line": 55, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pConfig", + "start": 2524, + "end": 2531, + "loc": { + "start": { + "line": 56, + "column": 12 + }, + "end": { + "line": 56, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2531, + "end": 2532, + "loc": { + "start": { + "line": 56, + "column": 19 + }, + "end": { + "line": 56, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "backgrounds", + "start": 2532, + "end": 2543, + "loc": { + "start": { + "line": 56, + "column": 20 + }, + "end": { + "line": 56, + "column": 31 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2543, + "end": 2544, + "loc": { + "start": { + "line": 56, + "column": 31 + }, + "end": { + "line": 56, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "forEach", + "start": 2544, + "end": 2551, + "loc": { + "start": { + "line": 56, + "column": 32 + }, + "end": { + "line": 56, + "column": 39 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2551, + "end": 2552, + "loc": { + "start": { + "line": 56, + "column": 39 + }, + "end": { + "line": 56, + "column": 40 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pInstance", + "start": 2552, + "end": 2561, + "loc": { + "start": { + "line": 56, + "column": 40 + }, + "end": { + "line": 56, + "column": 49 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2562, + "end": 2564, + "loc": { + "start": { + "line": 56, + "column": 50 + }, + "end": { + "line": 56, + "column": 52 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2565, + "end": 2566, + "loc": { + "start": { + "line": 56, + "column": 53 + }, + "end": { + "line": 56, + "column": 54 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pInstance", + "start": 2584, + "end": 2593, + "loc": { + "start": { + "line": 57, + "column": 16 + }, + "end": { + "line": 57, + "column": 25 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2593, + "end": 2594, + "loc": { + "start": { + "line": 57, + "column": 25 + }, + "end": { + "line": 57, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "plane", + "start": 2594, + "end": 2599, + "loc": { + "start": { + "line": 57, + "column": 26 + }, + "end": { + "line": 57, + "column": 31 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 2600, + "end": 2601, + "loc": { + "start": { + "line": 57, + "column": 32 + }, + "end": { + "line": 57, + "column": 33 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 2602, + "end": 2606, + "loc": { + "start": { + "line": 57, + "column": 34 + }, + "end": { + "line": 57, + "column": 38 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2606, + "end": 2607, + "loc": { + "start": { + "line": 57, + "column": 38 + }, + "end": { + "line": 57, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "config", + "start": 2607, + "end": 2613, + "loc": { + "start": { + "line": 57, + "column": 39 + }, + "end": { + "line": 57, + "column": 45 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2613, + "end": 2614, + "loc": { + "start": { + "line": 57, + "column": 45 + }, + "end": { + "line": 57, + "column": 46 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "plane", + "start": 2614, + "end": 2619, + "loc": { + "start": { + "line": 57, + "column": 46 + }, + "end": { + "line": 57, + "column": 51 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2619, + "end": 2620, + "loc": { + "start": { + "line": 57, + "column": 51 + }, + "end": { + "line": 57, + "column": 52 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 2638, + "end": 2642, + "loc": { + "start": { + "line": 58, + "column": 16 + }, + "end": { + "line": 58, + "column": 20 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2642, + "end": 2643, + "loc": { + "start": { + "line": 58, + "column": 20 + }, + "end": { + "line": 58, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "add", + "start": 2643, + "end": 2646, + "loc": { + "start": { + "line": 58, + "column": 21 + }, + "end": { + "line": 58, + "column": 24 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2646, + "end": 2647, + "loc": { + "start": { + "line": 58, + "column": 24 + }, + "end": { + "line": 58, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pInstance", + "start": 2647, + "end": 2656, + "loc": { + "start": { + "line": 58, + "column": 25 + }, + "end": { + "line": 58, + "column": 34 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2656, + "end": 2657, + "loc": { + "start": { + "line": 58, + "column": 34 + }, + "end": { + "line": 58, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "instanceConfig", + "start": 2658, + "end": 2672, + "loc": { + "start": { + "line": 58, + "column": 36 + }, + "end": { + "line": 58, + "column": 50 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2672, + "end": 2673, + "loc": { + "start": { + "line": 58, + "column": 50 + }, + "end": { + "line": 58, + "column": 51 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2687, + "end": 2688, + "loc": { + "start": { + "line": 59, + "column": 12 + }, + "end": { + "line": 59, + "column": 13 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2688, + "end": 2689, + "loc": { + "start": { + "line": 59, + "column": 13 + }, + "end": { + "line": 59, + "column": 14 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2689, + "end": 2690, + "loc": { + "start": { + "line": 59, + "column": 14 + }, + "end": { + "line": 59, + "column": 15 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2700, + "end": 2701, + "loc": { + "start": { + "line": 60, + "column": 8 + }, + "end": { + "line": 60, + "column": 9 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2707, + "end": 2708, + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 61, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Updates the configuration speed of the layer.\r\n * @param {Object} pConfig - The speed configuration of the parallax layer.\r\n * @prop {number} pConfig.horizontalSpeed - The horizontal speed of the layer.\r\n * @prop {number} pConfig.verticalSpeed - The vertical speed of the layer. \r\n * @param {boolean} pUpdateLayerConfigOnly - If only to update the layer config and not the instance config.\r\n ", + "start": 2714, + "end": 3140, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 68, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "updateConfigSpeed", + "start": 3146, + "end": 3163, + "loc": { + "start": { + "line": 69, + "column": 4 + }, + "end": { + "line": 69, + "column": 21 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3163, + "end": 3164, + "loc": { + "start": { + "line": 69, + "column": 21 + }, + "end": { + "line": 69, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pConfig", + "start": 3164, + "end": 3171, + "loc": { + "start": { + "line": 69, + "column": 22 + }, + "end": { + "line": 69, + "column": 29 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3171, + "end": 3172, + "loc": { + "start": { + "line": 69, + "column": 29 + }, + "end": { + "line": 69, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pUpdateLayerConfigOnly", + "start": 3173, + "end": 3195, + "loc": { + "start": { + "line": 69, + "column": 31 + }, + "end": { + "line": 69, + "column": 53 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3195, + "end": 3196, + "loc": { + "start": { + "line": 69, + "column": 53 + }, + "end": { + "line": 69, + "column": 54 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3197, + "end": 3198, + "loc": { + "start": { + "line": 69, + "column": 55 + }, + "end": { + "line": 69, + "column": 56 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 3208, + "end": 3212, + "loc": { + "start": { + "line": 70, + "column": 8 + }, + "end": { + "line": 70, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3212, + "end": 3213, + "loc": { + "start": { + "line": 70, + "column": 12 + }, + "end": { + "line": 70, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "updateHorizontalSpeed", + "start": 3213, + "end": 3234, + "loc": { + "start": { + "line": 70, + "column": 13 + }, + "end": { + "line": 70, + "column": 34 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3234, + "end": 3235, + "loc": { + "start": { + "line": 70, + "column": 34 + }, + "end": { + "line": 70, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pConfig", + "start": 3235, + "end": 3242, + "loc": { + "start": { + "line": 70, + "column": 35 + }, + "end": { + "line": 70, + "column": 42 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3242, + "end": 3243, + "loc": { + "start": { + "line": 70, + "column": 42 + }, + "end": { + "line": 70, + "column": 43 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "horizontalSpeed", + "start": 3243, + "end": 3258, + "loc": { + "start": { + "line": 70, + "column": 43 + }, + "end": { + "line": 70, + "column": 58 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3258, + "end": 3259, + "loc": { + "start": { + "line": 70, + "column": 58 + }, + "end": { + "line": 70, + "column": 59 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pUpdateLayerConfigOnly", + "start": 3260, + "end": 3282, + "loc": { + "start": { + "line": 70, + "column": 60 + }, + "end": { + "line": 70, + "column": 82 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3282, + "end": 3283, + "loc": { + "start": { + "line": 70, + "column": 82 + }, + "end": { + "line": 70, + "column": 83 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3283, + "end": 3284, + "loc": { + "start": { + "line": 70, + "column": 83 + }, + "end": { + "line": 70, + "column": 84 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 3294, + "end": 3298, + "loc": { + "start": { + "line": 71, + "column": 8 + }, + "end": { + "line": 71, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3298, + "end": 3299, + "loc": { + "start": { + "line": 71, + "column": 12 + }, + "end": { + "line": 71, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "updateVerticalSpeed", + "start": 3299, + "end": 3318, + "loc": { + "start": { + "line": 71, + "column": 13 + }, + "end": { + "line": 71, + "column": 32 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3318, + "end": 3319, + "loc": { + "start": { + "line": 71, + "column": 32 + }, + "end": { + "line": 71, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pConfig", + "start": 3319, + "end": 3326, + "loc": { + "start": { + "line": 71, + "column": 33 + }, + "end": { + "line": 71, + "column": 40 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3326, + "end": 3327, + "loc": { + "start": { + "line": 71, + "column": 40 + }, + "end": { + "line": 71, + "column": 41 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "verticalSpeed", + "start": 3327, + "end": 3340, + "loc": { + "start": { + "line": 71, + "column": 41 + }, + "end": { + "line": 71, + "column": 54 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3340, + "end": 3341, + "loc": { + "start": { + "line": 71, + "column": 54 + }, + "end": { + "line": 71, + "column": 55 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pUpdateLayerConfigOnly", + "start": 3342, + "end": 3364, + "loc": { + "start": { + "line": 71, + "column": 56 + }, + "end": { + "line": 71, + "column": 78 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3364, + "end": 3365, + "loc": { + "start": { + "line": 71, + "column": 78 + }, + "end": { + "line": 71, + "column": 79 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3365, + "end": 3366, + "loc": { + "start": { + "line": 71, + "column": 79 + }, + "end": { + "line": 71, + "column": 80 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3372, + "end": 3373, + "loc": { + "start": { + "line": 72, + "column": 4 + }, + "end": { + "line": 72, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Updates the horizontal speed of this layer.\r\n * @param {number} pHorizontalSpeed - The new horizontal speed.\r\n * @param {boolean} pUpdateLayerConfigOnly - If only to update the layer config and not the instance config.\r\n ", + "start": 3379, + "end": 3626, + "loc": { + "start": { + "line": 73, + "column": 4 + }, + "end": { + "line": 77, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "updateHorizontalSpeed", + "start": 3632, + "end": 3653, + "loc": { + "start": { + "line": 78, + "column": 4 + }, + "end": { + "line": 78, + "column": 25 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3653, + "end": 3654, + "loc": { + "start": { + "line": 78, + "column": 25 + }, + "end": { + "line": 78, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pHorizontalSpeed", + "start": 3654, + "end": 3670, + "loc": { + "start": { + "line": 78, + "column": 26 + }, + "end": { + "line": 78, + "column": 42 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3670, + "end": 3671, + "loc": { + "start": { + "line": 78, + "column": 42 + }, + "end": { + "line": 78, + "column": 43 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pUpdateLayerConfigOnly", + "start": 3672, + "end": 3694, + "loc": { + "start": { + "line": 78, + "column": 44 + }, + "end": { + "line": 78, + "column": 66 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3694, + "end": 3695, + "loc": { + "start": { + "line": 78, + "column": 66 + }, + "end": { + "line": 78, + "column": 67 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3696, + "end": 3697, + "loc": { + "start": { + "line": 78, + "column": 68 + }, + "end": { + "line": 78, + "column": 69 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 3707, + "end": 3712, + "loc": { + "start": { + "line": 79, + "column": 8 + }, + "end": { + "line": 79, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inValidHorizontal", + "start": 3713, + "end": 3730, + "loc": { + "start": { + "line": 79, + "column": 14 + }, + "end": { + "line": 79, + "column": 31 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 3731, + "end": 3732, + "loc": { + "start": { + "line": 79, + "column": 32 + }, + "end": { + "line": 79, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pHorizontalSpeed", + "start": 3733, + "end": 3749, + "loc": { + "start": { + "line": 79, + "column": 34 + }, + "end": { + "line": 79, + "column": 50 + } + } + }, + { + "type": { + "label": "&&", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 2, + "updateContext": null + }, + "value": "&&", + "start": 3750, + "end": 3752, + "loc": { + "start": { + "line": 79, + "column": 51 + }, + "end": { + "line": 79, + "column": 53 + } + } + }, + { + "type": { + "label": "typeof", + "keyword": "typeof", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "typeof", + "start": 3753, + "end": 3759, + "loc": { + "start": { + "line": 79, + "column": 54 + }, + "end": { + "line": 79, + "column": 60 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pHorizontalSpeed", + "start": 3760, + "end": 3776, + "loc": { + "start": { + "line": 79, + "column": 61 + }, + "end": { + "line": 79, + "column": 77 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "!==", + "start": 3777, + "end": 3780, + "loc": { + "start": { + "line": 79, + "column": 78 + }, + "end": { + "line": 79, + "column": 81 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "number", + "start": 3781, + "end": 3789, + "loc": { + "start": { + "line": 79, + "column": 82 + }, + "end": { + "line": 79, + "column": 90 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3789, + "end": 3790, + "loc": { + "start": { + "line": 79, + "column": 90 + }, + "end": { + "line": 79, + "column": 91 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 3802, + "end": 3804, + "loc": { + "start": { + "line": 81, + "column": 8 + }, + "end": { + "line": 81, + "column": 10 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3805, + "end": 3806, + "loc": { + "start": { + "line": 81, + "column": 11 + }, + "end": { + "line": 81, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inValidHorizontal", + "start": 3806, + "end": 3823, + "loc": { + "start": { + "line": 81, + "column": 12 + }, + "end": { + "line": 81, + "column": 29 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3823, + "end": 3824, + "loc": { + "start": { + "line": 81, + "column": 29 + }, + "end": { + "line": 81, + "column": 30 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3825, + "end": 3826, + "loc": { + "start": { + "line": 81, + "column": 31 + }, + "end": { + "line": 81, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Parallax", + "start": 3840, + "end": 3848, + "loc": { + "start": { + "line": 82, + "column": 12 + }, + "end": { + "line": 82, + "column": 20 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3848, + "end": 3849, + "loc": { + "start": { + "line": 82, + "column": 20 + }, + "end": { + "line": 82, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "logger", + "start": 3849, + "end": 3855, + "loc": { + "start": { + "line": 82, + "column": 21 + }, + "end": { + "line": 82, + "column": 27 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3855, + "end": 3856, + "loc": { + "start": { + "line": 82, + "column": 27 + }, + "end": { + "line": 82, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "prefix", + "start": 3856, + "end": 3862, + "loc": { + "start": { + "line": 82, + "column": 28 + }, + "end": { + "line": 82, + "column": 34 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3862, + "end": 3863, + "loc": { + "start": { + "line": 82, + "column": 34 + }, + "end": { + "line": 82, + "column": 35 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Parallax-Module", + "start": 3863, + "end": 3880, + "loc": { + "start": { + "line": 82, + "column": 35 + }, + "end": { + "line": 82, + "column": 52 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3880, + "end": 3881, + "loc": { + "start": { + "line": 82, + "column": 52 + }, + "end": { + "line": 82, + "column": 53 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3881, + "end": 3882, + "loc": { + "start": { + "line": 82, + "column": 53 + }, + "end": { + "line": 82, + "column": 54 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "warn", + "start": 3882, + "end": 3886, + "loc": { + "start": { + "line": 82, + "column": 54 + }, + "end": { + "line": 82, + "column": 58 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3886, + "end": 3887, + "loc": { + "start": { + "line": 82, + "column": 58 + }, + "end": { + "line": 82, + "column": 59 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Expected a number for \"pHorizontalSpeed\", but received:", + "start": 3887, + "end": 3944, + "loc": { + "start": { + "line": 82, + "column": 59 + }, + "end": { + "line": 82, + "column": 116 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3944, + "end": 3945, + "loc": { + "start": { + "line": 82, + "column": 116 + }, + "end": { + "line": 82, + "column": 117 + } + } + }, + { + "type": { + "label": "typeof", + "keyword": "typeof", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "typeof", + "start": 3946, + "end": 3952, + "loc": { + "start": { + "line": 82, + "column": 118 + }, + "end": { + "line": 82, + "column": 124 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pHorizontalSpeed", + "start": 3953, + "end": 3969, + "loc": { + "start": { + "line": 82, + "column": 125 + }, + "end": { + "line": 82, + "column": 141 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3969, + "end": 3970, + "loc": { + "start": { + "line": 82, + "column": 141 + }, + "end": { + "line": 82, + "column": 142 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3970, + "end": 3971, + "loc": { + "start": { + "line": 82, + "column": 142 + }, + "end": { + "line": 82, + "column": 143 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 3985, + "end": 3991, + "loc": { + "start": { + "line": 83, + "column": 12 + }, + "end": { + "line": 83, + "column": 18 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4001, + "end": 4002, + "loc": { + "start": { + "line": 84, + "column": 8 + }, + "end": { + "line": 84, + "column": 9 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 4014, + "end": 4018, + "loc": { + "start": { + "line": 86, + "column": 8 + }, + "end": { + "line": 86, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4018, + "end": 4019, + "loc": { + "start": { + "line": 86, + "column": 12 + }, + "end": { + "line": 86, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "config", + "start": 4019, + "end": 4025, + "loc": { + "start": { + "line": 86, + "column": 13 + }, + "end": { + "line": 86, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4025, + "end": 4026, + "loc": { + "start": { + "line": 86, + "column": 19 + }, + "end": { + "line": 86, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "horizontalSpeed", + "start": 4026, + "end": 4041, + "loc": { + "start": { + "line": 86, + "column": 20 + }, + "end": { + "line": 86, + "column": 35 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 4042, + "end": 4043, + "loc": { + "start": { + "line": 86, + "column": 36 + }, + "end": { + "line": 86, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pHorizontalSpeed", + "start": 4044, + "end": 4060, + "loc": { + "start": { + "line": 86, + "column": 38 + }, + "end": { + "line": 86, + "column": 54 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4060, + "end": 4061, + "loc": { + "start": { + "line": 86, + "column": 54 + }, + "end": { + "line": 86, + "column": 55 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 4073, + "end": 4075, + "loc": { + "start": { + "line": 88, + "column": 8 + }, + "end": { + "line": 88, + "column": 10 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4076, + "end": 4077, + "loc": { + "start": { + "line": 88, + "column": 11 + }, + "end": { + "line": 88, + "column": 12 + } + } + }, + { + "type": { + "label": "prefix", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "!", + "start": 4077, + "end": 4078, + "loc": { + "start": { + "line": 88, + "column": 12 + }, + "end": { + "line": 88, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pUpdateLayerConfigOnly", + "start": 4078, + "end": 4100, + "loc": { + "start": { + "line": 88, + "column": 13 + }, + "end": { + "line": 88, + "column": 35 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4100, + "end": 4101, + "loc": { + "start": { + "line": 88, + "column": 35 + }, + "end": { + "line": 88, + "column": 36 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4102, + "end": 4103, + "loc": { + "start": { + "line": 88, + "column": 37 + }, + "end": { + "line": 88, + "column": 38 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 4117, + "end": 4122, + "loc": { + "start": { + "line": 89, + "column": 12 + }, + "end": { + "line": 89, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "update", + "start": 4123, + "end": 4129, + "loc": { + "start": { + "line": 89, + "column": 18 + }, + "end": { + "line": 89, + "column": 24 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 4130, + "end": 4131, + "loc": { + "start": { + "line": 89, + "column": 25 + }, + "end": { + "line": 89, + "column": 26 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4132, + "end": 4133, + "loc": { + "start": { + "line": 89, + "column": 27 + }, + "end": { + "line": 89, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pInstance", + "start": 4133, + "end": 4142, + "loc": { + "start": { + "line": 89, + "column": 28 + }, + "end": { + "line": 89, + "column": 37 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4142, + "end": 4143, + "loc": { + "start": { + "line": 89, + "column": 37 + }, + "end": { + "line": 89, + "column": 38 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4144, + "end": 4146, + "loc": { + "start": { + "line": 89, + "column": 39 + }, + "end": { + "line": 89, + "column": 41 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4147, + "end": 4148, + "loc": { + "start": { + "line": 89, + "column": 42 + }, + "end": { + "line": 89, + "column": 43 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 4166, + "end": 4171, + "loc": { + "start": { + "line": 90, + "column": 16 + }, + "end": { + "line": 90, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parallaxInfo", + "start": 4172, + "end": 4184, + "loc": { + "start": { + "line": 90, + "column": 22 + }, + "end": { + "line": 90, + "column": 34 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 4185, + "end": 4186, + "loc": { + "start": { + "line": 90, + "column": 35 + }, + "end": { + "line": 90, + "column": 36 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Parallax", + "start": 4187, + "end": 4195, + "loc": { + "start": { + "line": 90, + "column": 37 + }, + "end": { + "line": 90, + "column": 45 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4195, + "end": 4196, + "loc": { + "start": { + "line": 90, + "column": 45 + }, + "end": { + "line": 90, + "column": 46 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "instanceWeakMap", + "start": 4196, + "end": 4211, + "loc": { + "start": { + "line": 90, + "column": 46 + }, + "end": { + "line": 90, + "column": 61 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4211, + "end": 4212, + "loc": { + "start": { + "line": 90, + "column": 61 + }, + "end": { + "line": 90, + "column": 62 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 4212, + "end": 4215, + "loc": { + "start": { + "line": 90, + "column": 62 + }, + "end": { + "line": 90, + "column": 65 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4215, + "end": 4216, + "loc": { + "start": { + "line": 90, + "column": 65 + }, + "end": { + "line": 90, + "column": 66 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pInstance", + "start": 4216, + "end": 4225, + "loc": { + "start": { + "line": 90, + "column": 66 + }, + "end": { + "line": 90, + "column": 75 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4225, + "end": 4226, + "loc": { + "start": { + "line": 90, + "column": 75 + }, + "end": { + "line": 90, + "column": 76 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4226, + "end": 4227, + "loc": { + "start": { + "line": 90, + "column": 76 + }, + "end": { + "line": 90, + "column": 77 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parallaxInfo", + "start": 4245, + "end": 4257, + "loc": { + "start": { + "line": 91, + "column": 16 + }, + "end": { + "line": 91, + "column": 28 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4257, + "end": 4258, + "loc": { + "start": { + "line": 91, + "column": 28 + }, + "end": { + "line": 91, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "x", + "start": 4258, + "end": 4259, + "loc": { + "start": { + "line": 91, + "column": 29 + }, + "end": { + "line": 91, + "column": 30 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 4260, + "end": 4261, + "loc": { + "start": { + "line": 91, + "column": 31 + }, + "end": { + "line": 91, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pVerticalSpeed", + "start": 4262, + "end": 4276, + "loc": { + "start": { + "line": 91, + "column": 33 + }, + "end": { + "line": 91, + "column": 47 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4276, + "end": 4277, + "loc": { + "start": { + "line": 91, + "column": 47 + }, + "end": { + "line": 91, + "column": 48 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4291, + "end": 4292, + "loc": { + "start": { + "line": 92, + "column": 12 + }, + "end": { + "line": 92, + "column": 13 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 4308, + "end": 4312, + "loc": { + "start": { + "line": 94, + "column": 12 + }, + "end": { + "line": 94, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4312, + "end": 4313, + "loc": { + "start": { + "line": 94, + "column": 16 + }, + "end": { + "line": 94, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "instances", + "start": 4313, + "end": 4322, + "loc": { + "start": { + "line": 94, + "column": 17 + }, + "end": { + "line": 94, + "column": 26 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4322, + "end": 4323, + "loc": { + "start": { + "line": 94, + "column": 26 + }, + "end": { + "line": 94, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "forEach", + "start": 4323, + "end": 4330, + "loc": { + "start": { + "line": 94, + "column": 27 + }, + "end": { + "line": 94, + "column": 34 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4330, + "end": 4331, + "loc": { + "start": { + "line": 94, + "column": 34 + }, + "end": { + "line": 94, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pInstance", + "start": 4331, + "end": 4340, + "loc": { + "start": { + "line": 94, + "column": 35 + }, + "end": { + "line": 94, + "column": 44 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4341, + "end": 4343, + "loc": { + "start": { + "line": 94, + "column": 45 + }, + "end": { + "line": 94, + "column": 47 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4344, + "end": 4345, + "loc": { + "start": { + "line": 94, + "column": 48 + }, + "end": { + "line": 94, + "column": 49 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "update", + "start": 4363, + "end": 4369, + "loc": { + "start": { + "line": 95, + "column": 16 + }, + "end": { + "line": 95, + "column": 22 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4369, + "end": 4370, + "loc": { + "start": { + "line": 95, + "column": 22 + }, + "end": { + "line": 95, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pInstance", + "start": 4370, + "end": 4379, + "loc": { + "start": { + "line": 95, + "column": 23 + }, + "end": { + "line": 95, + "column": 32 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4379, + "end": 4380, + "loc": { + "start": { + "line": 95, + "column": 32 + }, + "end": { + "line": 95, + "column": 33 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4380, + "end": 4381, + "loc": { + "start": { + "line": 95, + "column": 33 + }, + "end": { + "line": 95, + "column": 34 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4395, + "end": 4396, + "loc": { + "start": { + "line": 96, + "column": 12 + }, + "end": { + "line": 96, + "column": 13 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4396, + "end": 4397, + "loc": { + "start": { + "line": 96, + "column": 13 + }, + "end": { + "line": 96, + "column": 14 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4397, + "end": 4398, + "loc": { + "start": { + "line": 96, + "column": 14 + }, + "end": { + "line": 96, + "column": 15 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 4412, + "end": 4416, + "loc": { + "start": { + "line": 97, + "column": 12 + }, + "end": { + "line": 97, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4416, + "end": 4417, + "loc": { + "start": { + "line": 97, + "column": 16 + }, + "end": { + "line": 97, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "backgrounds", + "start": 4417, + "end": 4428, + "loc": { + "start": { + "line": 97, + "column": 17 + }, + "end": { + "line": 97, + "column": 28 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4428, + "end": 4429, + "loc": { + "start": { + "line": 97, + "column": 28 + }, + "end": { + "line": 97, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "forEach", + "start": 4429, + "end": 4436, + "loc": { + "start": { + "line": 97, + "column": 29 + }, + "end": { + "line": 97, + "column": 36 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4436, + "end": 4437, + "loc": { + "start": { + "line": 97, + "column": 36 + }, + "end": { + "line": 97, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pInstance", + "start": 4437, + "end": 4446, + "loc": { + "start": { + "line": 97, + "column": 37 + }, + "end": { + "line": 97, + "column": 46 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4447, + "end": 4449, + "loc": { + "start": { + "line": 97, + "column": 47 + }, + "end": { + "line": 97, + "column": 49 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4450, + "end": 4451, + "loc": { + "start": { + "line": 97, + "column": 50 + }, + "end": { + "line": 97, + "column": 51 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "update", + "start": 4469, + "end": 4475, + "loc": { + "start": { + "line": 98, + "column": 16 + }, + "end": { + "line": 98, + "column": 22 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4475, + "end": 4476, + "loc": { + "start": { + "line": 98, + "column": 22 + }, + "end": { + "line": 98, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pInstance", + "start": 4476, + "end": 4485, + "loc": { + "start": { + "line": 98, + "column": 23 + }, + "end": { + "line": 98, + "column": 32 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4485, + "end": 4486, + "loc": { + "start": { + "line": 98, + "column": 32 + }, + "end": { + "line": 98, + "column": 33 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4486, + "end": 4487, + "loc": { + "start": { + "line": 98, + "column": 33 + }, + "end": { + "line": 98, + "column": 34 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4501, + "end": 4502, + "loc": { + "start": { + "line": 99, + "column": 12 + }, + "end": { + "line": 99, + "column": 13 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4502, + "end": 4503, + "loc": { + "start": { + "line": 99, + "column": 13 + }, + "end": { + "line": 99, + "column": 14 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4503, + "end": 4504, + "loc": { + "start": { + "line": 99, + "column": 14 + }, + "end": { + "line": 99, + "column": 15 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4514, + "end": 4515, + "loc": { + "start": { + "line": 100, + "column": 8 + }, + "end": { + "line": 100, + "column": 9 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4521, + "end": 4522, + "loc": { + "start": { + "line": 101, + "column": 4 + }, + "end": { + "line": 101, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Updates the vertical speed of the layer.\r\n * @param {number} pVerticalSpeed - The new vertical speed. \r\n * @param {boolean} pUpdateLayerConfigOnly - If only to update the layer config and not the instance config.\r\n ", + "start": 4528, + "end": 4769, + "loc": { + "start": { + "line": 102, + "column": 4 + }, + "end": { + "line": 106, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "updateVerticalSpeed", + "start": 4775, + "end": 4794, + "loc": { + "start": { + "line": 107, + "column": 4 + }, + "end": { + "line": 107, + "column": 23 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4794, + "end": 4795, + "loc": { + "start": { + "line": 107, + "column": 23 + }, + "end": { + "line": 107, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pVerticalSpeed", + "start": 4795, + "end": 4809, + "loc": { + "start": { + "line": 107, + "column": 24 + }, + "end": { + "line": 107, + "column": 38 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4809, + "end": 4810, + "loc": { + "start": { + "line": 107, + "column": 38 + }, + "end": { + "line": 107, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pUpdateLayerConfigOnly", + "start": 4811, + "end": 4833, + "loc": { + "start": { + "line": 107, + "column": 40 + }, + "end": { + "line": 107, + "column": 62 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4833, + "end": 4834, + "loc": { + "start": { + "line": 107, + "column": 62 + }, + "end": { + "line": 107, + "column": 63 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4835, + "end": 4836, + "loc": { + "start": { + "line": 107, + "column": 64 + }, + "end": { + "line": 107, + "column": 65 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 4846, + "end": 4851, + "loc": { + "start": { + "line": 108, + "column": 8 + }, + "end": { + "line": 108, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inValidVertical", + "start": 4852, + "end": 4867, + "loc": { + "start": { + "line": 108, + "column": 14 + }, + "end": { + "line": 108, + "column": 29 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 4868, + "end": 4869, + "loc": { + "start": { + "line": 108, + "column": 30 + }, + "end": { + "line": 108, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pVerticalSpeed", + "start": 4870, + "end": 4884, + "loc": { + "start": { + "line": 108, + "column": 32 + }, + "end": { + "line": 108, + "column": 46 + } + } + }, + { + "type": { + "label": "&&", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 2, + "updateContext": null + }, + "value": "&&", + "start": 4885, + "end": 4887, + "loc": { + "start": { + "line": 108, + "column": 47 + }, + "end": { + "line": 108, + "column": 49 + } + } + }, + { + "type": { + "label": "typeof", + "keyword": "typeof", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "typeof", + "start": 4888, + "end": 4894, + "loc": { + "start": { + "line": 108, + "column": 50 + }, + "end": { + "line": 108, + "column": 56 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pVerticalSpeed", + "start": 4895, + "end": 4909, + "loc": { + "start": { + "line": 108, + "column": 57 + }, + "end": { + "line": 108, + "column": 71 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "!==", + "start": 4910, + "end": 4913, + "loc": { + "start": { + "line": 108, + "column": 72 + }, + "end": { + "line": 108, + "column": 75 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "number", + "start": 4914, + "end": 4922, + "loc": { + "start": { + "line": 108, + "column": 76 + }, + "end": { + "line": 108, + "column": 84 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4922, + "end": 4923, + "loc": { + "start": { + "line": 108, + "column": 84 + }, + "end": { + "line": 108, + "column": 85 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 4935, + "end": 4937, + "loc": { + "start": { + "line": 110, + "column": 8 + }, + "end": { + "line": 110, + "column": 10 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4938, + "end": 4939, + "loc": { + "start": { + "line": 110, + "column": 11 + }, + "end": { + "line": 110, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inValidVertical", + "start": 4939, + "end": 4954, + "loc": { + "start": { + "line": 110, + "column": 12 + }, + "end": { + "line": 110, + "column": 27 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4954, + "end": 4955, + "loc": { + "start": { + "line": 110, + "column": 27 + }, + "end": { + "line": 110, + "column": 28 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4956, + "end": 4957, + "loc": { + "start": { + "line": 110, + "column": 29 + }, + "end": { + "line": 110, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Parallax", + "start": 4971, + "end": 4979, + "loc": { + "start": { + "line": 111, + "column": 12 + }, + "end": { + "line": 111, + "column": 20 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4979, + "end": 4980, + "loc": { + "start": { + "line": 111, + "column": 20 + }, + "end": { + "line": 111, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "logger", + "start": 4980, + "end": 4986, + "loc": { + "start": { + "line": 111, + "column": 21 + }, + "end": { + "line": 111, + "column": 27 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4986, + "end": 4987, + "loc": { + "start": { + "line": 111, + "column": 27 + }, + "end": { + "line": 111, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "prefix", + "start": 4987, + "end": 4993, + "loc": { + "start": { + "line": 111, + "column": 28 + }, + "end": { + "line": 111, + "column": 34 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4993, + "end": 4994, + "loc": { + "start": { + "line": 111, + "column": 34 + }, + "end": { + "line": 111, + "column": 35 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Parallax-Module", + "start": 4994, + "end": 5011, + "loc": { + "start": { + "line": 111, + "column": 35 + }, + "end": { + "line": 111, + "column": 52 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5011, + "end": 5012, + "loc": { + "start": { + "line": 111, + "column": 52 + }, + "end": { + "line": 111, + "column": 53 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5012, + "end": 5013, + "loc": { + "start": { + "line": 111, + "column": 53 + }, + "end": { + "line": 111, + "column": 54 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "warn", + "start": 5013, + "end": 5017, + "loc": { + "start": { + "line": 111, + "column": 54 + }, + "end": { + "line": 111, + "column": 58 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5017, + "end": 5018, + "loc": { + "start": { + "line": 111, + "column": 58 + }, + "end": { + "line": 111, + "column": 59 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Expected a number for \"pVerticalSpeed\", but received:", + "start": 5018, + "end": 5073, + "loc": { + "start": { + "line": 111, + "column": 59 + }, + "end": { + "line": 111, + "column": 114 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5073, + "end": 5074, + "loc": { + "start": { + "line": 111, + "column": 114 + }, + "end": { + "line": 111, + "column": 115 + } + } + }, + { + "type": { + "label": "typeof", + "keyword": "typeof", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "typeof", + "start": 5075, + "end": 5081, + "loc": { + "start": { + "line": 111, + "column": 116 + }, + "end": { + "line": 111, + "column": 122 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pVerticalSpeed", + "start": 5082, + "end": 5096, + "loc": { + "start": { + "line": 111, + "column": 123 + }, + "end": { + "line": 111, + "column": 137 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5096, + "end": 5097, + "loc": { + "start": { + "line": 111, + "column": 137 + }, + "end": { + "line": 111, + "column": 138 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5097, + "end": 5098, + "loc": { + "start": { + "line": 111, + "column": 138 + }, + "end": { + "line": 111, + "column": 139 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 5112, + "end": 5118, + "loc": { + "start": { + "line": 112, + "column": 12 + }, + "end": { + "line": 112, + "column": 18 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5128, + "end": 5129, + "loc": { + "start": { + "line": 113, + "column": 8 + }, + "end": { + "line": 113, + "column": 9 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 5141, + "end": 5145, + "loc": { + "start": { + "line": 115, + "column": 8 + }, + "end": { + "line": 115, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5145, + "end": 5146, + "loc": { + "start": { + "line": 115, + "column": 12 + }, + "end": { + "line": 115, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "config", + "start": 5146, + "end": 5152, + "loc": { + "start": { + "line": 115, + "column": 13 + }, + "end": { + "line": 115, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5152, + "end": 5153, + "loc": { + "start": { + "line": 115, + "column": 19 + }, + "end": { + "line": 115, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "verticalSpeed", + "start": 5153, + "end": 5166, + "loc": { + "start": { + "line": 115, + "column": 20 + }, + "end": { + "line": 115, + "column": 33 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 5167, + "end": 5168, + "loc": { + "start": { + "line": 115, + "column": 34 + }, + "end": { + "line": 115, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pVerticalSpeed", + "start": 5169, + "end": 5183, + "loc": { + "start": { + "line": 115, + "column": 36 + }, + "end": { + "line": 115, + "column": 50 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5183, + "end": 5184, + "loc": { + "start": { + "line": 115, + "column": 50 + }, + "end": { + "line": 115, + "column": 51 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 5196, + "end": 5198, + "loc": { + "start": { + "line": 117, + "column": 8 + }, + "end": { + "line": 117, + "column": 10 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5199, + "end": 5200, + "loc": { + "start": { + "line": 117, + "column": 11 + }, + "end": { + "line": 117, + "column": 12 + } + } + }, + { + "type": { + "label": "prefix", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "!", + "start": 5200, + "end": 5201, + "loc": { + "start": { + "line": 117, + "column": 12 + }, + "end": { + "line": 117, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pUpdateLayerConfigOnly", + "start": 5201, + "end": 5223, + "loc": { + "start": { + "line": 117, + "column": 13 + }, + "end": { + "line": 117, + "column": 35 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5223, + "end": 5224, + "loc": { + "start": { + "line": 117, + "column": 35 + }, + "end": { + "line": 117, + "column": 36 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5225, + "end": 5226, + "loc": { + "start": { + "line": 117, + "column": 37 + }, + "end": { + "line": 117, + "column": 38 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 5240, + "end": 5245, + "loc": { + "start": { + "line": 118, + "column": 12 + }, + "end": { + "line": 118, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "update", + "start": 5246, + "end": 5252, + "loc": { + "start": { + "line": 118, + "column": 18 + }, + "end": { + "line": 118, + "column": 24 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 5253, + "end": 5254, + "loc": { + "start": { + "line": 118, + "column": 25 + }, + "end": { + "line": 118, + "column": 26 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5255, + "end": 5256, + "loc": { + "start": { + "line": 118, + "column": 27 + }, + "end": { + "line": 118, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pInstance", + "start": 5256, + "end": 5265, + "loc": { + "start": { + "line": 118, + "column": 28 + }, + "end": { + "line": 118, + "column": 37 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5265, + "end": 5266, + "loc": { + "start": { + "line": 118, + "column": 37 + }, + "end": { + "line": 118, + "column": 38 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5267, + "end": 5269, + "loc": { + "start": { + "line": 118, + "column": 39 + }, + "end": { + "line": 118, + "column": 41 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5270, + "end": 5271, + "loc": { + "start": { + "line": 118, + "column": 42 + }, + "end": { + "line": 118, + "column": 43 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 5289, + "end": 5294, + "loc": { + "start": { + "line": 119, + "column": 16 + }, + "end": { + "line": 119, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parallaxInfo", + "start": 5295, + "end": 5307, + "loc": { + "start": { + "line": 119, + "column": 22 + }, + "end": { + "line": 119, + "column": 34 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 5308, + "end": 5309, + "loc": { + "start": { + "line": 119, + "column": 35 + }, + "end": { + "line": 119, + "column": 36 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Parallax", + "start": 5310, + "end": 5318, + "loc": { + "start": { + "line": 119, + "column": 37 + }, + "end": { + "line": 119, + "column": 45 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5318, + "end": 5319, + "loc": { + "start": { + "line": 119, + "column": 45 + }, + "end": { + "line": 119, + "column": 46 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "instanceWeakMap", + "start": 5319, + "end": 5334, + "loc": { + "start": { + "line": 119, + "column": 46 + }, + "end": { + "line": 119, + "column": 61 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5334, + "end": 5335, + "loc": { + "start": { + "line": 119, + "column": 61 + }, + "end": { + "line": 119, + "column": 62 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 5335, + "end": 5338, + "loc": { + "start": { + "line": 119, + "column": 62 + }, + "end": { + "line": 119, + "column": 65 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5338, + "end": 5339, + "loc": { + "start": { + "line": 119, + "column": 65 + }, + "end": { + "line": 119, + "column": 66 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pInstance", + "start": 5339, + "end": 5348, + "loc": { + "start": { + "line": 119, + "column": 66 + }, + "end": { + "line": 119, + "column": 75 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5348, + "end": 5349, + "loc": { + "start": { + "line": 119, + "column": 75 + }, + "end": { + "line": 119, + "column": 76 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5349, + "end": 5350, + "loc": { + "start": { + "line": 119, + "column": 76 + }, + "end": { + "line": 119, + "column": 77 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parallaxInfo", + "start": 5368, + "end": 5380, + "loc": { + "start": { + "line": 120, + "column": 16 + }, + "end": { + "line": 120, + "column": 28 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5380, + "end": 5381, + "loc": { + "start": { + "line": 120, + "column": 28 + }, + "end": { + "line": 120, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "y", + "start": 5381, + "end": 5382, + "loc": { + "start": { + "line": 120, + "column": 29 + }, + "end": { + "line": 120, + "column": 30 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 5383, + "end": 5384, + "loc": { + "start": { + "line": 120, + "column": 31 + }, + "end": { + "line": 120, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pVerticalSpeed", + "start": 5385, + "end": 5399, + "loc": { + "start": { + "line": 120, + "column": 33 + }, + "end": { + "line": 120, + "column": 47 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5399, + "end": 5400, + "loc": { + "start": { + "line": 120, + "column": 47 + }, + "end": { + "line": 120, + "column": 48 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5414, + "end": 5415, + "loc": { + "start": { + "line": 121, + "column": 12 + }, + "end": { + "line": 121, + "column": 13 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 5431, + "end": 5435, + "loc": { + "start": { + "line": 123, + "column": 12 + }, + "end": { + "line": 123, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5435, + "end": 5436, + "loc": { + "start": { + "line": 123, + "column": 16 + }, + "end": { + "line": 123, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "instances", + "start": 5436, + "end": 5445, + "loc": { + "start": { + "line": 123, + "column": 17 + }, + "end": { + "line": 123, + "column": 26 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5445, + "end": 5446, + "loc": { + "start": { + "line": 123, + "column": 26 + }, + "end": { + "line": 123, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "forEach", + "start": 5446, + "end": 5453, + "loc": { + "start": { + "line": 123, + "column": 27 + }, + "end": { + "line": 123, + "column": 34 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5453, + "end": 5454, + "loc": { + "start": { + "line": 123, + "column": 34 + }, + "end": { + "line": 123, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pInstance", + "start": 5454, + "end": 5463, + "loc": { + "start": { + "line": 123, + "column": 35 + }, + "end": { + "line": 123, + "column": 44 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5464, + "end": 5466, + "loc": { + "start": { + "line": 123, + "column": 45 + }, + "end": { + "line": 123, + "column": 47 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5467, + "end": 5468, + "loc": { + "start": { + "line": 123, + "column": 48 + }, + "end": { + "line": 123, + "column": 49 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "update", + "start": 5486, + "end": 5492, + "loc": { + "start": { + "line": 124, + "column": 16 + }, + "end": { + "line": 124, + "column": 22 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5492, + "end": 5493, + "loc": { + "start": { + "line": 124, + "column": 22 + }, + "end": { + "line": 124, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pInstance", + "start": 5493, + "end": 5502, + "loc": { + "start": { + "line": 124, + "column": 23 + }, + "end": { + "line": 124, + "column": 32 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5502, + "end": 5503, + "loc": { + "start": { + "line": 124, + "column": 32 + }, + "end": { + "line": 124, + "column": 33 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5503, + "end": 5504, + "loc": { + "start": { + "line": 124, + "column": 33 + }, + "end": { + "line": 124, + "column": 34 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5518, + "end": 5519, + "loc": { + "start": { + "line": 125, + "column": 12 + }, + "end": { + "line": 125, + "column": 13 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5519, + "end": 5520, + "loc": { + "start": { + "line": 125, + "column": 13 + }, + "end": { + "line": 125, + "column": 14 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5520, + "end": 5521, + "loc": { + "start": { + "line": 125, + "column": 14 + }, + "end": { + "line": 125, + "column": 15 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 5535, + "end": 5539, + "loc": { + "start": { + "line": 126, + "column": 12 + }, + "end": { + "line": 126, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5539, + "end": 5540, + "loc": { + "start": { + "line": 126, + "column": 16 + }, + "end": { + "line": 126, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "backgrounds", + "start": 5540, + "end": 5551, + "loc": { + "start": { + "line": 126, + "column": 17 + }, + "end": { + "line": 126, + "column": 28 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5551, + "end": 5552, + "loc": { + "start": { + "line": 126, + "column": 28 + }, + "end": { + "line": 126, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "forEach", + "start": 5552, + "end": 5559, + "loc": { + "start": { + "line": 126, + "column": 29 + }, + "end": { + "line": 126, + "column": 36 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5559, + "end": 5560, + "loc": { + "start": { + "line": 126, + "column": 36 + }, + "end": { + "line": 126, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pInstance", + "start": 5560, + "end": 5569, + "loc": { + "start": { + "line": 126, + "column": 37 + }, + "end": { + "line": 126, + "column": 46 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5570, + "end": 5572, + "loc": { + "start": { + "line": 126, + "column": 47 + }, + "end": { + "line": 126, + "column": 49 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5573, + "end": 5574, + "loc": { + "start": { + "line": 126, + "column": 50 + }, + "end": { + "line": 126, + "column": 51 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "update", + "start": 5592, + "end": 5598, + "loc": { + "start": { + "line": 127, + "column": 16 + }, + "end": { + "line": 127, + "column": 22 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5598, + "end": 5599, + "loc": { + "start": { + "line": 127, + "column": 22 + }, + "end": { + "line": 127, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pInstance", + "start": 5599, + "end": 5608, + "loc": { + "start": { + "line": 127, + "column": 23 + }, + "end": { + "line": 127, + "column": 32 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5608, + "end": 5609, + "loc": { + "start": { + "line": 127, + "column": 32 + }, + "end": { + "line": 127, + "column": 33 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5609, + "end": 5610, + "loc": { + "start": { + "line": 127, + "column": 33 + }, + "end": { + "line": 127, + "column": 34 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5624, + "end": 5625, + "loc": { + "start": { + "line": 128, + "column": 12 + }, + "end": { + "line": 128, + "column": 13 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5625, + "end": 5626, + "loc": { + "start": { + "line": 128, + "column": 13 + }, + "end": { + "line": 128, + "column": 14 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5626, + "end": 5627, + "loc": { + "start": { + "line": 128, + "column": 14 + }, + "end": { + "line": 128, + "column": 15 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5637, + "end": 5638, + "loc": { + "start": { + "line": 129, + "column": 8 + }, + "end": { + "line": 129, + "column": 9 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5644, + "end": 5645, + "loc": { + "start": { + "line": 130, + "column": 4 + }, + "end": { + "line": 130, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Adds the instance to the parallax layer.\r\n * When using this API the instance should already be on the map.\r\n * @param {Diob} pInstance - The instance to add to the layer.\r\n * @param {Object} pConfig - The personal config of this instance. Akin to the parallax info passed via the `Parallax.add` API.\r\n * @prop {number} pConfig.x - The horizontal speed of this instance. (This will be ignored and the layer's speed will be used.)\r\n * @prop {number} pConfig.y - The vertical speed of this instance. (This will be ignored and the layer's speed will be used.)\r\n * @prop {boolean} pConfig.loop - Whether this instance will be treated as a background and loop seamlessly.\r\n ", + "start": 5651, + "end": 6362, + "loc": { + "start": { + "line": 131, + "column": 4 + }, + "end": { + "line": 139, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "add", + "start": 6368, + "end": 6371, + "loc": { + "start": { + "line": 140, + "column": 4 + }, + "end": { + "line": 140, + "column": 7 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6371, + "end": 6372, + "loc": { + "start": { + "line": 140, + "column": 7 + }, + "end": { + "line": 140, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pInstance", + "start": 6372, + "end": 6381, + "loc": { + "start": { + "line": 140, + "column": 8 + }, + "end": { + "line": 140, + "column": 17 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6381, + "end": 6382, + "loc": { + "start": { + "line": 140, + "column": 17 + }, + "end": { + "line": 140, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pConfig", + "start": 6383, + "end": 6390, + "loc": { + "start": { + "line": 140, + "column": 19 + }, + "end": { + "line": 140, + "column": 26 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6390, + "end": 6391, + "loc": { + "start": { + "line": 140, + "column": 26 + }, + "end": { + "line": 140, + "column": 27 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6392, + "end": 6393, + "loc": { + "start": { + "line": 140, + "column": 28 + }, + "end": { + "line": 140, + "column": 29 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 6403, + "end": 6405, + "loc": { + "start": { + "line": 141, + "column": 8 + }, + "end": { + "line": 141, + "column": 10 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6406, + "end": 6407, + "loc": { + "start": { + "line": 141, + "column": 11 + }, + "end": { + "line": 141, + "column": 12 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 6407, + "end": 6411, + "loc": { + "start": { + "line": 141, + "column": 12 + }, + "end": { + "line": 141, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6411, + "end": 6412, + "loc": { + "start": { + "line": 141, + "column": 16 + }, + "end": { + "line": 141, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "config", + "start": 6412, + "end": 6418, + "loc": { + "start": { + "line": 141, + "column": 17 + }, + "end": { + "line": 141, + "column": 23 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6418, + "end": 6419, + "loc": { + "start": { + "line": 141, + "column": 23 + }, + "end": { + "line": 141, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "instances", + "start": 6419, + "end": 6428, + "loc": { + "start": { + "line": 141, + "column": 24 + }, + "end": { + "line": 141, + "column": 33 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6428, + "end": 6429, + "loc": { + "start": { + "line": 141, + "column": 33 + }, + "end": { + "line": 141, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "has", + "start": 6429, + "end": 6432, + "loc": { + "start": { + "line": 141, + "column": 34 + }, + "end": { + "line": 141, + "column": 37 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6432, + "end": 6433, + "loc": { + "start": { + "line": 141, + "column": 37 + }, + "end": { + "line": 141, + "column": 38 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pInstance", + "start": 6433, + "end": 6442, + "loc": { + "start": { + "line": 141, + "column": 38 + }, + "end": { + "line": 141, + "column": 47 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6442, + "end": 6443, + "loc": { + "start": { + "line": 141, + "column": 47 + }, + "end": { + "line": 141, + "column": 48 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6443, + "end": 6444, + "loc": { + "start": { + "line": 141, + "column": 48 + }, + "end": { + "line": 141, + "column": 49 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 6445, + "end": 6451, + "loc": { + "start": { + "line": 141, + "column": 50 + }, + "end": { + "line": 141, + "column": 56 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6451, + "end": 6452, + "loc": { + "start": { + "line": 141, + "column": 56 + }, + "end": { + "line": 141, + "column": 57 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 6462, + "end": 6466, + "loc": { + "start": { + "line": 142, + "column": 8 + }, + "end": { + "line": 142, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6466, + "end": 6467, + "loc": { + "start": { + "line": 142, + "column": 12 + }, + "end": { + "line": 142, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "config", + "start": 6467, + "end": 6473, + "loc": { + "start": { + "line": 142, + "column": 13 + }, + "end": { + "line": 142, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6473, + "end": 6474, + "loc": { + "start": { + "line": 142, + "column": 19 + }, + "end": { + "line": 142, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "instances", + "start": 6474, + "end": 6483, + "loc": { + "start": { + "line": 142, + "column": 20 + }, + "end": { + "line": 142, + "column": 29 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6483, + "end": 6484, + "loc": { + "start": { + "line": 142, + "column": 29 + }, + "end": { + "line": 142, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "add", + "start": 6484, + "end": 6487, + "loc": { + "start": { + "line": 142, + "column": 30 + }, + "end": { + "line": 142, + "column": 33 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6487, + "end": 6488, + "loc": { + "start": { + "line": 142, + "column": 33 + }, + "end": { + "line": 142, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pInstance", + "start": 6488, + "end": 6497, + "loc": { + "start": { + "line": 142, + "column": 34 + }, + "end": { + "line": 142, + "column": 43 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6497, + "end": 6498, + "loc": { + "start": { + "line": 142, + "column": 43 + }, + "end": { + "line": 142, + "column": 44 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6498, + "end": 6499, + "loc": { + "start": { + "line": 142, + "column": 44 + }, + "end": { + "line": 142, + "column": 45 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 6509, + "end": 6514, + "loc": { + "start": { + "line": 143, + "column": 8 + }, + "end": { + "line": 143, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "config", + "start": 6515, + "end": 6521, + "loc": { + "start": { + "line": 143, + "column": 14 + }, + "end": { + "line": 143, + "column": 20 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 6522, + "end": 6523, + "loc": { + "start": { + "line": 143, + "column": 21 + }, + "end": { + "line": 143, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pConfig", + "start": 6524, + "end": 6531, + "loc": { + "start": { + "line": 143, + "column": 23 + }, + "end": { + "line": 143, + "column": 30 + } + } + }, + { + "type": { + "label": "?", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6546, + "end": 6547, + "loc": { + "start": { + "line": 144, + "column": 12 + }, + "end": { + "line": 144, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pConfig", + "start": 6548, + "end": 6555, + "loc": { + "start": { + "line": 144, + "column": 14 + }, + "end": { + "line": 144, + "column": 21 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6569, + "end": 6570, + "loc": { + "start": { + "line": 145, + "column": 12 + }, + "end": { + "line": 145, + "column": 13 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6571, + "end": 6572, + "loc": { + "start": { + "line": 145, + "column": 14 + }, + "end": { + "line": 145, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "x", + "start": 6590, + "end": 6591, + "loc": { + "start": { + "line": 146, + "column": 16 + }, + "end": { + "line": 146, + "column": 17 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6591, + "end": 6592, + "loc": { + "start": { + "line": 146, + "column": 17 + }, + "end": { + "line": 146, + "column": 18 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 6593, + "end": 6597, + "loc": { + "start": { + "line": 146, + "column": 19 + }, + "end": { + "line": 146, + "column": 23 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6597, + "end": 6598, + "loc": { + "start": { + "line": 146, + "column": 23 + }, + "end": { + "line": 146, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "config", + "start": 6598, + "end": 6604, + "loc": { + "start": { + "line": 146, + "column": 24 + }, + "end": { + "line": 146, + "column": 30 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6604, + "end": 6605, + "loc": { + "start": { + "line": 146, + "column": 30 + }, + "end": { + "line": 146, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "horizontalSpeed", + "start": 6605, + "end": 6620, + "loc": { + "start": { + "line": 146, + "column": 31 + }, + "end": { + "line": 146, + "column": 46 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6620, + "end": 6621, + "loc": { + "start": { + "line": 146, + "column": 46 + }, + "end": { + "line": 146, + "column": 47 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "y", + "start": 6639, + "end": 6640, + "loc": { + "start": { + "line": 147, + "column": 16 + }, + "end": { + "line": 147, + "column": 17 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6640, + "end": 6641, + "loc": { + "start": { + "line": 147, + "column": 17 + }, + "end": { + "line": 147, + "column": 18 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 6642, + "end": 6646, + "loc": { + "start": { + "line": 147, + "column": 19 + }, + "end": { + "line": 147, + "column": 23 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6646, + "end": 6647, + "loc": { + "start": { + "line": 147, + "column": 23 + }, + "end": { + "line": 147, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "config", + "start": 6647, + "end": 6653, + "loc": { + "start": { + "line": 147, + "column": 24 + }, + "end": { + "line": 147, + "column": 30 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6653, + "end": 6654, + "loc": { + "start": { + "line": 147, + "column": 30 + }, + "end": { + "line": 147, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "verticalSpeed", + "start": 6654, + "end": 6667, + "loc": { + "start": { + "line": 147, + "column": 31 + }, + "end": { + "line": 147, + "column": 44 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6681, + "end": 6682, + "loc": { + "start": { + "line": 148, + "column": 12 + }, + "end": { + "line": 148, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Parallax", + "start": 6692, + "end": 6700, + "loc": { + "start": { + "line": 149, + "column": 8 + }, + "end": { + "line": 149, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6700, + "end": 6701, + "loc": { + "start": { + "line": 149, + "column": 16 + }, + "end": { + "line": 149, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "add", + "start": 6701, + "end": 6704, + "loc": { + "start": { + "line": 149, + "column": 17 + }, + "end": { + "line": 149, + "column": 20 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6704, + "end": 6705, + "loc": { + "start": { + "line": 149, + "column": 20 + }, + "end": { + "line": 149, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pInstance", + "start": 6705, + "end": 6714, + "loc": { + "start": { + "line": 149, + "column": 21 + }, + "end": { + "line": 149, + "column": 30 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6714, + "end": 6715, + "loc": { + "start": { + "line": 149, + "column": 30 + }, + "end": { + "line": 149, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "config", + "start": 6716, + "end": 6722, + "loc": { + "start": { + "line": 149, + "column": 32 + }, + "end": { + "line": 149, + "column": 38 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6722, + "end": 6723, + "loc": { + "start": { + "line": 149, + "column": 38 + }, + "end": { + "line": 149, + "column": 39 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6723, + "end": 6724, + "loc": { + "start": { + "line": 149, + "column": 39 + }, + "end": { + "line": 149, + "column": 40 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6730, + "end": 6731, + "loc": { + "start": { + "line": 150, + "column": 4 + }, + "end": { + "line": 150, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Removes the instance from the parallax layer.\r\n * @param {Diob} pInstance - The instance to remove from the layer.\r\n ", + "start": 6737, + "end": 6876, + "loc": { + "start": { + "line": 151, + "column": 4 + }, + "end": { + "line": 154, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "remove", + "start": 6882, + "end": 6888, + "loc": { + "start": { + "line": 155, + "column": 4 + }, + "end": { + "line": 155, + "column": 10 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6888, + "end": 6889, + "loc": { + "start": { + "line": 155, + "column": 10 + }, + "end": { + "line": 155, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pInstance", + "start": 6889, + "end": 6898, + "loc": { + "start": { + "line": 155, + "column": 11 + }, + "end": { + "line": 155, + "column": 20 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6898, + "end": 6899, + "loc": { + "start": { + "line": 155, + "column": 20 + }, + "end": { + "line": 155, + "column": 21 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6900, + "end": 6901, + "loc": { + "start": { + "line": 155, + "column": 22 + }, + "end": { + "line": 155, + "column": 23 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 6911, + "end": 6915, + "loc": { + "start": { + "line": 156, + "column": 8 + }, + "end": { + "line": 156, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6915, + "end": 6916, + "loc": { + "start": { + "line": 156, + "column": 12 + }, + "end": { + "line": 156, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "config", + "start": 6916, + "end": 6922, + "loc": { + "start": { + "line": 156, + "column": 13 + }, + "end": { + "line": 156, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6922, + "end": 6923, + "loc": { + "start": { + "line": 156, + "column": 19 + }, + "end": { + "line": 156, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "instances", + "start": 6923, + "end": 6932, + "loc": { + "start": { + "line": 156, + "column": 20 + }, + "end": { + "line": 156, + "column": 29 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6932, + "end": 6933, + "loc": { + "start": { + "line": 156, + "column": 29 + }, + "end": { + "line": 156, + "column": 30 + } + } + }, + { + "type": { + "label": "delete", + "keyword": "delete", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "delete", + "start": 6933, + "end": 6939, + "loc": { + "start": { + "line": 156, + "column": 30 + }, + "end": { + "line": 156, + "column": 36 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6939, + "end": 6940, + "loc": { + "start": { + "line": 156, + "column": 36 + }, + "end": { + "line": 156, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pInstance", + "start": 6940, + "end": 6949, + "loc": { + "start": { + "line": 156, + "column": 37 + }, + "end": { + "line": 156, + "column": 46 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6949, + "end": 6950, + "loc": { + "start": { + "line": 156, + "column": 46 + }, + "end": { + "line": 156, + "column": 47 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6950, + "end": 6951, + "loc": { + "start": { + "line": 156, + "column": 47 + }, + "end": { + "line": 156, + "column": 48 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Parallax", + "start": 6961, + "end": 6969, + "loc": { + "start": { + "line": 157, + "column": 8 + }, + "end": { + "line": 157, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6969, + "end": 6970, + "loc": { + "start": { + "line": 157, + "column": 16 + }, + "end": { + "line": 157, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "remove", + "start": 6970, + "end": 6976, + "loc": { + "start": { + "line": 157, + "column": 17 + }, + "end": { + "line": 157, + "column": 23 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6976, + "end": 6977, + "loc": { + "start": { + "line": 157, + "column": 23 + }, + "end": { + "line": 157, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pInstance", + "start": 6977, + "end": 6986, + "loc": { + "start": { + "line": 157, + "column": 24 + }, + "end": { + "line": 157, + "column": 33 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6986, + "end": 6987, + "loc": { + "start": { + "line": 157, + "column": 33 + }, + "end": { + "line": 157, + "column": 34 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6987, + "end": 6988, + "loc": { + "start": { + "line": 157, + "column": 34 + }, + "end": { + "line": 157, + "column": 35 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6994, + "end": 6995, + "loc": { + "start": { + "line": 158, + "column": 4 + }, + "end": { + "line": 158, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6997, + "end": 6998, + "loc": { + "start": { + "line": 159, + "column": 0 + }, + "end": { + "line": 159, + "column": 1 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6998, + "end": 6998, + "loc": { + "start": { + "line": 159, + "column": 1 + }, + "end": { + "line": 159, + "column": 1 + } + } + } + ] +} \ No newline at end of file diff --git a/docs/ast/source/parallax.mjs.json b/docs/ast/source/parallax.mjs.json index a08281f..d1a5012 100644 --- a/docs/ast/source/parallax.mjs.json +++ b/docs/ast/source/parallax.mjs.json @@ -1,28 +1,28 @@ { "type": "File", "start": 0, - "end": 9395, + "end": 10294, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 210, + "line": 247, "column": 20 } }, "program": { "type": "Program", "start": 0, - "end": 9395, + "end": 10294, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 210, + "line": 247, "column": 20 } }, @@ -114,31 +114,117 @@ "value": "./vendor/logger.min.mjs" } }, + { + "type": "ImportDeclaration", + "start": 51, + "end": 86, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 35 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 60, + "end": 65, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 14 + } + }, + "imported": { + "type": "Identifier", + "start": 60, + "end": 65, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 14 + }, + "identifierName": "Layer" + }, + "name": "Layer" + }, + "local": { + "type": "Identifier", + "start": 60, + "end": 65, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 14 + }, + "identifierName": "Layer" + }, + "name": "Layer" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 73, + "end": 86, + "loc": { + "start": { + "line": 2, + "column": 22 + }, + "end": { + "line": 2, + "column": 35 + } + }, + "extra": { + "rawValue": "./layer.mjs", + "raw": "'./layer.mjs'" + }, + "value": "./layer.mjs" + } + }, { "type": "Identifier", - "start": 53, - "end": 9328, + "start": 90, + "end": 10227, "loc": { "start": { - "line": 3, + "line": 4, "column": 0 }, "end": { - "line": 207, + "line": 244, "column": 1 } }, "id": { "type": "Identifier", - "start": 59, - "end": 76, + "start": 96, + "end": 113, "loc": { "start": { - "line": 3, + "line": 4, "column": 6 }, "end": { - "line": 3, + "line": 4, "column": 23 }, "identifierName": "ParallaxSingleton" @@ -148,30 +234,30 @@ "superClass": null, "body": { "type": "ClassBody", - "start": 77, - "end": 9328, + "start": 114, + "end": 10227, "loc": { "start": { - "line": 3, + "line": 4, "column": 24 }, "end": { - "line": 207, + "line": 244, "column": 1 } }, "body": [ { "type": "ClassProperty", - "start": 125, - "end": 156, + "start": 162, + "end": 193, "loc": { "start": { - "line": 7, + "line": 8, "column": 1 }, "end": { - "line": 7, + "line": 8, "column": 32 } }, @@ -179,15 +265,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 125, - "end": 132, + "start": 162, + "end": 169, "loc": { "start": { - "line": 7, + "line": 8, "column": 1 }, "end": { - "line": 7, + "line": 8, "column": 8 }, "identifierName": "version" @@ -197,15 +283,15 @@ }, "value": { "type": "StringLiteral", - "start": 135, - "end": 155, + "start": 172, + "end": 192, "loc": { "start": { - "line": 7, + "line": 8, "column": 11 }, "end": { - "line": 7, + "line": 8, "column": 31 } }, @@ -219,15 +305,15 @@ { "type": "CommentBlock", "value": "*\r\n\t * The version of the module.\r\n\t ", - "start": 81, - "end": 122, + "start": 118, + "end": 159, "loc": { "start": { - "line": 4, + "line": 5, "column": 1 }, "end": { - "line": 6, + "line": 7, "column": 4 } } @@ -237,15 +323,15 @@ { "type": "CommentBlock", "value": "* The logger module this module uses to log errors / logs\r\n * @private\r\n * @type {Object}\r\n ", - "start": 162, - "end": 270, + "start": 199, + "end": 307, "loc": { "start": { - "line": 8, + "line": 9, "column": 4 }, "end": { - "line": 11, + "line": 12, "column": 7 } } @@ -254,15 +340,15 @@ }, { "type": "ClassProperty", - "start": 276, - "end": 298, + "start": 313, + "end": 335, "loc": { "start": { - "line": 12, + "line": 13, "column": 4 }, "end": { - "line": 12, + "line": 13, "column": 26 } }, @@ -270,15 +356,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 276, - "end": 282, + "start": 313, + "end": 319, "loc": { "start": { - "line": 12, + "line": 13, "column": 4 }, "end": { - "line": 12, + "line": 13, "column": 10 }, "identifierName": "logger" @@ -288,29 +374,29 @@ }, "value": { "type": "NewExpression", - "start": 285, - "end": 297, + "start": 322, + "end": 334, "loc": { "start": { - "line": 12, + "line": 13, "column": 13 }, "end": { - "line": 12, + "line": 13, "column": 25 } }, "callee": { "type": "Identifier", - "start": 289, - "end": 295, + "start": 326, + "end": 332, "loc": { "start": { - "line": 12, + "line": 13, "column": 17 }, "end": { - "line": 12, + "line": 13, "column": 23 }, "identifierName": "Logger" @@ -323,15 +409,15 @@ { "type": "CommentBlock", "value": "* The logger module this module uses to log errors / logs\r\n * @private\r\n * @type {Object}\r\n ", - "start": 162, - "end": 270, + "start": 199, + "end": 307, "loc": { "start": { - "line": 8, + "line": 9, "column": 4 }, "end": { - "line": 11, + "line": 12, "column": 7 } } @@ -340,16 +426,16 @@ "trailingComments": [ { "type": "CommentBlock", - "value": "*\r\n * @private\r\n ", - "start": 304, - "end": 333, + "value": "*\r\n * The layer class.\r\n * @type {Layer}\r\n ", + "start": 341, + "end": 400, "loc": { "start": { - "line": 13, + "line": 14, "column": 4 }, "end": { - "line": 15, + "line": 17, "column": 7 } } @@ -357,230 +443,69 @@ ] }, { - "type": "ClassMethod", - "start": 336, + "type": "ClassProperty", + "start": 406, "end": 420, "loc": { "start": { - "line": 16, - "column": 1 + "line": 18, + "column": 4 }, "end": { "line": 18, - "column": 2 + "column": 18 } }, "static": false, "computed": false, "key": { "type": "Identifier", - "start": 336, - "end": 347, + "start": 406, + "end": 411, "loc": { "start": { - "line": 16, - "column": 1 + "line": 18, + "column": 4 }, "end": { - "line": 16, - "column": 12 + "line": 18, + "column": 9 }, - "identifierName": "constructor" + "identifierName": "Layer" }, - "name": "constructor", + "name": "Layer", "leadingComments": null }, - "kind": "constructor", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 350, - "end": 420, + "value": { + "type": "Identifier", + "start": 414, + "end": 419, "loc": { "start": { - "line": 16, - "column": 15 + "line": 18, + "column": 12 }, "end": { "line": 18, - "column": 2 - } + "column": 17 + }, + "identifierName": "Layer" }, - "body": [ - { - "type": "ExpressionStatement", - "start": 361, - "end": 416, - "loc": { - "start": { - "line": 17, - "column": 8 - }, - "end": { - "line": 17, - "column": 63 - } - }, - "expression": { - "type": "CallExpression", - "start": 361, - "end": 415, - "loc": { - "start": { - "line": 17, - "column": 8 - }, - "end": { - "line": 17, - "column": 62 - } - }, - "callee": { - "type": "MemberExpression", - "start": 361, - "end": 385, - "loc": { - "start": { - "line": 17, - "column": 8 - }, - "end": { - "line": 17, - "column": 32 - } - }, - "object": { - "type": "MemberExpression", - "start": 361, - "end": 372, - "loc": { - "start": { - "line": 17, - "column": 8 - }, - "end": { - "line": 17, - "column": 19 - } - }, - "object": { - "type": "ThisExpression", - "start": 361, - "end": 365, - "loc": { - "start": { - "line": 17, - "column": 8 - }, - "end": { - "line": 17, - "column": 12 - } - } - }, - "property": { - "type": "Identifier", - "start": 366, - "end": 372, - "loc": { - "start": { - "line": 17, - "column": 13 - }, - "end": { - "line": 17, - "column": 19 - }, - "identifierName": "logger" - }, - "name": "logger" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 373, - "end": 385, - "loc": { - "start": { - "line": 17, - "column": 20 - }, - "end": { - "line": 17, - "column": 32 - }, - "identifierName": "registerType" - }, - "name": "registerType" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 386, - "end": 403, - "loc": { - "start": { - "line": 17, - "column": 33 - }, - "end": { - "line": 17, - "column": 50 - } - }, - "extra": { - "rawValue": "Parallax-Module", - "raw": "'Parallax-Module'" - }, - "value": "Parallax-Module" - }, - { - "type": "StringLiteral", - "start": 405, - "end": 414, - "loc": { - "start": { - "line": 17, - "column": 52 - }, - "end": { - "line": 17, - "column": 61 - } - }, - "extra": { - "rawValue": "#ff6600", - "raw": "'#ff6600'" - }, - "value": "#ff6600" - } - ] - } - } - ], - "directives": [], - "trailingComments": null + "name": "Layer" }, "leadingComments": [ { "type": "CommentBlock", - "value": "*\r\n * @private\r\n ", - "start": 304, - "end": 333, + "value": "*\r\n * The layer class.\r\n * @type {Layer}\r\n ", + "start": 341, + "end": 400, "loc": { "start": { - "line": 13, + "line": 14, "column": 4 }, "end": { - "line": 15, + "line": 17, "column": 7 } } @@ -589,9 +514,9 @@ "trailingComments": [ { "type": "CommentBlock", - "value": "*\r\n * An array of instances that use the parallax system.\r\n * @private\r\n * @type {Array}\r\n ", + "value": "*\r\n * An set of instances that use the parallax system.\r\n * @private\r\n * @type {Set}\r\n ", "start": 426, - "end": 537, + "end": 533, "loc": { "start": { "line": 19, @@ -607,8 +532,8 @@ }, { "type": "ClassProperty", - "start": 543, - "end": 558, + "start": 539, + "end": 561, "loc": { "start": { "line": 24, @@ -616,15 +541,15 @@ }, "end": { "line": 24, - "column": 19 + "column": 26 } }, "static": false, "computed": false, "key": { "type": "Identifier", - "start": 543, - "end": 552, + "start": 539, + "end": 548, "loc": { "start": { "line": 24, @@ -640,9 +565,9 @@ "leadingComments": null }, "value": { - "type": "ArrayExpression", - "start": 555, - "end": 557, + "type": "NewExpression", + "start": 551, + "end": 560, "loc": { "start": { "line": 24, @@ -650,17 +575,34 @@ }, "end": { "line": 24, - "column": 18 + "column": 25 } }, - "elements": [] + "callee": { + "type": "Identifier", + "start": 555, + "end": 558, + "loc": { + "start": { + "line": 24, + "column": 20 + }, + "end": { + "line": 24, + "column": 23 + }, + "identifierName": "Set" + }, + "name": "Set" + }, + "arguments": [] }, "leadingComments": [ { "type": "CommentBlock", - "value": "*\r\n * An array of instances that use the parallax system.\r\n * @private\r\n * @type {Array}\r\n ", + "value": "*\r\n * An set of instances that use the parallax system.\r\n * @private\r\n * @type {Set}\r\n ", "start": 426, - "end": 537, + "end": 533, "loc": { "start": { "line": 19, @@ -677,8 +619,8 @@ { "type": "CommentBlock", "value": "*\r\n * Weakmap to store info on instances used in this module.\r\n * @private\r\n * @type {WeakMap}\r\n ", - "start": 564, - "end": 681, + "start": 567, + "end": 684, "loc": { "start": { "line": 25, @@ -694,8 +636,8 @@ }, { "type": "ClassProperty", - "start": 687, - "end": 719, + "start": 690, + "end": 722, "loc": { "start": { "line": 30, @@ -710,8 +652,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 687, - "end": 702, + "start": 690, + "end": 705, "loc": { "start": { "line": 30, @@ -728,8 +670,8 @@ }, "value": { "type": "NewExpression", - "start": 705, - "end": 718, + "start": 708, + "end": 721, "loc": { "start": { "line": 30, @@ -742,8 +684,8 @@ }, "callee": { "type": "Identifier", - "start": 709, - "end": 716, + "start": 712, + "end": 719, "loc": { "start": { "line": 30, @@ -763,8 +705,8 @@ { "type": "CommentBlock", "value": "*\r\n * Weakmap to store info on instances used in this module.\r\n * @private\r\n * @type {WeakMap}\r\n ", - "start": 564, - "end": 681, + "start": 567, + "end": 684, "loc": { "start": { "line": 25, @@ -781,8 +723,8 @@ { "type": "CommentBlock", "value": "*\r\n * The last position of the camera.\r\n * @private\r\n * @type {Object}\r\n ", - "start": 725, - "end": 818, + "start": 728, + "end": 821, "loc": { "start": { "line": 31, @@ -798,8 +740,8 @@ }, { "type": "ClassProperty", - "start": 824, - "end": 875, + "start": 827, + "end": 878, "loc": { "start": { "line": 36, @@ -814,8 +756,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 824, - "end": 834, + "start": 827, + "end": 837, "loc": { "start": { "line": 36, @@ -832,8 +774,8 @@ }, "value": { "type": "ObjectExpression", - "start": 837, - "end": 875, + "start": 840, + "end": 878, "loc": { "start": { "line": 36, @@ -847,8 +789,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 849, - "end": 853, + "start": 852, + "end": 856, "loc": { "start": { "line": 37, @@ -864,8 +806,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 849, - "end": 850, + "start": 852, + "end": 853, "loc": { "start": { "line": 37, @@ -881,8 +823,8 @@ }, "value": { "type": "NumericLiteral", - "start": 852, - "end": 853, + "start": 855, + "end": 856, "loc": { "start": { "line": 37, @@ -902,8 +844,8 @@ }, { "type": "ObjectProperty", - "start": 864, - "end": 868, + "start": 867, + "end": 871, "loc": { "start": { "line": 38, @@ -919,8 +861,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 864, - "end": 865, + "start": 867, + "end": 868, "loc": { "start": { "line": 38, @@ -936,8 +878,8 @@ }, "value": { "type": "NumericLiteral", - "start": 867, - "end": 868, + "start": 870, + "end": 871, "loc": { "start": { "line": 38, @@ -957,16 +899,16 @@ "trailingComments": [ { "type": "CommentBlock", - "value": "*\r\n * Adds an instance to the parallax system.\r\n * Call this first and then add your instance to the map.\r\n * @param {Object} pInstance - The instance to add to the parallax system.\r\n * @param {Object} pParallaxInfo - The parallax info that tells this module how to control this instance.\r\n * @property {number} pParallaxInfo.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {number} pParallaxInfo.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {boolean} pParallaxInfo.loop - Whether this instance will loop endlessly.\r\n * @param {number} [pX] - The x position this instance will start at.\r\n * @param {number} [pY] - The y position this instance will start at.\r\n * @param {string} [pMap] - The map this instance will start at.\r\n ", - "start": 881, - "end": 1856, + "value": "*\r\n * @private\r\n ", + "start": 884, + "end": 913, "loc": { "start": { "line": 40, "column": 4 }, "end": { - "line": 51, + "line": 42, "column": 7 } } @@ -980,8 +922,8 @@ { "type": "CommentBlock", "value": "*\r\n * The last position of the camera.\r\n * @private\r\n * @type {Object}\r\n ", - "start": 725, - "end": 818, + "start": 728, + "end": 821, "loc": { "start": { "line": 31, @@ -997,16 +939,246 @@ "trailingComments": [ { "type": "CommentBlock", - "value": "*\r\n * Adds an instance to the parallax system.\r\n * Call this first and then add your instance to the map.\r\n * @param {Object} pInstance - The instance to add to the parallax system.\r\n * @param {Object} pParallaxInfo - The parallax info that tells this module how to control this instance.\r\n * @property {number} pParallaxInfo.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {number} pParallaxInfo.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {boolean} pParallaxInfo.loop - Whether this instance will loop endlessly.\r\n * @param {number} [pX] - The x position this instance will start at.\r\n * @param {number} [pY] - The y position this instance will start at.\r\n * @param {string} [pMap] - The map this instance will start at.\r\n ", - "start": 881, - "end": 1856, + "value": "*\r\n * @private\r\n ", + "start": 884, + "end": 913, "loc": { "start": { "line": 40, "column": 4 }, "end": { - "line": 51, + "line": 42, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 916, + "end": 1000, + "loc": { + "start": { + "line": 43, + "column": 1 + }, + "end": { + "line": 45, + "column": 2 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 916, + "end": 927, + "loc": { + "start": { + "line": 43, + "column": 1 + }, + "end": { + "line": 43, + "column": 12 + }, + "identifierName": "constructor" + }, + "name": "constructor" + }, + "kind": "constructor", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 930, + "end": 1000, + "loc": { + "start": { + "line": 43, + "column": 15 + }, + "end": { + "line": 45, + "column": 2 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 941, + "end": 996, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 63 + } + }, + "expression": { + "type": "CallExpression", + "start": 941, + "end": 995, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 62 + } + }, + "callee": { + "type": "MemberExpression", + "start": 941, + "end": 965, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 32 + } + }, + "object": { + "type": "MemberExpression", + "start": 941, + "end": 952, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 19 + } + }, + "object": { + "type": "ThisExpression", + "start": 941, + "end": 945, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 946, + "end": 952, + "loc": { + "start": { + "line": 44, + "column": 13 + }, + "end": { + "line": 44, + "column": 19 + }, + "identifierName": "logger" + }, + "name": "logger" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 953, + "end": 965, + "loc": { + "start": { + "line": 44, + "column": 20 + }, + "end": { + "line": 44, + "column": 32 + }, + "identifierName": "registerType" + }, + "name": "registerType" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 966, + "end": 983, + "loc": { + "start": { + "line": 44, + "column": 33 + }, + "end": { + "line": 44, + "column": 50 + } + }, + "extra": { + "rawValue": "Parallax-Module", + "raw": "'Parallax-Module'" + }, + "value": "Parallax-Module" + }, + { + "type": "StringLiteral", + "start": 985, + "end": 994, + "loc": { + "start": { + "line": 44, + "column": 52 + }, + "end": { + "line": 44, + "column": 61 + } + }, + "extra": { + "rawValue": "#ff6600", + "raw": "'#ff6600'" + }, + "value": "#ff6600" + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adds an instance to the parallax system.\r\n * Call this first and then add your instance to the map.\r\n * @param {Object} pInstance - The instance to add to the parallax system.\r\n * @param {Object} pConfig - The parallax info that tells this module how to control this instance.\r\n * @prop {number} pConfig.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @prop {number} pConfig.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @prop {boolean} pConfig.loop - Whether this instance will loop endlessly.\r\n * @param {number} [pX] - The x position this instance will start at.\r\n * @param {number} [pY] - The y position this instance will start at.\r\n * @param {string} [pMap] - The map this instance will start at.\r\n * \r\n * ## The following is how the speed of the parallax multipliers are factored in. \r\n (x | y) < 1 = faster behind the camera eg: (-> Player goes this way = Instance goes this way <-) \r\n (x | y) > 1 faster against the camera eg: (-> Player goes this way = Instance goes this way ->) \r\n (x | y) = 0 = static to the camera eg: (-> Player goes this way = Instance does nothing, and moves with the camera) \r\n (x | y) = 1 = moves with the camera eg: (-> Player goes this way = Instance goes this way -> at position of camera) \r\n ", + "start": 1006, + "end": 2501, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 63, "column": 7 } } @@ -1015,15 +1187,15 @@ }, { "type": "ClassMethod", - "start": 1862, - "end": 2937, + "start": 2507, + "end": 3495, "loc": { "start": { - "line": 52, + "line": 64, "column": 4 }, "end": { - "line": 72, + "line": 85, "column": 5 } }, @@ -1031,20 +1203,21 @@ "computed": false, "key": { "type": "Identifier", - "start": 1862, - "end": 1865, + "start": 2507, + "end": 2510, "loc": { "start": { - "line": 52, + "line": 64, "column": 4 }, "end": { - "line": 52, + "line": 64, "column": 7 }, "identifierName": "add" }, - "name": "add" + "name": "add", + "leadingComments": null }, "kind": "method", "id": null, @@ -1054,15 +1227,15 @@ "params": [ { "type": "Identifier", - "start": 1866, - "end": 1875, + "start": 2511, + "end": 2520, "loc": { "start": { - "line": 52, + "line": 64, "column": 8 }, "end": { - "line": 52, + "line": 64, "column": 17 }, "identifierName": "pInstance" @@ -1071,33 +1244,33 @@ }, { "type": "Identifier", - "start": 1877, - "end": 1890, + "start": 2522, + "end": 2529, "loc": { "start": { - "line": 52, + "line": 64, "column": 19 }, "end": { - "line": 52, - "column": 32 + "line": 64, + "column": 26 }, - "identifierName": "pParallaxInfo" + "identifierName": "pConfig" }, - "name": "pParallaxInfo" + "name": "pConfig" }, { "type": "Identifier", - "start": 1892, - "end": 1894, + "start": 2531, + "end": 2533, "loc": { "start": { - "line": 52, - "column": 34 + "line": 64, + "column": 28 }, "end": { - "line": 52, - "column": 36 + "line": 64, + "column": 30 }, "identifierName": "pX" }, @@ -1105,16 +1278,16 @@ }, { "type": "Identifier", - "start": 1896, - "end": 1898, + "start": 2535, + "end": 2537, "loc": { "start": { - "line": 52, - "column": 38 + "line": 64, + "column": 32 }, "end": { - "line": 52, - "column": 40 + "line": 64, + "column": 34 }, "identifierName": "pY" }, @@ -1122,16 +1295,16 @@ }, { "type": "Identifier", - "start": 1900, - "end": 1904, + "start": 2539, + "end": 2543, "loc": { "start": { - "line": 52, - "column": 42 + "line": 64, + "column": 36 }, "end": { - "line": 52, - "column": 46 + "line": 64, + "column": 40 }, "identifierName": "pMap" }, @@ -1140,1912 +1313,1919 @@ ], "body": { "type": "BlockStatement", - "start": 1906, - "end": 2937, + "start": 2545, + "end": 3495, "loc": { "start": { - "line": 52, - "column": 48 + "line": 64, + "column": 42 }, "end": { - "line": 72, + "line": 85, "column": 5 } }, "body": [ { "type": "IfStatement", - "start": 1917, - "end": 2930, + "start": 2556, + "end": 2687, "loc": { "start": { - "line": 53, + "line": 65, "column": 8 }, "end": { - "line": 71, + "line": 68, "column": 9 } }, "test": { - "type": "Identifier", - "start": 1921, - "end": 1930, + "type": "UnaryExpression", + "start": 2560, + "end": 2570, "loc": { "start": { - "line": 53, + "line": 65, "column": 12 }, "end": { - "line": 53, - "column": 21 + "line": 65, + "column": 22 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 2561, + "end": 2570, + "loc": { + "start": { + "line": 65, + "column": 13 + }, + "end": { + "line": 65, + "column": 22 + }, + "identifierName": "pInstance" }, - "identifierName": "pInstance" + "name": "pInstance" }, - "name": "pInstance" + "extra": { + "parenthesizedArgument": false + } }, "consequent": { "type": "BlockStatement", - "start": 1932, - "end": 2830, + "start": 2572, + "end": 2687, "loc": { "start": { - "line": 53, - "column": 23 + "line": 65, + "column": 24 }, "end": { - "line": 69, + "line": 68, "column": 9 } }, "body": [ { - "type": "IfStatement", - "start": 1947, - "end": 2819, + "type": "ExpressionStatement", + "start": 2587, + "end": 2655, "loc": { "start": { - "line": 54, + "line": 66, "column": 12 }, "end": { - "line": 68, - "column": 13 + "line": 66, + "column": 80 } }, - "test": { - "type": "BinaryExpression", - "start": 1951, - "end": 1982, + "expression": { + "type": "CallExpression", + "start": 2587, + "end": 2654, "loc": { "start": { - "line": 54, - "column": 16 + "line": 66, + "column": 12 }, "end": { - "line": 54, - "column": 47 + "line": 66, + "column": 79 } }, - "left": { - "type": "Identifier", - "start": 1951, - "end": 1964, - "loc": { - "start": { - "line": 54, - "column": 16 - }, - "end": { - "line": 54, - "column": 29 - }, - "identifierName": "pParallaxInfo" - }, - "name": "pParallaxInfo" - }, - "operator": "instanceof", - "right": { - "type": "Identifier", - "start": 1976, - "end": 1982, + "callee": { + "type": "MemberExpression", + "start": 2587, + "end": 2630, "loc": { "start": { - "line": 54, - "column": 41 + "line": 66, + "column": 12 }, "end": { - "line": 54, - "column": 47 - }, - "identifierName": "Object" - }, - "name": "Object" - } - }, - "consequent": { - "type": "BlockStatement", - "start": 1984, - "end": 2685, - "loc": { - "start": { - "line": 54, - "column": 49 + "line": 66, + "column": 55 + } }, - "end": { - "line": 66, - "column": 13 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 2003, - "end": 2670, + "object": { + "type": "CallExpression", + "start": 2587, + "end": 2624, "loc": { "start": { - "line": 55, - "column": 16 + "line": 66, + "column": 12 + }, + "end": { + "line": 66, + "column": 49 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2587, + "end": 2605, + "loc": { + "start": { + "line": 66, + "column": 12 + }, + "end": { + "line": 66, + "column": 30 + } + }, + "object": { + "type": "MemberExpression", + "start": 2587, + "end": 2598, + "loc": { + "start": { + "line": 66, + "column": 12 + }, + "end": { + "line": 66, + "column": 23 + } + }, + "object": { + "type": "ThisExpression", + "start": 2587, + "end": 2591, + "loc": { + "start": { + "line": 66, + "column": 12 + }, + "end": { + "line": 66, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 2592, + "end": 2598, + "loc": { + "start": { + "line": 66, + "column": 17 + }, + "end": { + "line": 66, + "column": 23 + }, + "identifierName": "logger" + }, + "name": "logger" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2599, + "end": 2605, + "loc": { + "start": { + "line": 66, + "column": 24 + }, + "end": { + "line": 66, + "column": 30 + }, + "identifierName": "prefix" + }, + "name": "prefix" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 2606, + "end": 2623, + "loc": { + "start": { + "line": 66, + "column": 31 + }, + "end": { + "line": 66, + "column": 48 + } + }, + "extra": { + "rawValue": "Parallax-Module", + "raw": "'Parallax-Module'" + }, + "value": "Parallax-Module" + } + ] + }, + "property": { + "type": "Identifier", + "start": 2625, + "end": 2630, + "loc": { + "start": { + "line": 66, + "column": 50 + }, + "end": { + "line": 66, + "column": 55 + }, + "identifierName": "error" + }, + "name": "error" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 2631, + "end": 2653, + "loc": { + "start": { + "line": 66, + "column": 56 }, "end": { - "line": 65, + "line": 66, + "column": 78 + } + }, + "extra": { + "rawValue": "No pInstance passed!", + "raw": "'No pInstance passed!'" + }, + "value": "No pInstance passed!" + } + ] + } + }, + { + "type": "ReturnStatement", + "start": 2669, + "end": 2676, + "loc": { + "start": { + "line": 67, + "column": 12 + }, + "end": { + "line": 67, + "column": 19 + } + }, + "argument": null + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "IfStatement", + "start": 2699, + "end": 3488, + "loc": { + "start": { + "line": 70, + "column": 8 + }, + "end": { + "line": 84, + "column": 9 + } + }, + "test": { + "type": "BinaryExpression", + "start": 2703, + "end": 2728, + "loc": { + "start": { + "line": 70, + "column": 12 + }, + "end": { + "line": 70, + "column": 37 + } + }, + "left": { + "type": "Identifier", + "start": 2703, + "end": 2710, + "loc": { + "start": { + "line": 70, + "column": 12 + }, + "end": { + "line": 70, + "column": 19 + }, + "identifierName": "pConfig" + }, + "name": "pConfig" + }, + "operator": "instanceof", + "right": { + "type": "Identifier", + "start": 2722, + "end": 2728, + "loc": { + "start": { + "line": 70, + "column": 31 + }, + "end": { + "line": 70, + "column": 37 + }, + "identifierName": "Object" + }, + "name": "Object" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 2730, + "end": 3368, + "loc": { + "start": { + "line": 70, + "column": 39 + }, + "end": { + "line": 82, + "column": 9 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 2745, + "end": 3357, + "loc": { + "start": { + "line": 71, + "column": 12 + }, + "end": { + "line": 81, + "column": 13 + } + }, + "test": { + "type": "UnaryExpression", + "start": 2749, + "end": 2779, + "loc": { + "start": { + "line": 71, + "column": 16 + }, + "end": { + "line": 71, + "column": 46 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "CallExpression", + "start": 2750, + "end": 2779, + "loc": { + "start": { + "line": 71, + "column": 17 + }, + "end": { + "line": 71, + "column": 46 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2750, + "end": 2768, + "loc": { + "start": { + "line": 71, "column": 17 + }, + "end": { + "line": 71, + "column": 35 } }, - "test": { - "type": "UnaryExpression", - "start": 2007, - "end": 2042, + "object": { + "type": "MemberExpression", + "start": 2750, + "end": 2764, "loc": { "start": { - "line": 55, - "column": 20 + "line": 71, + "column": 17 }, "end": { - "line": 55, - "column": 55 + "line": 71, + "column": 31 } }, - "operator": "!", - "prefix": true, - "argument": { - "type": "CallExpression", - "start": 2008, - "end": 2042, + "object": { + "type": "ThisExpression", + "start": 2750, + "end": 2754, "loc": { "start": { - "line": 55, + "line": 71, + "column": 17 + }, + "end": { + "line": 71, "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "start": 2755, + "end": 2764, + "loc": { + "start": { + "line": 71, + "column": 22 + }, + "end": { + "line": 71, + "column": 31 + }, + "identifierName": "instances" + }, + "name": "instances" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2765, + "end": 2768, + "loc": { + "start": { + "line": 71, + "column": 32 + }, + "end": { + "line": 71, + "column": 35 + }, + "identifierName": "has" + }, + "name": "has" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 2769, + "end": 2778, + "loc": { + "start": { + "line": 71, + "column": 36 + }, + "end": { + "line": 71, + "column": 45 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + } + ] + }, + "extra": { + "parenthesizedArgument": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 2781, + "end": 3357, + "loc": { + "start": { + "line": 71, + "column": 48 + }, + "end": { + "line": 81, + "column": 13 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 2800, + "end": 2852, + "loc": { + "start": { + "line": 72, + "column": 16 + }, + "end": { + "line": 72, + "column": 68 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2806, + "end": 2851, + "loc": { + "start": { + "line": 72, + "column": 22 }, "end": { - "line": 55, - "column": 55 + "line": 72, + "column": 67 } }, - "callee": { - "type": "MemberExpression", - "start": 2008, - "end": 2031, + "id": { + "type": "Identifier", + "start": 2806, + "end": 2807, "loc": { "start": { - "line": 55, - "column": 21 + "line": 72, + "column": 22 }, "end": { - "line": 55, - "column": 44 + "line": 72, + "column": 23 + }, + "identifierName": "x" + }, + "name": "x" + }, + "init": { + "type": "ConditionalExpression", + "start": 2810, + "end": 2851, + "loc": { + "start": { + "line": 72, + "column": 26 + }, + "end": { + "line": 72, + "column": 67 } }, - "object": { - "type": "MemberExpression", - "start": 2008, - "end": 2022, + "test": { + "type": "BinaryExpression", + "start": 2810, + "end": 2832, "loc": { "start": { - "line": 55, - "column": 21 + "line": 72, + "column": 26 }, "end": { - "line": 55, - "column": 35 + "line": 72, + "column": 48 } }, - "object": { - "type": "ThisExpression", - "start": 2008, - "end": 2012, + "left": { + "type": "UnaryExpression", + "start": 2810, + "end": 2819, "loc": { "start": { - "line": 55, - "column": 21 + "line": 72, + "column": 26 }, "end": { - "line": 55, - "column": 25 + "line": 72, + "column": 35 } + }, + "operator": "typeof", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 2817, + "end": 2819, + "loc": { + "start": { + "line": 72, + "column": 33 + }, + "end": { + "line": 72, + "column": 35 + }, + "identifierName": "pX" + }, + "name": "pX" + }, + "extra": { + "parenthesizedArgument": false } }, - "property": { - "type": "Identifier", - "start": 2013, - "end": 2022, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 2824, + "end": 2832, "loc": { "start": { - "line": 55, - "column": 26 + "line": 72, + "column": 40 }, "end": { - "line": 55, - "column": 35 - }, - "identifierName": "instances" + "line": 72, + "column": 48 + } }, - "name": "instances" - }, - "computed": false + "extra": { + "rawValue": "number", + "raw": "'number'" + }, + "value": "number" + } }, - "property": { + "consequent": { "type": "Identifier", - "start": 2023, - "end": 2031, + "start": 2835, + "end": 2837, "loc": { "start": { - "line": 55, - "column": 36 + "line": 72, + "column": 51 }, "end": { - "line": 55, - "column": 44 + "line": 72, + "column": 53 }, - "identifierName": "includes" + "identifierName": "pX" }, - "name": "includes" + "name": "pX" }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2032, - "end": 2041, + "alternate": { + "type": "MemberExpression", + "start": 2840, + "end": 2851, "loc": { "start": { - "line": 55, - "column": 45 + "line": 72, + "column": 56 }, "end": { - "line": 55, - "column": 54 + "line": 72, + "column": 67 + } + }, + "object": { + "type": "Identifier", + "start": 2840, + "end": 2849, + "loc": { + "start": { + "line": 72, + "column": 56 + }, + "end": { + "line": 72, + "column": 65 + }, + "identifierName": "pInstance" }, - "identifierName": "pInstance" + "name": "pInstance" }, - "name": "pInstance" + "property": { + "type": "Identifier", + "start": 2850, + "end": 2851, + "loc": { + "start": { + "line": 72, + "column": 66 + }, + "end": { + "line": 72, + "column": 67 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false } - ] + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 2870, + "end": 2922, + "loc": { + "start": { + "line": 73, + "column": 16 }, - "extra": { - "parenthesizedArgument": false + "end": { + "line": 73, + "column": 68 } }, - "consequent": { - "type": "BlockStatement", - "start": 2044, - "end": 2670, - "loc": { - "start": { - "line": 55, - "column": 57 + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2876, + "end": 2921, + "loc": { + "start": { + "line": 73, + "column": 22 + }, + "end": { + "line": 73, + "column": 67 + } }, - "end": { - "line": 65, - "column": 17 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 2067, - "end": 2120, + "id": { + "type": "Identifier", + "start": 2876, + "end": 2877, "loc": { "start": { - "line": 56, - "column": 20 + "line": 73, + "column": 22 + }, + "end": { + "line": 73, + "column": 23 + }, + "identifierName": "y" + }, + "name": "y" + }, + "init": { + "type": "ConditionalExpression", + "start": 2880, + "end": 2921, + "loc": { + "start": { + "line": 73, + "column": 26 }, "end": { - "line": 56, - "column": 73 + "line": 73, + "column": 67 } }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2073, - "end": 2119, + "test": { + "type": "BinaryExpression", + "start": 2880, + "end": 2902, + "loc": { + "start": { + "line": 73, + "column": 26 + }, + "end": { + "line": 73, + "column": 48 + } + }, + "left": { + "type": "UnaryExpression", + "start": 2880, + "end": 2889, "loc": { "start": { - "line": 56, + "line": 73, "column": 26 }, "end": { - "line": 56, - "column": 72 + "line": 73, + "column": 35 } }, - "id": { + "operator": "typeof", + "prefix": true, + "argument": { "type": "Identifier", - "start": 2073, - "end": 2074, + "start": 2887, + "end": 2889, "loc": { "start": { - "line": 56, - "column": 26 + "line": 73, + "column": 33 }, "end": { - "line": 56, - "column": 27 + "line": 73, + "column": 35 }, - "identifierName": "x" + "identifierName": "pY" }, - "name": "x" + "name": "pY" }, - "init": { - "type": "ConditionalExpression", - "start": 2077, - "end": 2119, - "loc": { - "start": { - "line": 56, - "column": 30 - }, - "end": { - "line": 56, - "column": 72 - } + "extra": { + "parenthesizedArgument": false + } + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 2894, + "end": 2902, + "loc": { + "start": { + "line": 73, + "column": 40 }, - "test": { - "type": "BinaryExpression", - "start": 2077, - "end": 2100, - "loc": { - "start": { - "line": 56, - "column": 30 - }, - "end": { - "line": 56, - "column": 53 - } - }, - "left": { - "type": "UnaryExpression", - "start": 2077, - "end": 2087, - "loc": { - "start": { - "line": 56, - "column": 30 - }, - "end": { - "line": 56, - "column": 40 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 2084, - "end": 2086, - "loc": { - "start": { - "line": 56, - "column": 37 - }, - "end": { - "line": 56, - "column": 39 - }, - "identifierName": "pX" - }, - "name": "pX", - "extra": { - "parenthesized": true, - "parenStart": 2083 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 2092, - "end": 2100, - "loc": { - "start": { - "line": 56, - "column": 45 - }, - "end": { - "line": 56, - "column": 53 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" - }, - "value": "number" - } - }, - "consequent": { - "type": "Identifier", - "start": 2103, - "end": 2105, - "loc": { - "start": { - "line": 56, - "column": 56 - }, - "end": { - "line": 56, - "column": 58 - }, - "identifierName": "pX" - }, - "name": "pX" - }, - "alternate": { - "type": "MemberExpression", - "start": 2108, - "end": 2119, - "loc": { - "start": { - "line": 56, - "column": 61 - }, - "end": { - "line": 56, - "column": 72 - } - }, - "object": { - "type": "Identifier", - "start": 2108, - "end": 2117, - "loc": { - "start": { - "line": 56, - "column": 61 - }, - "end": { - "line": 56, - "column": 70 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 2118, - "end": 2119, - "loc": { - "start": { - "line": 56, - "column": 71 - }, - "end": { - "line": 56, - "column": 72 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false + "end": { + "line": 73, + "column": 48 } - } + }, + "extra": { + "rawValue": "number", + "raw": "'number'" + }, + "value": "number" } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 2142, - "end": 2195, - "loc": { - "start": { - "line": 57, - "column": 20 + }, + "consequent": { + "type": "Identifier", + "start": 2905, + "end": 2907, + "loc": { + "start": { + "line": 73, + "column": 51 + }, + "end": { + "line": 73, + "column": 53 + }, + "identifierName": "pY" }, - "end": { - "line": 57, - "column": 73 - } + "name": "pY" }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2148, - "end": 2194, + "alternate": { + "type": "MemberExpression", + "start": 2910, + "end": 2921, + "loc": { + "start": { + "line": 73, + "column": 56 + }, + "end": { + "line": 73, + "column": 67 + } + }, + "object": { + "type": "Identifier", + "start": 2910, + "end": 2919, "loc": { "start": { - "line": 57, - "column": 26 + "line": 73, + "column": 56 }, "end": { - "line": 57, - "column": 72 - } - }, - "id": { - "type": "Identifier", - "start": 2148, - "end": 2149, - "loc": { - "start": { - "line": 57, - "column": 26 - }, - "end": { - "line": 57, - "column": 27 - }, - "identifierName": "y" + "line": 73, + "column": 65 }, - "name": "y" + "identifierName": "pInstance" }, - "init": { - "type": "ConditionalExpression", - "start": 2152, - "end": 2194, - "loc": { - "start": { - "line": 57, - "column": 30 - }, - "end": { - "line": 57, - "column": 72 - } - }, - "test": { - "type": "BinaryExpression", - "start": 2152, - "end": 2175, - "loc": { - "start": { - "line": 57, - "column": 30 - }, - "end": { - "line": 57, - "column": 53 - } - }, - "left": { - "type": "UnaryExpression", - "start": 2152, - "end": 2162, - "loc": { - "start": { - "line": 57, - "column": 30 - }, - "end": { - "line": 57, - "column": 40 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 2159, - "end": 2161, - "loc": { - "start": { - "line": 57, - "column": 37 - }, - "end": { - "line": 57, - "column": 39 - }, - "identifierName": "pY" - }, - "name": "pY", - "extra": { - "parenthesized": true, - "parenStart": 2158 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 2167, - "end": 2175, - "loc": { - "start": { - "line": 57, - "column": 45 - }, - "end": { - "line": 57, - "column": 53 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" - }, - "value": "number" - } + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 2920, + "end": 2921, + "loc": { + "start": { + "line": 73, + "column": 66 }, - "consequent": { - "type": "Identifier", - "start": 2178, - "end": 2180, - "loc": { - "start": { - "line": 57, - "column": 56 - }, - "end": { - "line": 57, - "column": 58 - }, - "identifierName": "pY" - }, - "name": "pY" + "end": { + "line": 73, + "column": 67 }, - "alternate": { - "type": "MemberExpression", - "start": 2183, - "end": 2194, - "loc": { - "start": { - "line": 57, - "column": 61 - }, - "end": { - "line": 57, - "column": 72 - } - }, - "object": { - "type": "Identifier", - "start": 2183, - "end": 2192, - "loc": { - "start": { - "line": 57, - "column": 61 - }, - "end": { - "line": 57, - "column": 70 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 2193, - "end": 2194, - "loc": { - "start": { - "line": 57, - "column": 71 - }, - "end": { - "line": 57, - "column": 72 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - } - } - ], - "kind": "const" + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + } + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 2940, + "end": 3004, + "loc": { + "start": { + "line": 74, + "column": 16 + }, + "end": { + "line": 74, + "column": 80 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2946, + "end": 3003, + "loc": { + "start": { + "line": 74, + "column": 22 + }, + "end": { + "line": 74, + "column": 79 + } }, - { - "type": "VariableDeclaration", - "start": 2217, - "end": 2282, + "id": { + "type": "Identifier", + "start": 2946, + "end": 2949, "loc": { "start": { - "line": 58, - "column": 20 + "line": 74, + "column": 22 }, "end": { - "line": 58, - "column": 85 - } + "line": 74, + "column": 25 + }, + "identifierName": "map" }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2223, - "end": 2281, - "loc": { - "start": { - "line": 58, - "column": 26 - }, - "end": { - "line": 58, - "column": 84 - } - }, - "id": { - "type": "Identifier", - "start": 2223, - "end": 2226, - "loc": { - "start": { - "line": 58, - "column": 26 - }, - "end": { - "line": 58, - "column": 29 - }, - "identifierName": "map" - }, - "name": "map" - }, - "init": { - "type": "ConditionalExpression", - "start": 2229, - "end": 2281, - "loc": { - "start": { - "line": 58, - "column": 32 - }, - "end": { - "line": 58, - "column": 84 - } - }, - "test": { - "type": "BinaryExpression", - "start": 2229, - "end": 2254, - "loc": { - "start": { - "line": 58, - "column": 32 - }, - "end": { - "line": 58, - "column": 57 - } - }, - "left": { - "type": "UnaryExpression", - "start": 2229, - "end": 2241, - "loc": { - "start": { - "line": 58, - "column": 32 - }, - "end": { - "line": 58, - "column": 44 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 2236, - "end": 2240, - "loc": { - "start": { - "line": 58, - "column": 39 - }, - "end": { - "line": 58, - "column": 43 - }, - "identifierName": "pMap" - }, - "name": "pMap", - "extra": { - "parenthesized": true, - "parenStart": 2235 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 2246, - "end": 2254, - "loc": { - "start": { - "line": 58, - "column": 49 - }, - "end": { - "line": 58, - "column": 57 - } - }, - "extra": { - "rawValue": "string", - "raw": "'string'" - }, - "value": "string" - } - }, - "consequent": { - "type": "Identifier", - "start": 2257, - "end": 2261, - "loc": { - "start": { - "line": 58, - "column": 60 - }, - "end": { - "line": 58, - "column": 64 - }, - "identifierName": "pMap" - }, - "name": "pMap" - }, - "alternate": { - "type": "MemberExpression", - "start": 2264, - "end": 2281, - "loc": { - "start": { - "line": 58, - "column": 67 - }, - "end": { - "line": 58, - "column": 84 - } - }, - "object": { - "type": "Identifier", - "start": 2264, - "end": 2273, - "loc": { - "start": { - "line": 58, - "column": 67 - }, - "end": { - "line": 58, - "column": 76 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 2274, - "end": 2281, - "loc": { - "start": { - "line": 58, - "column": 77 - }, - "end": { - "line": 58, - "column": 84 - }, - "identifierName": "mapName" - }, - "name": "mapName" - }, - "computed": false - } - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " Clone the parallax object", - "start": 2304, - "end": 2332, - "loc": { - "start": { - "line": 59, - "column": 20 - }, - "end": { - "line": 59, - "column": 48 - } - } - } - ] + "name": "map" }, - { - "type": "VariableDeclaration", - "start": 2354, - "end": 2396, + "init": { + "type": "ConditionalExpression", + "start": 2952, + "end": 3003, "loc": { "start": { - "line": 60, - "column": 20 + "line": 74, + "column": 28 }, "end": { - "line": 60, - "column": 62 + "line": 74, + "column": 79 } }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2360, - "end": 2395, + "test": { + "type": "BinaryExpression", + "start": 2952, + "end": 2976, + "loc": { + "start": { + "line": 74, + "column": 28 + }, + "end": { + "line": 74, + "column": 52 + } + }, + "left": { + "type": "UnaryExpression", + "start": 2952, + "end": 2963, "loc": { "start": { - "line": 60, - "column": 26 + "line": 74, + "column": 28 }, "end": { - "line": 60, - "column": 61 + "line": 74, + "column": 39 } }, - "id": { + "operator": "typeof", + "prefix": true, + "argument": { "type": "Identifier", - "start": 2360, - "end": 2372, + "start": 2959, + "end": 2963, "loc": { "start": { - "line": 60, - "column": 26 + "line": 74, + "column": 35 }, "end": { - "line": 60, - "column": 38 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo", - "leadingComments": null - }, - "init": { - "type": "ObjectExpression", - "start": 2375, - "end": 2395, - "loc": { - "start": { - "line": 60, - "column": 41 + "line": 74, + "column": 39 }, - "end": { - "line": 60, - "column": 61 - } + "identifierName": "pMap" }, - "properties": [ - { - "type": "SpreadProperty", - "start": 2377, - "end": 2393, - "loc": { - "start": { - "line": 60, - "column": 43 - }, - "end": { - "line": 60, - "column": 59 - } - }, - "argument": { - "type": "Identifier", - "start": 2380, - "end": 2393, - "loc": { - "start": { - "line": 60, - "column": 46 - }, - "end": { - "line": 60, - "column": 59 - }, - "identifierName": "pParallaxInfo" - }, - "name": "pParallaxInfo" - } - } - ] + "name": "pMap" }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " Clone the parallax object", - "start": 2304, - "end": 2332, + "extra": { + "parenthesizedArgument": false + } + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 2968, + "end": 2976, "loc": { "start": { - "line": 59, - "column": 20 + "line": 74, + "column": 44 }, "end": { - "line": 59, - "column": 48 + "line": 74, + "column": 52 } - } + }, + "extra": { + "rawValue": "string", + "raw": "'string'" + }, + "value": "string" } - ] - }, - { - "type": "ExpressionStatement", - "start": 2418, - "end": 2464, - "loc": { - "start": { - "line": 61, - "column": 20 + }, + "consequent": { + "type": "Identifier", + "start": 2979, + "end": 2983, + "loc": { + "start": { + "line": 74, + "column": 55 + }, + "end": { + "line": 74, + "column": 59 + }, + "identifierName": "pMap" }, - "end": { - "line": 61, - "column": 66 - } + "name": "pMap" }, - "expression": { - "type": "CallExpression", - "start": 2418, - "end": 2463, + "alternate": { + "type": "MemberExpression", + "start": 2986, + "end": 3003, "loc": { "start": { - "line": 61, - "column": 20 + "line": 74, + "column": 62 }, "end": { - "line": 61, - "column": 65 + "line": 74, + "column": 79 } }, - "callee": { - "type": "MemberExpression", - "start": 2418, - "end": 2427, - "loc": { + "object": { + "type": "Identifier", + "start": 2986, + "end": 2995, + "loc": { "start": { - "line": 61, - "column": 20 + "line": 74, + "column": 62 }, "end": { - "line": 61, - "column": 29 - } - }, - "object": { - "type": "ThisExpression", - "start": 2418, - "end": 2422, - "loc": { - "start": { - "line": 61, - "column": 20 - }, - "end": { - "line": 61, - "column": 24 - } - } - }, - "property": { - "type": "Identifier", - "start": 2423, - "end": 2427, - "loc": { - "start": { - "line": 61, - "column": 25 - }, - "end": { - "line": 61, - "column": 29 - }, - "identifierName": "init" + "line": 74, + "column": 71 }, - "name": "init" + "identifierName": "pInstance" }, - "computed": false + "name": "pInstance" }, - "arguments": [ - { - "type": "Identifier", - "start": 2428, - "end": 2437, - "loc": { - "start": { - "line": 61, - "column": 30 - }, - "end": { - "line": 61, - "column": 39 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - { - "type": "Identifier", - "start": 2439, - "end": 2451, - "loc": { - "start": { - "line": 61, - "column": 41 - }, - "end": { - "line": 61, - "column": 53 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - { - "type": "Identifier", - "start": 2453, - "end": 2454, - "loc": { - "start": { - "line": 61, - "column": 55 - }, - "end": { - "line": 61, - "column": 56 - }, - "identifierName": "x" - }, - "name": "x" - }, - { - "type": "Identifier", - "start": 2456, - "end": 2457, - "loc": { - "start": { - "line": 61, - "column": 58 - }, - "end": { - "line": 61, - "column": 59 - }, - "identifierName": "y" - }, - "name": "y" - }, - { - "type": "Identifier", - "start": 2459, - "end": 2462, - "loc": { - "start": { - "line": 61, - "column": 61 - }, - "end": { - "line": 61, - "column": 64 - }, - "identifierName": "map" - }, - "name": "map" - } - ] - }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " Set the parallax info to the instance", - "start": 2486, - "end": 2526, + "property": { + "type": "Identifier", + "start": 2996, + "end": 3003, "loc": { "start": { - "line": 62, - "column": 20 + "line": 74, + "column": 72 }, "end": { - "line": 62, - "column": 60 - } - } - } - ] + "line": 74, + "column": 79 + }, + "identifierName": "mapName" + }, + "name": "mapName" + }, + "computed": false + } + } + } + ], + "kind": "const", + "trailingComments": [ + { + "type": "CommentLine", + "value": " Clone the parallax object", + "start": 3022, + "end": 3050, + "loc": { + "start": { + "line": 75, + "column": 16 + }, + "end": { + "line": 75, + "column": 44 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 3068, + "end": 3104, + "loc": { + "start": { + "line": 76, + "column": 16 + }, + "end": { + "line": 76, + "column": 52 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 3074, + "end": 3103, + "loc": { + "start": { + "line": 76, + "column": 22 + }, + "end": { + "line": 76, + "column": 51 + } }, - { - "type": "ExpressionStatement", - "start": 2548, - "end": 2598, + "id": { + "type": "Identifier", + "start": 3074, + "end": 3086, "loc": { "start": { - "line": 63, - "column": 20 + "line": 76, + "column": 22 }, "end": { - "line": 63, - "column": 70 - } - }, - "expression": { - "type": "CallExpression", - "start": 2548, - "end": 2597, - "loc": { - "start": { - "line": 63, - "column": 20 - }, - "end": { - "line": 63, - "column": 69 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2548, - "end": 2572, - "loc": { - "start": { - "line": 63, - "column": 20 - }, - "end": { - "line": 63, - "column": 44 - } - }, - "object": { - "type": "MemberExpression", - "start": 2548, - "end": 2568, - "loc": { - "start": { - "line": 63, - "column": 20 - }, - "end": { - "line": 63, - "column": 40 - } - }, - "object": { - "type": "ThisExpression", - "start": 2548, - "end": 2552, - "loc": { - "start": { - "line": 63, - "column": 20 - }, - "end": { - "line": 63, - "column": 24 - } - }, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 2553, - "end": 2568, - "loc": { - "start": { - "line": 63, - "column": 25 - }, - "end": { - "line": 63, - "column": 40 - }, - "identifierName": "instanceWeakMap" - }, - "name": "instanceWeakMap" - }, - "computed": false, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 2569, - "end": 2572, - "loc": { - "start": { - "line": 63, - "column": 41 - }, - "end": { - "line": 63, - "column": 44 - }, - "identifierName": "set" - }, - "name": "set" - }, - "computed": false, - "leadingComments": null + "line": 76, + "column": 34 }, - "arguments": [ - { - "type": "Identifier", - "start": 2573, - "end": 2582, - "loc": { - "start": { - "line": 63, - "column": 45 - }, - "end": { - "line": 63, - "column": 54 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - { - "type": "Identifier", - "start": 2584, - "end": 2596, - "loc": { - "start": { - "line": 63, - "column": 56 - }, - "end": { - "line": 63, - "column": 68 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - } - ], - "leadingComments": null + "identifierName": "parallaxInfo" }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Set the parallax info to the instance", - "start": 2486, - "end": 2526, - "loc": { - "start": { - "line": 62, - "column": 20 - }, - "end": { - "line": 62, - "column": 60 - } - } - } - ] + "name": "parallaxInfo", + "leadingComments": null }, - { - "type": "ExpressionStatement", - "start": 2620, - "end": 2651, + "init": { + "type": "ObjectExpression", + "start": 3089, + "end": 3103, "loc": { "start": { - "line": 64, - "column": 20 + "line": 76, + "column": 37 }, "end": { - "line": 64, + "line": 76, "column": 51 } }, - "expression": { - "type": "CallExpression", - "start": 2620, - "end": 2650, - "loc": { - "start": { - "line": 64, - "column": 20 - }, - "end": { - "line": 64, - "column": 50 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2620, - "end": 2639, + "properties": [ + { + "type": "SpreadProperty", + "start": 3091, + "end": 3101, "loc": { "start": { - "line": 64, - "column": 20 + "line": 76, + "column": 39 }, "end": { - "line": 64, - "column": 39 + "line": 76, + "column": 49 } }, - "object": { - "type": "MemberExpression", - "start": 2620, - "end": 2634, - "loc": { - "start": { - "line": 64, - "column": 20 - }, - "end": { - "line": 64, - "column": 34 - } - }, - "object": { - "type": "ThisExpression", - "start": 2620, - "end": 2624, - "loc": { - "start": { - "line": 64, - "column": 20 - }, - "end": { - "line": 64, - "column": 24 - } - } - }, - "property": { - "type": "Identifier", - "start": 2625, - "end": 2634, - "loc": { - "start": { - "line": 64, - "column": 25 - }, - "end": { - "line": 64, - "column": 34 - }, - "identifierName": "instances" - }, - "name": "instances" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 2635, - "end": 2639, - "loc": { - "start": { - "line": 64, - "column": 35 - }, - "end": { - "line": 64, - "column": 39 - }, - "identifierName": "push" - }, - "name": "push" - }, - "computed": false - }, - "arguments": [ - { + "argument": { "type": "Identifier", - "start": 2640, - "end": 2649, + "start": 3094, + "end": 3101, "loc": { "start": { - "line": 64, - "column": 40 + "line": 76, + "column": 42 }, "end": { - "line": 64, + "line": 76, "column": 49 }, - "identifierName": "pInstance" + "identifierName": "pConfig" }, - "name": "pInstance" + "name": "pConfig" } - ] + } + ] + }, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "CommentLine", + "value": " Clone the parallax object", + "start": 3022, + "end": 3050, + "loc": { + "start": { + "line": 75, + "column": 16 + }, + "end": { + "line": 75, + "column": 44 } } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 2691, - "end": 2819, - "loc": { - "start": { - "line": 66, - "column": 19 + } + ] }, - "end": { - "line": 68, - "column": 13 - } - }, - "body": [ { "type": "ExpressionStatement", - "start": 2710, - "end": 2804, + "start": 3122, + "end": 3168, "loc": { "start": { - "line": 67, + "line": 77, "column": 16 }, "end": { - "line": 67, - "column": 110 + "line": 77, + "column": 62 } }, "expression": { "type": "CallExpression", - "start": 2710, - "end": 2803, + "start": 3122, + "end": 3167, "loc": { "start": { - "line": 67, + "line": 77, "column": 16 }, "end": { - "line": 67, - "column": 109 + "line": 77, + "column": 61 } }, "callee": { "type": "MemberExpression", - "start": 2710, - "end": 2753, + "start": 3122, + "end": 3131, "loc": { "start": { - "line": 67, + "line": 77, "column": 16 }, "end": { - "line": 67, - "column": 59 + "line": 77, + "column": 25 } }, "object": { - "type": "CallExpression", - "start": 2710, - "end": 2747, + "type": "ThisExpression", + "start": 3122, + "end": 3126, "loc": { "start": { - "line": 67, + "line": 77, "column": 16 }, "end": { - "line": 67, - "column": 53 + "line": 77, + "column": 20 } + } + }, + "property": { + "type": "Identifier", + "start": 3127, + "end": 3131, + "loc": { + "start": { + "line": 77, + "column": 21 + }, + "end": { + "line": 77, + "column": 25 + }, + "identifierName": "init" }, - "callee": { - "type": "MemberExpression", - "start": 2710, - "end": 2728, - "loc": { - "start": { - "line": 67, - "column": 16 - }, - "end": { - "line": 67, - "column": 34 - } + "name": "init" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 3132, + "end": 3141, + "loc": { + "start": { + "line": 77, + "column": 26 }, - "object": { - "type": "MemberExpression", - "start": 2710, - "end": 2721, - "loc": { - "start": { - "line": 67, - "column": 16 - }, - "end": { - "line": 67, - "column": 27 - } - }, - "object": { - "type": "ThisExpression", - "start": 2710, - "end": 2714, - "loc": { - "start": { - "line": 67, - "column": 16 - }, - "end": { - "line": 67, - "column": 20 - } - } - }, - "property": { - "type": "Identifier", - "start": 2715, - "end": 2721, - "loc": { - "start": { - "line": 67, - "column": 21 - }, - "end": { - "line": 67, - "column": 27 - }, - "identifierName": "logger" - }, - "name": "logger" - }, - "computed": false + "end": { + "line": 77, + "column": 35 }, - "property": { - "type": "Identifier", - "start": 2722, - "end": 2728, - "loc": { - "start": { - "line": 67, - "column": 28 - }, - "end": { - "line": 67, - "column": 34 - }, - "identifierName": "prefix" - }, - "name": "prefix" + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + { + "type": "Identifier", + "start": 3143, + "end": 3155, + "loc": { + "start": { + "line": 77, + "column": 37 }, - "computed": false + "end": { + "line": 77, + "column": 49 + }, + "identifierName": "parallaxInfo" }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2729, - "end": 2746, - "loc": { - "start": { - "line": 67, - "column": 35 - }, - "end": { - "line": 67, - "column": 52 - } - }, - "extra": { - "rawValue": "Parallax-Module", - "raw": "'Parallax-Module'" - }, - "value": "Parallax-Module" - } - ] + "name": "parallaxInfo" }, - "property": { + { "type": "Identifier", - "start": 2748, - "end": 2753, + "start": 3157, + "end": 3158, "loc": { "start": { - "line": 67, - "column": 54 + "line": 77, + "column": 51 }, "end": { - "line": 67, - "column": 59 + "line": 77, + "column": 52 }, - "identifierName": "error" + "identifierName": "x" }, - "name": "error" + "name": "x" }, - "computed": false - }, - "arguments": [ { - "type": "StringLiteral", - "start": 2754, - "end": 2802, + "type": "Identifier", + "start": 3160, + "end": 3161, "loc": { "start": { - "line": 67, - "column": 60 + "line": 77, + "column": 54 }, "end": { - "line": 67, - "column": 108 - } + "line": 77, + "column": 55 + }, + "identifierName": "y" }, - "extra": { - "rawValue": "No pParallaxInfo passed or invalid type found!", - "raw": "'No pParallaxInfo passed or invalid type found!'" + "name": "y" + }, + { + "type": "Identifier", + "start": 3163, + "end": 3166, + "loc": { + "start": { + "line": 77, + "column": 57 + }, + "end": { + "line": 77, + "column": 60 + }, + "identifierName": "map" }, - "value": "No pParallaxInfo passed or invalid type found!" + "name": "map" } ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] + }, + "trailingComments": [ + { + "type": "CommentLine", + "value": " Set the parallax info to the instance", + "start": 3186, + "end": 3226, + "loc": { + "start": { + "line": 78, + "column": 16 + }, + "end": { + "line": 78, + "column": 56 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 3244, + "end": 3294, + "loc": { + "start": { + "line": 79, + "column": 16 + }, + "end": { + "line": 79, + "column": 66 + } + }, + "expression": { + "type": "CallExpression", + "start": 3244, + "end": 3293, + "loc": { + "start": { + "line": 79, + "column": 16 + }, + "end": { + "line": 79, + "column": 65 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3244, + "end": 3268, + "loc": { + "start": { + "line": 79, + "column": 16 + }, + "end": { + "line": 79, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 3244, + "end": 3264, + "loc": { + "start": { + "line": 79, + "column": 16 + }, + "end": { + "line": 79, + "column": 36 + } + }, + "object": { + "type": "ThisExpression", + "start": 3244, + "end": 3248, + "loc": { + "start": { + "line": 79, + "column": 16 + }, + "end": { + "line": 79, + "column": 20 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 3249, + "end": 3264, + "loc": { + "start": { + "line": 79, + "column": 21 + }, + "end": { + "line": 79, + "column": 36 + }, + "identifierName": "instanceWeakMap" + }, + "name": "instanceWeakMap" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 3265, + "end": 3268, + "loc": { + "start": { + "line": 79, + "column": 37 + }, + "end": { + "line": 79, + "column": 40 + }, + "identifierName": "set" + }, + "name": "set" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [ + { + "type": "Identifier", + "start": 3269, + "end": 3278, + "loc": { + "start": { + "line": 79, + "column": 41 + }, + "end": { + "line": 79, + "column": 50 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + { + "type": "Identifier", + "start": 3280, + "end": 3292, + "loc": { + "start": { + "line": 79, + "column": 52 + }, + "end": { + "line": 79, + "column": 64 + }, + "identifierName": "parallaxInfo" + }, + "name": "parallaxInfo" + } + ], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Set the parallax info to the instance", + "start": 3186, + "end": 3226, + "loc": { + "start": { + "line": 78, + "column": 16 + }, + "end": { + "line": 78, + "column": 56 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 3312, + "end": 3342, + "loc": { + "start": { + "line": 80, + "column": 16 + }, + "end": { + "line": 80, + "column": 46 + } + }, + "expression": { + "type": "CallExpression", + "start": 3312, + "end": 3341, + "loc": { + "start": { + "line": 80, + "column": 16 + }, + "end": { + "line": 80, + "column": 45 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3312, + "end": 3330, + "loc": { + "start": { + "line": 80, + "column": 16 + }, + "end": { + "line": 80, + "column": 34 + } + }, + "object": { + "type": "MemberExpression", + "start": 3312, + "end": 3326, + "loc": { + "start": { + "line": 80, + "column": 16 + }, + "end": { + "line": 80, + "column": 30 + } + }, + "object": { + "type": "ThisExpression", + "start": 3312, + "end": 3316, + "loc": { + "start": { + "line": 80, + "column": 16 + }, + "end": { + "line": 80, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "start": 3317, + "end": 3326, + "loc": { + "start": { + "line": 80, + "column": 21 + }, + "end": { + "line": 80, + "column": 30 + }, + "identifierName": "instances" + }, + "name": "instances" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3327, + "end": 3330, + "loc": { + "start": { + "line": 80, + "column": 31 + }, + "end": { + "line": 80, + "column": 34 + }, + "identifierName": "add" + }, + "name": "add" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 3331, + "end": 3340, + "loc": { + "start": { + "line": 80, + "column": 35 + }, + "end": { + "line": 80, + "column": 44 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [] }, "alternate": { "type": "BlockStatement", - "start": 2836, - "end": 2930, + "start": 3374, + "end": 3488, "loc": { "start": { - "line": 69, + "line": 82, "column": 15 }, "end": { - "line": 71, + "line": 84, "column": 9 } }, "body": [ { "type": "ExpressionStatement", - "start": 2851, - "end": 2919, + "start": 3389, + "end": 3477, "loc": { "start": { - "line": 70, + "line": 83, "column": 12 }, "end": { - "line": 70, - "column": 80 + "line": 83, + "column": 100 } }, "expression": { "type": "CallExpression", - "start": 2851, - "end": 2918, + "start": 3389, + "end": 3476, "loc": { "start": { - "line": 70, + "line": 83, "column": 12 }, "end": { - "line": 70, - "column": 79 + "line": 83, + "column": 99 } }, "callee": { "type": "MemberExpression", - "start": 2851, - "end": 2894, + "start": 3389, + "end": 3432, "loc": { "start": { - "line": 70, + "line": 83, "column": 12 }, "end": { - "line": 70, + "line": 83, "column": 55 } }, "object": { "type": "CallExpression", - "start": 2851, - "end": 2888, + "start": 3389, + "end": 3426, "loc": { "start": { - "line": 70, + "line": 83, "column": 12 }, "end": { - "line": 70, + "line": 83, "column": 49 } }, "callee": { "type": "MemberExpression", - "start": 2851, - "end": 2869, + "start": 3389, + "end": 3407, "loc": { "start": { - "line": 70, + "line": 83, "column": 12 }, "end": { - "line": 70, + "line": 83, "column": 30 } }, "object": { "type": "MemberExpression", - "start": 2851, - "end": 2862, + "start": 3389, + "end": 3400, "loc": { "start": { - "line": 70, + "line": 83, "column": 12 }, "end": { - "line": 70, + "line": 83, "column": 23 } }, "object": { "type": "ThisExpression", - "start": 2851, - "end": 2855, + "start": 3389, + "end": 3393, "loc": { "start": { - "line": 70, + "line": 83, "column": 12 }, "end": { - "line": 70, + "line": 83, "column": 16 } } }, "property": { "type": "Identifier", - "start": 2856, - "end": 2862, + "start": 3394, + "end": 3400, "loc": { "start": { - "line": 70, + "line": 83, "column": 17 }, "end": { - "line": 70, + "line": 83, "column": 23 }, "identifierName": "logger" @@ -3056,15 +3236,15 @@ }, "property": { "type": "Identifier", - "start": 2863, - "end": 2869, + "start": 3401, + "end": 3407, "loc": { "start": { - "line": 70, + "line": 83, "column": 24 }, "end": { - "line": 70, + "line": 83, "column": 30 }, "identifierName": "prefix" @@ -3076,15 +3256,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 2870, - "end": 2887, + "start": 3408, + "end": 3425, "loc": { "start": { - "line": 70, + "line": 83, "column": 31 }, "end": { - "line": 70, + "line": 83, "column": 48 } }, @@ -3098,15 +3278,15 @@ }, "property": { "type": "Identifier", - "start": 2889, - "end": 2894, + "start": 3427, + "end": 3432, "loc": { "start": { - "line": 70, + "line": 83, "column": 50 }, "end": { - "line": 70, + "line": 83, "column": 55 }, "identifierName": "error" @@ -3118,23 +3298,23 @@ "arguments": [ { "type": "StringLiteral", - "start": 2895, - "end": 2917, + "start": 3433, + "end": 3475, "loc": { "start": { - "line": 70, + "line": 83, "column": 56 }, "end": { - "line": 70, - "column": 78 + "line": 83, + "column": 98 } }, "extra": { - "rawValue": "No pInstance passed!", - "raw": "'No pInstance passed!'" + "rawValue": "No pConfig passed or invalid type found!", + "raw": "'No pConfig passed or invalid type found!'" }, - "value": "No pInstance passed!" + "value": "No pConfig passed or invalid type found!" } ] } @@ -3147,19 +3327,37 @@ "directives": [], "trailingComments": null }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adds an instance to the parallax system.\r\n * Call this first and then add your instance to the map.\r\n * @param {Object} pInstance - The instance to add to the parallax system.\r\n * @param {Object} pConfig - The parallax info that tells this module how to control this instance.\r\n * @prop {number} pConfig.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @prop {number} pConfig.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @prop {boolean} pConfig.loop - Whether this instance will loop endlessly.\r\n * @param {number} [pX] - The x position this instance will start at.\r\n * @param {number} [pY] - The y position this instance will start at.\r\n * @param {string} [pMap] - The map this instance will start at.\r\n * \r\n * ## The following is how the speed of the parallax multipliers are factored in. \r\n (x | y) < 1 = faster behind the camera eg: (-> Player goes this way = Instance goes this way <-) \r\n (x | y) > 1 faster against the camera eg: (-> Player goes this way = Instance goes this way ->) \r\n (x | y) = 0 = static to the camera eg: (-> Player goes this way = Instance does nothing, and moves with the camera) \r\n (x | y) = 1 = moves with the camera eg: (-> Player goes this way = Instance goes this way -> at position of camera) \r\n ", + "start": 1006, + "end": 2501, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 63, + "column": 7 + } + } + } + ], "trailingComments": [ { "type": "CommentBlock", - "value": "*\r\n * Initializes this instance.\r\n * @param {Object} pInstance - The instance to initialize.\r\n * @param {Object} pParallaxInfo - The parallax info that tells this module how to control this instance.\r\n * @property {number} pParallaxInfo.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {number} pParallaxInfo.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {boolean} pParallaxInfo.loop - Whether this instance will loop endlessly.\r\n * @param {number} pX - The x position this parallax will start at.\r\n * @param {number} pY - The y position this parallax will start at.\r\n * @param {string} pMap - The map this instance will start at.\r\n * @private\r\n ", - "start": 2943, - "end": 3836, + "value": "*\r\n * Initializes this instance.\r\n * @param {Object} pInstance - The instance to initialize.\r\n * @param {Object} pConfig - The parallax info that tells this module how to control this instance.\r\n * @prop {number} pConfig.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 0 to move with camera.\r\n * @prop {number} pConfig.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 0 to move with camera.\r\n * @prop {boolean} pConfig.loop - Whether this instance will loop endlessly.\r\n * @param {number} pX - The x position this parallax will start at.\r\n * @param {number} pY - The y position this parallax will start at.\r\n * @param {string} pMap - The map this instance will start at.\r\n * @private\r\n ", + "start": 3501, + "end": 4358, "loc": { "start": { - "line": 73, + "line": 86, "column": 4 }, "end": { - "line": 84, + "line": 97, "column": 7 } } @@ -3168,15 +3366,15 @@ }, { "type": "ClassMethod", - "start": 3842, - "end": 6154, + "start": 4364, + "end": 6840, "loc": { "start": { - "line": 85, + "line": 98, "column": 4 }, "end": { - "line": 132, + "line": 156, "column": 5 } }, @@ -3184,15 +3382,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 3842, - "end": 3846, + "start": 4364, + "end": 4368, "loc": { "start": { - "line": 85, + "line": 98, "column": 4 }, "end": { - "line": 85, + "line": 98, "column": 8 }, "identifierName": "init" @@ -3208,15 +3406,15 @@ "params": [ { "type": "Identifier", - "start": 3847, - "end": 3856, + "start": 4369, + "end": 4378, "loc": { "start": { - "line": 85, + "line": 98, "column": 9 }, "end": { - "line": 85, + "line": 98, "column": 18 }, "identifierName": "pInstance" @@ -3225,33 +3423,33 @@ }, { "type": "Identifier", - "start": 3858, - "end": 3871, + "start": 4380, + "end": 4387, "loc": { "start": { - "line": 85, + "line": 98, "column": 20 }, "end": { - "line": 85, - "column": 33 + "line": 98, + "column": 27 }, - "identifierName": "pParallaxInfo" + "identifierName": "pConfig" }, - "name": "pParallaxInfo" + "name": "pConfig" }, { "type": "Identifier", - "start": 3873, - "end": 3875, + "start": 4389, + "end": 4391, "loc": { "start": { - "line": 85, - "column": 35 + "line": 98, + "column": 29 }, "end": { - "line": 85, - "column": 37 + "line": 98, + "column": 31 }, "identifierName": "pX" }, @@ -3259,16 +3457,16 @@ }, { "type": "Identifier", - "start": 3877, - "end": 3879, + "start": 4393, + "end": 4395, "loc": { "start": { - "line": 85, - "column": 39 + "line": 98, + "column": 33 }, "end": { - "line": 85, - "column": 41 + "line": 98, + "column": 35 }, "identifierName": "pY" }, @@ -3276,16 +3474,16 @@ }, { "type": "Identifier", - "start": 3881, - "end": 3885, + "start": 4397, + "end": 4401, "loc": { "start": { - "line": 85, - "column": 43 + "line": 98, + "column": 37 }, "end": { - "line": 85, - "column": 47 + "line": 98, + "column": 41 }, "identifierName": "pMap" }, @@ -3294,2878 +3492,2570 @@ ], "body": { "type": "BlockStatement", - "start": 3887, - "end": 6154, + "start": 4403, + "end": 6840, "loc": { "start": { - "line": 85, - "column": 49 + "line": 98, + "column": 43 }, "end": { - "line": 132, + "line": 156, "column": 5 } }, "body": [ { "type": "IfStatement", - "start": 3898, - "end": 6147, + "start": 4414, + "end": 4606, "loc": { "start": { - "line": 86, + "line": 99, "column": 8 }, "end": { - "line": 131, + "line": 102, "column": 9 } }, "test": { - "type": "Identifier", - "start": 3902, - "end": 3906, + "type": "UnaryExpression", + "start": 4418, + "end": 4423, "loc": { "start": { - "line": 86, + "line": 99, "column": 12 }, "end": { - "line": 86, - "column": 16 + "line": 99, + "column": 17 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 4419, + "end": 4423, + "loc": { + "start": { + "line": 99, + "column": 13 + }, + "end": { + "line": 99, + "column": 17 + }, + "identifierName": "VYLO" }, - "identifierName": "VYLO" + "name": "VYLO" }, - "name": "VYLO" + "extra": { + "parenthesizedArgument": false + } }, "consequent": { "type": "BlockStatement", - "start": 3908, - "end": 5981, + "start": 4425, + "end": 4606, "loc": { "start": { - "line": 86, - "column": 18 + "line": 99, + "column": 19 }, "end": { - "line": 129, + "line": 102, "column": 9 } }, "body": [ { - "type": "IfStatement", - "start": 4009, - "end": 5558, + "type": "ExpressionStatement", + "start": 4440, + "end": 4574, "loc": { "start": { - "line": 88, + "line": 100, "column": 12 }, "end": { - "line": 117, - "column": 13 + "line": 100, + "column": 146 } }, - "test": { - "type": "MemberExpression", - "start": 4013, - "end": 4031, + "expression": { + "type": "CallExpression", + "start": 4440, + "end": 4573, "loc": { "start": { - "line": 88, - "column": 16 + "line": 100, + "column": 12 }, "end": { - "line": 88, - "column": 34 + "line": 100, + "column": 145 } }, - "object": { - "type": "Identifier", - "start": 4013, - "end": 4026, - "loc": { - "start": { - "line": 88, - "column": 16 - }, - "end": { - "line": 88, - "column": 29 - }, - "identifierName": "pParallaxInfo" - }, - "name": "pParallaxInfo", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 4027, - "end": 4031, + "callee": { + "type": "MemberExpression", + "start": 4440, + "end": 4483, "loc": { "start": { - "line": 88, - "column": 30 + "line": 100, + "column": 12 }, "end": { - "line": 88, - "column": 34 - }, - "identifierName": "loop" - }, - "name": "loop" - }, - "computed": false, - "leadingComments": null - }, - "consequent": { - "type": "BlockStatement", - "start": 4033, - "end": 5558, - "loc": { - "start": { - "line": 88, - "column": 36 + "line": 100, + "column": 55 + } }, - "end": { - "line": 117, - "column": 13 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 4102, - "end": 4140, + "object": { + "type": "CallExpression", + "start": 4440, + "end": 4477, "loc": { "start": { - "line": 90, - "column": 16 + "line": 100, + "column": 12 }, "end": { - "line": 90, - "column": 54 + "line": 100, + "column": 49 } }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4108, - "end": 4139, + "callee": { + "type": "MemberExpression", + "start": 4440, + "end": 4458, + "loc": { + "start": { + "line": 100, + "column": 12 + }, + "end": { + "line": 100, + "column": 30 + } + }, + "object": { + "type": "MemberExpression", + "start": 4440, + "end": 4451, "loc": { "start": { - "line": 90, - "column": 22 + "line": 100, + "column": 12 }, "end": { - "line": 90, - "column": 53 + "line": 100, + "column": 23 } }, - "id": { - "type": "Identifier", - "start": 4108, - "end": 4112, + "object": { + "type": "ThisExpression", + "start": 4440, + "end": 4444, "loc": { "start": { - "line": 90, - "column": 22 + "line": 100, + "column": 12 }, "end": { - "line": 90, - "column": 26 - }, - "identifierName": "left" - }, - "name": "left", - "leadingComments": null + "line": 100, + "column": 16 + } + } }, - "init": { - "type": "CallExpression", - "start": 4115, - "end": 4139, + "property": { + "type": "Identifier", + "start": 4445, + "end": 4451, "loc": { "start": { - "line": 90, - "column": 29 + "line": 100, + "column": 17 }, "end": { - "line": 90, - "column": 53 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4115, - "end": 4127, - "loc": { - "start": { - "line": 90, - "column": 29 - }, - "end": { - "line": 90, - "column": 41 - } - }, - "object": { - "type": "Identifier", - "start": 4115, - "end": 4119, - "loc": { - "start": { - "line": 90, - "column": 29 - }, - "end": { - "line": 90, - "column": 33 - }, - "identifierName": "VYLO" - }, - "name": "VYLO" - }, - "property": { - "type": "Identifier", - "start": 4120, - "end": 4127, - "loc": { - "start": { - "line": 90, - "column": 34 - }, - "end": { - "line": 90, - "column": 41 - }, - "identifierName": "newDiob" - }, - "name": "newDiob" + "line": 100, + "column": 23 }, - "computed": false + "identifierName": "logger" }, - "arguments": [ - { - "type": "StringLiteral", - "start": 4128, - "end": 4138, - "loc": { - "start": { - "line": 90, - "column": 42 - }, - "end": { - "line": 90, - "column": 52 - } - }, - "extra": { - "rawValue": "Particle", - "raw": "'Particle'" - }, - "value": "Particle" - } - ] + "name": "logger" }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4452, + "end": 4458, + "loc": { + "start": { + "line": 100, + "column": 24 + }, + "end": { + "line": 100, + "column": 30 + }, + "identifierName": "prefix" + }, + "name": "prefix" + }, + "computed": false + }, + "arguments": [ { - "type": "CommentLine", - "value": " Create a left and right clone", - "start": 4052, - "end": 4084, + "type": "StringLiteral", + "start": 4459, + "end": 4476, "loc": { "start": { - "line": 89, - "column": 16 + "line": 100, + "column": 31 }, "end": { - "line": 89, + "line": 100, "column": 48 } - } + }, + "extra": { + "rawValue": "Parallax-Module", + "raw": "'Parallax-Module'" + }, + "value": "Parallax-Module" } ] }, - { - "type": "VariableDeclaration", - "start": 4158, - "end": 4197, + "property": { + "type": "Identifier", + "start": 4478, + "end": 4483, "loc": { "start": { - "line": 91, - "column": 16 + "line": 100, + "column": 50 }, "end": { - "line": 91, + "line": 100, "column": 55 - } + }, + "identifierName": "error" }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4164, - "end": 4196, - "loc": { - "start": { - "line": 91, - "column": 22 - }, - "end": { - "line": 91, - "column": 54 - } - }, - "id": { - "type": "Identifier", - "start": 4164, - "end": 4169, - "loc": { - "start": { - "line": 91, - "column": 22 - }, - "end": { - "line": 91, - "column": 27 - }, - "identifierName": "right" - }, - "name": "right" - }, - "init": { - "type": "CallExpression", - "start": 4172, - "end": 4196, - "loc": { - "start": { - "line": 91, - "column": 30 - }, - "end": { - "line": 91, - "column": 54 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4172, - "end": 4184, - "loc": { - "start": { - "line": 91, - "column": 30 - }, - "end": { - "line": 91, - "column": 42 - } - }, - "object": { - "type": "Identifier", - "start": 4172, - "end": 4176, - "loc": { - "start": { - "line": 91, - "column": 30 - }, - "end": { - "line": 91, - "column": 34 - }, - "identifierName": "VYLO" - }, - "name": "VYLO" - }, - "property": { - "type": "Identifier", - "start": 4177, - "end": 4184, - "loc": { - "start": { - "line": 91, - "column": 35 - }, - "end": { - "line": 91, - "column": 42 - }, - "identifierName": "newDiob" - }, - "name": "newDiob" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 4185, - "end": 4195, - "loc": { - "start": { - "line": 91, - "column": 43 - }, - "end": { - "line": 91, - "column": 53 - } - }, - "extra": { - "rawValue": "Particle", - "raw": "'Particle'" - }, - "value": "Particle" - } - ] - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " Make the left and right clone particle look the same as the initial instance", - "start": 4215, - "end": 4294, - "loc": { - "start": { - "line": 92, - "column": 16 - }, - "end": { - "line": 92, - "column": 95 - } - } - } - ] + "name": "error" }, + "computed": false + }, + "arguments": [ { - "type": "ExpressionStatement", - "start": 4312, - "end": 4342, + "type": "StringLiteral", + "start": 4484, + "end": 4572, "loc": { "start": { - "line": 93, - "column": 16 + "line": 100, + "column": 56 }, "end": { - "line": 93, - "column": 46 + "line": 100, + "column": 144 } }, - "expression": { - "type": "CallExpression", - "start": 4312, - "end": 4341, - "loc": { - "start": { - "line": 93, - "column": 16 - }, - "end": { - "line": 93, - "column": 45 - } + "extra": { + "rawValue": "VYLO not found! This module depends on the VYLO object being in the global name space.", + "raw": "'VYLO not found! This module depends on the VYLO object being in the global name space.'" + }, + "value": "VYLO not found! This module depends on the VYLO object being in the global name space." + } + ] + } + }, + { + "type": "ReturnStatement", + "start": 4588, + "end": 4595, + "loc": { + "start": { + "line": 101, + "column": 12 + }, + "end": { + "line": 101, + "column": 19 + } + }, + "argument": null + } + ], + "directives": [], + "trailingComments": null + }, + "alternate": null, + "trailingComments": [ + { + "type": "CommentLine", + "value": " If this instance is set to loop, then it needs a left and right clone", + "start": 4618, + "end": 4690, + "loc": { + "start": { + "line": 104, + "column": 8 + }, + "end": { + "line": 104, + "column": 80 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 4700, + "end": 6504, + "loc": { + "start": { + "line": 105, + "column": 8 + }, + "end": { + "line": 145, + "column": 9 + } + }, + "test": { + "type": "MemberExpression", + "start": 4704, + "end": 4716, + "loc": { + "start": { + "line": 105, + "column": 12 + }, + "end": { + "line": 105, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 4704, + "end": 4711, + "loc": { + "start": { + "line": 105, + "column": 12 + }, + "end": { + "line": 105, + "column": 19 + }, + "identifierName": "pConfig" + }, + "name": "pConfig", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 4712, + "end": 4716, + "loc": { + "start": { + "line": 105, + "column": 20 + }, + "end": { + "line": 105, + "column": 24 + }, + "identifierName": "loop" + }, + "name": "loop" + }, + "computed": false, + "leadingComments": null + }, + "consequent": { + "type": "BlockStatement", + "start": 4718, + "end": 6504, + "loc": { + "start": { + "line": 105, + "column": 26 + }, + "end": { + "line": 145, + "column": 9 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 4779, + "end": 4818, + "loc": { + "start": { + "line": 107, + "column": 12 + }, + "end": { + "line": 107, + "column": 51 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 4785, + "end": 4817, + "loc": { + "start": { + "line": 107, + "column": 18 + }, + "end": { + "line": 107, + "column": 50 + } + }, + "id": { + "type": "Identifier", + "start": 4785, + "end": 4789, + "loc": { + "start": { + "line": 107, + "column": 18 }, - "callee": { - "type": "MemberExpression", - "start": 4312, - "end": 4330, - "loc": { - "start": { - "line": 93, - "column": 16 - }, - "end": { - "line": 93, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 4312, - "end": 4316, - "loc": { - "start": { - "line": 93, - "column": 16 - }, - "end": { - "line": 93, - "column": 20 - }, - "identifierName": "left" - }, - "name": "left", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 4317, - "end": 4330, - "loc": { - "start": { - "line": 93, - "column": 21 - }, - "end": { - "line": 93, - "column": 34 - }, - "identifierName": "setAppearance" - }, - "name": "setAppearance" - }, - "computed": false, - "leadingComments": null + "end": { + "line": 107, + "column": 22 }, - "arguments": [ - { - "type": "Identifier", - "start": 4331, - "end": 4340, - "loc": { - "start": { - "line": 93, - "column": 35 - }, - "end": { - "line": 93, - "column": 44 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - } - ], - "leadingComments": null + "identifierName": "left" }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Make the left and right clone particle look the same as the initial instance", - "start": 4215, - "end": 4294, - "loc": { - "start": { - "line": 92, - "column": 16 - }, - "end": { - "line": 92, - "column": 95 - } - } - } - ] + "name": "left", + "leadingComments": null }, - { - "type": "ExpressionStatement", - "start": 4360, - "end": 4391, + "init": { + "type": "CallExpression", + "start": 4792, + "end": 4817, "loc": { "start": { - "line": 94, - "column": 16 + "line": 107, + "column": 25 }, "end": { - "line": 94, - "column": 47 + "line": 107, + "column": 50 } }, - "expression": { - "type": "CallExpression", - "start": 4360, - "end": 4390, + "callee": { + "type": "MemberExpression", + "start": 4792, + "end": 4804, "loc": { "start": { - "line": 94, - "column": 16 + "line": 107, + "column": 25 }, "end": { - "line": 94, - "column": 46 + "line": 107, + "column": 37 } }, - "callee": { - "type": "MemberExpression", - "start": 4360, - "end": 4379, + "object": { + "type": "Identifier", + "start": 4792, + "end": 4796, "loc": { "start": { - "line": 94, - "column": 16 + "line": 107, + "column": 25 }, "end": { - "line": 94, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 4360, - "end": 4365, - "loc": { - "start": { - "line": 94, - "column": 16 - }, - "end": { - "line": 94, - "column": 21 - }, - "identifierName": "right" + "line": 107, + "column": 29 }, - "name": "right" + "identifierName": "VYLO" }, - "property": { - "type": "Identifier", - "start": 4366, - "end": 4379, - "loc": { - "start": { - "line": 94, - "column": 22 - }, - "end": { - "line": 94, - "column": 35 - }, - "identifierName": "setAppearance" + "name": "VYLO" + }, + "property": { + "type": "Identifier", + "start": 4797, + "end": 4804, + "loc": { + "start": { + "line": 107, + "column": 30 + }, + "end": { + "line": 107, + "column": 37 }, - "name": "setAppearance" + "identifierName": "newDiob" }, - "computed": false + "name": "newDiob" }, - "arguments": [ - { - "type": "Identifier", - "start": 4380, - "end": 4389, - "loc": { - "start": { - "line": 94, - "column": 36 - }, - "end": { - "line": 94, - "column": 45 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - } - ] + "computed": false }, - "trailingComments": [ + "arguments": [ { - "type": "CommentLine", - "value": " Position the left clone", - "start": 4409, - "end": 4435, + "type": "StringLiteral", + "start": 4805, + "end": 4816, "loc": { "start": { - "line": 95, - "column": 16 + "line": 107, + "column": 38 }, "end": { - "line": 95, - "column": 42 + "line": 107, + "column": 49 } - } + }, + "extra": { + "rawValue": "MapObject", + "raw": "'MapObject'" + }, + "value": "MapObject" } ] }, - { - "type": "ExpressionStatement", - "start": 4453, - "end": 4488, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "CommentLine", + "value": " Create a left and right clone", + "start": 4733, + "end": 4765, + "loc": { + "start": { + "line": 106, + "column": 12 + }, + "end": { + "line": 106, + "column": 44 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 4832, + "end": 4872, + "loc": { + "start": { + "line": 108, + "column": 12 + }, + "end": { + "line": 108, + "column": 52 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 4838, + "end": 4871, + "loc": { + "start": { + "line": 108, + "column": 18 + }, + "end": { + "line": 108, + "column": 51 + } + }, + "id": { + "type": "Identifier", + "start": 4838, + "end": 4843, "loc": { "start": { - "line": 96, - "column": 16 + "line": 108, + "column": 18 + }, + "end": { + "line": 108, + "column": 23 + }, + "identifierName": "right" + }, + "name": "right" + }, + "init": { + "type": "CallExpression", + "start": 4846, + "end": 4871, + "loc": { + "start": { + "line": 108, + "column": 26 }, "end": { - "line": 96, + "line": 108, "column": 51 } }, - "expression": { - "type": "AssignmentExpression", - "start": 4453, - "end": 4487, + "callee": { + "type": "MemberExpression", + "start": 4846, + "end": 4858, "loc": { "start": { - "line": 96, - "column": 16 + "line": 108, + "column": 26 }, "end": { - "line": 96, - "column": 50 + "line": 108, + "column": 38 } }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 4453, - "end": 4459, + "object": { + "type": "Identifier", + "start": 4846, + "end": 4850, "loc": { "start": { - "line": 96, - "column": 16 + "line": 108, + "column": 26 }, "end": { - "line": 96, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 4453, - "end": 4457, - "loc": { - "start": { - "line": 96, - "column": 16 - }, - "end": { - "line": 96, - "column": 20 - }, - "identifierName": "left" + "line": 108, + "column": 30 }, - "name": "left", - "leadingComments": null + "identifierName": "VYLO" }, - "property": { - "type": "Identifier", - "start": 4458, - "end": 4459, - "loc": { - "start": { - "line": 96, - "column": 21 - }, - "end": { - "line": 96, - "column": 22 - }, - "identifierName": "x" + "name": "VYLO" + }, + "property": { + "type": "Identifier", + "start": 4851, + "end": 4858, + "loc": { + "start": { + "line": 108, + "column": 31 }, - "name": "x" + "end": { + "line": 108, + "column": 38 + }, + "identifierName": "newDiob" }, - "computed": false, - "leadingComments": null + "name": "newDiob" }, - "right": { - "type": "BinaryExpression", - "start": 4462, - "end": 4487, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 4859, + "end": 4870, "loc": { "start": { - "line": 96, - "column": 25 + "line": 108, + "column": 39 }, "end": { - "line": 96, + "line": 108, "column": 50 } }, - "left": { - "type": "Identifier", - "start": 4462, - "end": 4464, - "loc": { - "start": { - "line": 96, - "column": 25 - }, - "end": { - "line": 96, - "column": 27 - }, - "identifierName": "pX" - }, - "name": "pX" + "extra": { + "rawValue": "MapObject", + "raw": "'MapObject'" }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 4467, - "end": 4487, - "loc": { - "start": { - "line": 96, - "column": 30 - }, - "end": { - "line": 96, - "column": 50 - } - }, - "object": { - "type": "MemberExpression", - "start": 4467, - "end": 4481, - "loc": { - "start": { - "line": 96, - "column": 30 - }, - "end": { - "line": 96, - "column": 44 - } - }, - "object": { - "type": "Identifier", - "start": 4467, - "end": 4476, - "loc": { - "start": { - "line": 96, - "column": 30 - }, - "end": { - "line": 96, - "column": 39 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 4477, - "end": 4481, - "loc": { - "start": { - "line": 96, - "column": 40 - }, - "end": { - "line": 96, - "column": 44 - }, - "identifierName": "icon" - }, - "name": "icon" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 4482, - "end": 4487, - "loc": { - "start": { - "line": 96, - "column": 45 - }, - "end": { - "line": 96, - "column": 50 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - } - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Position the left clone", - "start": 4409, - "end": 4435, - "loc": { - "start": { - "line": 95, - "column": 16 - }, - "end": { - "line": 95, - "column": 42 - } - } + "value": "MapObject" } ] + } + } + ], + "kind": "const", + "trailingComments": [ + { + "type": "CommentLine", + "value": " Make the left and right clone particle look the same as the initial instance", + "start": 4888, + "end": 4967, + "loc": { + "start": { + "line": 110, + "column": 12 + }, + "end": { + "line": 110, + "column": 91 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 4981, + "end": 5011, + "loc": { + "start": { + "line": 111, + "column": 12 + }, + "end": { + "line": 111, + "column": 42 + } + }, + "expression": { + "type": "CallExpression", + "start": 4981, + "end": 5010, + "loc": { + "start": { + "line": 111, + "column": 12 }, - { - "type": "ExpressionStatement", - "start": 4506, - "end": 4518, + "end": { + "line": 111, + "column": 41 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4981, + "end": 4999, + "loc": { + "start": { + "line": 111, + "column": 12 + }, + "end": { + "line": 111, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 4981, + "end": 4985, "loc": { "start": { - "line": 97, - "column": 16 + "line": 111, + "column": 12 }, "end": { - "line": 97, - "column": 28 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 4506, - "end": 4517, - "loc": { - "start": { - "line": 97, - "column": 16 - }, - "end": { - "line": 97, - "column": 27 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 4506, - "end": 4512, - "loc": { - "start": { - "line": 97, - "column": 16 - }, - "end": { - "line": 97, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 4506, - "end": 4510, - "loc": { - "start": { - "line": 97, - "column": 16 - }, - "end": { - "line": 97, - "column": 20 - }, - "identifierName": "left" - }, - "name": "left" - }, - "property": { - "type": "Identifier", - "start": 4511, - "end": 4512, - "loc": { - "start": { - "line": 97, - "column": 21 - }, - "end": { - "line": 97, - "column": 22 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false + "line": 111, + "column": 16 }, - "right": { - "type": "Identifier", - "start": 4515, - "end": 4517, - "loc": { - "start": { - "line": 97, - "column": 25 - }, - "end": { - "line": 97, - "column": 27 - }, - "identifierName": "pY" - }, - "name": "pY" - } + "identifierName": "left" }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " Position the right clone", - "start": 4536, - "end": 4563, - "loc": { - "start": { - "line": 98, - "column": 16 - }, - "end": { - "line": 98, - "column": 43 - } - } - } - ] + "name": "left", + "leadingComments": null }, - { - "type": "ExpressionStatement", - "start": 4581, - "end": 4617, + "property": { + "type": "Identifier", + "start": 4986, + "end": 4999, "loc": { "start": { - "line": 99, - "column": 16 + "line": 111, + "column": 17 }, "end": { - "line": 99, - "column": 52 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 4581, - "end": 4616, - "loc": { - "start": { - "line": 99, - "column": 16 - }, - "end": { - "line": 99, - "column": 51 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 4581, - "end": 4588, - "loc": { - "start": { - "line": 99, - "column": 16 - }, - "end": { - "line": 99, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 4581, - "end": 4586, - "loc": { - "start": { - "line": 99, - "column": 16 - }, - "end": { - "line": 99, - "column": 21 - }, - "identifierName": "right" - }, - "name": "right", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 4587, - "end": 4588, - "loc": { - "start": { - "line": 99, - "column": 22 - }, - "end": { - "line": 99, - "column": 23 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false, - "leadingComments": null - }, - "right": { - "type": "BinaryExpression", - "start": 4591, - "end": 4616, - "loc": { - "start": { - "line": 99, - "column": 26 - }, - "end": { - "line": 99, - "column": 51 - } - }, - "left": { - "type": "Identifier", - "start": 4591, - "end": 4593, - "loc": { - "start": { - "line": 99, - "column": 26 - }, - "end": { - "line": 99, - "column": 28 - }, - "identifierName": "pX" - }, - "name": "pX" - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 4596, - "end": 4616, - "loc": { - "start": { - "line": 99, - "column": 31 - }, - "end": { - "line": 99, - "column": 51 - } - }, - "object": { - "type": "MemberExpression", - "start": 4596, - "end": 4610, - "loc": { - "start": { - "line": 99, - "column": 31 - }, - "end": { - "line": 99, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 4596, - "end": 4605, - "loc": { - "start": { - "line": 99, - "column": 31 - }, - "end": { - "line": 99, - "column": 40 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 4606, - "end": 4610, - "loc": { - "start": { - "line": 99, - "column": 41 - }, - "end": { - "line": 99, - "column": 45 - }, - "identifierName": "icon" - }, - "name": "icon" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 4611, - "end": 4616, - "loc": { - "start": { - "line": 99, - "column": 46 - }, - "end": { - "line": 99, - "column": 51 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - } + "line": 111, + "column": 30 }, - "leadingComments": null + "identifierName": "setAppearance" }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Position the right clone", - "start": 4536, - "end": 4563, - "loc": { - "start": { - "line": 98, - "column": 16 - }, - "end": { - "line": 98, - "column": 43 - } - } - } - ] + "name": "setAppearance" }, + "computed": false, + "leadingComments": null + }, + "arguments": [ { - "type": "ExpressionStatement", - "start": 4635, - "end": 4648, + "type": "Identifier", + "start": 5000, + "end": 5009, "loc": { "start": { - "line": 100, - "column": 16 + "line": 111, + "column": 31 }, "end": { - "line": 100, - "column": 29 - } + "line": 111, + "column": 40 + }, + "identifierName": "pInstance" }, - "expression": { - "type": "AssignmentExpression", - "start": 4635, - "end": 4647, - "loc": { - "start": { - "line": 100, - "column": 16 - }, - "end": { - "line": 100, - "column": 28 - } + "name": "pInstance" + } + ], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Make the left and right clone particle look the same as the initial instance", + "start": 4888, + "end": 4967, + "loc": { + "start": { + "line": 110, + "column": 12 + }, + "end": { + "line": 110, + "column": 91 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 5025, + "end": 5056, + "loc": { + "start": { + "line": 112, + "column": 12 + }, + "end": { + "line": 112, + "column": 43 + } + }, + "expression": { + "type": "CallExpression", + "start": 5025, + "end": 5055, + "loc": { + "start": { + "line": 112, + "column": 12 + }, + "end": { + "line": 112, + "column": 42 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5025, + "end": 5044, + "loc": { + "start": { + "line": 112, + "column": 12 + }, + "end": { + "line": 112, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 5025, + "end": 5030, + "loc": { + "start": { + "line": 112, + "column": 12 }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 4635, - "end": 4642, - "loc": { - "start": { - "line": 100, - "column": 16 - }, - "end": { - "line": 100, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 4635, - "end": 4640, - "loc": { - "start": { - "line": 100, - "column": 16 - }, - "end": { - "line": 100, - "column": 21 - }, - "identifierName": "right" - }, - "name": "right" - }, - "property": { - "type": "Identifier", - "start": 4641, - "end": 4642, - "loc": { - "start": { - "line": 100, - "column": 22 - }, - "end": { - "line": 100, - "column": 23 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false + "end": { + "line": 112, + "column": 17 }, - "right": { - "type": "Identifier", - "start": 4645, - "end": 4647, - "loc": { - "start": { - "line": 100, - "column": 26 - }, - "end": { - "line": 100, - "column": 28 - }, - "identifierName": "pY" - }, - "name": "pY" - } + "identifierName": "right" }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " Store the clones in a temporary array", - "start": 4666, - "end": 4706, - "loc": { - "start": { - "line": 101, - "column": 16 - }, - "end": { - "line": 101, - "column": 56 - } - } - } - ] + "name": "right" }, - { - "type": "VariableDeclaration", - "start": 4724, - "end": 4755, + "property": { + "type": "Identifier", + "start": 5031, + "end": 5044, "loc": { "start": { - "line": 102, - "column": 16 + "line": 112, + "column": 18 }, "end": { - "line": 102, - "column": 47 - } + "line": 112, + "column": 31 + }, + "identifierName": "setAppearance" }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4730, - "end": 4754, - "loc": { - "start": { - "line": 102, - "column": 22 - }, - "end": { - "line": 102, - "column": 46 - } - }, - "id": { - "type": "Identifier", - "start": 4730, - "end": 4738, - "loc": { - "start": { - "line": 102, - "column": 22 - }, - "end": { - "line": 102, - "column": 30 - }, - "identifierName": "children" - }, - "name": "children", - "leadingComments": null - }, - "init": { - "type": "ArrayExpression", - "start": 4741, - "end": 4754, - "loc": { - "start": { - "line": 102, - "column": 33 - }, - "end": { - "line": 102, - "column": 46 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 4742, - "end": 4746, - "loc": { - "start": { - "line": 102, - "column": 34 - }, - "end": { - "line": 102, - "column": 38 - }, - "identifierName": "left" - }, - "name": "left" - }, - { - "type": "Identifier", - "start": 4748, - "end": 4753, - "loc": { - "start": { - "line": 102, - "column": 40 - }, - "end": { - "line": 102, - "column": 45 - }, - "identifierName": "right" - }, - "name": "right" - } - ] - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " Store the clones in a temporary array", - "start": 4666, - "end": 4706, - "loc": { - "start": { - "line": 101, - "column": 16 - }, - "end": { - "line": 101, - "column": 56 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " Loop the clones and store their relative positions to the main instance", - "start": 4773, - "end": 4847, - "loc": { - "start": { - "line": 103, - "column": 16 - }, - "end": { - "line": 103, - "column": 90 - } - } - } - ] + "name": "setAppearance" }, + "computed": false + }, + "arguments": [ { - "type": "ExpressionStatement", - "start": 4865, - "end": 5026, + "type": "Identifier", + "start": 5045, + "end": 5054, + "loc": { + "start": { + "line": 112, + "column": 32 + }, + "end": { + "line": 112, + "column": 41 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + } + ] + }, + "trailingComments": [ + { + "type": "CommentLine", + "value": " Force the renderer to render it, as if its placed offscreen its not rendered.", + "start": 5072, + "end": 5152, + "loc": { + "start": { + "line": 114, + "column": 12 + }, + "end": { + "line": 114, + "column": 92 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 5166, + "end": 5192, + "loc": { + "start": { + "line": 115, + "column": 12 + }, + "end": { + "line": 115, + "column": 38 + } + }, + "expression": { + "type": "CallExpression", + "start": 5166, + "end": 5191, + "loc": { + "start": { + "line": 115, + "column": 12 + }, + "end": { + "line": 115, + "column": 37 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5166, + "end": 5177, + "loc": { + "start": { + "line": 115, + "column": 12 + }, + "end": { + "line": 115, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 5166, + "end": 5170, "loc": { "start": { - "line": 104, + "line": 115, + "column": 12 + }, + "end": { + "line": 115, "column": 16 }, + "identifierName": "left" + }, + "name": "left", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 5171, + "end": 5177, + "loc": { + "start": { + "line": 115, + "column": 17 + }, "end": { - "line": 107, - "column": 19 + "line": 115, + "column": 23 + }, + "identifierName": "setPos" + }, + "name": "setPos" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [ + { + "type": "Identifier", + "start": 5178, + "end": 5180, + "loc": { + "start": { + "line": 115, + "column": 24 + }, + "end": { + "line": 115, + "column": 26 + }, + "identifierName": "pX" + }, + "name": "pX" + }, + { + "type": "Identifier", + "start": 5182, + "end": 5184, + "loc": { + "start": { + "line": 115, + "column": 28 + }, + "end": { + "line": 115, + "column": 30 + }, + "identifierName": "pY" + }, + "name": "pY" + }, + { + "type": "Identifier", + "start": 5186, + "end": 5190, + "loc": { + "start": { + "line": 115, + "column": 32 + }, + "end": { + "line": 115, + "column": 36 + }, + "identifierName": "pMap" + }, + "name": "pMap" + } + ], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Force the renderer to render it, as if its placed offscreen its not rendered.", + "start": 5072, + "end": 5152, + "loc": { + "start": { + "line": 114, + "column": 12 + }, + "end": { + "line": 114, + "column": 92 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 5206, + "end": 5233, + "loc": { + "start": { + "line": 116, + "column": 12 + }, + "end": { + "line": 116, + "column": 39 + } + }, + "expression": { + "type": "CallExpression", + "start": 5206, + "end": 5232, + "loc": { + "start": { + "line": 116, + "column": 12 + }, + "end": { + "line": 116, + "column": 38 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5206, + "end": 5218, + "loc": { + "start": { + "line": 116, + "column": 12 + }, + "end": { + "line": 116, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 5206, + "end": 5211, + "loc": { + "start": { + "line": 116, + "column": 12 + }, + "end": { + "line": 116, + "column": 17 + }, + "identifierName": "right" + }, + "name": "right" + }, + "property": { + "type": "Identifier", + "start": 5212, + "end": 5218, + "loc": { + "start": { + "line": 116, + "column": 18 + }, + "end": { + "line": 116, + "column": 24 + }, + "identifierName": "setPos" + }, + "name": "setPos" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 5219, + "end": 5221, + "loc": { + "start": { + "line": 116, + "column": 25 + }, + "end": { + "line": 116, + "column": 27 + }, + "identifierName": "pX" + }, + "name": "pX" + }, + { + "type": "Identifier", + "start": 5223, + "end": 5225, + "loc": { + "start": { + "line": 116, + "column": 29 + }, + "end": { + "line": 116, + "column": 31 + }, + "identifierName": "pY" + }, + "name": "pY" + }, + { + "type": "Identifier", + "start": 5227, + "end": 5231, + "loc": { + "start": { + "line": 116, + "column": 33 + }, + "end": { + "line": 116, + "column": 37 + }, + "identifierName": "pMap" + }, + "name": "pMap" + } + ] + }, + "trailingComments": [ + { + "type": "CommentLine", + "value": " Position the left clone", + "start": 5249, + "end": 5275, + "loc": { + "start": { + "line": 118, + "column": 12 + }, + "end": { + "line": 118, + "column": 38 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 5289, + "end": 5324, + "loc": { + "start": { + "line": 119, + "column": 12 + }, + "end": { + "line": 119, + "column": 47 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 5289, + "end": 5323, + "loc": { + "start": { + "line": 119, + "column": 12 + }, + "end": { + "line": 119, + "column": 46 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 5289, + "end": 5295, + "loc": { + "start": { + "line": 119, + "column": 12 + }, + "end": { + "line": 119, + "column": 18 + } + }, + "object": { + "type": "Identifier", + "start": 5289, + "end": 5293, + "loc": { + "start": { + "line": 119, + "column": 12 + }, + "end": { + "line": 119, + "column": 16 + }, + "identifierName": "left" + }, + "name": "left", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 5294, + "end": 5295, + "loc": { + "start": { + "line": 119, + "column": 17 + }, + "end": { + "line": 119, + "column": 18 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "BinaryExpression", + "start": 5298, + "end": 5323, + "loc": { + "start": { + "line": 119, + "column": 21 + }, + "end": { + "line": 119, + "column": 46 + } + }, + "left": { + "type": "Identifier", + "start": 5298, + "end": 5300, + "loc": { + "start": { + "line": 119, + "column": 21 + }, + "end": { + "line": 119, + "column": 23 + }, + "identifierName": "pX" + }, + "name": "pX" + }, + "operator": "-", + "right": { + "type": "MemberExpression", + "start": 5303, + "end": 5323, + "loc": { + "start": { + "line": 119, + "column": 26 + }, + "end": { + "line": 119, + "column": 46 } }, - "expression": { - "type": "CallExpression", - "start": 4865, - "end": 5025, + "object": { + "type": "MemberExpression", + "start": 5303, + "end": 5317, "loc": { "start": { - "line": 104, - "column": 16 + "line": 119, + "column": 26 }, "end": { - "line": 107, - "column": 18 + "line": 119, + "column": 40 } }, - "callee": { - "type": "MemberExpression", - "start": 4865, - "end": 4881, + "object": { + "type": "Identifier", + "start": 5303, + "end": 5312, "loc": { "start": { - "line": 104, - "column": 16 + "line": 119, + "column": 26 }, "end": { - "line": 104, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 4865, - "end": 4873, - "loc": { - "start": { - "line": 104, - "column": 16 - }, - "end": { - "line": 104, - "column": 24 - }, - "identifierName": "children" + "line": 119, + "column": 35 }, - "name": "children", - "leadingComments": null + "identifierName": "pInstance" }, - "property": { - "type": "Identifier", - "start": 4874, - "end": 4881, - "loc": { - "start": { - "line": 104, - "column": 25 - }, - "end": { - "line": 104, - "column": 32 - }, - "identifierName": "forEach" + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 5313, + "end": 5317, + "loc": { + "start": { + "line": 119, + "column": 36 }, - "name": "forEach" + "end": { + "line": 119, + "column": 40 + }, + "identifierName": "icon" }, - "computed": false, - "leadingComments": null + "name": "icon" }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 4882, - "end": 5024, - "loc": { - "start": { - "line": 104, - "column": 33 - }, - "end": { - "line": 107, - "column": 17 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 4883, - "end": 4889, - "loc": { - "start": { - "line": 104, - "column": 34 - }, - "end": { - "line": 104, - "column": 40 - }, - "identifierName": "pChild" - }, - "name": "pChild" - } - ], - "body": { - "type": "BlockStatement", - "start": 4894, - "end": 5024, - "loc": { - "start": { - "line": 104, - "column": 45 - }, - "end": { - "line": 107, - "column": 17 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 4917, - "end": 4950, - "loc": { - "start": { - "line": 105, - "column": 20 - }, - "end": { - "line": 105, - "column": 53 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 4917, - "end": 4949, - "loc": { - "start": { - "line": 105, - "column": 20 - }, - "end": { - "line": 105, - "column": 52 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 4917, - "end": 4933, - "loc": { - "start": { - "line": 105, - "column": 20 - }, - "end": { - "line": 105, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 4917, - "end": 4923, - "loc": { - "start": { - "line": 105, - "column": 20 - }, - "end": { - "line": 105, - "column": 26 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 4924, - "end": 4933, - "loc": { - "start": { - "line": 105, - "column": 27 - }, - "end": { - "line": 105, - "column": 36 - }, - "identifierName": "relativeX" - }, - "name": "relativeX" - }, - "computed": false - }, - "right": { - "type": "BinaryExpression", - "start": 4936, - "end": 4949, - "loc": { - "start": { - "line": 105, - "column": 39 - }, - "end": { - "line": 105, - "column": 52 - } - }, - "left": { - "type": "MemberExpression", - "start": 4936, - "end": 4944, - "loc": { - "start": { - "line": 105, - "column": 39 - }, - "end": { - "line": 105, - "column": 47 - } - }, - "object": { - "type": "Identifier", - "start": 4936, - "end": 4942, - "loc": { - "start": { - "line": 105, - "column": 39 - }, - "end": { - "line": 105, - "column": 45 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 4943, - "end": 4944, - "loc": { - "start": { - "line": 105, - "column": 46 - }, - "end": { - "line": 105, - "column": 47 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 4947, - "end": 4949, - "loc": { - "start": { - "line": 105, - "column": 50 - }, - "end": { - "line": 105, - "column": 52 - }, - "identifierName": "pX" - }, - "name": "pX" - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 4972, - "end": 5005, - "loc": { - "start": { - "line": 106, - "column": 20 - }, - "end": { - "line": 106, - "column": 53 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 4972, - "end": 5004, - "loc": { - "start": { - "line": 106, - "column": 20 - }, - "end": { - "line": 106, - "column": 52 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 4972, - "end": 4988, - "loc": { - "start": { - "line": 106, - "column": 20 - }, - "end": { - "line": 106, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 4972, - "end": 4978, - "loc": { - "start": { - "line": 106, - "column": 20 - }, - "end": { - "line": 106, - "column": 26 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 4979, - "end": 4988, - "loc": { - "start": { - "line": 106, - "column": 27 - }, - "end": { - "line": 106, - "column": 36 - }, - "identifierName": "relativeY" - }, - "name": "relativeY" - }, - "computed": false - }, - "right": { - "type": "BinaryExpression", - "start": 4991, - "end": 5004, - "loc": { - "start": { - "line": 106, - "column": 39 - }, - "end": { - "line": 106, - "column": 52 - } - }, - "left": { - "type": "MemberExpression", - "start": 4991, - "end": 4999, - "loc": { - "start": { - "line": 106, - "column": 39 - }, - "end": { - "line": 106, - "column": 47 - } - }, - "object": { - "type": "Identifier", - "start": 4991, - "end": 4997, - "loc": { - "start": { - "line": 106, - "column": 39 - }, - "end": { - "line": 106, - "column": 45 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 4998, - "end": 4999, - "loc": { - "start": { - "line": 106, - "column": 46 - }, - "end": { - "line": 106, - "column": 47 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 5002, - "end": 5004, - "loc": { - "start": { - "line": 106, - "column": 50 - }, - "end": { - "line": 106, - "column": 52 - }, - "identifierName": "pY" - }, - "name": "pY" - } - } - } - } - ], - "directives": [] - } - } - ], - "leadingComments": null + "computed": false }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Loop the clones and store their relative positions to the main instance", - "start": 4773, - "end": 4847, - "loc": { - "start": { - "line": 103, - "column": 16 - }, - "end": { - "line": 103, - "column": 90 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " When the main instance moves, move the clones with their relative position to it.", - "start": 5044, - "end": 5128, - "loc": { - "start": { - "line": 108, - "column": 16 - }, - "end": { - "line": 108, - "column": 100 - } - } - } - ] + "property": { + "type": "Identifier", + "start": 5318, + "end": 5323, + "loc": { + "start": { + "line": 119, + "column": 41 + }, + "end": { + "line": 119, + "column": 46 + }, + "identifierName": "width" + }, + "name": "width" + }, + "computed": false + } + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Position the left clone", + "start": 5249, + "end": 5275, + "loc": { + "start": { + "line": 118, + "column": 12 + }, + "end": { + "line": 118, + "column": 38 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 5338, + "end": 5350, + "loc": { + "start": { + "line": 120, + "column": 12 + }, + "end": { + "line": 120, + "column": 24 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 5338, + "end": 5349, + "loc": { + "start": { + "line": 120, + "column": 12 }, - { - "type": "ExpressionStatement", - "start": 5146, - "end": 5543, + "end": { + "line": 120, + "column": 23 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 5338, + "end": 5344, + "loc": { + "start": { + "line": 120, + "column": 12 + }, + "end": { + "line": 120, + "column": 18 + } + }, + "object": { + "type": "Identifier", + "start": 5338, + "end": 5342, "loc": { "start": { - "line": 109, + "line": 120, + "column": 12 + }, + "end": { + "line": 120, "column": 16 }, + "identifierName": "left" + }, + "name": "left" + }, + "property": { + "type": "Identifier", + "start": 5343, + "end": 5344, + "loc": { + "start": { + "line": 120, + "column": 17 + }, "end": { - "line": 116, + "line": 120, + "column": 18 + }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 5347, + "end": 5349, + "loc": { + "start": { + "line": 120, + "column": 21 + }, + "end": { + "line": 120, + "column": 23 + }, + "identifierName": "pY" + }, + "name": "pY" + } + }, + "trailingComments": [ + { + "type": "CommentLine", + "value": " Position the right clone", + "start": 5364, + "end": 5391, + "loc": { + "start": { + "line": 121, + "column": 12 + }, + "end": { + "line": 121, + "column": 39 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 5405, + "end": 5441, + "loc": { + "start": { + "line": 122, + "column": 12 + }, + "end": { + "line": 122, + "column": 48 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 5405, + "end": 5440, + "loc": { + "start": { + "line": 122, + "column": 12 + }, + "end": { + "line": 122, + "column": 47 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 5405, + "end": 5412, + "loc": { + "start": { + "line": 122, + "column": 12 + }, + "end": { + "line": 122, + "column": 19 + } + }, + "object": { + "type": "Identifier", + "start": 5405, + "end": 5410, + "loc": { + "start": { + "line": 122, + "column": 12 + }, + "end": { + "line": 122, "column": 17 + }, + "identifierName": "right" + }, + "name": "right", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 5411, + "end": 5412, + "loc": { + "start": { + "line": 122, + "column": 18 + }, + "end": { + "line": 122, + "column": 19 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "BinaryExpression", + "start": 5415, + "end": 5440, + "loc": { + "start": { + "line": 122, + "column": 22 + }, + "end": { + "line": 122, + "column": 47 + } + }, + "left": { + "type": "Identifier", + "start": 5415, + "end": 5417, + "loc": { + "start": { + "line": 122, + "column": 22 + }, + "end": { + "line": 122, + "column": 24 + }, + "identifierName": "pX" + }, + "name": "pX" + }, + "operator": "+", + "right": { + "type": "MemberExpression", + "start": 5420, + "end": 5440, + "loc": { + "start": { + "line": 122, + "column": 27 + }, + "end": { + "line": 122, + "column": 47 } }, - "expression": { - "type": "AssignmentExpression", - "start": 5146, - "end": 5543, + "object": { + "type": "MemberExpression", + "start": 5420, + "end": 5434, "loc": { "start": { - "line": 109, - "column": 16 + "line": 122, + "column": 27 }, "end": { - "line": 116, - "column": 17 + "line": 122, + "column": 41 } }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 5146, - "end": 5167, + "object": { + "type": "Identifier", + "start": 5420, + "end": 5429, "loc": { "start": { - "line": 109, - "column": 16 + "line": 122, + "column": 27 }, "end": { - "line": 109, - "column": 37 - } - }, - "object": { - "type": "Identifier", - "start": 5146, - "end": 5155, - "loc": { - "start": { - "line": 109, - "column": 16 - }, - "end": { - "line": 109, - "column": 25 - }, - "identifierName": "pInstance" + "line": 122, + "column": 36 }, - "name": "pInstance", - "leadingComments": null + "identifierName": "pInstance" }, - "property": { - "type": "Identifier", - "start": 5156, - "end": 5167, - "loc": { - "start": { - "line": 109, - "column": 26 - }, - "end": { - "line": 109, - "column": 37 - }, - "identifierName": "onRelocated" + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 5430, + "end": 5434, + "loc": { + "start": { + "line": 122, + "column": 37 }, - "name": "onRelocated" + "end": { + "line": 122, + "column": 41 + }, + "identifierName": "icon" }, - "computed": false, - "leadingComments": null + "name": "icon" }, - "right": { - "type": "FunctionExpression", - "start": 5170, - "end": 5543, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 5435, + "end": 5440, + "loc": { + "start": { + "line": 122, + "column": 42 + }, + "end": { + "line": 122, + "column": 47 + }, + "identifierName": "width" + }, + "name": "width" + }, + "computed": false + } + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Position the right clone", + "start": 5364, + "end": 5391, + "loc": { + "start": { + "line": 121, + "column": 12 + }, + "end": { + "line": 121, + "column": 39 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 5455, + "end": 5468, + "loc": { + "start": { + "line": 123, + "column": 12 + }, + "end": { + "line": 123, + "column": 25 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 5455, + "end": 5467, + "loc": { + "start": { + "line": 123, + "column": 12 + }, + "end": { + "line": 123, + "column": 24 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 5455, + "end": 5462, + "loc": { + "start": { + "line": 123, + "column": 12 + }, + "end": { + "line": 123, + "column": 19 + } + }, + "object": { + "type": "Identifier", + "start": 5455, + "end": 5460, + "loc": { + "start": { + "line": 123, + "column": 12 + }, + "end": { + "line": 123, + "column": 17 + }, + "identifierName": "right" + }, + "name": "right" + }, + "property": { + "type": "Identifier", + "start": 5461, + "end": 5462, + "loc": { + "start": { + "line": 123, + "column": 18 + }, + "end": { + "line": 123, + "column": 19 + }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 5465, + "end": 5467, + "loc": { + "start": { + "line": 123, + "column": 22 + }, + "end": { + "line": 123, + "column": 24 + }, + "identifierName": "pY" + }, + "name": "pY" + } + }, + "trailingComments": [ + { + "type": "CommentLine", + "value": " Store the clones in a temporary array", + "start": 5482, + "end": 5522, + "loc": { + "start": { + "line": 124, + "column": 12 + }, + "end": { + "line": 124, + "column": 52 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 5536, + "end": 5567, + "loc": { + "start": { + "line": 125, + "column": 12 + }, + "end": { + "line": 125, + "column": 43 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 5542, + "end": 5566, + "loc": { + "start": { + "line": 125, + "column": 18 + }, + "end": { + "line": 125, + "column": 42 + } + }, + "id": { + "type": "Identifier", + "start": 5542, + "end": 5550, + "loc": { + "start": { + "line": 125, + "column": 18 + }, + "end": { + "line": 125, + "column": 26 + }, + "identifierName": "children" + }, + "name": "children", + "leadingComments": null + }, + "init": { + "type": "ArrayExpression", + "start": 5553, + "end": 5566, + "loc": { + "start": { + "line": 125, + "column": 29 + }, + "end": { + "line": 125, + "column": 42 + } + }, + "elements": [ + { + "type": "Identifier", + "start": 5554, + "end": 5558, "loc": { "start": { - "line": 109, - "column": 40 + "line": 125, + "column": 30 }, "end": { - "line": 116, - "column": 17 - } + "line": 125, + "column": 34 + }, + "identifierName": "left" }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 5179, - "end": 5181, - "loc": { - "start": { - "line": 109, - "column": 49 - }, - "end": { - "line": 109, - "column": 51 - }, - "identifierName": "pX" - }, - "name": "pX" + "name": "left" + }, + { + "type": "Identifier", + "start": 5560, + "end": 5565, + "loc": { + "start": { + "line": 125, + "column": 36 }, - { - "type": "Identifier", - "start": 5183, - "end": 5185, - "loc": { - "start": { - "line": 109, - "column": 53 - }, - "end": { - "line": 109, - "column": 55 - }, - "identifierName": "pY" - }, - "name": "pY" - } - ], - "body": { - "type": "BlockStatement", - "start": 5187, - "end": 5543, + "end": { + "line": 125, + "column": 41 + }, + "identifierName": "right" + }, + "name": "right" + } + ] + }, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "CommentLine", + "value": " Store the clones in a temporary array", + "start": 5482, + "end": 5522, + "loc": { + "start": { + "line": 124, + "column": 12 + }, + "end": { + "line": 124, + "column": 52 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentLine", + "value": " Loop the clones and store their relative positions to the main instance", + "start": 5581, + "end": 5655, + "loc": { + "start": { + "line": 126, + "column": 12 + }, + "end": { + "line": 126, + "column": 86 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 5669, + "end": 5818, + "loc": { + "start": { + "line": 127, + "column": 12 + }, + "end": { + "line": 130, + "column": 15 + } + }, + "expression": { + "type": "CallExpression", + "start": 5669, + "end": 5817, + "loc": { + "start": { + "line": 127, + "column": 12 + }, + "end": { + "line": 130, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5669, + "end": 5685, + "loc": { + "start": { + "line": 127, + "column": 12 + }, + "end": { + "line": 127, + "column": 28 + } + }, + "object": { + "type": "Identifier", + "start": 5669, + "end": 5677, + "loc": { + "start": { + "line": 127, + "column": 12 + }, + "end": { + "line": 127, + "column": 20 + }, + "identifierName": "children" + }, + "name": "children", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 5678, + "end": 5685, + "loc": { + "start": { + "line": 127, + "column": 21 + }, + "end": { + "line": 127, + "column": 28 + }, + "identifierName": "forEach" + }, + "name": "forEach" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 5686, + "end": 5816, + "loc": { + "start": { + "line": 127, + "column": 29 + }, + "end": { + "line": 130, + "column": 13 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 5687, + "end": 5693, + "loc": { + "start": { + "line": 127, + "column": 30 + }, + "end": { + "line": 127, + "column": 36 + }, + "identifierName": "pChild" + }, + "name": "pChild" + } + ], + "body": { + "type": "BlockStatement", + "start": 5698, + "end": 5816, + "loc": { + "start": { + "line": 127, + "column": 41 + }, + "end": { + "line": 130, + "column": 13 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 5717, + "end": 5750, "loc": { "start": { - "line": 109, - "column": 57 + "line": 128, + "column": 16 }, "end": { - "line": 116, - "column": 17 + "line": 128, + "column": 49 } }, - "body": [ - { - "type": "ExpressionStatement", - "start": 5287, - "end": 5524, + "expression": { + "type": "AssignmentExpression", + "start": 5717, + "end": 5749, + "loc": { + "start": { + "line": 128, + "column": 16 + }, + "end": { + "line": 128, + "column": 48 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 5717, + "end": 5733, "loc": { "start": { - "line": 111, - "column": 20 + "line": 128, + "column": 16 }, "end": { - "line": 115, - "column": 23 + "line": 128, + "column": 32 } }, - "expression": { - "type": "CallExpression", - "start": 5287, - "end": 5523, + "object": { + "type": "Identifier", + "start": 5717, + "end": 5723, "loc": { "start": { - "line": 111, - "column": 20 + "line": 128, + "column": 16 }, "end": { - "line": 115, + "line": 128, "column": 22 + }, + "identifierName": "pChild" + }, + "name": "pChild" + }, + "property": { + "type": "Identifier", + "start": 5724, + "end": 5733, + "loc": { + "start": { + "line": 128, + "column": 23 + }, + "end": { + "line": 128, + "column": 32 + }, + "identifierName": "relativeX" + }, + "name": "relativeX" + }, + "computed": false + }, + "right": { + "type": "BinaryExpression", + "start": 5736, + "end": 5749, + "loc": { + "start": { + "line": 128, + "column": 35 + }, + "end": { + "line": 128, + "column": 48 + } + }, + "left": { + "type": "MemberExpression", + "start": 5736, + "end": 5744, + "loc": { + "start": { + "line": 128, + "column": 35 + }, + "end": { + "line": 128, + "column": 43 } }, - "callee": { - "type": "MemberExpression", - "start": 5287, - "end": 5303, + "object": { + "type": "Identifier", + "start": 5736, + "end": 5742, "loc": { "start": { - "line": 111, - "column": 20 + "line": 128, + "column": 35 }, "end": { - "line": 111, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 5287, - "end": 5295, - "loc": { - "start": { - "line": 111, - "column": 20 - }, - "end": { - "line": 111, - "column": 28 - }, - "identifierName": "children" + "line": 128, + "column": 41 }, - "name": "children", - "leadingComments": null + "identifierName": "pChild" }, - "property": { - "type": "Identifier", - "start": 5296, - "end": 5303, - "loc": { - "start": { - "line": 111, - "column": 29 - }, - "end": { - "line": 111, - "column": 36 - }, - "identifierName": "forEach" + "name": "pChild" + }, + "property": { + "type": "Identifier", + "start": 5743, + "end": 5744, + "loc": { + "start": { + "line": 128, + "column": 42 + }, + "end": { + "line": 128, + "column": 43 }, - "name": "forEach" + "identifierName": "x" }, - "computed": false, - "leadingComments": null + "name": "x" }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 5304, - "end": 5522, - "loc": { - "start": { - "line": 111, - "column": 37 - }, - "end": { - "line": 115, - "column": 21 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 5305, - "end": 5311, - "loc": { - "start": { - "line": 111, - "column": 38 - }, - "end": { - "line": 111, - "column": 44 - }, - "identifierName": "pChild" - }, - "name": "pChild" - } - ], - "body": { - "type": "BlockStatement", - "start": 5316, - "end": 5522, - "loc": { - "start": { - "line": 111, - "column": 49 - }, - "end": { - "line": 115, - "column": 21 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 5343, - "end": 5380, - "loc": { - "start": { - "line": 112, - "column": 24 - }, - "end": { - "line": 112, - "column": 61 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 5343, - "end": 5379, - "loc": { - "start": { - "line": 112, - "column": 24 - }, - "end": { - "line": 112, - "column": 60 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 5343, - "end": 5351, - "loc": { - "start": { - "line": 112, - "column": 24 - }, - "end": { - "line": 112, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 5343, - "end": 5349, - "loc": { - "start": { - "line": 112, - "column": 24 - }, - "end": { - "line": 112, - "column": 30 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 5350, - "end": 5351, - "loc": { - "start": { - "line": 112, - "column": 31 - }, - "end": { - "line": 112, - "column": 32 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "right": { - "type": "BinaryExpression", - "start": 5354, - "end": 5379, - "loc": { - "start": { - "line": 112, - "column": 35 - }, - "end": { - "line": 112, - "column": 60 - } - }, - "left": { - "type": "MemberExpression", - "start": 5354, - "end": 5360, - "loc": { - "start": { - "line": 112, - "column": 35 - }, - "end": { - "line": 112, - "column": 41 - } - }, - "object": { - "type": "ThisExpression", - "start": 5354, - "end": 5358, - "loc": { - "start": { - "line": 112, - "column": 35 - }, - "end": { - "line": 112, - "column": 39 - } - } - }, - "property": { - "type": "Identifier", - "start": 5359, - "end": 5360, - "loc": { - "start": { - "line": 112, - "column": 40 - }, - "end": { - "line": 112, - "column": 41 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 5363, - "end": 5379, - "loc": { - "start": { - "line": 112, - "column": 44 - }, - "end": { - "line": 112, - "column": 60 - } - }, - "object": { - "type": "Identifier", - "start": 5363, - "end": 5369, - "loc": { - "start": { - "line": 112, - "column": 44 - }, - "end": { - "line": 112, - "column": 50 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 5370, - "end": 5379, - "loc": { - "start": { - "line": 112, - "column": 51 - }, - "end": { - "line": 112, - "column": 60 - }, - "identifierName": "relativeX" - }, - "name": "relativeX" - }, - "computed": false - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 5406, - "end": 5443, - "loc": { - "start": { - "line": 113, - "column": 24 - }, - "end": { - "line": 113, - "column": 61 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 5406, - "end": 5442, - "loc": { - "start": { - "line": 113, - "column": 24 - }, - "end": { - "line": 113, - "column": 60 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 5406, - "end": 5414, - "loc": { - "start": { - "line": 113, - "column": 24 - }, - "end": { - "line": 113, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 5406, - "end": 5412, - "loc": { - "start": { - "line": 113, - "column": 24 - }, - "end": { - "line": 113, - "column": 30 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 5413, - "end": 5414, - "loc": { - "start": { - "line": 113, - "column": 31 - }, - "end": { - "line": 113, - "column": 32 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "right": { - "type": "BinaryExpression", - "start": 5417, - "end": 5442, - "loc": { - "start": { - "line": 113, - "column": 35 - }, - "end": { - "line": 113, - "column": 60 - } - }, - "left": { - "type": "MemberExpression", - "start": 5417, - "end": 5423, - "loc": { - "start": { - "line": 113, - "column": 35 - }, - "end": { - "line": 113, - "column": 41 - } - }, - "object": { - "type": "ThisExpression", - "start": 5417, - "end": 5421, - "loc": { - "start": { - "line": 113, - "column": 35 - }, - "end": { - "line": 113, - "column": 39 - } - } - }, - "property": { - "type": "Identifier", - "start": 5422, - "end": 5423, - "loc": { - "start": { - "line": 113, - "column": 40 - }, - "end": { - "line": 113, - "column": 41 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 5426, - "end": 5442, - "loc": { - "start": { - "line": 113, - "column": 44 - }, - "end": { - "line": 113, - "column": 60 - } - }, - "object": { - "type": "Identifier", - "start": 5426, - "end": 5432, - "loc": { - "start": { - "line": 113, - "column": 44 - }, - "end": { - "line": 113, - "column": 50 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 5433, - "end": 5442, - "loc": { - "start": { - "line": 113, - "column": 51 - }, - "end": { - "line": 113, - "column": 60 - }, - "identifierName": "relativeY" - }, - "name": "relativeY" - }, - "computed": false - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 5469, - "end": 5499, - "loc": { - "start": { - "line": 114, - "column": 24 - }, - "end": { - "line": 114, - "column": 54 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 5469, - "end": 5498, - "loc": { - "start": { - "line": 114, - "column": 24 - }, - "end": { - "line": 114, - "column": 53 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 5469, - "end": 5483, - "loc": { - "start": { - "line": 114, - "column": 24 - }, - "end": { - "line": 114, - "column": 38 - } - }, - "object": { - "type": "Identifier", - "start": 5469, - "end": 5475, - "loc": { - "start": { - "line": 114, - "column": 24 - }, - "end": { - "line": 114, - "column": 30 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 5476, - "end": 5483, - "loc": { - "start": { - "line": 114, - "column": 31 - }, - "end": { - "line": 114, - "column": 38 - }, - "identifierName": "mapName" - }, - "name": "mapName" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 5486, - "end": 5498, - "loc": { - "start": { - "line": 114, - "column": 41 - }, - "end": { - "line": 114, - "column": 53 - } - }, - "object": { - "type": "ThisExpression", - "start": 5486, - "end": 5490, - "loc": { - "start": { - "line": 114, - "column": 41 - }, - "end": { - "line": 114, - "column": 45 - } - } - }, - "property": { - "type": "Identifier", - "start": 5491, - "end": 5498, - "loc": { - "start": { - "line": 114, - "column": 46 - }, - "end": { - "line": 114, - "column": 53 - }, - "identifierName": "mapName" - }, - "name": "mapName" - }, - "computed": false - } - } - } - ], - "directives": [] - } - } - ], - "leadingComments": null + "computed": false }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Update the children's position when the parent moves", - "start": 5210, - "end": 5265, + "operator": "-", + "right": { + "type": "Identifier", + "start": 5747, + "end": 5749, + "loc": { + "start": { + "line": 128, + "column": 46 + }, + "end": { + "line": 128, + "column": 48 + }, + "identifierName": "pX" + }, + "name": "pX" + } + } + } + }, + { + "type": "ExpressionStatement", + "start": 5768, + "end": 5801, + "loc": { + "start": { + "line": 129, + "column": 16 + }, + "end": { + "line": 129, + "column": 49 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 5768, + "end": 5800, + "loc": { + "start": { + "line": 129, + "column": 16 + }, + "end": { + "line": 129, + "column": 48 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 5768, + "end": 5784, + "loc": { + "start": { + "line": 129, + "column": 16 + }, + "end": { + "line": 129, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 5768, + "end": 5774, + "loc": { + "start": { + "line": 129, + "column": 16 + }, + "end": { + "line": 129, + "column": 22 + }, + "identifierName": "pChild" + }, + "name": "pChild" + }, + "property": { + "type": "Identifier", + "start": 5775, + "end": 5784, + "loc": { + "start": { + "line": 129, + "column": 23 + }, + "end": { + "line": 129, + "column": 32 + }, + "identifierName": "relativeY" + }, + "name": "relativeY" + }, + "computed": false + }, + "right": { + "type": "BinaryExpression", + "start": 5787, + "end": 5800, + "loc": { + "start": { + "line": 129, + "column": 35 + }, + "end": { + "line": 129, + "column": 48 + } + }, + "left": { + "type": "MemberExpression", + "start": 5787, + "end": 5795, + "loc": { + "start": { + "line": 129, + "column": 35 + }, + "end": { + "line": 129, + "column": 43 + } + }, + "object": { + "type": "Identifier", + "start": 5787, + "end": 5793, "loc": { "start": { - "line": 110, - "column": 20 + "line": 129, + "column": 35 }, "end": { - "line": 110, - "column": 75 - } - } - } - ] + "line": 129, + "column": 41 + }, + "identifierName": "pChild" + }, + "name": "pChild" + }, + "property": { + "type": "Identifier", + "start": 5794, + "end": 5795, + "loc": { + "start": { + "line": 129, + "column": 42 + }, + "end": { + "line": 129, + "column": 43 + }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + }, + "operator": "-", + "right": { + "type": "Identifier", + "start": 5798, + "end": 5800, + "loc": { + "start": { + "line": 129, + "column": 46 + }, + "end": { + "line": 129, + "column": 48 + }, + "identifierName": "pY" + }, + "name": "pY" + } } - ], - "directives": [] - } - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " When the main instance moves, move the clones with their relative position to it.", - "start": 5044, - "end": 5128, - "loc": { - "start": { - "line": 108, - "column": 16 - }, - "end": { - "line": 108, - "column": 100 } } - } - ] + ], + "directives": [] + } } ], - "directives": [] + "leadingComments": null }, - "alternate": null, "leadingComments": [ { "type": "CommentLine", - "value": " If this instance is set to loop, then it needs a left and right clone", - "start": 3923, - "end": 3995, + "value": " Loop the clones and store their relative positions to the main instance", + "start": 5581, + "end": 5655, + "loc": { + "start": { + "line": 126, + "column": 12 + }, + "end": { + "line": 126, + "column": 86 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentLine", + "value": " Do not mutate event if one is found. Call alongside it.", + "start": 5834, + "end": 5892, "loc": { "start": { - "line": 87, + "line": 132, "column": 12 }, "end": { - "line": 87, - "column": 84 + "line": 132, + "column": 70 } } } @@ -6173,2145 +6063,2787 @@ }, { "type": "VariableDeclaration", - "start": 5572, - "end": 5613, + "start": 5906, + "end": 5954, "loc": { "start": { - "line": 118, + "line": 133, "column": 12 }, "end": { - "line": 118, - "column": 53 + "line": 133, + "column": 60 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 5578, - "end": 5612, + "start": 5912, + "end": 5953, "loc": { "start": { - "line": 118, + "line": 133, "column": 18 }, "end": { - "line": 118, - "column": 52 + "line": 133, + "column": 59 } }, "id": { "type": "Identifier", - "start": 5578, - "end": 5585, + "start": 5912, + "end": 5929, "loc": { "start": { - "line": 118, + "line": 133, "column": 18 }, "end": { - "line": 118, - "column": 25 + "line": 133, + "column": 35 }, - "identifierName": "viewEye" + "identifierName": "oldRelocatedEvent" }, - "name": "viewEye" + "name": "oldRelocatedEvent", + "leadingComments": null }, "init": { - "type": "CallExpression", - "start": 5588, - "end": 5612, + "type": "MemberExpression", + "start": 5932, + "end": 5953, "loc": { "start": { - "line": 118, - "column": 28 + "line": 133, + "column": 38 }, "end": { - "line": 118, - "column": 52 + "line": 133, + "column": 59 } }, - "callee": { - "type": "MemberExpression", - "start": 5588, - "end": 5610, + "object": { + "type": "Identifier", + "start": 5932, + "end": 5941, "loc": { "start": { - "line": 118, - "column": 28 + "line": 133, + "column": 38 }, "end": { - "line": 118, - "column": 50 - } - }, - "object": { - "type": "MemberExpression", - "start": 5588, - "end": 5599, - "loc": { - "start": { - "line": 118, - "column": 28 - }, - "end": { - "line": 118, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 5588, - "end": 5592, - "loc": { - "start": { - "line": 118, - "column": 28 - }, - "end": { - "line": 118, - "column": 32 - }, - "identifierName": "VYLO" - }, - "name": "VYLO" - }, - "property": { - "type": "Identifier", - "start": 5593, - "end": 5599, - "loc": { - "start": { - "line": 118, - "column": 33 - }, - "end": { - "line": 118, - "column": 39 - }, - "identifierName": "Client" - }, - "name": "Client" + "line": 133, + "column": 47 }, - "computed": false + "identifierName": "pInstance" }, - "property": { - "type": "Identifier", - "start": 5600, - "end": 5610, - "loc": { - "start": { - "line": 118, - "column": 40 - }, - "end": { - "line": 118, - "column": 50 - }, - "identifierName": "getViewEye" + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 5942, + "end": 5953, + "loc": { + "start": { + "line": 133, + "column": 48 + }, + "end": { + "line": 133, + "column": 59 }, - "name": "getViewEye" + "identifierName": "onRelocated" }, - "computed": false + "name": "onRelocated" }, - "arguments": [] - } + "computed": false + }, + "leadingComments": null } ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 5627, - "end": 5644, - "loc": { - "start": { - "line": 119, - "column": 12 - }, - "end": { - "line": 119, - "column": 29 - } - }, - "declarations": [ + "kind": "const", + "leadingComments": [ { - "type": "VariableDeclarator", - "start": 5631, - "end": 5643, + "type": "CommentLine", + "value": " Do not mutate event if one is found. Call alongside it.", + "start": 5834, + "end": 5892, "loc": { "start": { - "line": 119, - "column": 16 + "line": 132, + "column": 12 }, "end": { - "line": 119, - "column": 28 + "line": 132, + "column": 70 } - }, - "id": { - "type": "Identifier", - "start": 5631, - "end": 5639, - "loc": { - "start": { - "line": 119, - "column": 16 - }, - "end": { - "line": 119, - "column": 24 - }, - "identifierName": "lastCamX" - }, - "name": "lastCamX" - }, - "init": { - "type": "NumericLiteral", - "start": 5642, - "end": 5643, - "loc": { - "start": { - "line": 119, - "column": 27 - }, - "end": { - "line": 119, - "column": 28 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 } } ], - "kind": "let" + "trailingComments": [ + { + "type": "CommentLine", + "value": " When the main instance moves, move the clones with their relative position to it.", + "start": 5968, + "end": 6052, + "loc": { + "start": { + "line": 134, + "column": 12 + }, + "end": { + "line": 134, + "column": 96 + } + } + } + ] }, { - "type": "VariableDeclaration", - "start": 5658, - "end": 5675, + "type": "IfStatement", + "start": 6066, + "end": 6493, "loc": { "start": { - "line": 120, + "line": 135, "column": 12 }, "end": { - "line": 120, - "column": 29 + "line": 144, + "column": 13 } }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 5662, - "end": 5674, + "test": { + "type": "BinaryExpression", + "start": 6070, + "end": 6109, + "loc": { + "start": { + "line": 135, + "column": 16 + }, + "end": { + "line": 135, + "column": 55 + } + }, + "left": { + "type": "UnaryExpression", + "start": 6070, + "end": 6094, "loc": { "start": { - "line": 120, + "line": 135, "column": 16 }, "end": { - "line": 120, - "column": 28 + "line": 135, + "column": 40 } }, - "id": { + "operator": "typeof", + "prefix": true, + "argument": { "type": "Identifier", - "start": 5662, - "end": 5670, + "start": 6077, + "end": 6094, "loc": { "start": { - "line": 120, - "column": 16 + "line": 135, + "column": 23 }, "end": { - "line": 120, - "column": 24 + "line": 135, + "column": 40 }, - "identifierName": "lastCamY" + "identifierName": "oldRelocatedEvent" }, - "name": "lastCamY" + "name": "oldRelocatedEvent", + "leadingComments": null }, - "init": { - "type": "NumericLiteral", - "start": 5673, - "end": 5674, - "loc": { - "start": { - "line": 120, - "column": 27 - }, - "end": { - "line": 120, - "column": 28 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - { - "type": "IfStatement", - "start": 5689, - "end": 5796, - "loc": { - "start": { - "line": 121, - "column": 12 + "extra": { + "parenthesizedArgument": false + }, + "leadingComments": null }, - "end": { - "line": 124, - "column": 13 - } - }, - "test": { - "type": "Identifier", - "start": 5693, - "end": 5700, - "loc": { - "start": { - "line": 121, - "column": 16 + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 6099, + "end": 6109, + "loc": { + "start": { + "line": 135, + "column": 45 + }, + "end": { + "line": 135, + "column": 55 + } }, - "end": { - "line": 121, - "column": 23 + "extra": { + "rawValue": "function", + "raw": "'function'" }, - "identifierName": "viewEye" + "value": "function" }, - "name": "viewEye" + "leadingComments": null }, "consequent": { "type": "BlockStatement", - "start": 5702, - "end": 5796, + "start": 6111, + "end": 6331, "loc": { "start": { - "line": 121, - "column": 25 + "line": 135, + "column": 57 }, "end": { - "line": 124, + "line": 140, "column": 13 } }, "body": [ { "type": "ExpressionStatement", - "start": 5721, - "end": 5742, + "start": 6130, + "end": 6316, "loc": { "start": { - "line": 122, + "line": 136, "column": 16 }, "end": { - "line": 122, - "column": 37 + "line": 139, + "column": 17 } }, "expression": { "type": "AssignmentExpression", - "start": 5721, - "end": 5741, + "start": 6130, + "end": 6316, "loc": { "start": { - "line": 122, + "line": 136, "column": 16 }, "end": { - "line": 122, - "column": 36 + "line": 139, + "column": 17 } }, "operator": "=", "left": { - "type": "Identifier", - "start": 5721, - "end": 5729, - "loc": { - "start": { - "line": 122, - "column": 16 - }, - "end": { - "line": 122, - "column": 24 - }, - "identifierName": "lastCamX" - }, - "name": "lastCamX" - }, - "right": { "type": "MemberExpression", - "start": 5732, - "end": 5741, + "start": 6130, + "end": 6151, "loc": { "start": { - "line": 122, - "column": 27 + "line": 136, + "column": 16 }, "end": { - "line": 122, - "column": 36 + "line": 136, + "column": 37 } }, "object": { "type": "Identifier", - "start": 5732, - "end": 5739, + "start": 6130, + "end": 6139, "loc": { "start": { - "line": 122, - "column": 27 + "line": 136, + "column": 16 }, "end": { - "line": 122, - "column": 34 + "line": 136, + "column": 25 }, - "identifierName": "viewEye" + "identifierName": "pInstance" }, - "name": "viewEye" + "name": "pInstance" }, "property": { "type": "Identifier", - "start": 5740, - "end": 5741, + "start": 6140, + "end": 6151, "loc": { "start": { - "line": 122, - "column": 35 + "line": 136, + "column": 26 }, "end": { - "line": 122, - "column": 36 + "line": 136, + "column": 37 }, - "identifierName": "x" + "identifierName": "onRelocated" }, - "name": "x" + "name": "onRelocated" }, "computed": false - } - } - }, - { - "type": "ExpressionStatement", - "start": 5760, - "end": 5781, - "loc": { - "start": { - "line": 123, - "column": 16 - }, - "end": { - "line": 123, - "column": 37 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 5760, - "end": 5780, - "loc": { - "start": { - "line": 123, - "column": 16 - }, - "end": { - "line": 123, - "column": 36 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 5760, - "end": 5768, - "loc": { - "start": { - "line": 123, - "column": 16 - }, - "end": { - "line": 123, - "column": 24 - }, - "identifierName": "lastCamY" - }, - "name": "lastCamY" }, "right": { - "type": "MemberExpression", - "start": 5771, - "end": 5780, + "type": "ArrowFunctionExpression", + "start": 6154, + "end": 6316, "loc": { "start": { - "line": 123, - "column": 27 + "line": 136, + "column": 40 }, "end": { - "line": 123, - "column": 36 + "line": 139, + "column": 17 } }, - "object": { - "type": "Identifier", - "start": 5771, - "end": 5778, - "loc": { - "start": { - "line": 123, - "column": 27 - }, - "end": { - "line": 123, - "column": 34 + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 6155, + "end": 6157, + "loc": { + "start": { + "line": 136, + "column": 41 + }, + "end": { + "line": 136, + "column": 43 + }, + "identifierName": "pX" }, - "identifierName": "viewEye" + "name": "pX" }, - "name": "viewEye" - }, - "property": { - "type": "Identifier", - "start": 5779, - "end": 5780, + { + "type": "Identifier", + "start": 6159, + "end": 6161, + "loc": { + "start": { + "line": 136, + "column": 45 + }, + "end": { + "line": 136, + "column": 47 + }, + "identifierName": "pY" + }, + "name": "pY" + } + ], + "body": { + "type": "BlockStatement", + "start": 6166, + "end": 6316, "loc": { "start": { - "line": 123, - "column": 35 + "line": 136, + "column": 52 }, "end": { - "line": 123, - "column": 36 - }, - "identifierName": "y" + "line": 139, + "column": 17 + } }, - "name": "y" - }, - "computed": false - } - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "ExpressionStatement", - "start": 5810, - "end": 5839, - "loc": { - "start": { - "line": 125, - "column": 12 - }, - "end": { - "line": 125, - "column": 41 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 5810, - "end": 5838, - "loc": { - "start": { - "line": 125, - "column": 12 - }, - "end": { - "line": 125, - "column": 40 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 5810, - "end": 5827, - "loc": { - "start": { - "line": 125, - "column": 12 - }, - "end": { - "line": 125, - "column": 29 - } - }, - "object": { - "type": "MemberExpression", - "start": 5810, - "end": 5825, - "loc": { - "start": { - "line": 125, - "column": 12 - }, - "end": { - "line": 125, - "column": 27 - } - }, - "object": { - "type": "ThisExpression", - "start": 5810, - "end": 5814, - "loc": { - "start": { - "line": 125, - "column": 12 - }, - "end": { - "line": 125, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 5815, - "end": 5825, - "loc": { - "start": { - "line": 125, - "column": 17 - }, - "end": { - "line": 125, - "column": 27 - }, - "identifierName": "lastCamPos" - }, - "name": "lastCamPos" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 5826, - "end": 5827, - "loc": { - "start": { - "line": 125, - "column": 28 - }, - "end": { - "line": 125, - "column": 29 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "right": { - "type": "Identifier", - "start": 5830, - "end": 5838, - "loc": { - "start": { - "line": 125, - "column": 32 - }, - "end": { - "line": 125, - "column": 40 - }, - "identifierName": "lastCamX" - }, - "name": "lastCamX" - } - } - }, - { - "type": "ExpressionStatement", - "start": 5853, - "end": 5882, - "loc": { - "start": { - "line": 126, - "column": 12 - }, - "end": { - "line": 126, - "column": 41 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 5853, - "end": 5881, - "loc": { - "start": { - "line": 126, - "column": 12 - }, - "end": { - "line": 126, - "column": 40 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 5853, - "end": 5870, - "loc": { - "start": { - "line": 126, - "column": 12 - }, - "end": { - "line": 126, - "column": 29 - } - }, - "object": { - "type": "MemberExpression", - "start": 5853, - "end": 5868, + "body": [ + { + "type": "ExpressionStatement", + "start": 6189, + "end": 6231, + "loc": { + "start": { + "line": 137, + "column": 20 + }, + "end": { + "line": 137, + "column": 62 + } + }, + "expression": { + "type": "CallExpression", + "start": 6189, + "end": 6230, + "loc": { + "start": { + "line": 137, + "column": 20 + }, + "end": { + "line": 137, + "column": 61 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6189, + "end": 6211, + "loc": { + "start": { + "line": 137, + "column": 20 + }, + "end": { + "line": 137, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 6189, + "end": 6206, + "loc": { + "start": { + "line": 137, + "column": 20 + }, + "end": { + "line": 137, + "column": 37 + }, + "identifierName": "oldRelocatedEvent" + }, + "name": "oldRelocatedEvent" + }, + "property": { + "type": "Identifier", + "start": 6207, + "end": 6211, + "loc": { + "start": { + "line": 137, + "column": 38 + }, + "end": { + "line": 137, + "column": 42 + }, + "identifierName": "call" + }, + "name": "call" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 6212, + "end": 6221, + "loc": { + "start": { + "line": 137, + "column": 43 + }, + "end": { + "line": 137, + "column": 52 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + { + "type": "Identifier", + "start": 6223, + "end": 6225, + "loc": { + "start": { + "line": 137, + "column": 54 + }, + "end": { + "line": 137, + "column": 56 + }, + "identifierName": "pX" + }, + "name": "pX" + }, + { + "type": "Identifier", + "start": 6227, + "end": 6229, + "loc": { + "start": { + "line": 137, + "column": 58 + }, + "end": { + "line": 137, + "column": 60 + }, + "identifierName": "pY" + }, + "name": "pY" + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 6253, + "end": 6297, + "loc": { + "start": { + "line": 138, + "column": 20 + }, + "end": { + "line": 138, + "column": 64 + } + }, + "expression": { + "type": "CallExpression", + "start": 6253, + "end": 6296, + "loc": { + "start": { + "line": 138, + "column": 20 + }, + "end": { + "line": 138, + "column": 63 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6253, + "end": 6275, + "loc": { + "start": { + "line": 138, + "column": 20 + }, + "end": { + "line": 138, + "column": 42 + } + }, + "object": { + "type": "ThisExpression", + "start": 6253, + "end": 6257, + "loc": { + "start": { + "line": 138, + "column": 20 + }, + "end": { + "line": 138, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "start": 6258, + "end": 6275, + "loc": { + "start": { + "line": 138, + "column": 25 + }, + "end": { + "line": 138, + "column": 42 + }, + "identifierName": "handleOnRelocated" + }, + "name": "handleOnRelocated" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 6276, + "end": 6285, + "loc": { + "start": { + "line": 138, + "column": 43 + }, + "end": { + "line": 138, + "column": 52 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + { + "type": "Identifier", + "start": 6287, + "end": 6295, + "loc": { + "start": { + "line": 138, + "column": 54 + }, + "end": { + "line": 138, + "column": 62 + }, + "identifierName": "children" + }, + "name": "children" + } + ] + } + } + ], + "directives": [] + } + } + } + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 6337, + "end": 6493, + "loc": { + "start": { + "line": 140, + "column": 19 + }, + "end": { + "line": 144, + "column": 13 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 6356, + "end": 6478, "loc": { "start": { - "line": 126, - "column": 12 + "line": 141, + "column": 16 }, "end": { - "line": 126, - "column": 27 + "line": 143, + "column": 17 } }, - "object": { - "type": "ThisExpression", - "start": 5853, - "end": 5857, + "expression": { + "type": "AssignmentExpression", + "start": 6356, + "end": 6478, "loc": { "start": { - "line": 126, - "column": 12 + "line": 141, + "column": 16 }, "end": { - "line": 126, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 5858, - "end": 5868, - "loc": { - "start": { - "line": 126, + "line": 143, "column": 17 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 6356, + "end": 6377, + "loc": { + "start": { + "line": 141, + "column": 16 + }, + "end": { + "line": 141, + "column": 37 + } }, - "end": { - "line": 126, - "column": 27 + "object": { + "type": "Identifier", + "start": 6356, + "end": 6365, + "loc": { + "start": { + "line": 141, + "column": 16 + }, + "end": { + "line": 141, + "column": 25 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" }, - "identifierName": "lastCamPos" - }, - "name": "lastCamPos" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 5869, - "end": 5870, - "loc": { - "start": { - "line": 126, - "column": 28 - }, - "end": { - "line": 126, - "column": 29 + "property": { + "type": "Identifier", + "start": 6366, + "end": 6377, + "loc": { + "start": { + "line": 141, + "column": 26 + }, + "end": { + "line": 141, + "column": 37 + }, + "identifierName": "onRelocated" + }, + "name": "onRelocated" + }, + "computed": false }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "right": { - "type": "Identifier", - "start": 5873, - "end": 5881, + "right": { + "type": "ArrowFunctionExpression", + "start": 6380, + "end": 6478, + "loc": { + "start": { + "line": 141, + "column": 40 + }, + "end": { + "line": 143, + "column": 17 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 6381, + "end": 6383, + "loc": { + "start": { + "line": 141, + "column": 41 + }, + "end": { + "line": 141, + "column": 43 + }, + "identifierName": "pX" + }, + "name": "pX" + }, + { + "type": "Identifier", + "start": 6385, + "end": 6387, + "loc": { + "start": { + "line": 141, + "column": 45 + }, + "end": { + "line": 141, + "column": 47 + }, + "identifierName": "pY" + }, + "name": "pY" + } + ], + "body": { + "type": "BlockStatement", + "start": 6392, + "end": 6478, + "loc": { + "start": { + "line": 141, + "column": 52 + }, + "end": { + "line": 143, + "column": 17 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 6415, + "end": 6459, + "loc": { + "start": { + "line": 142, + "column": 20 + }, + "end": { + "line": 142, + "column": 64 + } + }, + "expression": { + "type": "CallExpression", + "start": 6415, + "end": 6458, + "loc": { + "start": { + "line": 142, + "column": 20 + }, + "end": { + "line": 142, + "column": 63 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6415, + "end": 6437, + "loc": { + "start": { + "line": 142, + "column": 20 + }, + "end": { + "line": 142, + "column": 42 + } + }, + "object": { + "type": "ThisExpression", + "start": 6415, + "end": 6419, + "loc": { + "start": { + "line": 142, + "column": 20 + }, + "end": { + "line": 142, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "start": 6420, + "end": 6437, + "loc": { + "start": { + "line": 142, + "column": 25 + }, + "end": { + "line": 142, + "column": 42 + }, + "identifierName": "handleOnRelocated" + }, + "name": "handleOnRelocated" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 6438, + "end": 6447, + "loc": { + "start": { + "line": 142, + "column": 43 + }, + "end": { + "line": 142, + "column": 52 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + { + "type": "Identifier", + "start": 6449, + "end": 6457, + "loc": { + "start": { + "line": 142, + "column": 54 + }, + "end": { + "line": 142, + "column": 62 + }, + "identifierName": "children" + }, + "name": "children" + } + ] + } + } + ], + "directives": [] + } + } + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " When the main instance moves, move the clones with their relative position to it.", + "start": 5968, + "end": 6052, "loc": { "start": { - "line": 126, - "column": 32 + "line": 134, + "column": 12 }, "end": { - "line": 126, - "column": 40 - }, - "identifierName": "lastCamY" - }, - "name": "lastCamY" + "line": 134, + "column": 96 + } + } } + ] + } + ], + "directives": [] + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentLine", + "value": " If this instance is set to loop, then it needs a left and right clone", + "start": 4618, + "end": 4690, + "loc": { + "start": { + "line": 104, + "column": 8 + }, + "end": { + "line": 104, + "column": 80 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 6514, + "end": 6555, + "loc": { + "start": { + "line": 146, + "column": 8 + }, + "end": { + "line": 146, + "column": 49 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 6520, + "end": 6554, + "loc": { + "start": { + "line": 146, + "column": 14 + }, + "end": { + "line": 146, + "column": 48 } }, - { - "type": "ExpressionStatement", - "start": 5896, - "end": 5925, + "id": { + "type": "Identifier", + "start": 6520, + "end": 6527, "loc": { "start": { - "line": 127, - "column": 12 + "line": 146, + "column": 14 }, "end": { - "line": 127, - "column": 41 + "line": 146, + "column": 21 + }, + "identifierName": "viewEye" + }, + "name": "viewEye" + }, + "init": { + "type": "CallExpression", + "start": 6530, + "end": 6554, + "loc": { + "start": { + "line": 146, + "column": 24 + }, + "end": { + "line": 146, + "column": 48 } }, - "expression": { - "type": "CallExpression", - "start": 5896, - "end": 5924, + "callee": { + "type": "MemberExpression", + "start": 6530, + "end": 6552, "loc": { "start": { - "line": 127, - "column": 12 + "line": 146, + "column": 24 }, "end": { - "line": 127, - "column": 40 + "line": 146, + "column": 46 } }, - "callee": { + "object": { "type": "MemberExpression", - "start": 5896, - "end": 5912, + "start": 6530, + "end": 6541, "loc": { "start": { - "line": 127, - "column": 12 + "line": 146, + "column": 24 }, "end": { - "line": 127, - "column": 28 + "line": 146, + "column": 35 } }, "object": { "type": "Identifier", - "start": 5896, - "end": 5905, + "start": 6530, + "end": 6534, "loc": { "start": { - "line": 127, - "column": 12 + "line": 146, + "column": 24 }, "end": { - "line": 127, - "column": 21 + "line": 146, + "column": 28 }, - "identifierName": "pInstance" + "identifierName": "VYLO" }, - "name": "pInstance" + "name": "VYLO" }, "property": { "type": "Identifier", - "start": 5906, - "end": 5912, + "start": 6535, + "end": 6541, "loc": { "start": { - "line": 127, - "column": 22 + "line": 146, + "column": 29 }, "end": { - "line": 127, - "column": 28 + "line": 146, + "column": 35 }, - "identifierName": "setPos" + "identifierName": "Client" }, - "name": "setPos" + "name": "Client" }, "computed": false }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 5913, - "end": 5914, - "loc": { - "start": { - "line": 127, - "column": 29 - }, - "end": { - "line": 127, - "column": 30 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 5916, - "end": 5917, - "loc": { - "start": { - "line": 127, - "column": 32 - }, - "end": { - "line": 127, - "column": 33 - } + "property": { + "type": "Identifier", + "start": 6542, + "end": 6552, + "loc": { + "start": { + "line": 146, + "column": 36 }, - "extra": { - "rawValue": 0, - "raw": "0" + "end": { + "line": 146, + "column": 46 }, - "value": 0 + "identifierName": "getViewEye" }, - { - "type": "Identifier", - "start": 5919, - "end": 5923, - "loc": { - "start": { - "line": 127, - "column": 35 - }, - "end": { - "line": 127, - "column": 39 - }, - "identifierName": "pMap" - }, - "name": "pMap" - } - ] + "name": "getViewEye" + }, + "computed": false + }, + "arguments": [] + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 6565, + "end": 6582, + "loc": { + "start": { + "line": 147, + "column": 8 + }, + "end": { + "line": 147, + "column": 25 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 6569, + "end": 6581, + "loc": { + "start": { + "line": 147, + "column": 12 + }, + "end": { + "line": 147, + "column": 24 + } + }, + "id": { + "type": "Identifier", + "start": 6569, + "end": 6577, + "loc": { + "start": { + "line": 147, + "column": 12 + }, + "end": { + "line": 147, + "column": 20 + }, + "identifierName": "lastCamX" + }, + "name": "lastCamX" + }, + "init": { + "type": "NumericLiteral", + "start": 6580, + "end": 6581, + "loc": { + "start": { + "line": 147, + "column": 23 + }, + "end": { + "line": 147, + "column": 24 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 6592, + "end": 6609, + "loc": { + "start": { + "line": 148, + "column": 8 + }, + "end": { + "line": 148, + "column": 25 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 6596, + "end": 6608, + "loc": { + "start": { + "line": 148, + "column": 12 + }, + "end": { + "line": 148, + "column": 24 } }, + "id": { + "type": "Identifier", + "start": 6596, + "end": 6604, + "loc": { + "start": { + "line": 148, + "column": 12 + }, + "end": { + "line": 148, + "column": 20 + }, + "identifierName": "lastCamY" + }, + "name": "lastCamY" + }, + "init": { + "type": "NumericLiteral", + "start": 6607, + "end": 6608, + "loc": { + "start": { + "line": 148, + "column": 23 + }, + "end": { + "line": 148, + "column": 24 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 6619, + "end": 6714, + "loc": { + "start": { + "line": 149, + "column": 8 + }, + "end": { + "line": 152, + "column": 9 + } + }, + "test": { + "type": "Identifier", + "start": 6623, + "end": 6630, + "loc": { + "start": { + "line": 149, + "column": 12 + }, + "end": { + "line": 149, + "column": 19 + }, + "identifierName": "viewEye" + }, + "name": "viewEye" + }, + "consequent": { + "type": "BlockStatement", + "start": 6632, + "end": 6714, + "loc": { + "start": { + "line": 149, + "column": 21 + }, + "end": { + "line": 152, + "column": 9 + } + }, + "body": [ { "type": "ExpressionStatement", - "start": 5939, - "end": 5970, + "start": 6647, + "end": 6668, "loc": { "start": { - "line": 128, + "line": 150, "column": 12 }, "end": { - "line": 128, - "column": 43 + "line": 150, + "column": 33 } }, "expression": { - "type": "CallExpression", - "start": 5939, - "end": 5969, + "type": "AssignmentExpression", + "start": 6647, + "end": 6667, "loc": { "start": { - "line": 128, + "line": 150, "column": 12 }, "end": { - "line": 128, - "column": 42 + "line": 150, + "column": 32 } }, - "callee": { - "type": "MemberExpression", - "start": 5939, - "end": 5955, + "operator": "=", + "left": { + "type": "Identifier", + "start": 6647, + "end": 6655, "loc": { "start": { - "line": 128, + "line": 150, "column": 12 }, "end": { - "line": 128, - "column": 28 + "line": 150, + "column": 20 + }, + "identifierName": "lastCamX" + }, + "name": "lastCamX" + }, + "right": { + "type": "MemberExpression", + "start": 6658, + "end": 6667, + "loc": { + "start": { + "line": 150, + "column": 23 + }, + "end": { + "line": 150, + "column": 32 } }, "object": { "type": "Identifier", - "start": 5939, - "end": 5948, + "start": 6658, + "end": 6665, "loc": { "start": { - "line": 128, - "column": 12 + "line": 150, + "column": 23 }, "end": { - "line": 128, - "column": 21 + "line": 150, + "column": 30 }, - "identifierName": "pInstance" + "identifierName": "viewEye" }, - "name": "pInstance" + "name": "viewEye" }, "property": { "type": "Identifier", - "start": 5949, - "end": 5955, - "loc": { - "start": { - "line": 128, - "column": 22 - }, - "end": { - "line": 128, - "column": 28 - }, - "identifierName": "setPos" - }, - "name": "setPos" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 5956, - "end": 5958, + "start": 6666, + "end": 6667, "loc": { "start": { - "line": 128, - "column": 29 - }, - "end": { - "line": 128, + "line": 150, "column": 31 }, - "identifierName": "pX" - }, - "name": "pX" - }, - { - "type": "Identifier", - "start": 5960, - "end": 5962, - "loc": { - "start": { - "line": 128, - "column": 33 - }, "end": { - "line": 128, - "column": 35 + "line": 150, + "column": 32 }, - "identifierName": "pY" + "identifierName": "x" }, - "name": "pY" + "name": "x" }, - { - "type": "Identifier", - "start": 5964, - "end": 5968, - "loc": { - "start": { - "line": 128, - "column": 37 - }, - "end": { - "line": 128, - "column": 41 - }, - "identifierName": "pMap" - }, - "name": "pMap" - } - ] + "computed": false + } } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 5987, - "end": 6147, - "loc": { - "start": { - "line": 129, - "column": 15 }, - "end": { - "line": 131, - "column": 9 - } - }, - "body": [ { "type": "ExpressionStatement", - "start": 6002, - "end": 6136, + "start": 6682, + "end": 6703, "loc": { "start": { - "line": 130, + "line": 151, "column": 12 }, "end": { - "line": 130, - "column": 146 + "line": 151, + "column": 33 } }, "expression": { - "type": "CallExpression", - "start": 6002, - "end": 6135, + "type": "AssignmentExpression", + "start": 6682, + "end": 6702, "loc": { "start": { - "line": 130, + "line": 151, "column": 12 }, "end": { - "line": 130, - "column": 145 + "line": 151, + "column": 32 } }, - "callee": { - "type": "MemberExpression", - "start": 6002, - "end": 6045, + "operator": "=", + "left": { + "type": "Identifier", + "start": 6682, + "end": 6690, "loc": { "start": { - "line": 130, + "line": 151, "column": 12 }, "end": { - "line": 130, - "column": 55 + "line": 151, + "column": 20 + }, + "identifierName": "lastCamY" + }, + "name": "lastCamY" + }, + "right": { + "type": "MemberExpression", + "start": 6693, + "end": 6702, + "loc": { + "start": { + "line": 151, + "column": 23 + }, + "end": { + "line": 151, + "column": 32 } }, "object": { - "type": "CallExpression", - "start": 6002, - "end": 6039, + "type": "Identifier", + "start": 6693, + "end": 6700, "loc": { "start": { - "line": 130, - "column": 12 + "line": 151, + "column": 23 }, "end": { - "line": 130, - "column": 49 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6002, - "end": 6020, - "loc": { - "start": { - "line": 130, - "column": 12 - }, - "end": { - "line": 130, - "column": 30 - } - }, - "object": { - "type": "MemberExpression", - "start": 6002, - "end": 6013, - "loc": { - "start": { - "line": 130, - "column": 12 - }, - "end": { - "line": 130, - "column": 23 - } - }, - "object": { - "type": "ThisExpression", - "start": 6002, - "end": 6006, - "loc": { - "start": { - "line": 130, - "column": 12 - }, - "end": { - "line": 130, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 6007, - "end": 6013, - "loc": { - "start": { - "line": 130, - "column": 17 - }, - "end": { - "line": 130, - "column": 23 - }, - "identifierName": "logger" - }, - "name": "logger" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 6014, - "end": 6020, - "loc": { - "start": { - "line": 130, - "column": 24 - }, - "end": { - "line": 130, - "column": 30 - }, - "identifierName": "prefix" - }, - "name": "prefix" + "line": 151, + "column": 30 }, - "computed": false + "identifierName": "viewEye" }, - "arguments": [ - { - "type": "StringLiteral", - "start": 6021, - "end": 6038, - "loc": { - "start": { - "line": 130, - "column": 31 - }, - "end": { - "line": 130, - "column": 48 - } - }, - "extra": { - "rawValue": "Parallax-Module", - "raw": "'Parallax-Module'" - }, - "value": "Parallax-Module" - } - ] + "name": "viewEye" }, "property": { "type": "Identifier", - "start": 6040, - "end": 6045, + "start": 6701, + "end": 6702, "loc": { "start": { - "line": 130, - "column": 50 + "line": 151, + "column": 31 }, "end": { - "line": 130, - "column": 55 + "line": 151, + "column": 32 }, - "identifierName": "error" + "identifierName": "y" }, - "name": "error" + "name": "y" }, "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 6046, - "end": 6134, - "loc": { - "start": { - "line": 130, - "column": 56 - }, - "end": { - "line": 130, - "column": 144 - } - }, - "extra": { - "rawValue": "VYLO not found! This module depends on the VYLO object being in the global name space.", - "raw": "'VYLO not found! This module depends on the VYLO object being in the global name space.'" - }, - "value": "VYLO not found! This module depends on the VYLO object being in the global name space." - } - ] + } } } ], "directives": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n * Initializes this instance.\r\n * @param {Object} pInstance - The instance to initialize.\r\n * @param {Object} pParallaxInfo - The parallax info that tells this module how to control this instance.\r\n * @property {number} pParallaxInfo.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {number} pParallaxInfo.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {boolean} pParallaxInfo.loop - Whether this instance will loop endlessly.\r\n * @param {number} pX - The x position this parallax will start at.\r\n * @param {number} pY - The y position this parallax will start at.\r\n * @param {string} pMap - The map this instance will start at.\r\n * @private\r\n ", - "start": 2943, - "end": 3836, - "loc": { - "start": { - "line": 73, - "column": 4 }, - "end": { - "line": 84, - "column": 7 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n * Removes an instance to the parallax system.\r\n * @param {Object} pInstance - The instance to remove to the parallax system.\r\n ", - "start": 6160, - "end": 6307, - "loc": { - "start": { - "line": 133, - "column": 4 - }, - "end": { - "line": 136, - "column": 7 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 6313, - "end": 6624, - "loc": { - "start": { - "line": 137, - "column": 4 - }, - "end": { - "line": 145, - "column": 5 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6313, - "end": 6319, - "loc": { - "start": { - "line": 137, - "column": 4 - }, - "end": { - "line": 137, - "column": 10 - }, - "identifierName": "remove" - }, - "name": "remove", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 6320, - "end": 6329, - "loc": { - "start": { - "line": 137, - "column": 11 - }, - "end": { - "line": 137, - "column": 20 - }, - "identifierName": "pInstance" + "alternate": null }, - "name": "pInstance" + { + "type": "ExpressionStatement", + "start": 6724, + "end": 6753, + "loc": { + "start": { + "line": 153, + "column": 8 + }, + "end": { + "line": 153, + "column": 37 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 6724, + "end": 6752, + "loc": { + "start": { + "line": 153, + "column": 8 + }, + "end": { + "line": 153, + "column": 36 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 6724, + "end": 6741, + "loc": { + "start": { + "line": 153, + "column": 8 + }, + "end": { + "line": 153, + "column": 25 + } + }, + "object": { + "type": "MemberExpression", + "start": 6724, + "end": 6739, + "loc": { + "start": { + "line": 153, + "column": 8 + }, + "end": { + "line": 153, + "column": 23 + } + }, + "object": { + "type": "ThisExpression", + "start": 6724, + "end": 6728, + "loc": { + "start": { + "line": 153, + "column": 8 + }, + "end": { + "line": 153, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 6729, + "end": 6739, + "loc": { + "start": { + "line": 153, + "column": 13 + }, + "end": { + "line": 153, + "column": 23 + }, + "identifierName": "lastCamPos" + }, + "name": "lastCamPos" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6740, + "end": 6741, + "loc": { + "start": { + "line": 153, + "column": 24 + }, + "end": { + "line": 153, + "column": 25 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 6744, + "end": 6752, + "loc": { + "start": { + "line": 153, + "column": 28 + }, + "end": { + "line": 153, + "column": 36 + }, + "identifierName": "lastCamX" + }, + "name": "lastCamX" + } + } + }, + { + "type": "ExpressionStatement", + "start": 6763, + "end": 6792, + "loc": { + "start": { + "line": 154, + "column": 8 + }, + "end": { + "line": 154, + "column": 37 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 6763, + "end": 6791, + "loc": { + "start": { + "line": 154, + "column": 8 + }, + "end": { + "line": 154, + "column": 36 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 6763, + "end": 6780, + "loc": { + "start": { + "line": 154, + "column": 8 + }, + "end": { + "line": 154, + "column": 25 + } + }, + "object": { + "type": "MemberExpression", + "start": 6763, + "end": 6778, + "loc": { + "start": { + "line": 154, + "column": 8 + }, + "end": { + "line": 154, + "column": 23 + } + }, + "object": { + "type": "ThisExpression", + "start": 6763, + "end": 6767, + "loc": { + "start": { + "line": 154, + "column": 8 + }, + "end": { + "line": 154, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 6768, + "end": 6778, + "loc": { + "start": { + "line": 154, + "column": 13 + }, + "end": { + "line": 154, + "column": 23 + }, + "identifierName": "lastCamPos" + }, + "name": "lastCamPos" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6779, + "end": 6780, + "loc": { + "start": { + "line": 154, + "column": 24 + }, + "end": { + "line": 154, + "column": 25 + }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 6783, + "end": 6791, + "loc": { + "start": { + "line": 154, + "column": 28 + }, + "end": { + "line": 154, + "column": 36 + }, + "identifierName": "lastCamY" + }, + "name": "lastCamY" + } + } + }, + { + "type": "ExpressionStatement", + "start": 6802, + "end": 6833, + "loc": { + "start": { + "line": 155, + "column": 8 + }, + "end": { + "line": 155, + "column": 39 + } + }, + "expression": { + "type": "CallExpression", + "start": 6802, + "end": 6832, + "loc": { + "start": { + "line": 155, + "column": 8 + }, + "end": { + "line": 155, + "column": 38 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6802, + "end": 6818, + "loc": { + "start": { + "line": 155, + "column": 8 + }, + "end": { + "line": 155, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 6802, + "end": 6811, + "loc": { + "start": { + "line": 155, + "column": 8 + }, + "end": { + "line": 155, + "column": 17 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 6812, + "end": 6818, + "loc": { + "start": { + "line": 155, + "column": 18 + }, + "end": { + "line": 155, + "column": 24 + }, + "identifierName": "setPos" + }, + "name": "setPos" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 6819, + "end": 6821, + "loc": { + "start": { + "line": 155, + "column": 25 + }, + "end": { + "line": 155, + "column": 27 + }, + "identifierName": "pX" + }, + "name": "pX" + }, + { + "type": "Identifier", + "start": 6823, + "end": 6825, + "loc": { + "start": { + "line": 155, + "column": 29 + }, + "end": { + "line": 155, + "column": 31 + }, + "identifierName": "pY" + }, + "name": "pY" + }, + { + "type": "Identifier", + "start": 6827, + "end": 6831, + "loc": { + "start": { + "line": 155, + "column": 33 + }, + "end": { + "line": 155, + "column": 37 + }, + "identifierName": "pMap" + }, + "name": "pMap" + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Initializes this instance.\r\n * @param {Object} pInstance - The instance to initialize.\r\n * @param {Object} pConfig - The parallax info that tells this module how to control this instance.\r\n * @prop {number} pConfig.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 0 to move with camera.\r\n * @prop {number} pConfig.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 0 to move with camera.\r\n * @prop {boolean} pConfig.loop - Whether this instance will loop endlessly.\r\n * @param {number} pX - The x position this parallax will start at.\r\n * @param {number} pY - The y position this parallax will start at.\r\n * @param {string} pMap - The map this instance will start at.\r\n * @private\r\n ", + "start": 3501, + "end": 4358, + "loc": { + "start": { + "line": 86, + "column": 4 + }, + "end": { + "line": 97, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Removes an instance to the parallax system.\r\n * @param {Object} pInstance - The instance to remove to the parallax system.\r\n ", + "start": 6846, + "end": 6993, + "loc": { + "start": { + "line": 157, + "column": 4 + }, + "end": { + "line": 160, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 6999, + "end": 7325, + "loc": { + "start": { + "line": 161, + "column": 4 + }, + "end": { + "line": 171, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 6999, + "end": 7005, + "loc": { + "start": { + "line": 161, + "column": 4 + }, + "end": { + "line": 161, + "column": 10 + }, + "identifierName": "remove" + }, + "name": "remove", + "leadingComments": null + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 7006, + "end": 7015, + "loc": { + "start": { + "line": 161, + "column": 11 + }, + "end": { + "line": 161, + "column": 20 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" } ], "body": { "type": "BlockStatement", - "start": 6331, - "end": 6624, + "start": 7017, + "end": 7325, "loc": { "start": { - "line": 137, + "line": 161, "column": 22 }, "end": { - "line": 145, + "line": 171, "column": 5 } }, "body": [ { "type": "IfStatement", - "start": 6342, - "end": 6617, + "start": 7028, + "end": 7159, "loc": { "start": { - "line": 138, + "line": 162, "column": 8 }, "end": { - "line": 144, + "line": 165, "column": 9 } }, "test": { - "type": "Identifier", - "start": 6346, - "end": 6355, + "type": "UnaryExpression", + "start": 7032, + "end": 7042, "loc": { "start": { - "line": 138, + "line": 162, "column": 12 }, "end": { - "line": 138, - "column": 21 + "line": 162, + "column": 22 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 7033, + "end": 7042, + "loc": { + "start": { + "line": 162, + "column": 13 + }, + "end": { + "line": 162, + "column": 22 + }, + "identifierName": "pInstance" }, - "identifierName": "pInstance" + "name": "pInstance" }, - "name": "pInstance" + "extra": { + "parenthesizedArgument": false + } }, "consequent": { "type": "BlockStatement", - "start": 6357, - "end": 6517, + "start": 7044, + "end": 7159, "loc": { "start": { - "line": 138, - "column": 23 + "line": 162, + "column": 24 }, "end": { - "line": 142, + "line": 165, "column": 9 } }, "body": [ { - "type": "IfStatement", - "start": 6372, - "end": 6506, + "type": "ExpressionStatement", + "start": 7059, + "end": 7127, "loc": { "start": { - "line": 139, + "line": 163, "column": 12 }, "end": { - "line": 141, - "column": 13 + "line": 163, + "column": 80 } }, - "test": { + "expression": { "type": "CallExpression", - "start": 6376, - "end": 6410, + "start": 7059, + "end": 7126, "loc": { "start": { - "line": 139, - "column": 16 + "line": 163, + "column": 12 }, "end": { - "line": 139, - "column": 50 + "line": 163, + "column": 79 } }, "callee": { "type": "MemberExpression", - "start": 6376, - "end": 6399, + "start": 7059, + "end": 7102, "loc": { "start": { - "line": 139, - "column": 16 + "line": 163, + "column": 12 }, "end": { - "line": 139, - "column": 39 + "line": 163, + "column": 55 } }, "object": { - "type": "MemberExpression", - "start": 6376, - "end": 6390, + "type": "CallExpression", + "start": 7059, + "end": 7096, "loc": { "start": { - "line": 139, - "column": 16 + "line": 163, + "column": 12 }, "end": { - "line": 139, - "column": 30 + "line": 163, + "column": 49 } }, - "object": { - "type": "ThisExpression", - "start": 6376, - "end": 6380, + "callee": { + "type": "MemberExpression", + "start": 7059, + "end": 7077, "loc": { "start": { - "line": 139, - "column": 16 + "line": 163, + "column": 12 }, "end": { - "line": 139, - "column": 20 + "line": 163, + "column": 30 } - } - }, - "property": { - "type": "Identifier", - "start": 6381, - "end": 6390, - "loc": { - "start": { - "line": 139, - "column": 21 + }, + "object": { + "type": "MemberExpression", + "start": 7059, + "end": 7070, + "loc": { + "start": { + "line": 163, + "column": 12 + }, + "end": { + "line": 163, + "column": 23 + } }, - "end": { - "line": 139, - "column": 30 + "object": { + "type": "ThisExpression", + "start": 7059, + "end": 7063, + "loc": { + "start": { + "line": 163, + "column": 12 + }, + "end": { + "line": 163, + "column": 16 + } + } }, - "identifierName": "instances" + "property": { + "type": "Identifier", + "start": 7064, + "end": 7070, + "loc": { + "start": { + "line": 163, + "column": 17 + }, + "end": { + "line": 163, + "column": 23 + }, + "identifierName": "logger" + }, + "name": "logger" + }, + "computed": false }, - "name": "instances" + "property": { + "type": "Identifier", + "start": 7071, + "end": 7077, + "loc": { + "start": { + "line": 163, + "column": 24 + }, + "end": { + "line": 163, + "column": 30 + }, + "identifierName": "prefix" + }, + "name": "prefix" + }, + "computed": false }, - "computed": false - }, - "property": { + "arguments": [ + { + "type": "StringLiteral", + "start": 7078, + "end": 7095, + "loc": { + "start": { + "line": 163, + "column": 31 + }, + "end": { + "line": 163, + "column": 48 + } + }, + "extra": { + "rawValue": "Parallax-Module", + "raw": "'Parallax-Module'" + }, + "value": "Parallax-Module" + } + ] + }, + "property": { "type": "Identifier", - "start": 6391, - "end": 6399, + "start": 7097, + "end": 7102, "loc": { "start": { - "line": 139, - "column": 31 + "line": 163, + "column": 50 }, "end": { - "line": 139, - "column": 39 + "line": 163, + "column": 55 }, - "identifierName": "includes" + "identifierName": "error" }, - "name": "includes" + "name": "error" }, "computed": false }, "arguments": [ { - "type": "Identifier", - "start": 6400, - "end": 6409, + "type": "StringLiteral", + "start": 7103, + "end": 7125, "loc": { "start": { - "line": 139, - "column": 40 + "line": 163, + "column": 56 }, "end": { - "line": 139, - "column": 49 - }, - "identifierName": "pInstance" + "line": 163, + "column": 78 + } }, - "name": "pInstance" + "extra": { + "rawValue": "No pInstance passed!", + "raw": "'No pInstance passed!'" + }, + "value": "No pInstance passed!" } ] + } + }, + { + "type": "ReturnStatement", + "start": 7141, + "end": 7148, + "loc": { + "start": { + "line": 164, + "column": 12 + }, + "end": { + "line": 164, + "column": 19 + } }, - "consequent": { - "type": "BlockStatement", - "start": 6412, - "end": 6506, + "argument": null + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "IfStatement", + "start": 7171, + "end": 7318, + "loc": { + "start": { + "line": 167, + "column": 8 + }, + "end": { + "line": 170, + "column": 9 + } + }, + "test": { + "type": "CallExpression", + "start": 7175, + "end": 7204, + "loc": { + "start": { + "line": 167, + "column": 12 + }, + "end": { + "line": 167, + "column": 41 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7175, + "end": 7193, + "loc": { + "start": { + "line": 167, + "column": 12 + }, + "end": { + "line": 167, + "column": 30 + } + }, + "object": { + "type": "MemberExpression", + "start": 7175, + "end": 7189, + "loc": { + "start": { + "line": 167, + "column": 12 + }, + "end": { + "line": 167, + "column": 26 + } + }, + "object": { + "type": "ThisExpression", + "start": 7175, + "end": 7179, "loc": { "start": { - "line": 139, - "column": 52 + "line": 167, + "column": 12 }, "end": { - "line": 141, - "column": 13 + "line": 167, + "column": 16 } + } + }, + "property": { + "type": "Identifier", + "start": 7180, + "end": 7189, + "loc": { + "start": { + "line": 167, + "column": 17 + }, + "end": { + "line": 167, + "column": 26 + }, + "identifierName": "instances" }, - "body": [ - { - "type": "ExpressionStatement", - "start": 6431, - "end": 6491, - "loc": { - "start": { - "line": 140, - "column": 16 - }, - "end": { - "line": 140, - "column": 76 - } - }, - "expression": { - "type": "CallExpression", - "start": 6431, - "end": 6490, - "loc": { - "start": { - "line": 140, - "column": 16 - }, - "end": { - "line": 140, - "column": 75 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6431, - "end": 6452, - "loc": { - "start": { - "line": 140, - "column": 16 - }, - "end": { - "line": 140, - "column": 37 - } - }, - "object": { - "type": "MemberExpression", - "start": 6431, - "end": 6445, - "loc": { - "start": { - "line": 140, - "column": 16 - }, - "end": { - "line": 140, - "column": 30 - } - }, - "object": { - "type": "ThisExpression", - "start": 6431, - "end": 6435, - "loc": { - "start": { - "line": 140, - "column": 16 - }, - "end": { - "line": 140, - "column": 20 - } - } - }, - "property": { - "type": "Identifier", - "start": 6436, - "end": 6445, - "loc": { - "start": { - "line": 140, - "column": 21 - }, - "end": { - "line": 140, - "column": 30 - }, - "identifierName": "instances" - }, - "name": "instances" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 6446, - "end": 6452, - "loc": { - "start": { - "line": 140, - "column": 31 - }, - "end": { - "line": 140, - "column": 37 - }, - "identifierName": "splice" - }, - "name": "splice" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 6453, - "end": 6486, - "loc": { - "start": { - "line": 140, - "column": 38 - }, - "end": { - "line": 140, - "column": 71 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6453, - "end": 6475, - "loc": { - "start": { - "line": 140, - "column": 38 - }, - "end": { - "line": 140, - "column": 60 - } - }, - "object": { - "type": "MemberExpression", - "start": 6453, - "end": 6467, - "loc": { - "start": { - "line": 140, - "column": 38 - }, - "end": { - "line": 140, - "column": 52 - } - }, - "object": { - "type": "ThisExpression", - "start": 6453, - "end": 6457, - "loc": { - "start": { - "line": 140, - "column": 38 - }, - "end": { - "line": 140, - "column": 42 - } - } - }, - "property": { - "type": "Identifier", - "start": 6458, - "end": 6467, - "loc": { - "start": { - "line": 140, - "column": 43 - }, - "end": { - "line": 140, - "column": 52 - }, - "identifierName": "instances" - }, - "name": "instances" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 6468, - "end": 6475, - "loc": { - "start": { - "line": 140, - "column": 53 - }, - "end": { - "line": 140, - "column": 60 - }, - "identifierName": "indexOf" - }, - "name": "indexOf" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 6476, - "end": 6485, - "loc": { - "start": { - "line": 140, - "column": 61 - }, - "end": { - "line": 140, - "column": 70 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - } - ] - }, - { - "type": "NumericLiteral", - "start": 6488, - "end": 6489, - "loc": { - "start": { - "line": 140, - "column": 73 - }, - "end": { - "line": 140, - "column": 74 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - ] - } - } - ], - "directives": [] + "name": "instances" }, - "alternate": null + "computed": false + }, + "property": { + "type": "Identifier", + "start": 7190, + "end": 7193, + "loc": { + "start": { + "line": 167, + "column": 27 + }, + "end": { + "line": 167, + "column": 30 + }, + "identifierName": "has" + }, + "name": "has" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 7194, + "end": 7203, + "loc": { + "start": { + "line": 167, + "column": 31 + }, + "end": { + "line": 167, + "column": 40 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" } - ], - "directives": [] + ] }, - "alternate": { + "consequent": { "type": "BlockStatement", - "start": 6523, - "end": 6617, + "start": 7206, + "end": 7318, "loc": { "start": { - "line": 142, - "column": 15 + "line": 167, + "column": 43 }, "end": { - "line": 144, + "line": 170, "column": 9 } }, "body": [ { "type": "ExpressionStatement", - "start": 6538, - "end": 6606, + "start": 7221, + "end": 7254, "loc": { "start": { - "line": 143, + "line": 168, "column": 12 }, "end": { - "line": 143, - "column": 80 + "line": 168, + "column": 45 } }, "expression": { "type": "CallExpression", - "start": 6538, - "end": 6605, + "start": 7221, + "end": 7253, "loc": { "start": { - "line": 143, + "line": 168, "column": 12 }, "end": { - "line": 143, - "column": 79 + "line": 168, + "column": 44 } }, "callee": { "type": "MemberExpression", - "start": 6538, - "end": 6581, + "start": 7221, + "end": 7242, "loc": { "start": { - "line": 143, + "line": 168, "column": 12 }, "end": { - "line": 143, - "column": 55 + "line": 168, + "column": 33 } }, "object": { - "type": "CallExpression", - "start": 6538, - "end": 6575, + "type": "MemberExpression", + "start": 7221, + "end": 7235, "loc": { "start": { - "line": 143, + "line": 168, "column": 12 }, "end": { - "line": 143, - "column": 49 + "line": 168, + "column": 26 } }, - "callee": { - "type": "MemberExpression", - "start": 6538, - "end": 6556, + "object": { + "type": "ThisExpression", + "start": 7221, + "end": 7225, "loc": { "start": { - "line": 143, + "line": 168, "column": 12 }, "end": { - "line": 143, - "column": 30 + "line": 168, + "column": 16 } - }, - "object": { - "type": "MemberExpression", - "start": 6538, - "end": 6549, - "loc": { - "start": { - "line": 143, - "column": 12 - }, - "end": { - "line": 143, - "column": 23 - } - }, - "object": { - "type": "ThisExpression", - "start": 6538, - "end": 6542, - "loc": { - "start": { - "line": 143, - "column": 12 - }, - "end": { - "line": 143, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 6543, - "end": 6549, - "loc": { - "start": { - "line": 143, - "column": 17 - }, - "end": { - "line": 143, - "column": 23 - }, - "identifierName": "logger" - }, - "name": "logger" + } + }, + "property": { + "type": "Identifier", + "start": 7226, + "end": 7235, + "loc": { + "start": { + "line": 168, + "column": 17 }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 6550, - "end": 6556, - "loc": { - "start": { - "line": 143, - "column": 24 - }, - "end": { - "line": 143, - "column": 30 - }, - "identifierName": "prefix" + "end": { + "line": 168, + "column": 26 }, - "name": "prefix" + "identifierName": "instances" }, - "computed": false + "name": "instances" }, - "arguments": [ - { - "type": "StringLiteral", - "start": 6557, - "end": 6574, - "loc": { - "start": { - "line": 143, - "column": 31 - }, - "end": { - "line": 143, - "column": 48 - } - }, - "extra": { - "rawValue": "Parallax-Module", - "raw": "'Parallax-Module'" - }, - "value": "Parallax-Module" - } - ] + "computed": false }, "property": { "type": "Identifier", - "start": 6576, - "end": 6581, + "start": 7236, + "end": 7242, "loc": { "start": { - "line": 143, - "column": 50 + "line": 168, + "column": 27 }, "end": { - "line": 143, - "column": 55 + "line": 168, + "column": 33 }, - "identifierName": "error" + "identifierName": "delete" }, - "name": "error" + "name": "delete" }, "computed": false }, "arguments": [ { - "type": "StringLiteral", - "start": 6582, - "end": 6604, + "type": "Identifier", + "start": 7243, + "end": 7252, "loc": { "start": { - "line": 143, - "column": 56 + "line": 168, + "column": 34 }, "end": { - "line": 143, - "column": 78 - } - }, - "extra": { - "rawValue": "No pInstance passed!", - "raw": "'No pInstance passed!'" + "line": 168, + "column": 43 + }, + "identifierName": "pInstance" }, - "value": "No pInstance passed!" + "name": "pInstance" } ] } - } - ], - "directives": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n * Removes an instance to the parallax system.\r\n * @param {Object} pInstance - The instance to remove to the parallax system.\r\n ", - "start": 6160, - "end": 6307, - "loc": { - "start": { - "line": 133, - "column": 4 - }, - "end": { - "line": 136, - "column": 7 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n * Updates the parallax system.\r\n * @param {number} pCameraX - The x position of the camera.\r\n * @param {number} pCameraY - The y position of the camera.\r\n * @param {number} pSimulatedPosition - The simulated position. This is used to simulate a position larger than possible, but internally it treats it as its downscaled position.\r\n * One such reason for using this paramater would be to simulate a map larger than you actually have, to convince the parallax that it is infinite.\r\n ", - "start": 6630, - "end": 7145, - "loc": { - "start": { - "line": 146, - "column": 4 - }, - "end": { - "line": 152, - "column": 7 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 7151, - "end": 9325, - "loc": { - "start": { - "line": 153, - "column": 4 - }, - "end": { - "line": 206, - "column": 5 - } - }, + }, + { + "type": "ExpressionStatement", + "start": 7268, + "end": 7307, + "loc": { + "start": { + "line": 169, + "column": 12 + }, + "end": { + "line": 169, + "column": 51 + } + }, + "expression": { + "type": "CallExpression", + "start": 7268, + "end": 7306, + "loc": { + "start": { + "line": 169, + "column": 12 + }, + "end": { + "line": 169, + "column": 50 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7268, + "end": 7295, + "loc": { + "start": { + "line": 169, + "column": 12 + }, + "end": { + "line": 169, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 7268, + "end": 7288, + "loc": { + "start": { + "line": 169, + "column": 12 + }, + "end": { + "line": 169, + "column": 32 + } + }, + "object": { + "type": "ThisExpression", + "start": 7268, + "end": 7272, + "loc": { + "start": { + "line": 169, + "column": 12 + }, + "end": { + "line": 169, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 7273, + "end": 7288, + "loc": { + "start": { + "line": 169, + "column": 17 + }, + "end": { + "line": 169, + "column": 32 + }, + "identifierName": "instanceWeakMap" + }, + "name": "instanceWeakMap" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 7289, + "end": 7295, + "loc": { + "start": { + "line": 169, + "column": 33 + }, + "end": { + "line": 169, + "column": 39 + }, + "identifierName": "delete" + }, + "name": "delete" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 7296, + "end": 7305, + "loc": { + "start": { + "line": 169, + "column": 40 + }, + "end": { + "line": 169, + "column": 49 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Removes an instance to the parallax system.\r\n * @param {Object} pInstance - The instance to remove to the parallax system.\r\n ", + "start": 6846, + "end": 6993, + "loc": { + "start": { + "line": 157, + "column": 4 + }, + "end": { + "line": 160, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Updates the parallax system.\r\n * @param {number} pCameraX - The x position of the camera.\r\n * @param {number} pCameraY - The y position of the camera.\r\n ", + "start": 7331, + "end": 7510, + "loc": { + "start": { + "line": 172, + "column": 4 + }, + "end": { + "line": 176, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 7516, + "end": 9592, + "loc": { + "start": { + "line": 177, + "column": 4 + }, + "end": { + "line": 230, + "column": 5 + } + }, "static": false, "computed": false, "key": { "type": "Identifier", - "start": 7151, - "end": 7157, + "start": 7516, + "end": 7522, "loc": { "start": { - "line": 153, + "line": 177, "column": 4 }, "end": { - "line": 153, + "line": 177, "column": 10 }, "identifierName": "update" @@ -8327,29 +8859,29 @@ "params": [ { "type": "AssignmentPattern", - "start": 7158, - "end": 7170, + "start": 7523, + "end": 7535, "loc": { "start": { - "line": 153, + "line": 177, "column": 11 }, "end": { - "line": 153, + "line": 177, "column": 23 } }, "left": { "type": "Identifier", - "start": 7158, - "end": 7166, + "start": 7523, + "end": 7531, "loc": { "start": { - "line": 153, + "line": 177, "column": 11 }, "end": { - "line": 153, + "line": 177, "column": 19 }, "identifierName": "pCameraX" @@ -8358,15 +8890,15 @@ }, "right": { "type": "NumericLiteral", - "start": 7169, - "end": 7170, + "start": 7534, + "end": 7535, "loc": { "start": { - "line": 153, + "line": 177, "column": 22 }, "end": { - "line": 153, + "line": 177, "column": 23 } }, @@ -8379,29 +8911,29 @@ }, { "type": "AssignmentPattern", - "start": 7172, - "end": 7184, + "start": 7537, + "end": 7549, "loc": { "start": { - "line": 153, + "line": 177, "column": 25 }, "end": { - "line": 153, + "line": 177, "column": 37 } }, "left": { "type": "Identifier", - "start": 7172, - "end": 7180, + "start": 7537, + "end": 7545, "loc": { "start": { - "line": 153, + "line": 177, "column": 25 }, "end": { - "line": 153, + "line": 177, "column": 33 }, "identifierName": "pCameraY" @@ -8410,15 +8942,15 @@ }, "right": { "type": "NumericLiteral", - "start": 7183, - "end": 7184, + "start": 7548, + "end": 7549, "loc": { "start": { - "line": 153, + "line": 177, "column": 36 }, "end": { - "line": 153, + "line": 177, "column": 37 } }, @@ -8428,80 +8960,63 @@ }, "value": 0 } - }, - { - "type": "Identifier", - "start": 7186, - "end": 7204, - "loc": { - "start": { - "line": 153, - "column": 39 - }, - "end": { - "line": 153, - "column": 57 - }, - "identifierName": "pSimulatedPosition" - }, - "name": "pSimulatedPosition" } ], "body": { "type": "BlockStatement", - "start": 7206, - "end": 9325, + "start": 7551, + "end": 9592, "loc": { "start": { - "line": 153, - "column": 59 + "line": 177, + "column": 39 }, "end": { - "line": 206, + "line": 230, "column": 5 } }, "body": [ { "type": "VariableDeclaration", - "start": 7301, - "end": 7324, + "start": 7599, + "end": 7622, "loc": { "start": { - "line": 155, + "line": 179, "column": 8 }, "end": { - "line": 155, + "line": 179, "column": 31 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 7305, - "end": 7323, + "start": 7603, + "end": 7621, "loc": { "start": { - "line": 155, + "line": 179, "column": 12 }, "end": { - "line": 155, + "line": 179, "column": 30 } }, "id": { "type": "Identifier", - "start": 7305, - "end": 7312, + "start": 7603, + "end": 7610, "loc": { "start": { - "line": 155, + "line": 179, "column": 12 }, "end": { - "line": 155, + "line": 179, "column": 19 }, "identifierName": "cameraX" @@ -8511,15 +9026,15 @@ }, "init": { "type": "Identifier", - "start": 7315, - "end": 7323, + "start": 7613, + "end": 7621, "loc": { "start": { - "line": 155, + "line": 179, "column": 22 }, "end": { - "line": 155, + "line": 179, "column": 30 }, "identifierName": "pCameraX" @@ -8533,17 +9048,17 @@ "leadingComments": [ { "type": "CommentLine", - "value": " The camera's x position. May be adjusted if pSimulatedPosition is used.", - "start": 7217, - "end": 7291, + "value": " The camera's x position.", + "start": 7562, + "end": 7589, "loc": { "start": { - "line": 154, + "line": 178, "column": 8 }, "end": { - "line": 154, - "column": 82 + "line": 178, + "column": 35 } } } @@ -8551,17 +9066,17 @@ "trailingComments": [ { "type": "CommentLine", - "value": " The camera's x position. May be adjusted if pSimulatedPosition is used.", - "start": 7334, - "end": 7408, + "value": " The camera's x position.", + "start": 7632, + "end": 7659, "loc": { "start": { - "line": 156, + "line": 180, "column": 8 }, "end": { - "line": 156, - "column": 82 + "line": 180, + "column": 35 } } } @@ -8569,44 +9084,44 @@ }, { "type": "VariableDeclaration", - "start": 7418, - "end": 7441, + "start": 7669, + "end": 7692, "loc": { "start": { - "line": 157, + "line": 181, "column": 8 }, "end": { - "line": 157, + "line": 181, "column": 31 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 7422, - "end": 7440, + "start": 7673, + "end": 7691, "loc": { "start": { - "line": 157, + "line": 181, "column": 12 }, "end": { - "line": 157, + "line": 181, "column": 30 } }, "id": { "type": "Identifier", - "start": 7422, - "end": 7429, + "start": 7673, + "end": 7680, "loc": { "start": { - "line": 157, + "line": 181, "column": 12 }, "end": { - "line": 157, + "line": 181, "column": 19 }, "identifierName": "cameraY" @@ -8616,15 +9131,15 @@ }, "init": { "type": "Identifier", - "start": 7432, - "end": 7440, + "start": 7683, + "end": 7691, "loc": { "start": { - "line": 157, + "line": 181, "column": 22 }, "end": { - "line": 157, + "line": 181, "column": 30 }, "identifierName": "pCameraY" @@ -8638,2781 +9153,1690 @@ "leadingComments": [ { "type": "CommentLine", - "value": " The camera's x position. May be adjusted if pSimulatedPosition is used.", - "start": 7334, - "end": 7408, + "value": " The camera's x position.", + "start": 7632, + "end": 7659, "loc": { "start": { - "line": 156, + "line": 180, "column": 8 }, "end": { - "line": 156, - "column": 82 + "line": 180, + "column": 35 } } } ] }, { - "type": "ForOfStatement", - "start": 7451, - "end": 9242, + "type": "ExpressionStatement", + "start": 7702, + "end": 9509, "loc": { "start": { - "line": 158, + "line": 182, "column": 8 }, "end": { - "line": 203, - "column": 9 + "line": 227, + "column": 11 } }, - "left": { - "type": "VariableDeclaration", - "start": 7456, - "end": 7470, + "expression": { + "type": "CallExpression", + "start": 7702, + "end": 9508, "loc": { "start": { - "line": 158, - "column": 13 + "line": 182, + "column": 8 }, "end": { - "line": 158, - "column": 27 + "line": 227, + "column": 10 } }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7462, - "end": 7470, + "callee": { + "type": "MemberExpression", + "start": 7702, + "end": 7724, + "loc": { + "start": { + "line": 182, + "column": 8 + }, + "end": { + "line": 182, + "column": 30 + } + }, + "object": { + "type": "MemberExpression", + "start": 7702, + "end": 7716, "loc": { "start": { - "line": 158, - "column": 19 + "line": 182, + "column": 8 }, "end": { - "line": 158, - "column": 27 + "line": 182, + "column": 22 } }, - "id": { + "object": { + "type": "ThisExpression", + "start": 7702, + "end": 7706, + "loc": { + "start": { + "line": 182, + "column": 8 + }, + "end": { + "line": 182, + "column": 12 + } + } + }, + "property": { "type": "Identifier", - "start": 7462, - "end": 7470, + "start": 7707, + "end": 7716, "loc": { "start": { - "line": 158, - "column": 19 + "line": 182, + "column": 13 }, "end": { - "line": 158, - "column": 27 + "line": 182, + "column": 22 }, - "identifierName": "instance" + "identifierName": "instances" }, - "name": "instance" + "name": "instances" }, - "init": null - } - ], - "kind": "const" - }, - "right": { - "type": "MemberExpression", - "start": 7474, - "end": 7488, - "loc": { - "start": { - "line": 158, - "column": 31 + "computed": false }, - "end": { - "line": 158, - "column": 45 - } - }, - "object": { - "type": "ThisExpression", - "start": 7474, - "end": 7478, - "loc": { - "start": { - "line": 158, - "column": 31 - }, - "end": { - "line": 158, - "column": 35 - } - } - }, - "property": { - "type": "Identifier", - "start": 7479, - "end": 7488, - "loc": { - "start": { - "line": 158, - "column": 36 - }, - "end": { - "line": 158, - "column": 45 + "property": { + "type": "Identifier", + "start": 7717, + "end": 7724, + "loc": { + "start": { + "line": 182, + "column": 23 + }, + "end": { + "line": 182, + "column": 30 + }, + "identifierName": "forEach" }, - "identifierName": "instances" - }, - "name": "instances" - }, - "computed": false - }, - "body": { - "type": "BlockStatement", - "start": 7490, - "end": 9242, - "loc": { - "start": { - "line": 158, - "column": 47 + "name": "forEach" }, - "end": { - "line": 203, - "column": 9 - } + "computed": false }, - "body": [ + "arguments": [ { - "type": "VariableDeclaration", - "start": 7505, - "end": 7561, + "type": "ArrowFunctionExpression", + "start": 7725, + "end": 9507, "loc": { "start": { - "line": 159, - "column": 12 + "line": 182, + "column": 31 }, "end": { - "line": 159, - "column": 68 + "line": 227, + "column": 9 } }, - "declarations": [ + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ { - "type": "VariableDeclarator", - "start": 7511, - "end": 7560, + "type": "Identifier", + "start": 7726, + "end": 7735, "loc": { "start": { - "line": 159, - "column": 18 + "line": 182, + "column": 32 }, "end": { - "line": 159, - "column": 67 - } - }, - "id": { - "type": "Identifier", - "start": 7511, - "end": 7523, - "loc": { - "start": { - "line": 159, - "column": 18 - }, - "end": { - "line": 159, - "column": 30 - }, - "identifierName": "parallaxInfo" + "line": 182, + "column": 41 }, - "name": "parallaxInfo" + "identifierName": "pInstance" }, - "init": { - "type": "CallExpression", - "start": 7526, - "end": 7560, + "name": "pInstance" + } + ], + "body": { + "type": "BlockStatement", + "start": 7740, + "end": 9507, + "loc": { + "start": { + "line": 182, + "column": 46 + }, + "end": { + "line": 227, + "column": 9 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 7755, + "end": 7812, "loc": { "start": { - "line": 159, - "column": 33 + "line": 183, + "column": 12 }, "end": { - "line": 159, - "column": 67 + "line": 183, + "column": 69 } }, - "callee": { - "type": "MemberExpression", - "start": 7526, - "end": 7550, - "loc": { - "start": { - "line": 159, - "column": 33 - }, - "end": { - "line": 159, - "column": 57 - } - }, - "object": { - "type": "MemberExpression", - "start": 7526, - "end": 7546, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 7761, + "end": 7811, "loc": { "start": { - "line": 159, - "column": 33 + "line": 183, + "column": 18 }, "end": { - "line": 159, - "column": 53 + "line": 183, + "column": 68 } }, - "object": { - "type": "ThisExpression", - "start": 7526, - "end": 7530, + "id": { + "type": "Identifier", + "start": 7761, + "end": 7773, "loc": { "start": { - "line": 159, - "column": 33 + "line": 183, + "column": 18 }, "end": { - "line": 159, - "column": 37 - } - } + "line": 183, + "column": 30 + }, + "identifierName": "parallaxInfo" + }, + "name": "parallaxInfo" }, - "property": { - "type": "Identifier", - "start": 7531, - "end": 7546, + "init": { + "type": "CallExpression", + "start": 7776, + "end": 7811, "loc": { "start": { - "line": 159, - "column": 38 + "line": 183, + "column": 33 }, "end": { - "line": 159, - "column": 53 - }, - "identifierName": "instanceWeakMap" - }, - "name": "instanceWeakMap" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 7547, - "end": 7550, - "loc": { - "start": { - "line": 159, - "column": 54 + "line": 183, + "column": 68 + } }, - "end": { - "line": 159, - "column": 57 + "callee": { + "type": "MemberExpression", + "start": 7776, + "end": 7800, + "loc": { + "start": { + "line": 183, + "column": 33 + }, + "end": { + "line": 183, + "column": 57 + } + }, + "object": { + "type": "MemberExpression", + "start": 7776, + "end": 7796, + "loc": { + "start": { + "line": 183, + "column": 33 + }, + "end": { + "line": 183, + "column": 53 + } + }, + "object": { + "type": "ThisExpression", + "start": 7776, + "end": 7780, + "loc": { + "start": { + "line": 183, + "column": 33 + }, + "end": { + "line": 183, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "start": 7781, + "end": 7796, + "loc": { + "start": { + "line": 183, + "column": 38 + }, + "end": { + "line": 183, + "column": 53 + }, + "identifierName": "instanceWeakMap" + }, + "name": "instanceWeakMap" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 7797, + "end": 7800, + "loc": { + "start": { + "line": 183, + "column": 54 + }, + "end": { + "line": 183, + "column": 57 + }, + "identifierName": "get" + }, + "name": "get" + }, + "computed": false }, - "identifierName": "get" - }, - "name": "get" - }, - "computed": false - }, - "arguments": [ + "arguments": [ + { + "type": "Identifier", + "start": 7801, + "end": 7810, + "loc": { + "start": { + "line": 183, + "column": 58 + }, + "end": { + "line": 183, + "column": 67 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + } + ] + } + } + ], + "kind": "const", + "trailingComments": [ { - "type": "Identifier", - "start": 7551, - "end": 7559, + "type": "CommentLine", + "value": " Move the instance with the camera if the parallax is set to 0", + "start": 7828, + "end": 7892, "loc": { "start": { - "line": 159, - "column": 58 + "line": 185, + "column": 12 }, "end": { - "line": 159, - "column": 66 - }, - "identifierName": "instance" - }, - "name": "instance" + "line": 185, + "column": 76 + } + } } ] - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " Move the instance with the camera if the parallax is set to 0", - "start": 7577, - "end": 7641, - "loc": { - "start": { - "line": 161, - "column": 12 - }, - "end": { - "line": 161, - "column": 76 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 7655, - "end": 7698, - "loc": { - "start": { - "line": 162, - "column": 12 - }, - "end": { - "line": 162, - "column": 55 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7661, - "end": 7697, - "loc": { - "start": { - "line": 162, - "column": 18 - }, - "end": { - "line": 162, - "column": 54 - } }, - "id": { - "type": "Identifier", - "start": 7661, - "end": 7674, - "loc": { - "start": { - "line": 162, - "column": 18 - }, - "end": { - "line": 162, - "column": 31 - }, - "identifierName": "isBackgroundX" - }, - "name": "isBackgroundX", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 7677, - "end": 7697, + { + "type": "VariableDeclaration", + "start": 7906, + "end": 7949, "loc": { "start": { - "line": 162, - "column": 34 + "line": 186, + "column": 12 }, "end": { - "line": 162, - "column": 54 + "line": 186, + "column": 55 } }, - "left": { - "type": "MemberExpression", - "start": 7677, - "end": 7691, - "loc": { - "start": { - "line": 162, - "column": 34 - }, - "end": { - "line": 162, - "column": 48 - } - }, - "object": { - "type": "Identifier", - "start": 7677, - "end": 7689, - "loc": { - "start": { - "line": 162, - "column": 34 - }, - "end": { - "line": 162, - "column": 46 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 7690, - "end": 7691, - "loc": { - "start": { - "line": 162, - "column": 47 - }, - "end": { - "line": 162, - "column": 48 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 7696, - "end": 7697, - "loc": { - "start": { - "line": 162, - "column": 53 - }, - "end": { - "line": 162, - "column": 54 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " Move the instance with the camera if the parallax is set to 0", - "start": 7577, - "end": 7641, - "loc": { - "start": { - "line": 161, - "column": 12 - }, - "end": { - "line": 161, - "column": 76 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 7712, - "end": 7755, - "loc": { - "start": { - "line": 163, - "column": 12 - }, - "end": { - "line": 163, - "column": 55 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7718, - "end": 7754, - "loc": { - "start": { - "line": 163, - "column": 18 - }, - "end": { - "line": 163, - "column": 54 - } - }, - "id": { - "type": "Identifier", - "start": 7718, - "end": 7731, - "loc": { - "start": { - "line": 163, - "column": 18 - }, - "end": { - "line": 163, - "column": 31 - }, - "identifierName": "isBackgroundY" - }, - "name": "isBackgroundY" - }, - "init": { - "type": "BinaryExpression", - "start": 7734, - "end": 7754, - "loc": { - "start": { - "line": 163, - "column": 34 - }, - "end": { - "line": 163, - "column": 54 - } - }, - "left": { - "type": "MemberExpression", - "start": 7734, - "end": 7748, - "loc": { - "start": { - "line": 163, - "column": 34 - }, - "end": { - "line": 163, - "column": 48 - } - }, - "object": { - "type": "Identifier", - "start": 7734, - "end": 7746, - "loc": { - "start": { - "line": 163, - "column": 34 - }, - "end": { - "line": 163, - "column": 46 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 7747, - "end": 7748, - "loc": { - "start": { - "line": 163, - "column": 47 - }, - "end": { - "line": 163, - "column": 48 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 7753, - "end": 7754, - "loc": { - "start": { - "line": 163, - "column": 53 - }, - "end": { - "line": 163, - "column": 54 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " Position to set the instance to.", - "start": 7771, - "end": 7806, - "loc": { - "start": { - "line": 165, - "column": 12 - }, - "end": { - "line": 165, - "column": 47 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 7820, - "end": 7826, - "loc": { - "start": { - "line": 166, - "column": 12 - }, - "end": { - "line": 166, - "column": 18 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7824, - "end": 7825, - "loc": { - "start": { - "line": 166, - "column": 16 - }, - "end": { - "line": 166, - "column": 17 - } - }, - "id": { - "type": "Identifier", - "start": 7824, - "end": 7825, - "loc": { - "start": { - "line": 166, - "column": 16 - }, - "end": { - "line": 166, - "column": 17 - }, - "identifierName": "x" - }, - "name": "x", - "leadingComments": null - }, - "init": null, - "leadingComments": null - } - ], - "kind": "let", - "leadingComments": [ - { - "type": "CommentLine", - "value": " Position to set the instance to.", - "start": 7771, - "end": 7806, - "loc": { - "start": { - "line": 165, - "column": 12 - }, - "end": { - "line": 165, - "column": 47 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 7840, - "end": 7846, - "loc": { - "start": { - "line": 167, - "column": 12 - }, - "end": { - "line": 167, - "column": 18 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7844, - "end": 7845, - "loc": { - "start": { - "line": 167, - "column": 16 - }, - "end": { - "line": 167, - "column": 17 - } - }, - "id": { - "type": "Identifier", - "start": 7844, - "end": 7845, - "loc": { - "start": { - "line": 167, - "column": 16 - }, - "end": { - "line": 167, - "column": 17 - }, - "identifierName": "y" - }, - "name": "y" - }, - "init": null - } - ], - "kind": "let" - }, - { - "type": "IfStatement", - "start": 7862, - "end": 8129, - "loc": { - "start": { - "line": 169, - "column": 12 - }, - "end": { - "line": 175, - "column": 13 - } - }, - "test": { - "type": "Identifier", - "start": 7866, - "end": 7879, - "loc": { - "start": { - "line": 169, - "column": 16 - }, - "end": { - "line": 169, - "column": 29 - }, - "identifierName": "isBackgroundX" - }, - "name": "isBackgroundX" - }, - "consequent": { - "type": "BlockStatement", - "start": 7881, - "end": 7953, - "loc": { - "start": { - "line": 169, - "column": 31 - }, - "end": { - "line": 171, - "column": 13 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7900, - "end": 7938, - "loc": { - "start": { - "line": 170, - "column": 16 - }, - "end": { - "line": 170, - "column": 54 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 7900, - "end": 7937, - "loc": { - "start": { - "line": 170, - "column": 16 - }, - "end": { - "line": 170, - "column": 53 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 7900, - "end": 7901, - "loc": { - "start": { - "line": 170, - "column": 16 - }, - "end": { - "line": 170, - "column": 17 - }, - "identifierName": "x" - }, - "name": "x" - }, - "right": { - "type": "BinaryExpression", - "start": 7904, - "end": 7937, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 7912, + "end": 7948, "loc": { "start": { - "line": 170, - "column": 20 + "line": 186, + "column": 18 }, "end": { - "line": 170, - "column": 53 + "line": 186, + "column": 54 } }, - "left": { + "id": { "type": "Identifier", - "start": 7904, - "end": 7911, + "start": 7912, + "end": 7925, "loc": { "start": { - "line": 170, - "column": 20 + "line": 186, + "column": 18 }, "end": { - "line": 170, - "column": 27 + "line": 186, + "column": 31 }, - "identifierName": "cameraX" + "identifierName": "isBackgroundX" }, - "name": "cameraX" + "name": "isBackgroundX", + "leadingComments": null }, - "operator": "-", - "right": { + "init": { "type": "BinaryExpression", - "start": 7914, - "end": 7937, + "start": 7928, + "end": 7948, "loc": { "start": { - "line": 170, - "column": 30 + "line": 186, + "column": 34 }, "end": { - "line": 170, - "column": 53 + "line": 186, + "column": 54 } }, "left": { "type": "MemberExpression", - "start": 7914, - "end": 7933, + "start": 7928, + "end": 7942, "loc": { "start": { - "line": 170, - "column": 30 + "line": 186, + "column": 34 }, "end": { - "line": 170, - "column": 49 + "line": 186, + "column": 48 } }, "object": { - "type": "MemberExpression", - "start": 7914, - "end": 7927, + "type": "Identifier", + "start": 7928, + "end": 7940, "loc": { "start": { - "line": 170, - "column": 30 + "line": 186, + "column": 34 }, "end": { - "line": 170, - "column": 43 - } - }, - "object": { - "type": "Identifier", - "start": 7914, - "end": 7922, - "loc": { - "start": { - "line": 170, - "column": 30 - }, - "end": { - "line": 170, - "column": 38 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 7923, - "end": 7927, - "loc": { - "start": { - "line": 170, - "column": 39 - }, - "end": { - "line": 170, - "column": 43 - }, - "identifierName": "icon" + "line": 186, + "column": 46 }, - "name": "icon" + "identifierName": "parallaxInfo" }, - "computed": false + "name": "parallaxInfo" }, "property": { "type": "Identifier", - "start": 7928, - "end": 7933, + "start": 7941, + "end": 7942, "loc": { "start": { - "line": 170, - "column": 44 + "line": 186, + "column": 47 }, "end": { - "line": 170, - "column": 49 + "line": 186, + "column": 48 }, - "identifierName": "width" + "identifierName": "x" }, - "name": "width" + "name": "x" }, "computed": false }, - "operator": "/", + "operator": "===", "right": { "type": "NumericLiteral", - "start": 7936, - "end": 7937, + "start": 7947, + "end": 7948, "loc": { "start": { - "line": 170, - "column": 52 + "line": 186, + "column": 53 }, "end": { - "line": 170, - "column": 53 + "line": 186, + "column": 54 } }, "extra": { - "rawValue": 2, - "raw": "2" + "rawValue": 0, + "raw": "0" }, - "value": 2 + "value": 0 + } + }, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "CommentLine", + "value": " Move the instance with the camera if the parallax is set to 0", + "start": 7828, + "end": 7892, + "loc": { + "start": { + "line": 185, + "column": 12 + }, + "end": { + "line": 185, + "column": 76 } } } - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 7959, - "end": 8129, - "loc": { - "start": { - "line": 171, - "column": 19 + ] }, - "end": { - "line": 175, - "column": 13 - } - }, - "body": [ { "type": "VariableDeclaration", - "start": 7978, - "end": 8019, + "start": 7963, + "end": 8006, "loc": { "start": { - "line": 172, - "column": 16 + "line": 187, + "column": 12 }, "end": { - "line": 172, - "column": 57 + "line": 187, + "column": 55 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 7982, - "end": 8018, + "start": 7969, + "end": 8005, "loc": { "start": { - "line": 172, - "column": 20 + "line": 187, + "column": 18 }, "end": { - "line": 172, - "column": 56 + "line": 187, + "column": 54 } }, "id": { "type": "Identifier", - "start": 7982, - "end": 7988, + "start": 7969, + "end": 7982, "loc": { "start": { - "line": 172, - "column": 20 + "line": 187, + "column": 18 }, "end": { - "line": 172, - "column": 26 + "line": 187, + "column": 31 }, - "identifierName": "deltaX" + "identifierName": "isBackgroundY" }, - "name": "deltaX" + "name": "isBackgroundY" }, "init": { "type": "BinaryExpression", - "start": 7991, - "end": 8018, + "start": 7985, + "end": 8005, "loc": { "start": { - "line": 172, - "column": 29 + "line": 187, + "column": 34 }, "end": { - "line": 172, - "column": 56 + "line": 187, + "column": 54 } }, "left": { - "type": "Identifier", - "start": 7991, - "end": 7998, - "loc": { - "start": { - "line": 172, - "column": 29 - }, - "end": { - "line": 172, - "column": 36 - }, - "identifierName": "cameraX" - }, - "name": "cameraX" - }, - "operator": "-", - "right": { "type": "MemberExpression", - "start": 8001, - "end": 8018, + "start": 7985, + "end": 7999, "loc": { "start": { - "line": 172, - "column": 39 + "line": 187, + "column": 34 }, "end": { - "line": 172, - "column": 56 + "line": 187, + "column": 48 } }, "object": { - "type": "MemberExpression", - "start": 8001, - "end": 8016, + "type": "Identifier", + "start": 7985, + "end": 7997, "loc": { "start": { - "line": 172, - "column": 39 + "line": 187, + "column": 34 }, "end": { - "line": 172, - "column": 54 - } - }, - "object": { - "type": "ThisExpression", - "start": 8001, - "end": 8005, - "loc": { - "start": { - "line": 172, - "column": 39 - }, - "end": { - "line": 172, - "column": 43 - } - } - }, - "property": { - "type": "Identifier", - "start": 8006, - "end": 8016, - "loc": { - "start": { - "line": 172, - "column": 44 - }, - "end": { - "line": 172, - "column": 54 - }, - "identifierName": "lastCamPos" + "line": 187, + "column": 46 }, - "name": "lastCamPos" + "identifierName": "parallaxInfo" }, - "computed": false + "name": "parallaxInfo" }, "property": { "type": "Identifier", - "start": 8017, - "end": 8018, + "start": 7998, + "end": 7999, "loc": { "start": { - "line": 172, - "column": 55 + "line": 187, + "column": 47 }, "end": { - "line": 172, - "column": 56 + "line": 187, + "column": 48 }, - "identifierName": "x" + "identifierName": "y" }, - "name": "x" + "name": "y" }, "computed": false - } - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 8037, - "end": 8073, + }, + "operator": "===", + "right": { + "type": "NumericLiteral", + "start": 8004, + "end": 8005, + "loc": { + "start": { + "line": 187, + "column": 53 + }, + "end": { + "line": 187, + "column": 54 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + } + } + ], + "kind": "const", + "trailingComments": [ + { + "type": "CommentLine", + "value": " Position to set the instance to.", + "start": 8022, + "end": 8057, + "loc": { + "start": { + "line": 189, + "column": 12 + }, + "end": { + "line": 189, + "column": 47 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 8071, + "end": 8077, "loc": { "start": { - "line": 173, - "column": 16 + "line": 190, + "column": 12 }, "end": { - "line": 173, - "column": 52 + "line": 190, + "column": 18 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 8041, - "end": 8072, + "start": 8075, + "end": 8076, "loc": { "start": { - "line": 173, - "column": 20 + "line": 190, + "column": 16 }, "end": { - "line": 173, - "column": 51 + "line": 190, + "column": 17 } }, "id": { "type": "Identifier", - "start": 8041, - "end": 8046, + "start": 8075, + "end": 8076, "loc": { "start": { - "line": 173, - "column": 20 + "line": 190, + "column": 16 }, "end": { - "line": 173, - "column": 25 + "line": 190, + "column": 17 }, - "identifierName": "distX" + "identifierName": "x" }, - "name": "distX" + "name": "x", + "leadingComments": null }, - "init": { - "type": "BinaryExpression", - "start": 8049, - "end": 8072, - "loc": { - "start": { - "line": 173, - "column": 28 - }, - "end": { - "line": 173, - "column": 51 - } - }, - "left": { - "type": "Identifier", - "start": 8049, - "end": 8055, - "loc": { - "start": { - "line": 173, - "column": 28 - }, - "end": { - "line": 173, - "column": 34 - }, - "identifierName": "deltaX" - }, - "name": "deltaX" + "init": null, + "leadingComments": null + } + ], + "kind": "let", + "leadingComments": [ + { + "type": "CommentLine", + "value": " Position to set the instance to.", + "start": 8022, + "end": 8057, + "loc": { + "start": { + "line": 189, + "column": 12 }, - "operator": "*", - "right": { - "type": "MemberExpression", - "start": 8058, - "end": 8072, - "loc": { - "start": { - "line": 173, - "column": 37 - }, - "end": { - "line": 173, - "column": 51 - } - }, - "object": { - "type": "Identifier", - "start": 8058, - "end": 8070, - "loc": { - "start": { - "line": 173, - "column": 37 - }, - "end": { - "line": 173, - "column": 49 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 8071, - "end": 8072, - "loc": { - "start": { - "line": 173, - "column": 50 - }, - "end": { - "line": 173, - "column": 51 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false + "end": { + "line": 189, + "column": 47 } } } - ], - "kind": "let" + ] }, { - "type": "ExpressionStatement", + "type": "VariableDeclaration", "start": 8091, - "end": 8114, + "end": 8097, "loc": { "start": { - "line": 174, - "column": 16 + "line": 191, + "column": 12 }, "end": { - "line": 174, - "column": 39 + "line": 191, + "column": 18 } }, - "expression": { - "type": "AssignmentExpression", - "start": 8091, - "end": 8113, - "loc": { - "start": { - "line": 174, - "column": 16 - }, - "end": { - "line": 174, - "column": 38 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 8091, - "end": 8092, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 8095, + "end": 8096, "loc": { "start": { - "line": 174, + "line": 191, "column": 16 }, "end": { - "line": 174, + "line": 191, "column": 17 - }, - "identifierName": "x" - }, - "name": "x" - }, - "right": { - "type": "BinaryExpression", - "start": 8095, - "end": 8113, - "loc": { - "start": { - "line": 174, - "column": 20 - }, - "end": { - "line": 174, - "column": 38 } }, - "left": { - "type": "MemberExpression", + "id": { + "type": "Identifier", "start": 8095, - "end": 8105, + "end": 8096, "loc": { "start": { - "line": 174, - "column": 20 + "line": 191, + "column": 16 }, "end": { - "line": 174, - "column": 30 - } - }, - "object": { - "type": "Identifier", - "start": 8095, - "end": 8103, - "loc": { - "start": { - "line": 174, - "column": 20 - }, - "end": { - "line": 174, - "column": 28 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 8104, - "end": 8105, - "loc": { - "start": { - "line": 174, - "column": 29 - }, - "end": { - "line": 174, - "column": 30 - }, - "identifierName": "x" + "line": 191, + "column": 17 }, - "name": "x" + "identifierName": "y" }, - "computed": false + "name": "y" }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 8108, - "end": 8113, - "loc": { - "start": { - "line": 174, - "column": 33 - }, - "end": { - "line": 174, - "column": 38 - }, - "identifierName": "distX" - }, - "name": "distX" - } + "init": null } - } - } - ], - "directives": [] - } - }, - { - "type": "IfStatement", - "start": 8145, - "end": 8413, - "loc": { - "start": { - "line": 177, - "column": 12 - }, - "end": { - "line": 183, - "column": 13 - } - }, - "test": { - "type": "Identifier", - "start": 8149, - "end": 8162, - "loc": { - "start": { - "line": 177, - "column": 16 - }, - "end": { - "line": 177, - "column": 29 - }, - "identifierName": "isBackgroundY" - }, - "name": "isBackgroundY" - }, - "consequent": { - "type": "BlockStatement", - "start": 8164, - "end": 8237, - "loc": { - "start": { - "line": 177, - "column": 31 + ], + "kind": "let" }, - "end": { - "line": 179, - "column": 13 - } - }, - "body": [ { - "type": "ExpressionStatement", - "start": 8183, - "end": 8222, + "type": "IfStatement", + "start": 8113, + "end": 8382, "loc": { "start": { - "line": 178, - "column": 16 + "line": 193, + "column": 12 }, "end": { - "line": 178, - "column": 55 + "line": 199, + "column": 13 } }, - "expression": { - "type": "AssignmentExpression", - "start": 8183, - "end": 8221, + "test": { + "type": "Identifier", + "start": 8117, + "end": 8130, "loc": { "start": { - "line": 178, + "line": 193, "column": 16 }, "end": { - "line": 178, - "column": 54 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 8183, - "end": 8184, - "loc": { - "start": { - "line": 178, - "column": 16 - }, - "end": { - "line": 178, - "column": 17 - }, - "identifierName": "y" + "line": 193, + "column": 29 }, - "name": "y" + "identifierName": "isBackgroundX" }, - "right": { - "type": "BinaryExpression", - "start": 8187, - "end": 8221, - "loc": { - "start": { - "line": 178, - "column": 20 - }, - "end": { - "line": 178, - "column": 54 - } - }, - "left": { - "type": "Identifier", - "start": 8187, - "end": 8194, - "loc": { - "start": { - "line": 178, - "column": 20 - }, - "end": { - "line": 178, - "column": 27 - }, - "identifierName": "cameraY" - }, - "name": "cameraY" + "name": "isBackgroundX" + }, + "consequent": { + "type": "BlockStatement", + "start": 8132, + "end": 8205, + "loc": { + "start": { + "line": 193, + "column": 31 }, - "operator": "-", - "right": { - "type": "BinaryExpression", - "start": 8197, - "end": 8221, + "end": { + "line": 195, + "column": 13 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 8151, + "end": 8190, "loc": { "start": { - "line": 178, - "column": 30 + "line": 194, + "column": 16 }, "end": { - "line": 178, - "column": 54 + "line": 194, + "column": 55 } }, - "left": { - "type": "MemberExpression", - "start": 8197, - "end": 8217, + "expression": { + "type": "AssignmentExpression", + "start": 8151, + "end": 8189, "loc": { "start": { - "line": 178, - "column": 30 + "line": 194, + "column": 16 }, "end": { - "line": 178, - "column": 50 + "line": 194, + "column": 54 } }, - "object": { - "type": "MemberExpression", - "start": 8197, - "end": 8210, + "operator": "=", + "left": { + "type": "Identifier", + "start": 8151, + "end": 8152, "loc": { "start": { - "line": 178, - "column": 30 + "line": 194, + "column": 16 }, "end": { - "line": 178, - "column": 43 + "line": 194, + "column": 17 + }, + "identifierName": "x" + }, + "name": "x" + }, + "right": { + "type": "BinaryExpression", + "start": 8155, + "end": 8189, + "loc": { + "start": { + "line": 194, + "column": 20 + }, + "end": { + "line": 194, + "column": 54 } }, - "object": { + "left": { "type": "Identifier", - "start": 8197, - "end": 8205, + "start": 8155, + "end": 8162, "loc": { "start": { - "line": 178, - "column": 30 + "line": 194, + "column": 20 }, "end": { - "line": 178, - "column": 38 + "line": 194, + "column": 27 }, - "identifierName": "instance" + "identifierName": "cameraX" }, - "name": "instance" + "name": "cameraX" }, - "property": { - "type": "Identifier", - "start": 8206, - "end": 8210, + "operator": "-", + "right": { + "type": "BinaryExpression", + "start": 8165, + "end": 8189, "loc": { "start": { - "line": 178, - "column": 39 + "line": 194, + "column": 30 }, "end": { - "line": 178, - "column": 43 + "line": 194, + "column": 54 + } + }, + "left": { + "type": "MemberExpression", + "start": 8165, + "end": 8185, + "loc": { + "start": { + "line": 194, + "column": 30 + }, + "end": { + "line": 194, + "column": 50 + } + }, + "object": { + "type": "MemberExpression", + "start": 8165, + "end": 8179, + "loc": { + "start": { + "line": 194, + "column": 30 + }, + "end": { + "line": 194, + "column": 44 + } + }, + "object": { + "type": "Identifier", + "start": 8165, + "end": 8174, + "loc": { + "start": { + "line": 194, + "column": 30 + }, + "end": { + "line": 194, + "column": 39 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 8175, + "end": 8179, + "loc": { + "start": { + "line": 194, + "column": 40 + }, + "end": { + "line": 194, + "column": 44 + }, + "identifierName": "icon" + }, + "name": "icon" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 8180, + "end": 8185, + "loc": { + "start": { + "line": 194, + "column": 45 + }, + "end": { + "line": 194, + "column": 50 + }, + "identifierName": "width" + }, + "name": "width" }, - "identifierName": "icon" + "computed": false }, - "name": "icon" - }, - "computed": false + "operator": "/", + "right": { + "type": "NumericLiteral", + "start": 8188, + "end": 8189, + "loc": { + "start": { + "line": 194, + "column": 53 + }, + "end": { + "line": 194, + "column": 54 + } + }, + "extra": { + "rawValue": 2, + "raw": "2" + }, + "value": 2 + } + } + } + } + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 8211, + "end": 8382, + "loc": { + "start": { + "line": 195, + "column": 19 + }, + "end": { + "line": 199, + "column": 13 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 8230, + "end": 8271, + "loc": { + "start": { + "line": 196, + "column": 16 }, - "property": { - "type": "Identifier", - "start": 8211, - "end": 8217, + "end": { + "line": 196, + "column": 57 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 8234, + "end": 8270, "loc": { "start": { - "line": 178, - "column": 44 + "line": 196, + "column": 20 }, "end": { - "line": 178, - "column": 50 - }, - "identifierName": "height" + "line": 196, + "column": 56 + } }, - "name": "height" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 8220, - "end": 8221, - "loc": { - "start": { - "line": 178, - "column": 53 + "id": { + "type": "Identifier", + "start": 8234, + "end": 8240, + "loc": { + "start": { + "line": 196, + "column": 20 + }, + "end": { + "line": 196, + "column": 26 + }, + "identifierName": "deltaX" + }, + "name": "deltaX" }, - "end": { - "line": 178, - "column": 54 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - } - } - } - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 8243, - "end": 8413, - "loc": { - "start": { - "line": 179, - "column": 19 - }, - "end": { - "line": 183, - "column": 13 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 8262, - "end": 8303, - "loc": { - "start": { - "line": 180, - "column": 16 - }, - "end": { - "line": 180, - "column": 57 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8266, - "end": 8302, - "loc": { - "start": { - "line": 180, - "column": 20 - }, - "end": { - "line": 180, - "column": 56 - } - }, - "id": { - "type": "Identifier", - "start": 8266, - "end": 8272, - "loc": { - "start": { - "line": 180, - "column": 20 - }, - "end": { - "line": 180, - "column": 26 - }, - "identifierName": "deltaY" - }, - "name": "deltaY" + "init": { + "type": "BinaryExpression", + "start": 8243, + "end": 8270, + "loc": { + "start": { + "line": 196, + "column": 29 + }, + "end": { + "line": 196, + "column": 56 + } + }, + "left": { + "type": "Identifier", + "start": 8243, + "end": 8250, + "loc": { + "start": { + "line": 196, + "column": 29 + }, + "end": { + "line": 196, + "column": 36 + }, + "identifierName": "cameraX" + }, + "name": "cameraX" + }, + "operator": "-", + "right": { + "type": "MemberExpression", + "start": 8253, + "end": 8270, + "loc": { + "start": { + "line": 196, + "column": 39 + }, + "end": { + "line": 196, + "column": 56 + } + }, + "object": { + "type": "MemberExpression", + "start": 8253, + "end": 8268, + "loc": { + "start": { + "line": 196, + "column": 39 + }, + "end": { + "line": 196, + "column": 54 + } + }, + "object": { + "type": "ThisExpression", + "start": 8253, + "end": 8257, + "loc": { + "start": { + "line": 196, + "column": 39 + }, + "end": { + "line": 196, + "column": 43 + } + } + }, + "property": { + "type": "Identifier", + "start": 8258, + "end": 8268, + "loc": { + "start": { + "line": 196, + "column": 44 + }, + "end": { + "line": 196, + "column": 54 + }, + "identifierName": "lastCamPos" + }, + "name": "lastCamPos" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 8269, + "end": 8270, + "loc": { + "start": { + "line": 196, + "column": 55 + }, + "end": { + "line": 196, + "column": 56 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + } + } + } + ], + "kind": "let" }, - "init": { - "type": "BinaryExpression", - "start": 8275, - "end": 8302, + { + "type": "VariableDeclaration", + "start": 8289, + "end": 8325, "loc": { "start": { - "line": 180, - "column": 29 + "line": 197, + "column": 16 }, "end": { - "line": 180, - "column": 56 + "line": 197, + "column": 52 } }, - "left": { - "type": "Identifier", - "start": 8275, - "end": 8282, - "loc": { - "start": { - "line": 180, - "column": 29 - }, - "end": { - "line": 180, - "column": 36 - }, - "identifierName": "cameraY" - }, - "name": "cameraY" - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 8285, - "end": 8302, - "loc": { - "start": { - "line": 180, - "column": 39 - }, - "end": { - "line": 180, - "column": 56 - } - }, - "object": { - "type": "MemberExpression", - "start": 8285, - "end": 8300, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 8293, + "end": 8324, "loc": { "start": { - "line": 180, - "column": 39 + "line": 197, + "column": 20 }, "end": { - "line": 180, - "column": 54 + "line": 197, + "column": 51 } }, - "object": { - "type": "ThisExpression", - "start": 8285, - "end": 8289, + "id": { + "type": "Identifier", + "start": 8293, + "end": 8298, "loc": { "start": { - "line": 180, - "column": 39 + "line": 197, + "column": 20 }, "end": { - "line": 180, - "column": 43 - } - } + "line": 197, + "column": 25 + }, + "identifierName": "distX" + }, + "name": "distX" }, - "property": { - "type": "Identifier", - "start": 8290, - "end": 8300, + "init": { + "type": "BinaryExpression", + "start": 8301, + "end": 8324, "loc": { "start": { - "line": 180, - "column": 44 + "line": 197, + "column": 28 }, "end": { - "line": 180, - "column": 54 - }, - "identifierName": "lastCamPos" - }, - "name": "lastCamPos" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 8301, - "end": 8302, - "loc": { - "start": { - "line": 180, - "column": 55 + "line": 197, + "column": 51 + } }, - "end": { - "line": 180, - "column": 56 + "left": { + "type": "Identifier", + "start": 8301, + "end": 8307, + "loc": { + "start": { + "line": 197, + "column": 28 + }, + "end": { + "line": 197, + "column": 34 + }, + "identifierName": "deltaX" + }, + "name": "deltaX" }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 8321, - "end": 8357, - "loc": { - "start": { - "line": 181, - "column": 16 - }, - "end": { - "line": 181, - "column": 52 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8325, - "end": 8356, - "loc": { - "start": { - "line": 181, - "column": 20 - }, - "end": { - "line": 181, - "column": 51 - } - }, - "id": { - "type": "Identifier", - "start": 8325, - "end": 8330, - "loc": { - "start": { - "line": 181, - "column": 20 - }, - "end": { - "line": 181, - "column": 25 - }, - "identifierName": "distY" - }, - "name": "distY" + "operator": "*", + "right": { + "type": "MemberExpression", + "start": 8310, + "end": 8324, + "loc": { + "start": { + "line": 197, + "column": 37 + }, + "end": { + "line": 197, + "column": 51 + } + }, + "object": { + "type": "Identifier", + "start": 8310, + "end": 8322, + "loc": { + "start": { + "line": 197, + "column": 37 + }, + "end": { + "line": 197, + "column": 49 + }, + "identifierName": "parallaxInfo" + }, + "name": "parallaxInfo" + }, + "property": { + "type": "Identifier", + "start": 8323, + "end": 8324, + "loc": { + "start": { + "line": 197, + "column": 50 + }, + "end": { + "line": 197, + "column": 51 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + } + } + } + ], + "kind": "let" }, - "init": { - "type": "BinaryExpression", - "start": 8333, - "end": 8356, + { + "type": "ExpressionStatement", + "start": 8343, + "end": 8367, "loc": { "start": { - "line": 181, - "column": 28 + "line": 198, + "column": 16 }, "end": { - "line": 181, - "column": 51 + "line": 198, + "column": 40 } }, - "left": { - "type": "Identifier", - "start": 8333, - "end": 8339, - "loc": { - "start": { - "line": 181, - "column": 28 - }, - "end": { - "line": 181, - "column": 34 - }, - "identifierName": "deltaY" - }, - "name": "deltaY" - }, - "operator": "*", - "right": { - "type": "MemberExpression", - "start": 8342, - "end": 8356, + "expression": { + "type": "AssignmentExpression", + "start": 8343, + "end": 8366, "loc": { "start": { - "line": 181, - "column": 37 + "line": 198, + "column": 16 }, "end": { - "line": 181, - "column": 51 + "line": 198, + "column": 39 } }, - "object": { + "operator": "=", + "left": { "type": "Identifier", - "start": 8342, - "end": 8354, + "start": 8343, + "end": 8344, "loc": { "start": { - "line": 181, - "column": 37 + "line": 198, + "column": 16 }, "end": { - "line": 181, - "column": 49 + "line": 198, + "column": 17 }, - "identifierName": "parallaxInfo" + "identifierName": "x" }, - "name": "parallaxInfo" + "name": "x" }, - "property": { - "type": "Identifier", - "start": 8355, - "end": 8356, + "right": { + "type": "BinaryExpression", + "start": 8347, + "end": 8366, "loc": { "start": { - "line": 181, - "column": 50 + "line": 198, + "column": 20 }, "end": { - "line": 181, - "column": 51 + "line": 198, + "column": 39 + } + }, + "left": { + "type": "MemberExpression", + "start": 8347, + "end": 8358, + "loc": { + "start": { + "line": 198, + "column": 20 + }, + "end": { + "line": 198, + "column": 31 + } }, - "identifierName": "y" + "object": { + "type": "Identifier", + "start": 8347, + "end": 8356, + "loc": { + "start": { + "line": 198, + "column": 20 + }, + "end": { + "line": 198, + "column": 29 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 8357, + "end": 8358, + "loc": { + "start": { + "line": 198, + "column": 30 + }, + "end": { + "line": 198, + "column": 31 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false }, - "name": "y" - }, - "computed": false + "operator": "+", + "right": { + "type": "Identifier", + "start": 8361, + "end": 8366, + "loc": { + "start": { + "line": 198, + "column": 34 + }, + "end": { + "line": 198, + "column": 39 + }, + "identifierName": "distX" + }, + "name": "distX" + } + } } } - } - ], - "kind": "let" + ], + "directives": [] + } }, { - "type": "ExpressionStatement", - "start": 8375, - "end": 8398, + "type": "IfStatement", + "start": 8398, + "end": 8668, "loc": { "start": { - "line": 182, - "column": 16 + "line": 201, + "column": 12 }, "end": { - "line": 182, - "column": 39 + "line": 207, + "column": 13 } }, - "expression": { - "type": "AssignmentExpression", - "start": 8375, - "end": 8397, + "test": { + "type": "Identifier", + "start": 8402, + "end": 8415, "loc": { "start": { - "line": 182, + "line": 201, "column": 16 }, "end": { - "line": 182, - "column": 38 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 8375, - "end": 8376, - "loc": { - "start": { - "line": 182, - "column": 16 - }, - "end": { - "line": 182, - "column": 17 - }, - "identifierName": "y" + "line": 201, + "column": 29 }, - "name": "y" + "identifierName": "isBackgroundY" }, - "right": { - "type": "BinaryExpression", - "start": 8379, - "end": 8397, - "loc": { - "start": { - "line": 182, - "column": 20 - }, - "end": { - "line": 182, - "column": 38 - } + "name": "isBackgroundY" + }, + "consequent": { + "type": "BlockStatement", + "start": 8417, + "end": 8491, + "loc": { + "start": { + "line": 201, + "column": 31 }, - "left": { - "type": "MemberExpression", - "start": 8379, - "end": 8389, + "end": { + "line": 203, + "column": 13 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 8436, + "end": 8476, "loc": { "start": { - "line": 182, - "column": 20 + "line": 202, + "column": 16 }, "end": { - "line": 182, - "column": 30 + "line": 202, + "column": 56 } }, - "object": { - "type": "Identifier", - "start": 8379, - "end": 8387, + "expression": { + "type": "AssignmentExpression", + "start": 8436, + "end": 8475, "loc": { "start": { - "line": 182, - "column": 20 + "line": 202, + "column": 16 }, "end": { - "line": 182, - "column": 28 - }, - "identifierName": "instance" + "line": 202, + "column": 55 + } }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 8388, - "end": 8389, - "loc": { - "start": { - "line": 182, - "column": 29 - }, - "end": { - "line": 182, - "column": 30 + "operator": "=", + "left": { + "type": "Identifier", + "start": 8436, + "end": 8437, + "loc": { + "start": { + "line": 202, + "column": 16 + }, + "end": { + "line": 202, + "column": 17 + }, + "identifierName": "y" }, - "identifierName": "y" + "name": "y" }, - "name": "y" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 8392, - "end": 8397, - "loc": { - "start": { - "line": 182, - "column": 33 - }, - "end": { - "line": 182, - "column": 38 - }, - "identifierName": "distY" - }, - "name": "distY" - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " Set the position", - "start": 8429, - "end": 8448, - "loc": { - "start": { - "line": 185, - "column": 12 - }, - "end": { - "line": 185, - "column": 31 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 8462, - "end": 8477, - "loc": { - "start": { - "line": 186, - "column": 12 - }, - "end": { - "line": 186, - "column": 27 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 8462, - "end": 8476, - "loc": { - "start": { - "line": 186, - "column": 12 - }, - "end": { - "line": 186, - "column": 26 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 8462, - "end": 8472, - "loc": { - "start": { - "line": 186, - "column": 12 - }, - "end": { - "line": 186, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 8462, - "end": 8470, - "loc": { - "start": { - "line": 186, - "column": 12 - }, - "end": { - "line": 186, - "column": 20 - }, - "identifierName": "instance" - }, - "name": "instance", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 8471, - "end": 8472, - "loc": { - "start": { - "line": 186, - "column": 21 - }, - "end": { - "line": 186, - "column": 22 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false, - "leadingComments": null - }, - "right": { - "type": "Identifier", - "start": 8475, - "end": 8476, - "loc": { - "start": { - "line": 186, - "column": 25 - }, - "end": { - "line": 186, - "column": 26 - }, - "identifierName": "x" - }, - "name": "x" - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Set the position", - "start": 8429, - "end": 8448, - "loc": { - "start": { - "line": 185, - "column": 12 - }, - "end": { - "line": 185, - "column": 31 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 8491, - "end": 8506, - "loc": { - "start": { - "line": 187, - "column": 12 - }, - "end": { - "line": 187, - "column": 27 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 8491, - "end": 8505, - "loc": { - "start": { - "line": 187, - "column": 12 - }, - "end": { - "line": 187, - "column": 26 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 8491, - "end": 8501, - "loc": { - "start": { - "line": 187, - "column": 12 - }, - "end": { - "line": 187, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 8491, - "end": 8499, - "loc": { - "start": { - "line": 187, - "column": 12 - }, - "end": { - "line": 187, - "column": 20 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 8500, - "end": 8501, - "loc": { - "start": { - "line": 187, - "column": 21 - }, - "end": { - "line": 187, - "column": 22 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "right": { - "type": "Identifier", - "start": 8504, - "end": 8505, - "loc": { - "start": { - "line": 187, - "column": 25 - }, - "end": { - "line": 187, - "column": 26 - }, - "identifierName": "y" - }, - "name": "y" - } - }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " Logic cannot be ran on background instances as they should not loop", - "start": 8534, - "end": 8604, - "loc": { - "start": { - "line": 189, - "column": 12 - }, - "end": { - "line": 189, - "column": 82 - } - } - } - ] - }, - { - "type": "IfStatement", - "start": 8618, - "end": 9231, - "loc": { - "start": { - "line": 190, - "column": 12 - }, - "end": { - "line": 202, - "column": 13 - } - }, - "test": { - "type": "LogicalExpression", - "start": 8622, - "end": 8654, - "loc": { - "start": { - "line": 190, - "column": 16 - }, - "end": { - "line": 190, - "column": 48 - } - }, - "left": { - "type": "UnaryExpression", - "start": 8622, - "end": 8636, - "loc": { - "start": { - "line": 190, - "column": 16 - }, - "end": { - "line": 190, - "column": 30 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 8623, - "end": 8636, - "loc": { - "start": { - "line": 190, - "column": 17 - }, - "end": { - "line": 190, - "column": 30 - }, - "identifierName": "isBackgroundX" - }, - "name": "isBackgroundX", - "leadingComments": null - }, - "extra": { - "parenthesizedArgument": false - }, - "leadingComments": null - }, - "operator": "&&", - "right": { - "type": "UnaryExpression", - "start": 8640, - "end": 8654, - "loc": { - "start": { - "line": 190, - "column": 34 - }, - "end": { - "line": 190, - "column": 48 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 8641, - "end": 8654, - "loc": { - "start": { - "line": 190, - "column": 35 - }, - "end": { - "line": 190, - "column": 48 - }, - "identifierName": "isBackgroundY" - }, - "name": "isBackgroundY" - }, - "extra": { - "parenthesizedArgument": false - } - }, - "leadingComments": null - }, - "consequent": { - "type": "BlockStatement", - "start": 8656, - "end": 9231, - "loc": { - "start": { - "line": 190, - "column": 50 - }, - "end": { - "line": 202, - "column": 13 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 8675, - "end": 9216, - "loc": { - "start": { - "line": 191, - "column": 16 - }, - "end": { - "line": 201, - "column": 17 - } - }, - "test": { - "type": "MemberExpression", - "start": 8679, - "end": 8696, - "loc": { - "start": { - "line": 191, - "column": 20 - }, - "end": { - "line": 191, - "column": 37 - } - }, - "object": { - "type": "Identifier", - "start": 8679, - "end": 8691, - "loc": { - "start": { - "line": 191, - "column": 20 - }, - "end": { - "line": 191, - "column": 32 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 8692, - "end": 8696, - "loc": { - "start": { - "line": 191, - "column": 33 - }, - "end": { - "line": 191, - "column": 37 - }, - "identifierName": "loop" - }, - "name": "loop" - }, - "computed": false - }, - "consequent": { - "type": "BlockStatement", - "start": 8698, - "end": 9216, - "loc": { - "start": { - "line": 191, - "column": 39 - }, - "end": { - "line": 201, - "column": 17 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 8773, - "end": 8823, - "loc": { - "start": { - "line": 193, - "column": 20 - }, - "end": { - "line": 193, - "column": 70 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8779, - "end": 8822, + "right": { + "type": "BinaryExpression", + "start": 8440, + "end": 8475, "loc": { "start": { - "line": 193, - "column": 26 + "line": 202, + "column": 20 }, "end": { - "line": 193, - "column": 69 + "line": 202, + "column": 55 } }, - "id": { + "left": { "type": "Identifier", - "start": 8779, - "end": 8787, + "start": 8440, + "end": 8447, "loc": { "start": { - "line": 193, - "column": 26 + "line": 202, + "column": 20 }, "end": { - "line": 193, - "column": 34 + "line": 202, + "column": 27 }, - "identifierName": "rightEnd" + "identifierName": "cameraY" }, - "name": "rightEnd", - "leadingComments": null + "name": "cameraY" }, - "init": { + "operator": "-", + "right": { "type": "BinaryExpression", - "start": 8790, - "end": 8822, + "start": 8450, + "end": 8475, "loc": { "start": { - "line": 193, - "column": 37 + "line": 202, + "column": 30 }, "end": { - "line": 193, - "column": 69 + "line": 202, + "column": 55 } }, "left": { "type": "MemberExpression", - "start": 8790, - "end": 8800, - "loc": { - "start": { - "line": 193, - "column": 37 - }, - "end": { - "line": 193, - "column": 47 - } - }, - "object": { - "type": "Identifier", - "start": 8790, - "end": 8798, - "loc": { - "start": { - "line": 193, - "column": 37 - }, - "end": { - "line": 193, - "column": 45 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 8799, - "end": 8800, - "loc": { - "start": { - "line": 193, - "column": 46 - }, - "end": { - "line": 193, - "column": 47 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 8803, - "end": 8822, + "start": 8450, + "end": 8471, "loc": { "start": { - "line": 193, - "column": 50 + "line": 202, + "column": 30 }, "end": { - "line": 193, - "column": 69 + "line": 202, + "column": 51 } }, "object": { "type": "MemberExpression", - "start": 8803, - "end": 8816, + "start": 8450, + "end": 8464, "loc": { "start": { - "line": 193, - "column": 50 + "line": 202, + "column": 30 }, "end": { - "line": 193, - "column": 63 + "line": 202, + "column": 44 } }, "object": { "type": "Identifier", - "start": 8803, - "end": 8811, + "start": 8450, + "end": 8459, "loc": { "start": { - "line": 193, - "column": 50 + "line": 202, + "column": 30 }, "end": { - "line": 193, - "column": 58 + "line": 202, + "column": 39 }, - "identifierName": "instance" + "identifierName": "pInstance" }, - "name": "instance" + "name": "pInstance" }, "property": { "type": "Identifier", - "start": 8812, - "end": 8816, + "start": 8460, + "end": 8464, "loc": { "start": { - "line": 193, - "column": 59 + "line": 202, + "column": 40 }, "end": { - "line": 193, - "column": 63 + "line": 202, + "column": 44 }, "identifierName": "icon" }, @@ -11422,1870 +10846,3652 @@ }, "property": { "type": "Identifier", - "start": 8817, - "end": 8822, + "start": 8465, + "end": 8471, "loc": { "start": { - "line": 193, - "column": 64 + "line": 202, + "column": 45 }, "end": { - "line": 193, - "column": 69 + "line": 202, + "column": 51 }, - "identifierName": "width" + "identifierName": "height" }, - "name": "width" + "name": "height" }, "computed": false - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " The start pos + total width", - "start": 8721, - "end": 8751, - "loc": { - "start": { - "line": 192, - "column": 20 - }, - "end": { - "line": 192, - "column": 50 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " The start pos - total width / 2", - "start": 8845, - "end": 8879, - "loc": { - "start": { - "line": 194, - "column": 20 }, - "end": { - "line": 194, - "column": 54 + "operator": "/", + "right": { + "type": "NumericLiteral", + "start": 8474, + "end": 8475, + "loc": { + "start": { + "line": 202, + "column": 54 + }, + "end": { + "line": 202, + "column": 55 + } + }, + "extra": { + "rawValue": 2, + "raw": "2" + }, + "value": 2 } } } - ] + } + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 8497, + "end": 8668, + "loc": { + "start": { + "line": 203, + "column": 19 }, + "end": { + "line": 207, + "column": 13 + } + }, + "body": [ { "type": "VariableDeclaration", - "start": 8901, - "end": 8954, + "start": 8516, + "end": 8557, "loc": { "start": { - "line": 195, - "column": 20 + "line": 204, + "column": 16 }, "end": { - "line": 195, - "column": 73 + "line": 204, + "column": 57 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 8907, - "end": 8953, + "start": 8520, + "end": 8556, "loc": { "start": { - "line": 195, - "column": 26 + "line": 204, + "column": 20 }, "end": { - "line": 195, - "column": 72 + "line": 204, + "column": 56 } }, "id": { "type": "Identifier", - "start": 8907, - "end": 8914, + "start": 8520, + "end": 8526, "loc": { "start": { - "line": 195, - "column": 26 + "line": 204, + "column": 20 }, "end": { - "line": 195, - "column": 33 + "line": 204, + "column": 26 }, - "identifierName": "leftEnd" + "identifierName": "deltaY" }, - "name": "leftEnd", - "leadingComments": null + "name": "deltaY" }, "init": { "type": "BinaryExpression", - "start": 8917, - "end": 8953, + "start": 8529, + "end": 8556, "loc": { "start": { - "line": 195, - "column": 36 + "line": 204, + "column": 29 }, "end": { - "line": 195, - "column": 72 + "line": 204, + "column": 56 } }, "left": { - "type": "MemberExpression", - "start": 8917, - "end": 8927, + "type": "Identifier", + "start": 8529, + "end": 8536, "loc": { "start": { - "line": 195, - "column": 36 + "line": 204, + "column": 29 }, "end": { - "line": 195, - "column": 46 - } + "line": 204, + "column": 36 + }, + "identifierName": "cameraY" }, - "object": { - "type": "Identifier", - "start": 8917, - "end": 8925, - "loc": { - "start": { - "line": 195, - "column": 36 - }, - "end": { - "line": 195, - "column": 44 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 8926, - "end": 8927, - "loc": { - "start": { - "line": 195, - "column": 45 - }, - "end": { - "line": 195, - "column": 46 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false + "name": "cameraY" }, "operator": "-", "right": { - "type": "BinaryExpression", - "start": 8930, - "end": 8953, + "type": "MemberExpression", + "start": 8539, + "end": 8556, "loc": { "start": { - "line": 195, - "column": 49 + "line": 204, + "column": 39 }, "end": { - "line": 195, - "column": 72 + "line": 204, + "column": 56 } }, - "left": { + "object": { "type": "MemberExpression", - "start": 8930, - "end": 8949, + "start": 8539, + "end": 8554, "loc": { "start": { - "line": 195, - "column": 49 + "line": 204, + "column": 39 }, "end": { - "line": 195, - "column": 68 + "line": 204, + "column": 54 } }, "object": { - "type": "MemberExpression", - "start": 8930, - "end": 8943, + "type": "ThisExpression", + "start": 8539, + "end": 8543, "loc": { "start": { - "line": 195, - "column": 49 + "line": 204, + "column": 39 }, "end": { - "line": 195, - "column": 62 + "line": 204, + "column": 43 } - }, - "object": { - "type": "Identifier", - "start": 8930, - "end": 8938, - "loc": { - "start": { - "line": 195, - "column": 49 - }, - "end": { - "line": 195, - "column": 57 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 8939, - "end": 8943, - "loc": { - "start": { - "line": 195, - "column": 58 - }, - "end": { - "line": 195, - "column": 62 - }, - "identifierName": "icon" - }, - "name": "icon" - }, - "computed": false + } }, "property": { "type": "Identifier", - "start": 8944, - "end": 8949, + "start": 8544, + "end": 8554, "loc": { "start": { - "line": 195, - "column": 63 + "line": 204, + "column": 44 }, "end": { - "line": 195, - "column": 68 + "line": 204, + "column": 54 }, - "identifierName": "width" + "identifierName": "lastCamPos" }, - "name": "width" + "name": "lastCamPos" }, "computed": false }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 8952, - "end": 8953, + "property": { + "type": "Identifier", + "start": 8555, + "end": 8556, "loc": { "start": { - "line": 195, - "column": 71 + "line": 204, + "column": 55 }, "end": { - "line": 195, - "column": 72 - } - }, - "extra": { - "rawValue": 6, - "raw": "6" + "line": 204, + "column": 56 + }, + "identifierName": "y" }, - "value": 6 - } - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " The start pos - total width / 2", - "start": 8845, - "end": 8879, - "loc": { - "start": { - "line": 194, - "column": 20 - }, - "end": { - "line": 194, - "column": 54 + "name": "y" + }, + "computed": false } } } - ] + ], + "kind": "let" }, { - "type": "IfStatement", - "start": 8976, - "end": 9197, + "type": "VariableDeclaration", + "start": 8575, + "end": 8611, "loc": { "start": { - "line": 196, - "column": 20 + "line": 205, + "column": 16 }, "end": { - "line": 200, - "column": 21 + "line": 205, + "column": 52 } }, - "test": { - "type": "BinaryExpression", - "start": 8980, - "end": 8998, - "loc": { - "start": { - "line": 196, - "column": 24 - }, - "end": { - "line": 196, - "column": 42 - } - }, - "left": { - "type": "Identifier", - "start": 8980, - "end": 8987, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 8579, + "end": 8610, "loc": { "start": { - "line": 196, - "column": 24 + "line": 205, + "column": 20 }, "end": { - "line": 196, - "column": 31 - }, - "identifierName": "cameraX" + "line": 205, + "column": 51 + } }, - "name": "cameraX" - }, - "operator": ">", - "right": { - "type": "Identifier", - "start": 8990, - "end": 8998, - "loc": { - "start": { - "line": 196, - "column": 34 - }, - "end": { - "line": 196, - "column": 42 + "id": { + "type": "Identifier", + "start": 8579, + "end": 8584, + "loc": { + "start": { + "line": 205, + "column": 20 + }, + "end": { + "line": 205, + "column": 25 + }, + "identifierName": "distY" }, - "identifierName": "rightEnd" - }, - "name": "rightEnd" - } - }, - "consequent": { - "type": "BlockStatement", - "start": 9000, - "end": 9084, - "loc": { - "start": { - "line": 196, - "column": 44 + "name": "distY" }, - "end": { - "line": 198, - "column": 21 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 9027, - "end": 9061, + "init": { + "type": "BinaryExpression", + "start": 8587, + "end": 8610, "loc": { "start": { - "line": 197, - "column": 24 + "line": 205, + "column": 28 }, "end": { - "line": 197, - "column": 58 + "line": 205, + "column": 51 } }, - "expression": { - "type": "AssignmentExpression", - "start": 9027, - "end": 9060, + "left": { + "type": "Identifier", + "start": 8587, + "end": 8593, "loc": { "start": { - "line": 197, - "column": 24 + "line": 205, + "column": 28 }, "end": { - "line": 197, - "column": 57 + "line": 205, + "column": 34 + }, + "identifierName": "deltaY" + }, + "name": "deltaY" + }, + "operator": "*", + "right": { + "type": "MemberExpression", + "start": 8596, + "end": 8610, + "loc": { + "start": { + "line": 205, + "column": 37 + }, + "end": { + "line": 205, + "column": 51 } }, - "operator": "+=", - "left": { - "type": "MemberExpression", - "start": 9027, - "end": 9037, + "object": { + "type": "Identifier", + "start": 8596, + "end": 8608, "loc": { "start": { - "line": 197, - "column": 24 + "line": 205, + "column": 37 }, "end": { - "line": 197, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 9027, - "end": 9035, - "loc": { - "start": { - "line": 197, - "column": 24 - }, - "end": { - "line": 197, - "column": 32 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 9036, - "end": 9037, - "loc": { - "start": { - "line": 197, - "column": 33 - }, - "end": { - "line": 197, - "column": 34 - }, - "identifierName": "x" + "line": 205, + "column": 49 }, - "name": "x" + "identifierName": "parallaxInfo" }, - "computed": false + "name": "parallaxInfo" }, - "right": { - "type": "MemberExpression", - "start": 9041, - "end": 9060, + "property": { + "type": "Identifier", + "start": 8609, + "end": 8610, "loc": { "start": { - "line": 197, - "column": 38 + "line": 205, + "column": 50 }, "end": { - "line": 197, - "column": 57 - } - }, - "object": { - "type": "MemberExpression", - "start": 9041, - "end": 9054, - "loc": { - "start": { - "line": 197, - "column": 38 - }, - "end": { - "line": 197, - "column": 51 - } - }, - "object": { - "type": "Identifier", - "start": 9041, - "end": 9049, - "loc": { - "start": { - "line": 197, - "column": 38 - }, - "end": { - "line": 197, - "column": 46 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 9050, - "end": 9054, - "loc": { - "start": { - "line": 197, - "column": 47 - }, - "end": { - "line": 197, - "column": 51 - }, - "identifierName": "icon" - }, - "name": "icon" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 9055, - "end": 9060, - "loc": { - "start": { - "line": 197, - "column": 52 - }, - "end": { - "line": 197, - "column": 57 - }, - "identifierName": "width" + "line": 205, + "column": 51 }, - "name": "width" + "identifierName": "y" }, - "computed": false - } + "name": "y" + }, + "computed": false } } - ], - "directives": [] + } + ], + "kind": "let" + }, + { + "type": "ExpressionStatement", + "start": 8629, + "end": 8653, + "loc": { + "start": { + "line": 206, + "column": 16 + }, + "end": { + "line": 206, + "column": 40 + } }, - "alternate": { - "type": "IfStatement", - "start": 9090, - "end": 9197, + "expression": { + "type": "AssignmentExpression", + "start": 8629, + "end": 8652, "loc": { "start": { - "line": 198, - "column": 27 + "line": 206, + "column": 16 }, "end": { - "line": 200, - "column": 21 + "line": 206, + "column": 39 } }, - "test": { + "operator": "=", + "left": { + "type": "Identifier", + "start": 8629, + "end": 8630, + "loc": { + "start": { + "line": 206, + "column": 16 + }, + "end": { + "line": 206, + "column": 17 + }, + "identifierName": "y" + }, + "name": "y" + }, + "right": { "type": "BinaryExpression", - "start": 9094, - "end": 9111, + "start": 8633, + "end": 8652, "loc": { "start": { - "line": 198, - "column": 31 + "line": 206, + "column": 20 }, "end": { - "line": 198, - "column": 48 + "line": 206, + "column": 39 } }, "left": { - "type": "Identifier", - "start": 9094, - "end": 9101, + "type": "MemberExpression", + "start": 8633, + "end": 8644, "loc": { "start": { - "line": 198, - "column": 31 + "line": 206, + "column": 20 }, "end": { - "line": 198, - "column": 38 + "line": 206, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 8633, + "end": 8642, + "loc": { + "start": { + "line": 206, + "column": 20 + }, + "end": { + "line": 206, + "column": 29 + }, + "identifierName": "pInstance" }, - "identifierName": "cameraX" + "name": "pInstance" }, - "name": "cameraX" + "property": { + "type": "Identifier", + "start": 8643, + "end": 8644, + "loc": { + "start": { + "line": 206, + "column": 30 + }, + "end": { + "line": 206, + "column": 31 + }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false }, - "operator": "<", + "operator": "+", "right": { "type": "Identifier", - "start": 9104, - "end": 9111, + "start": 8647, + "end": 8652, "loc": { "start": { - "line": 198, - "column": 41 + "line": 206, + "column": 34 }, "end": { - "line": 198, - "column": 48 + "line": 206, + "column": 39 }, - "identifierName": "leftEnd" + "identifierName": "distY" }, - "name": "leftEnd" + "name": "distY" } - }, - "consequent": { - "type": "BlockStatement", - "start": 9113, - "end": 9197, - "loc": { - "start": { - "line": 198, - "column": 50 - }, - "end": { - "line": 200, - "column": 21 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 9140, - "end": 9174, - "loc": { - "start": { - "line": 199, - "column": 24 - }, - "end": { - "line": 199, - "column": 58 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 9140, - "end": 9173, - "loc": { - "start": { - "line": 199, - "column": 24 - }, - "end": { - "line": 199, - "column": 57 - } - }, - "operator": "-=", - "left": { - "type": "MemberExpression", - "start": 9140, - "end": 9150, - "loc": { - "start": { - "line": 199, - "column": 24 - }, - "end": { - "line": 199, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 9140, - "end": 9148, - "loc": { - "start": { - "line": 199, - "column": 24 - }, - "end": { - "line": 199, - "column": 32 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 9149, - "end": 9150, - "loc": { - "start": { - "line": 199, - "column": 33 - }, - "end": { - "line": 199, - "column": 34 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 9154, - "end": 9173, - "loc": { - "start": { - "line": 199, - "column": 38 - }, - "end": { - "line": 199, - "column": 57 - } - }, - "object": { - "type": "MemberExpression", - "start": 9154, - "end": 9167, - "loc": { - "start": { - "line": 199, - "column": 38 - }, - "end": { - "line": 199, - "column": 51 - } - }, - "object": { - "type": "Identifier", - "start": 9154, - "end": 9162, - "loc": { - "start": { - "line": 199, - "column": 38 - }, - "end": { - "line": 199, - "column": 46 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 9163, - "end": 9167, - "loc": { - "start": { - "line": 199, - "column": 47 - }, - "end": { - "line": 199, - "column": 51 - }, - "identifierName": "icon" - }, - "name": "icon" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 9168, - "end": 9173, - "loc": { - "start": { - "line": 199, - "column": 52 - }, - "end": { - "line": 199, - "column": 57 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - } - } - } - ], - "directives": [] - }, - "alternate": null + } } } ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - }, - "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Logic cannot be ran on background instances as they should not loop", - "start": 8534, - "end": 8604, - "loc": { - "start": { - "line": 189, - "column": 12 + "directives": [], + "trailingComments": null }, - "end": { - "line": 189, - "column": 82 - } - } - } - ] - } - ], - "directives": [] - } - }, - { - "type": "ExpressionStatement", - "start": 9252, - "end": 9280, - "loc": { - "start": { - "line": 204, - "column": 8 - }, - "end": { - "line": 204, - "column": 36 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 9252, - "end": 9279, - "loc": { - "start": { - "line": 204, - "column": 8 - }, - "end": { - "line": 204, - "column": 35 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 9252, - "end": 9269, - "loc": { - "start": { - "line": 204, - "column": 8 - }, - "end": { - "line": 204, - "column": 25 - } - }, - "object": { - "type": "MemberExpression", - "start": 9252, - "end": 9267, - "loc": { - "start": { - "line": 204, - "column": 8 - }, - "end": { - "line": 204, - "column": 23 - } - }, - "object": { - "type": "ThisExpression", - "start": 9252, - "end": 9256, - "loc": { - "start": { - "line": 204, - "column": 8 - }, - "end": { - "line": 204, - "column": 12 - } - } - }, - "property": { - "type": "Identifier", - "start": 9257, - "end": 9267, - "loc": { - "start": { - "line": 204, - "column": 13 - }, - "end": { - "line": 204, - "column": 23 - }, - "identifierName": "lastCamPos" - }, - "name": "lastCamPos" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 9268, - "end": 9269, - "loc": { - "start": { - "line": 204, - "column": 24 - }, - "end": { - "line": 204, - "column": 25 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "right": { - "type": "Identifier", - "start": 9272, - "end": 9279, - "loc": { - "start": { - "line": 204, - "column": 28 - }, - "end": { - "line": 204, - "column": 35 - }, - "identifierName": "cameraX" - }, - "name": "cameraX" - } - } - }, - { - "type": "ExpressionStatement", - "start": 9290, - "end": 9318, - "loc": { - "start": { - "line": 205, - "column": 8 - }, - "end": { - "line": 205, - "column": 36 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 9290, - "end": 9317, - "loc": { - "start": { - "line": 205, - "column": 8 - }, - "end": { - "line": 205, - "column": 35 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 9290, - "end": 9307, - "loc": { - "start": { - "line": 205, - "column": 8 - }, - "end": { - "line": 205, - "column": 25 - } - }, - "object": { - "type": "MemberExpression", - "start": 9290, - "end": 9305, - "loc": { - "start": { - "line": 205, - "column": 8 - }, - "end": { - "line": 205, - "column": 23 - } - }, - "object": { - "type": "ThisExpression", - "start": 9290, - "end": 9294, - "loc": { - "start": { - "line": 205, - "column": 8 + "trailingComments": [ + { + "type": "CommentLine", + "value": " Set the position", + "start": 8684, + "end": 8703, + "loc": { + "start": { + "line": 209, + "column": 12 + }, + "end": { + "line": 209, + "column": 31 + } + } + } + ] }, - "end": { - "line": 205, - "column": 12 - } - } - }, - "property": { - "type": "Identifier", - "start": 9295, - "end": 9305, - "loc": { - "start": { - "line": 205, - "column": 13 + { + "type": "ExpressionStatement", + "start": 8717, + "end": 8733, + "loc": { + "start": { + "line": 210, + "column": 12 + }, + "end": { + "line": 210, + "column": 28 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 8717, + "end": 8732, + "loc": { + "start": { + "line": 210, + "column": 12 + }, + "end": { + "line": 210, + "column": 27 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 8717, + "end": 8728, + "loc": { + "start": { + "line": 210, + "column": 12 + }, + "end": { + "line": 210, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 8717, + "end": 8726, + "loc": { + "start": { + "line": 210, + "column": 12 + }, + "end": { + "line": 210, + "column": 21 + }, + "identifierName": "pInstance" + }, + "name": "pInstance", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 8727, + "end": 8728, + "loc": { + "start": { + "line": 210, + "column": 22 + }, + "end": { + "line": 210, + "column": 23 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "Identifier", + "start": 8731, + "end": 8732, + "loc": { + "start": { + "line": 210, + "column": 26 + }, + "end": { + "line": 210, + "column": 27 + }, + "identifierName": "x" + }, + "name": "x" + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Set the position", + "start": 8684, + "end": 8703, + "loc": { + "start": { + "line": 209, + "column": 12 + }, + "end": { + "line": 209, + "column": 31 + } + } + } + ] }, - "end": { - "line": 205, - "column": 23 + { + "type": "ExpressionStatement", + "start": 8747, + "end": 8763, + "loc": { + "start": { + "line": 211, + "column": 12 + }, + "end": { + "line": 211, + "column": 28 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 8747, + "end": 8762, + "loc": { + "start": { + "line": 211, + "column": 12 + }, + "end": { + "line": 211, + "column": 27 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 8747, + "end": 8758, + "loc": { + "start": { + "line": 211, + "column": 12 + }, + "end": { + "line": 211, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 8747, + "end": 8756, + "loc": { + "start": { + "line": 211, + "column": 12 + }, + "end": { + "line": 211, + "column": 21 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 8757, + "end": 8758, + "loc": { + "start": { + "line": 211, + "column": 22 + }, + "end": { + "line": 211, + "column": 23 + }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 8761, + "end": 8762, + "loc": { + "start": { + "line": 211, + "column": 26 + }, + "end": { + "line": 211, + "column": 27 + }, + "identifierName": "y" + }, + "name": "y" + } + }, + "trailingComments": [ + { + "type": "CommentLine", + "value": " Logic cannot be ran on background instances as they should not loop", + "start": 8791, + "end": 8861, + "loc": { + "start": { + "line": 213, + "column": 12 + }, + "end": { + "line": 213, + "column": 82 + } + } + } + ] }, - "identifierName": "lastCamPos" - }, - "name": "lastCamPos" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 9306, - "end": 9307, - "loc": { - "start": { - "line": 205, - "column": 24 - }, - "end": { - "line": 205, - "column": 25 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "right": { - "type": "Identifier", - "start": 9310, - "end": 9317, - "loc": { - "start": { - "line": 205, - "column": 28 - }, - "end": { - "line": 205, - "column": 35 - }, - "identifierName": "cameraY" - }, - "name": "cameraY" - } - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n * Updates the parallax system.\r\n * @param {number} pCameraX - The x position of the camera.\r\n * @param {number} pCameraY - The y position of the camera.\r\n * @param {number} pSimulatedPosition - The simulated position. This is used to simulate a position larger than possible, but internally it treats it as its downscaled position.\r\n * One such reason for using this paramater would be to simulate a map larger than you actually have, to convince the parallax that it is infinite.\r\n ", - "start": 6630, - "end": 7145, - "loc": { - "start": { - "line": 146, - "column": 4 - }, - "end": { - "line": 152, - "column": 7 - } - } - } - ] - } - ] - }, - "name": "_", - "leadingComments": [], - "trailingComments": [] - }, - { - "type": "Identifier", - "start": 9332, - "end": 9373, - "loc": { - "start": { - "line": 209, - "column": 0 - }, - "end": { - "line": 209, - "column": 41 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 9338, - "end": 9372, - "loc": { - "start": { - "line": 209, - "column": 6 - }, - "end": { - "line": 209, - "column": 40 - } - }, - "id": { - "type": "Identifier", - "start": 9338, - "end": 9346, - "loc": { - "start": { - "line": 209, - "column": 6 - }, - "end": { - "line": 209, - "column": 14 - }, - "identifierName": "Parallax" - }, - "name": "Parallax" - }, - "init": { - "type": "NewExpression", - "start": 9349, - "end": 9372, - "loc": { - "start": { - "line": 209, - "column": 17 - }, - "end": { - "line": 209, - "column": 40 - } - }, - "callee": { - "type": "Identifier", - "start": 9353, - "end": 9370, - "loc": { - "start": { - "line": 209, - "column": 21 - }, - "end": { - "line": 209, - "column": 38 - }, - "identifierName": "ParallaxSingleton" - }, - "name": "ParallaxSingleton" - }, - "arguments": [] - } - } - ], - "kind": "const", - "name": "_", - "leadingComments": [], - "trailingComments": [] - }, - { - "type": "ExportNamedDeclaration", - "start": 9375, - "end": 9395, - "loc": { - "start": { - "line": 210, - "column": 0 - }, - "end": { - "line": 210, - "column": 20 - } - }, - "declaration": null, - "specifiers": [ - { - "type": "ExportSpecifier", - "start": 9384, - "end": 9392, - "loc": { - "start": { - "line": 210, - "column": 9 - }, - "end": { - "line": 210, - "column": 17 - } - }, - "local": { - "type": "Identifier", - "start": 9384, - "end": 9392, - "loc": { - "start": { - "line": 210, - "column": 9 - }, - "end": { - "line": 210, - "column": 17 - }, - "identifierName": "Parallax" - }, - "name": "Parallax" - }, - "exported": { - "type": "Identifier", - "start": 9384, - "end": 9392, - "loc": { - "start": { - "line": 210, - "column": 9 - }, - "end": { - "line": 210, - "column": 17 - }, - "identifierName": "Parallax" - }, - "name": "Parallax" - } - } - ], - "source": null - }, - { - "type": "ExportNamedDeclaration", - "start": 9375, - "end": 9395, - "loc": { - "start": { - "line": 210, - "column": 0 - }, - "end": { - "line": 210, - "column": 20 - } - }, - "declaration": { - "type": "VariableDeclaration", - "start": 9332, - "end": 9373, - "loc": { - "start": { - "line": 209, - "column": 0 - }, - "end": { - "line": 209, - "column": 41 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 9338, - "end": 9372, - "loc": { - "start": { - "line": 209, - "column": 6 - }, - "end": { - "line": 209, - "column": 40 - } - }, - "id": { - "type": "Identifier", - "start": 9338, - "end": 9346, - "loc": { - "start": { - "line": 209, - "column": 6 - }, - "end": { - "line": 209, - "column": 14 - }, - "identifierName": "Parallax" - }, - "name": "Parallax" - }, - "init": { - "type": "NewExpression", - "start": 9349, - "end": 9372, - "loc": { - "start": { - "line": 209, - "column": 17 - }, - "end": { - "line": 209, - "column": 40 - } - }, - "callee": { - "type": "Identifier", - "start": 9353, - "end": 9370, - "loc": { - "start": { - "line": 209, - "column": 21 - }, - "end": { - "line": 209, - "column": 38 - }, - "identifierName": "ParallaxSingleton" - }, - "name": "ParallaxSingleton" - }, - "arguments": [] - } - } - ], - "kind": "const", - "leadingComments": [], - "trailingComments": [] - }, - "specifiers": null, - "source": null - }, - { - "type": "ExportNamedDeclaration", - "start": 9375, - "end": 9395, - "loc": { - "start": { - "line": 210, - "column": 0 - }, - "end": { - "line": 210, - "column": 20 - } - }, - "declaration": { - "type": "ClassDeclaration", - "start": 53, - "end": 9328, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 207, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 59, - "end": 76, - "loc": { - "start": { - "line": 3, - "column": 6 - }, - "end": { - "line": 3, - "column": 23 - }, - "identifierName": "ParallaxSingleton" - }, - "name": "ParallaxSingleton" - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 77, - "end": 9328, - "loc": { - "start": { - "line": 3, - "column": 24 - }, - "end": { - "line": 207, - "column": 1 - } - }, - "body": [ - { - "type": "ClassProperty", - "start": 125, - "end": 156, - "loc": { - "start": { - "line": 7, - "column": 1 - }, - "end": { - "line": 7, - "column": 32 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 125, - "end": 132, - "loc": { - "start": { - "line": 7, - "column": 1 - }, - "end": { - "line": 7, - "column": 8 - }, - "identifierName": "version" - }, - "name": "version", - "leadingComments": null - }, - "value": { - "type": "StringLiteral", - "start": 135, - "end": 155, - "loc": { - "start": { - "line": 7, - "column": 11 - }, - "end": { - "line": 7, - "column": 31 - } - }, - "extra": { - "rawValue": "VERSION_REPLACE_ME", - "raw": "\"VERSION_REPLACE_ME\"" - }, - "value": "VERSION_REPLACE_ME" - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * The version of the module.\r\n\t ", - "start": 81, - "end": 122, - "loc": { - "start": { - "line": 4, - "column": 1 - }, - "end": { - "line": 6, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "* The logger module this module uses to log errors / logs\r\n * @private\r\n * @type {Object}\r\n ", - "start": 162, - "end": 270, - "loc": { - "start": { - "line": 8, - "column": 4 - }, - "end": { - "line": 11, - "column": 7 - } - } - } - ] - }, - { - "type": "ClassProperty", - "start": 276, - "end": 298, - "loc": { - "start": { - "line": 12, - "column": 4 - }, - "end": { - "line": 12, - "column": 26 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 276, - "end": 282, - "loc": { - "start": { - "line": 12, - "column": 4 - }, - "end": { - "line": 12, - "column": 10 - }, - "identifierName": "logger" - }, - "name": "logger", - "leadingComments": null - }, - "value": { - "type": "NewExpression", - "start": 285, - "end": 297, - "loc": { - "start": { - "line": 12, - "column": 13 - }, - "end": { - "line": 12, - "column": 25 - } - }, - "callee": { - "type": "Identifier", - "start": 289, - "end": 295, - "loc": { - "start": { - "line": 12, - "column": 17 - }, - "end": { - "line": 12, - "column": 23 - }, - "identifierName": "Logger" - }, - "name": "Logger" - }, - "arguments": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "* The logger module this module uses to log errors / logs\r\n * @private\r\n * @type {Object}\r\n ", - "start": 162, - "end": 270, - "loc": { - "start": { - "line": 8, - "column": 4 - }, - "end": { - "line": 11, - "column": 7 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n * @private\r\n ", - "start": 304, - "end": 333, - "loc": { - "start": { - "line": 13, - "column": 4 - }, - "end": { - "line": 15, - "column": 7 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 336, - "end": 420, - "loc": { - "start": { - "line": 16, - "column": 1 - }, - "end": { - "line": 18, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 336, - "end": 347, - "loc": { - "start": { - "line": 16, - "column": 1 - }, - "end": { - "line": 16, - "column": 12 - }, - "identifierName": "constructor" - }, - "name": "constructor", - "leadingComments": null - }, - "kind": "constructor", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 350, - "end": 420, - "loc": { - "start": { - "line": 16, - "column": 15 - }, - "end": { - "line": 18, - "column": 2 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 361, - "end": 416, - "loc": { - "start": { - "line": 17, - "column": 8 - }, - "end": { - "line": 17, - "column": 63 - } - }, - "expression": { - "type": "CallExpression", - "start": 361, - "end": 415, - "loc": { - "start": { - "line": 17, - "column": 8 - }, - "end": { - "line": 17, - "column": 62 - } - }, - "callee": { - "type": "MemberExpression", - "start": 361, - "end": 385, - "loc": { - "start": { - "line": 17, - "column": 8 - }, - "end": { - "line": 17, - "column": 32 - } - }, - "object": { - "type": "MemberExpression", - "start": 361, - "end": 372, - "loc": { - "start": { - "line": 17, - "column": 8 - }, - "end": { - "line": 17, - "column": 19 - } - }, - "object": { - "type": "ThisExpression", - "start": 361, - "end": 365, - "loc": { - "start": { - "line": 17, - "column": 8 - }, - "end": { - "line": 17, - "column": 12 - } - } - }, - "property": { - "type": "Identifier", - "start": 366, - "end": 372, - "loc": { - "start": { - "line": 17, - "column": 13 + { + "type": "IfStatement", + "start": 8875, + "end": 9496, + "loc": { + "start": { + "line": 214, + "column": 12 + }, + "end": { + "line": 226, + "column": 13 + } }, - "end": { - "line": 17, - "column": 19 + "test": { + "type": "LogicalExpression", + "start": 8879, + "end": 8911, + "loc": { + "start": { + "line": 214, + "column": 16 + }, + "end": { + "line": 214, + "column": 48 + } + }, + "left": { + "type": "UnaryExpression", + "start": 8879, + "end": 8893, + "loc": { + "start": { + "line": 214, + "column": 16 + }, + "end": { + "line": 214, + "column": 30 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 8880, + "end": 8893, + "loc": { + "start": { + "line": 214, + "column": 17 + }, + "end": { + "line": 214, + "column": 30 + }, + "identifierName": "isBackgroundX" + }, + "name": "isBackgroundX", + "leadingComments": null + }, + "extra": { + "parenthesizedArgument": false + }, + "leadingComments": null + }, + "operator": "&&", + "right": { + "type": "UnaryExpression", + "start": 8897, + "end": 8911, + "loc": { + "start": { + "line": 214, + "column": 34 + }, + "end": { + "line": 214, + "column": 48 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 8898, + "end": 8911, + "loc": { + "start": { + "line": 214, + "column": 35 + }, + "end": { + "line": 214, + "column": 48 + }, + "identifierName": "isBackgroundY" + }, + "name": "isBackgroundY" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "leadingComments": null }, - "identifierName": "logger" - }, - "name": "logger" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 373, - "end": 385, - "loc": { - "start": { - "line": 17, - "column": 20 - }, - "end": { - "line": 17, - "column": 32 - }, - "identifierName": "registerType" - }, - "name": "registerType" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 386, - "end": 403, - "loc": { - "start": { - "line": 17, - "column": 33 - }, - "end": { - "line": 17, - "column": 50 - } - }, - "extra": { - "rawValue": "Parallax-Module", - "raw": "'Parallax-Module'" - }, - "value": "Parallax-Module" - }, - { - "type": "StringLiteral", - "start": 405, - "end": 414, - "loc": { - "start": { - "line": 17, - "column": 52 + "consequent": { + "type": "BlockStatement", + "start": 8913, + "end": 9496, + "loc": { + "start": { + "line": 214, + "column": 50 + }, + "end": { + "line": 226, + "column": 13 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 8932, + "end": 9481, + "loc": { + "start": { + "line": 215, + "column": 16 + }, + "end": { + "line": 225, + "column": 17 + } + }, + "test": { + "type": "MemberExpression", + "start": 8936, + "end": 8953, + "loc": { + "start": { + "line": 215, + "column": 20 + }, + "end": { + "line": 215, + "column": 37 + } + }, + "object": { + "type": "Identifier", + "start": 8936, + "end": 8948, + "loc": { + "start": { + "line": 215, + "column": 20 + }, + "end": { + "line": 215, + "column": 32 + }, + "identifierName": "parallaxInfo" + }, + "name": "parallaxInfo" + }, + "property": { + "type": "Identifier", + "start": 8949, + "end": 8953, + "loc": { + "start": { + "line": 215, + "column": 33 + }, + "end": { + "line": 215, + "column": 37 + }, + "identifierName": "loop" + }, + "name": "loop" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 8955, + "end": 9481, + "loc": { + "start": { + "line": 215, + "column": 39 + }, + "end": { + "line": 225, + "column": 17 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 9030, + "end": 9082, + "loc": { + "start": { + "line": 217, + "column": 20 + }, + "end": { + "line": 217, + "column": 72 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 9036, + "end": 9081, + "loc": { + "start": { + "line": 217, + "column": 26 + }, + "end": { + "line": 217, + "column": 71 + } + }, + "id": { + "type": "Identifier", + "start": 9036, + "end": 9044, + "loc": { + "start": { + "line": 217, + "column": 26 + }, + "end": { + "line": 217, + "column": 34 + }, + "identifierName": "rightEnd" + }, + "name": "rightEnd", + "leadingComments": null + }, + "init": { + "type": "BinaryExpression", + "start": 9047, + "end": 9081, + "loc": { + "start": { + "line": 217, + "column": 37 + }, + "end": { + "line": 217, + "column": 71 + } + }, + "left": { + "type": "MemberExpression", + "start": 9047, + "end": 9058, + "loc": { + "start": { + "line": 217, + "column": 37 + }, + "end": { + "line": 217, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 9047, + "end": 9056, + "loc": { + "start": { + "line": 217, + "column": 37 + }, + "end": { + "line": 217, + "column": 46 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 9057, + "end": 9058, + "loc": { + "start": { + "line": 217, + "column": 47 + }, + "end": { + "line": 217, + "column": 48 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + }, + "operator": "+", + "right": { + "type": "MemberExpression", + "start": 9061, + "end": 9081, + "loc": { + "start": { + "line": 217, + "column": 51 + }, + "end": { + "line": 217, + "column": 71 + } + }, + "object": { + "type": "MemberExpression", + "start": 9061, + "end": 9075, + "loc": { + "start": { + "line": 217, + "column": 51 + }, + "end": { + "line": 217, + "column": 65 + } + }, + "object": { + "type": "Identifier", + "start": 9061, + "end": 9070, + "loc": { + "start": { + "line": 217, + "column": 51 + }, + "end": { + "line": 217, + "column": 60 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 9071, + "end": 9075, + "loc": { + "start": { + "line": 217, + "column": 61 + }, + "end": { + "line": 217, + "column": 65 + }, + "identifierName": "icon" + }, + "name": "icon" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 9076, + "end": 9081, + "loc": { + "start": { + "line": 217, + "column": 66 + }, + "end": { + "line": 217, + "column": 71 + }, + "identifierName": "width" + }, + "name": "width" + }, + "computed": false + } + }, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "CommentLine", + "value": " The start pos + total width", + "start": 8978, + "end": 9008, + "loc": { + "start": { + "line": 216, + "column": 20 + }, + "end": { + "line": 216, + "column": 50 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentLine", + "value": " The start pos - total width / 2", + "start": 9104, + "end": 9138, + "loc": { + "start": { + "line": 218, + "column": 20 + }, + "end": { + "line": 218, + "column": 54 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 9160, + "end": 9215, + "loc": { + "start": { + "line": 219, + "column": 20 + }, + "end": { + "line": 219, + "column": 75 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 9166, + "end": 9214, + "loc": { + "start": { + "line": 219, + "column": 26 + }, + "end": { + "line": 219, + "column": 74 + } + }, + "id": { + "type": "Identifier", + "start": 9166, + "end": 9173, + "loc": { + "start": { + "line": 219, + "column": 26 + }, + "end": { + "line": 219, + "column": 33 + }, + "identifierName": "leftEnd" + }, + "name": "leftEnd", + "leadingComments": null + }, + "init": { + "type": "BinaryExpression", + "start": 9176, + "end": 9214, + "loc": { + "start": { + "line": 219, + "column": 36 + }, + "end": { + "line": 219, + "column": 74 + } + }, + "left": { + "type": "MemberExpression", + "start": 9176, + "end": 9187, + "loc": { + "start": { + "line": 219, + "column": 36 + }, + "end": { + "line": 219, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 9176, + "end": 9185, + "loc": { + "start": { + "line": 219, + "column": 36 + }, + "end": { + "line": 219, + "column": 45 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 9186, + "end": 9187, + "loc": { + "start": { + "line": 219, + "column": 46 + }, + "end": { + "line": 219, + "column": 47 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + }, + "operator": "-", + "right": { + "type": "BinaryExpression", + "start": 9190, + "end": 9214, + "loc": { + "start": { + "line": 219, + "column": 50 + }, + "end": { + "line": 219, + "column": 74 + } + }, + "left": { + "type": "MemberExpression", + "start": 9190, + "end": 9210, + "loc": { + "start": { + "line": 219, + "column": 50 + }, + "end": { + "line": 219, + "column": 70 + } + }, + "object": { + "type": "MemberExpression", + "start": 9190, + "end": 9204, + "loc": { + "start": { + "line": 219, + "column": 50 + }, + "end": { + "line": 219, + "column": 64 + } + }, + "object": { + "type": "Identifier", + "start": 9190, + "end": 9199, + "loc": { + "start": { + "line": 219, + "column": 50 + }, + "end": { + "line": 219, + "column": 59 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 9200, + "end": 9204, + "loc": { + "start": { + "line": 219, + "column": 60 + }, + "end": { + "line": 219, + "column": 64 + }, + "identifierName": "icon" + }, + "name": "icon" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 9205, + "end": 9210, + "loc": { + "start": { + "line": 219, + "column": 65 + }, + "end": { + "line": 219, + "column": 70 + }, + "identifierName": "width" + }, + "name": "width" + }, + "computed": false + }, + "operator": "/", + "right": { + "type": "NumericLiteral", + "start": 9213, + "end": 9214, + "loc": { + "start": { + "line": 219, + "column": 73 + }, + "end": { + "line": 219, + "column": 74 + } + }, + "extra": { + "rawValue": 6, + "raw": "6" + }, + "value": 6 + } + } + }, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "CommentLine", + "value": " The start pos - total width / 2", + "start": 9104, + "end": 9138, + "loc": { + "start": { + "line": 218, + "column": 20 + }, + "end": { + "line": 218, + "column": 54 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 9237, + "end": 9462, + "loc": { + "start": { + "line": 220, + "column": 20 + }, + "end": { + "line": 224, + "column": 21 + } + }, + "test": { + "type": "BinaryExpression", + "start": 9241, + "end": 9259, + "loc": { + "start": { + "line": 220, + "column": 24 + }, + "end": { + "line": 220, + "column": 42 + } + }, + "left": { + "type": "Identifier", + "start": 9241, + "end": 9248, + "loc": { + "start": { + "line": 220, + "column": 24 + }, + "end": { + "line": 220, + "column": 31 + }, + "identifierName": "cameraX" + }, + "name": "cameraX" + }, + "operator": ">", + "right": { + "type": "Identifier", + "start": 9251, + "end": 9259, + "loc": { + "start": { + "line": 220, + "column": 34 + }, + "end": { + "line": 220, + "column": 42 + }, + "identifierName": "rightEnd" + }, + "name": "rightEnd" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 9261, + "end": 9347, + "loc": { + "start": { + "line": 220, + "column": 44 + }, + "end": { + "line": 222, + "column": 21 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 9288, + "end": 9324, + "loc": { + "start": { + "line": 221, + "column": 24 + }, + "end": { + "line": 221, + "column": 60 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 9288, + "end": 9323, + "loc": { + "start": { + "line": 221, + "column": 24 + }, + "end": { + "line": 221, + "column": 59 + } + }, + "operator": "+=", + "left": { + "type": "MemberExpression", + "start": 9288, + "end": 9299, + "loc": { + "start": { + "line": 221, + "column": 24 + }, + "end": { + "line": 221, + "column": 35 + } + }, + "object": { + "type": "Identifier", + "start": 9288, + "end": 9297, + "loc": { + "start": { + "line": 221, + "column": 24 + }, + "end": { + "line": 221, + "column": 33 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 9298, + "end": 9299, + "loc": { + "start": { + "line": 221, + "column": 34 + }, + "end": { + "line": 221, + "column": 35 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + }, + "right": { + "type": "MemberExpression", + "start": 9303, + "end": 9323, + "loc": { + "start": { + "line": 221, + "column": 39 + }, + "end": { + "line": 221, + "column": 59 + } + }, + "object": { + "type": "MemberExpression", + "start": 9303, + "end": 9317, + "loc": { + "start": { + "line": 221, + "column": 39 + }, + "end": { + "line": 221, + "column": 53 + } + }, + "object": { + "type": "Identifier", + "start": 9303, + "end": 9312, + "loc": { + "start": { + "line": 221, + "column": 39 + }, + "end": { + "line": 221, + "column": 48 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 9313, + "end": 9317, + "loc": { + "start": { + "line": 221, + "column": 49 + }, + "end": { + "line": 221, + "column": 53 + }, + "identifierName": "icon" + }, + "name": "icon" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 9318, + "end": 9323, + "loc": { + "start": { + "line": 221, + "column": 54 + }, + "end": { + "line": 221, + "column": 59 + }, + "identifierName": "width" + }, + "name": "width" + }, + "computed": false + } + } + } + ], + "directives": [] + }, + "alternate": { + "type": "IfStatement", + "start": 9353, + "end": 9462, + "loc": { + "start": { + "line": 222, + "column": 27 + }, + "end": { + "line": 224, + "column": 21 + } + }, + "test": { + "type": "BinaryExpression", + "start": 9357, + "end": 9374, + "loc": { + "start": { + "line": 222, + "column": 31 + }, + "end": { + "line": 222, + "column": 48 + } + }, + "left": { + "type": "Identifier", + "start": 9357, + "end": 9364, + "loc": { + "start": { + "line": 222, + "column": 31 + }, + "end": { + "line": 222, + "column": 38 + }, + "identifierName": "cameraX" + }, + "name": "cameraX" + }, + "operator": "<", + "right": { + "type": "Identifier", + "start": 9367, + "end": 9374, + "loc": { + "start": { + "line": 222, + "column": 41 + }, + "end": { + "line": 222, + "column": 48 + }, + "identifierName": "leftEnd" + }, + "name": "leftEnd" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 9376, + "end": 9462, + "loc": { + "start": { + "line": 222, + "column": 50 + }, + "end": { + "line": 224, + "column": 21 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 9403, + "end": 9439, + "loc": { + "start": { + "line": 223, + "column": 24 + }, + "end": { + "line": 223, + "column": 60 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 9403, + "end": 9438, + "loc": { + "start": { + "line": 223, + "column": 24 + }, + "end": { + "line": 223, + "column": 59 + } + }, + "operator": "-=", + "left": { + "type": "MemberExpression", + "start": 9403, + "end": 9414, + "loc": { + "start": { + "line": 223, + "column": 24 + }, + "end": { + "line": 223, + "column": 35 + } + }, + "object": { + "type": "Identifier", + "start": 9403, + "end": 9412, + "loc": { + "start": { + "line": 223, + "column": 24 + }, + "end": { + "line": 223, + "column": 33 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 9413, + "end": 9414, + "loc": { + "start": { + "line": 223, + "column": 34 + }, + "end": { + "line": 223, + "column": 35 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + }, + "right": { + "type": "MemberExpression", + "start": 9418, + "end": 9438, + "loc": { + "start": { + "line": 223, + "column": 39 + }, + "end": { + "line": 223, + "column": 59 + } + }, + "object": { + "type": "MemberExpression", + "start": 9418, + "end": 9432, + "loc": { + "start": { + "line": 223, + "column": 39 + }, + "end": { + "line": 223, + "column": 53 + } + }, + "object": { + "type": "Identifier", + "start": 9418, + "end": 9427, + "loc": { + "start": { + "line": 223, + "column": 39 + }, + "end": { + "line": 223, + "column": 48 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 9428, + "end": 9432, + "loc": { + "start": { + "line": 223, + "column": 49 + }, + "end": { + "line": 223, + "column": 53 + }, + "identifierName": "icon" + }, + "name": "icon" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 9433, + "end": 9438, + "loc": { + "start": { + "line": 223, + "column": 54 + }, + "end": { + "line": 223, + "column": 59 + }, + "identifierName": "width" + }, + "name": "width" + }, + "computed": false + } + } + } + ], + "directives": [] + }, + "alternate": null + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [] + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Logic cannot be ran on background instances as they should not loop", + "start": 8791, + "end": 8861, + "loc": { + "start": { + "line": 213, + "column": 12 + }, + "end": { + "line": 213, + "column": 82 + } + } + } + ] + } + ], + "directives": [] + } + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 9519, + "end": 9547, + "loc": { + "start": { + "line": 228, + "column": 8 + }, + "end": { + "line": 228, + "column": 36 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 9519, + "end": 9546, + "loc": { + "start": { + "line": 228, + "column": 8 + }, + "end": { + "line": 228, + "column": 35 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 9519, + "end": 9536, + "loc": { + "start": { + "line": 228, + "column": 8 + }, + "end": { + "line": 228, + "column": 25 + } + }, + "object": { + "type": "MemberExpression", + "start": 9519, + "end": 9534, + "loc": { + "start": { + "line": 228, + "column": 8 + }, + "end": { + "line": 228, + "column": 23 + } + }, + "object": { + "type": "ThisExpression", + "start": 9519, + "end": 9523, + "loc": { + "start": { + "line": 228, + "column": 8 + }, + "end": { + "line": 228, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 9524, + "end": 9534, + "loc": { + "start": { + "line": 228, + "column": 13 + }, + "end": { + "line": 228, + "column": 23 + }, + "identifierName": "lastCamPos" + }, + "name": "lastCamPos" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 9535, + "end": 9536, + "loc": { + "start": { + "line": 228, + "column": 24 + }, + "end": { + "line": 228, + "column": 25 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 9539, + "end": 9546, + "loc": { + "start": { + "line": 228, + "column": 28 + }, + "end": { + "line": 228, + "column": 35 + }, + "identifierName": "cameraX" + }, + "name": "cameraX" + } + } + }, + { + "type": "ExpressionStatement", + "start": 9557, + "end": 9585, + "loc": { + "start": { + "line": 229, + "column": 8 + }, + "end": { + "line": 229, + "column": 36 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 9557, + "end": 9584, + "loc": { + "start": { + "line": 229, + "column": 8 + }, + "end": { + "line": 229, + "column": 35 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 9557, + "end": 9574, + "loc": { + "start": { + "line": 229, + "column": 8 + }, + "end": { + "line": 229, + "column": 25 + } + }, + "object": { + "type": "MemberExpression", + "start": 9557, + "end": 9572, + "loc": { + "start": { + "line": 229, + "column": 8 + }, + "end": { + "line": 229, + "column": 23 + } + }, + "object": { + "type": "ThisExpression", + "start": 9557, + "end": 9561, + "loc": { + "start": { + "line": 229, + "column": 8 + }, + "end": { + "line": 229, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 9562, + "end": 9572, + "loc": { + "start": { + "line": 229, + "column": 13 + }, + "end": { + "line": 229, + "column": 23 + }, + "identifierName": "lastCamPos" + }, + "name": "lastCamPos" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 9573, + "end": 9574, + "loc": { + "start": { + "line": 229, + "column": 24 + }, + "end": { + "line": 229, + "column": 25 + }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 9577, + "end": 9584, + "loc": { + "start": { + "line": 229, + "column": 28 + }, + "end": { + "line": 229, + "column": 35 + }, + "identifierName": "cameraY" + }, + "name": "cameraY" + } + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Updates the parallax system.\r\n * @param {number} pCameraX - The x position of the camera.\r\n * @param {number} pCameraY - The y position of the camera.\r\n ", + "start": 7331, + "end": 7510, + "loc": { + "start": { + "line": 172, + "column": 4 + }, + "end": { + "line": 176, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Handles the onRelocated event for instances. Moves their children in relativity to their position.\r\n * @param {Diob | MapObject} pInstance - The instance to handle the event for.\r\n * @param {MapObject[]} pChildren - An array of children belonging to the instance.\r\n ", + "start": 9598, + "end": 9890, + "loc": { + "start": { + "line": 231, + "column": 4 + }, + "end": { + "line": 235, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 9896, + "end": 10224, + "loc": { + "start": { + "line": 236, + "column": 4 + }, + "end": { + "line": 243, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 9896, + "end": 9913, + "loc": { + "start": { + "line": 236, + "column": 4 + }, + "end": { + "line": 236, + "column": 21 + }, + "identifierName": "handleOnRelocated" + }, + "name": "handleOnRelocated", + "leadingComments": null + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 9914, + "end": 9923, + "loc": { + "start": { + "line": 236, + "column": 22 + }, + "end": { + "line": 236, + "column": 31 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + { + "type": "Identifier", + "start": 9925, + "end": 9934, + "loc": { + "start": { + "line": 236, + "column": 33 + }, + "end": { + "line": 236, + "column": 42 + }, + "identifierName": "pChildren" + }, + "name": "pChildren" + } + ], + "body": { + "type": "BlockStatement", + "start": 9936, + "end": 10224, + "loc": { + "start": { + "line": 236, + "column": 44 + }, + "end": { + "line": 243, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 10012, + "end": 10217, + "loc": { + "start": { + "line": 238, + "column": 8 + }, + "end": { + "line": 242, + "column": 11 + } + }, + "expression": { + "type": "CallExpression", + "start": 10012, + "end": 10216, + "loc": { + "start": { + "line": 238, + "column": 8 + }, + "end": { + "line": 242, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 10012, + "end": 10029, + "loc": { + "start": { + "line": 238, + "column": 8 + }, + "end": { + "line": 238, + "column": 25 + } + }, + "object": { + "type": "Identifier", + "start": 10012, + "end": 10021, + "loc": { + "start": { + "line": 238, + "column": 8 + }, + "end": { + "line": 238, + "column": 17 + }, + "identifierName": "pChildren" + }, + "name": "pChildren", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 10022, + "end": 10029, + "loc": { + "start": { + "line": 238, + "column": 18 + }, + "end": { + "line": 238, + "column": 25 + }, + "identifierName": "forEach" + }, + "name": "forEach" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 10030, + "end": 10215, + "loc": { + "start": { + "line": 238, + "column": 26 + }, + "end": { + "line": 242, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 10031, + "end": 10037, + "loc": { + "start": { + "line": 238, + "column": 27 + }, + "end": { + "line": 238, + "column": 33 + }, + "identifierName": "pChild" + }, + "name": "pChild" + } + ], + "body": { + "type": "BlockStatement", + "start": 10042, + "end": 10215, + "loc": { + "start": { + "line": 238, + "column": 38 + }, + "end": { + "line": 242, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 10057, + "end": 10099, + "loc": { + "start": { + "line": 239, + "column": 12 + }, + "end": { + "line": 239, + "column": 54 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 10057, + "end": 10098, + "loc": { + "start": { + "line": 239, + "column": 12 + }, + "end": { + "line": 239, + "column": 53 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 10057, + "end": 10065, + "loc": { + "start": { + "line": 239, + "column": 12 + }, + "end": { + "line": 239, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 10057, + "end": 10063, + "loc": { + "start": { + "line": 239, + "column": 12 + }, + "end": { + "line": 239, + "column": 18 + }, + "identifierName": "pChild" + }, + "name": "pChild" + }, + "property": { + "type": "Identifier", + "start": 10064, + "end": 10065, + "loc": { + "start": { + "line": 239, + "column": 19 + }, + "end": { + "line": 239, + "column": 20 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + }, + "right": { + "type": "BinaryExpression", + "start": 10068, + "end": 10098, + "loc": { + "start": { + "line": 239, + "column": 23 + }, + "end": { + "line": 239, + "column": 53 + } + }, + "left": { + "type": "MemberExpression", + "start": 10068, + "end": 10079, + "loc": { + "start": { + "line": 239, + "column": 23 + }, + "end": { + "line": 239, + "column": 34 + } + }, + "object": { + "type": "Identifier", + "start": 10068, + "end": 10077, + "loc": { + "start": { + "line": 239, + "column": 23 + }, + "end": { + "line": 239, + "column": 32 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 10078, + "end": 10079, + "loc": { + "start": { + "line": 239, + "column": 33 + }, + "end": { + "line": 239, + "column": 34 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + }, + "operator": "+", + "right": { + "type": "MemberExpression", + "start": 10082, + "end": 10098, + "loc": { + "start": { + "line": 239, + "column": 37 + }, + "end": { + "line": 239, + "column": 53 + } + }, + "object": { + "type": "Identifier", + "start": 10082, + "end": 10088, + "loc": { + "start": { + "line": 239, + "column": 37 + }, + "end": { + "line": 239, + "column": 43 + }, + "identifierName": "pChild" + }, + "name": "pChild" + }, + "property": { + "type": "Identifier", + "start": 10089, + "end": 10098, + "loc": { + "start": { + "line": 239, + "column": 44 + }, + "end": { + "line": 239, + "column": 53 + }, + "identifierName": "relativeX" + }, + "name": "relativeX" + }, + "computed": false + } + } + } + }, + { + "type": "ExpressionStatement", + "start": 10113, + "end": 10155, + "loc": { + "start": { + "line": 240, + "column": 12 + }, + "end": { + "line": 240, + "column": 54 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 10113, + "end": 10154, + "loc": { + "start": { + "line": 240, + "column": 12 + }, + "end": { + "line": 240, + "column": 53 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 10113, + "end": 10121, + "loc": { + "start": { + "line": 240, + "column": 12 + }, + "end": { + "line": 240, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 10113, + "end": 10119, + "loc": { + "start": { + "line": 240, + "column": 12 + }, + "end": { + "line": 240, + "column": 18 + }, + "identifierName": "pChild" + }, + "name": "pChild" + }, + "property": { + "type": "Identifier", + "start": 10120, + "end": 10121, + "loc": { + "start": { + "line": 240, + "column": 19 + }, + "end": { + "line": 240, + "column": 20 + }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + }, + "right": { + "type": "BinaryExpression", + "start": 10124, + "end": 10154, + "loc": { + "start": { + "line": 240, + "column": 23 + }, + "end": { + "line": 240, + "column": 53 + } + }, + "left": { + "type": "MemberExpression", + "start": 10124, + "end": 10135, + "loc": { + "start": { + "line": 240, + "column": 23 + }, + "end": { + "line": 240, + "column": 34 + } + }, + "object": { + "type": "Identifier", + "start": 10124, + "end": 10133, + "loc": { + "start": { + "line": 240, + "column": 23 + }, + "end": { + "line": 240, + "column": 32 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 10134, + "end": 10135, + "loc": { + "start": { + "line": 240, + "column": 33 + }, + "end": { + "line": 240, + "column": 34 + }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + }, + "operator": "+", + "right": { + "type": "MemberExpression", + "start": 10138, + "end": 10154, + "loc": { + "start": { + "line": 240, + "column": 37 + }, + "end": { + "line": 240, + "column": 53 + } + }, + "object": { + "type": "Identifier", + "start": 10138, + "end": 10144, + "loc": { + "start": { + "line": 240, + "column": 37 + }, + "end": { + "line": 240, + "column": 43 + }, + "identifierName": "pChild" + }, + "name": "pChild" + }, + "property": { + "type": "Identifier", + "start": 10145, + "end": 10154, + "loc": { + "start": { + "line": 240, + "column": 44 + }, + "end": { + "line": 240, + "column": 53 + }, + "identifierName": "relativeY" + }, + "name": "relativeY" + }, + "computed": false + } + } + } }, - "end": { - "line": 17, - "column": 61 + { + "type": "ExpressionStatement", + "start": 10169, + "end": 10204, + "loc": { + "start": { + "line": 241, + "column": 12 + }, + "end": { + "line": 241, + "column": 47 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 10169, + "end": 10203, + "loc": { + "start": { + "line": 241, + "column": 12 + }, + "end": { + "line": 241, + "column": 46 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 10169, + "end": 10183, + "loc": { + "start": { + "line": 241, + "column": 12 + }, + "end": { + "line": 241, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 10169, + "end": 10175, + "loc": { + "start": { + "line": 241, + "column": 12 + }, + "end": { + "line": 241, + "column": 18 + }, + "identifierName": "pChild" + }, + "name": "pChild" + }, + "property": { + "type": "Identifier", + "start": 10176, + "end": 10183, + "loc": { + "start": { + "line": 241, + "column": 19 + }, + "end": { + "line": 241, + "column": 26 + }, + "identifierName": "mapName" + }, + "name": "mapName" + }, + "computed": false + }, + "right": { + "type": "MemberExpression", + "start": 10186, + "end": 10203, + "loc": { + "start": { + "line": 241, + "column": 29 + }, + "end": { + "line": 241, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 10186, + "end": 10195, + "loc": { + "start": { + "line": 241, + "column": 29 + }, + "end": { + "line": 241, + "column": 38 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 10196, + "end": 10203, + "loc": { + "start": { + "line": 241, + "column": 39 + }, + "end": { + "line": 241, + "column": 46 + }, + "identifierName": "mapName" + }, + "name": "mapName" + }, + "computed": false + } + } } - }, - "extra": { - "rawValue": "#ff6600", - "raw": "'#ff6600'" - }, - "value": "#ff6600" + ], + "directives": [] } - ] + } + ], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Update the children's position when the parent moves", + "start": 9947, + "end": 10002, + "loc": { + "start": { + "line": 237, + "column": 8 + }, + "end": { + "line": 237, + "column": 63 + } + } } + ] + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Handles the onRelocated event for instances. Moves their children in relativity to their position.\r\n * @param {Diob | MapObject} pInstance - The instance to handle the event for.\r\n * @param {MapObject[]} pChildren - An array of children belonging to the instance.\r\n ", + "start": 9598, + "end": 9890, + "loc": { + "start": { + "line": 231, + "column": 4 + }, + "end": { + "line": 235, + "column": 7 + } + } + } + ] + } + ] + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 10231, + "end": 10272, + "loc": { + "start": { + "line": 246, + "column": 0 + }, + "end": { + "line": 246, + "column": 41 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 10237, + "end": 10271, + "loc": { + "start": { + "line": 246, + "column": 6 + }, + "end": { + "line": 246, + "column": 40 + } + }, + "id": { + "type": "Identifier", + "start": 10237, + "end": 10245, + "loc": { + "start": { + "line": 246, + "column": 6 + }, + "end": { + "line": 246, + "column": 14 + }, + "identifierName": "Parallax" + }, + "name": "Parallax" + }, + "init": { + "type": "NewExpression", + "start": 10248, + "end": 10271, + "loc": { + "start": { + "line": 246, + "column": 17 + }, + "end": { + "line": 246, + "column": 40 + } + }, + "callee": { + "type": "Identifier", + "start": 10252, + "end": 10269, + "loc": { + "start": { + "line": 246, + "column": 21 + }, + "end": { + "line": 246, + "column": 38 + }, + "identifierName": "ParallaxSingleton" + }, + "name": "ParallaxSingleton" + }, + "arguments": [] + } + } + ], + "kind": "const", + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportNamedDeclaration", + "start": 10274, + "end": 10294, + "loc": { + "start": { + "line": 247, + "column": 0 + }, + "end": { + "line": 247, + "column": 20 + } + }, + "declaration": null, + "specifiers": [ + { + "type": "ExportSpecifier", + "start": 10283, + "end": 10291, + "loc": { + "start": { + "line": 247, + "column": 9 + }, + "end": { + "line": 247, + "column": 17 + } + }, + "local": { + "type": "Identifier", + "start": 10283, + "end": 10291, + "loc": { + "start": { + "line": 247, + "column": 9 + }, + "end": { + "line": 247, + "column": 17 + }, + "identifierName": "Parallax" + }, + "name": "Parallax" + }, + "exported": { + "type": "Identifier", + "start": 10283, + "end": 10291, + "loc": { + "start": { + "line": 247, + "column": 9 + }, + "end": { + "line": 247, + "column": 17 + }, + "identifierName": "Parallax" + }, + "name": "Parallax" + } + } + ], + "source": null + }, + { + "type": "ExportNamedDeclaration", + "start": 10274, + "end": 10294, + "loc": { + "start": { + "line": 247, + "column": 0 + }, + "end": { + "line": 247, + "column": 20 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 10231, + "end": 10272, + "loc": { + "start": { + "line": 246, + "column": 0 + }, + "end": { + "line": 246, + "column": 41 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 10237, + "end": 10271, + "loc": { + "start": { + "line": 246, + "column": 6 + }, + "end": { + "line": 246, + "column": 40 + } + }, + "id": { + "type": "Identifier", + "start": 10237, + "end": 10245, + "loc": { + "start": { + "line": 246, + "column": 6 + }, + "end": { + "line": 246, + "column": 14 + }, + "identifierName": "Parallax" + }, + "name": "Parallax" + }, + "init": { + "type": "NewExpression", + "start": 10248, + "end": 10271, + "loc": { + "start": { + "line": 246, + "column": 17 + }, + "end": { + "line": 246, + "column": 40 + } + }, + "callee": { + "type": "Identifier", + "start": 10252, + "end": 10269, + "loc": { + "start": { + "line": 246, + "column": 21 + }, + "end": { + "line": 246, + "column": 38 + }, + "identifierName": "ParallaxSingleton" + }, + "name": "ParallaxSingleton" + }, + "arguments": [] + } + } + ], + "kind": "const", + "leadingComments": [], + "trailingComments": [] + }, + "specifiers": null, + "source": null + }, + { + "type": "ExportNamedDeclaration", + "start": 10274, + "end": 10294, + "loc": { + "start": { + "line": 247, + "column": 0 + }, + "end": { + "line": 247, + "column": 20 + } + }, + "declaration": { + "type": "ClassDeclaration", + "start": 90, + "end": 10227, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 244, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 96, + "end": 113, + "loc": { + "start": { + "line": 4, + "column": 6 + }, + "end": { + "line": 4, + "column": 23 + }, + "identifierName": "ParallaxSingleton" + }, + "name": "ParallaxSingleton" + }, + "superClass": null, + "body": { + "type": "ClassBody", + "start": 114, + "end": 10227, + "loc": { + "start": { + "line": 4, + "column": 24 + }, + "end": { + "line": 244, + "column": 1 + } + }, + "body": [ + { + "type": "ClassProperty", + "start": 162, + "end": 193, + "loc": { + "start": { + "line": 8, + "column": 1 + }, + "end": { + "line": 8, + "column": 32 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 162, + "end": 169, + "loc": { + "start": { + "line": 8, + "column": 1 + }, + "end": { + "line": 8, + "column": 8 + }, + "identifierName": "version" + }, + "name": "version", + "leadingComments": null + }, + "value": { + "type": "StringLiteral", + "start": 172, + "end": 192, + "loc": { + "start": { + "line": 8, + "column": 11 + }, + "end": { + "line": 8, + "column": 31 } - ], - "directives": [], - "trailingComments": null + }, + "extra": { + "rawValue": "VERSION_REPLACE_ME", + "raw": "\"VERSION_REPLACE_ME\"" + }, + "value": "VERSION_REPLACE_ME" }, "leadingComments": [ { "type": "CommentBlock", - "value": "*\r\n * @private\r\n ", - "start": 304, - "end": 333, + "value": "*\r\n\t * The version of the module.\r\n\t ", + "start": 118, + "end": 159, + "loc": { + "start": { + "line": 5, + "column": 1 + }, + "end": { + "line": 7, + "column": 4 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "* The logger module this module uses to log errors / logs\r\n * @private\r\n * @type {Object}\r\n ", + "start": 199, + "end": 307, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 12, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 313, + "end": 335, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 26 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 313, + "end": 319, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 10 + }, + "identifierName": "logger" + }, + "name": "logger", + "leadingComments": null + }, + "value": { + "type": "NewExpression", + "start": 322, + "end": 334, + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 13, + "column": 25 + } + }, + "callee": { + "type": "Identifier", + "start": 326, + "end": 332, "loc": { "start": { "line": 13, + "column": 17 + }, + "end": { + "line": 13, + "column": 23 + }, + "identifierName": "Logger" + }, + "name": "Logger" + }, + "arguments": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "* The logger module this module uses to log errors / logs\r\n * @private\r\n * @type {Object}\r\n ", + "start": 199, + "end": 307, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 12, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * The layer class.\r\n * @type {Layer}\r\n ", + "start": 341, + "end": 400, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 17, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 406, + "end": 420, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 18 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 406, + "end": 411, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 9 + }, + "identifierName": "Layer" + }, + "name": "Layer", + "leadingComments": null + }, + "value": { + "type": "Identifier", + "start": 414, + "end": 419, + "loc": { + "start": { + "line": 18, + "column": 12 + }, + "end": { + "line": 18, + "column": 17 + }, + "identifierName": "Layer" + }, + "name": "Layer" + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * The layer class.\r\n * @type {Layer}\r\n ", + "start": 341, + "end": 400, + "loc": { + "start": { + "line": 14, "column": 4 }, "end": { - "line": 15, + "line": 17, "column": 7 } } @@ -13294,9 +14500,9 @@ "trailingComments": [ { "type": "CommentBlock", - "value": "*\r\n * An array of instances that use the parallax system.\r\n * @private\r\n * @type {Array}\r\n ", + "value": "*\r\n * An set of instances that use the parallax system.\r\n * @private\r\n * @type {Set}\r\n ", "start": 426, - "end": 537, + "end": 533, "loc": { "start": { "line": 19, @@ -13312,8 +14518,8 @@ }, { "type": "ClassProperty", - "start": 543, - "end": 558, + "start": 539, + "end": 561, "loc": { "start": { "line": 24, @@ -13321,15 +14527,15 @@ }, "end": { "line": 24, - "column": 19 + "column": 26 } }, "static": false, "computed": false, "key": { "type": "Identifier", - "start": 543, - "end": 552, + "start": 539, + "end": 548, "loc": { "start": { "line": 24, @@ -13345,9 +14551,9 @@ "leadingComments": null }, "value": { - "type": "ArrayExpression", - "start": 555, - "end": 557, + "type": "NewExpression", + "start": 551, + "end": 560, "loc": { "start": { "line": 24, @@ -13355,17 +14561,34 @@ }, "end": { "line": 24, - "column": 18 + "column": 25 } }, - "elements": [] + "callee": { + "type": "Identifier", + "start": 555, + "end": 558, + "loc": { + "start": { + "line": 24, + "column": 20 + }, + "end": { + "line": 24, + "column": 23 + }, + "identifierName": "Set" + }, + "name": "Set" + }, + "arguments": [] }, "leadingComments": [ { "type": "CommentBlock", - "value": "*\r\n * An array of instances that use the parallax system.\r\n * @private\r\n * @type {Array}\r\n ", + "value": "*\r\n * An set of instances that use the parallax system.\r\n * @private\r\n * @type {Set}\r\n ", "start": 426, - "end": 537, + "end": 533, "loc": { "start": { "line": 19, @@ -13382,8 +14605,8 @@ { "type": "CommentBlock", "value": "*\r\n * Weakmap to store info on instances used in this module.\r\n * @private\r\n * @type {WeakMap}\r\n ", - "start": 564, - "end": 681, + "start": 567, + "end": 684, "loc": { "start": { "line": 25, @@ -13399,8 +14622,8 @@ }, { "type": "ClassProperty", - "start": 687, - "end": 719, + "start": 690, + "end": 722, "loc": { "start": { "line": 30, @@ -13415,8 +14638,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 687, - "end": 702, + "start": 690, + "end": 705, "loc": { "start": { "line": 30, @@ -13433,8 +14656,8 @@ }, "value": { "type": "NewExpression", - "start": 705, - "end": 718, + "start": 708, + "end": 721, "loc": { "start": { "line": 30, @@ -13447,8 +14670,8 @@ }, "callee": { "type": "Identifier", - "start": 709, - "end": 716, + "start": 712, + "end": 719, "loc": { "start": { "line": 30, @@ -13468,8 +14691,8 @@ { "type": "CommentBlock", "value": "*\r\n * Weakmap to store info on instances used in this module.\r\n * @private\r\n * @type {WeakMap}\r\n ", - "start": 564, - "end": 681, + "start": 567, + "end": 684, "loc": { "start": { "line": 25, @@ -13486,8 +14709,8 @@ { "type": "CommentBlock", "value": "*\r\n * The last position of the camera.\r\n * @private\r\n * @type {Object}\r\n ", - "start": 725, - "end": 818, + "start": 728, + "end": 821, "loc": { "start": { "line": 31, @@ -13503,8 +14726,8 @@ }, { "type": "ClassProperty", - "start": 824, - "end": 875, + "start": 827, + "end": 878, "loc": { "start": { "line": 36, @@ -13519,8 +14742,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 824, - "end": 834, + "start": 827, + "end": 837, "loc": { "start": { "line": 36, @@ -13537,8 +14760,8 @@ }, "value": { "type": "ObjectExpression", - "start": 837, - "end": 875, + "start": 840, + "end": 878, "loc": { "start": { "line": 36, @@ -13552,8 +14775,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 849, - "end": 853, + "start": 852, + "end": 856, "loc": { "start": { "line": 37, @@ -13569,8 +14792,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 849, - "end": 850, + "start": 852, + "end": 853, "loc": { "start": { "line": 37, @@ -13586,8 +14809,8 @@ }, "value": { "type": "NumericLiteral", - "start": 852, - "end": 853, + "start": 855, + "end": 856, "loc": { "start": { "line": 37, @@ -13607,8 +14830,8 @@ }, { "type": "ObjectProperty", - "start": 864, - "end": 868, + "start": 867, + "end": 871, "loc": { "start": { "line": 38, @@ -13624,8 +14847,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 864, - "end": 865, + "start": 867, + "end": 868, "loc": { "start": { "line": 38, @@ -13641,8 +14864,8 @@ }, "value": { "type": "NumericLiteral", - "start": 867, - "end": 868, + "start": 870, + "end": 871, "loc": { "start": { "line": 38, @@ -13662,16 +14885,16 @@ "trailingComments": [ { "type": "CommentBlock", - "value": "*\r\n * Adds an instance to the parallax system.\r\n * Call this first and then add your instance to the map.\r\n * @param {Object} pInstance - The instance to add to the parallax system.\r\n * @param {Object} pParallaxInfo - The parallax info that tells this module how to control this instance.\r\n * @property {number} pParallaxInfo.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {number} pParallaxInfo.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {boolean} pParallaxInfo.loop - Whether this instance will loop endlessly.\r\n * @param {number} [pX] - The x position this instance will start at.\r\n * @param {number} [pY] - The y position this instance will start at.\r\n * @param {string} [pMap] - The map this instance will start at.\r\n ", - "start": 881, - "end": 1856, + "value": "*\r\n * @private\r\n ", + "start": 884, + "end": 913, "loc": { "start": { "line": 40, "column": 4 }, "end": { - "line": 51, + "line": 42, "column": 7 } } @@ -13685,8 +14908,8 @@ { "type": "CommentBlock", "value": "*\r\n * The last position of the camera.\r\n * @private\r\n * @type {Object}\r\n ", - "start": 725, - "end": 818, + "start": 728, + "end": 821, "loc": { "start": { "line": 31, @@ -13702,16 +14925,246 @@ "trailingComments": [ { "type": "CommentBlock", - "value": "*\r\n * Adds an instance to the parallax system.\r\n * Call this first and then add your instance to the map.\r\n * @param {Object} pInstance - The instance to add to the parallax system.\r\n * @param {Object} pParallaxInfo - The parallax info that tells this module how to control this instance.\r\n * @property {number} pParallaxInfo.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {number} pParallaxInfo.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {boolean} pParallaxInfo.loop - Whether this instance will loop endlessly.\r\n * @param {number} [pX] - The x position this instance will start at.\r\n * @param {number} [pY] - The y position this instance will start at.\r\n * @param {string} [pMap] - The map this instance will start at.\r\n ", - "start": 881, - "end": 1856, + "value": "*\r\n * @private\r\n ", + "start": 884, + "end": 913, "loc": { "start": { "line": 40, "column": 4 }, "end": { - "line": 51, + "line": 42, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 916, + "end": 1000, + "loc": { + "start": { + "line": 43, + "column": 1 + }, + "end": { + "line": 45, + "column": 2 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 916, + "end": 927, + "loc": { + "start": { + "line": 43, + "column": 1 + }, + "end": { + "line": 43, + "column": 12 + }, + "identifierName": "constructor" + }, + "name": "constructor" + }, + "kind": "constructor", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 930, + "end": 1000, + "loc": { + "start": { + "line": 43, + "column": 15 + }, + "end": { + "line": 45, + "column": 2 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 941, + "end": 996, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 63 + } + }, + "expression": { + "type": "CallExpression", + "start": 941, + "end": 995, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 62 + } + }, + "callee": { + "type": "MemberExpression", + "start": 941, + "end": 965, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 32 + } + }, + "object": { + "type": "MemberExpression", + "start": 941, + "end": 952, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 19 + } + }, + "object": { + "type": "ThisExpression", + "start": 941, + "end": 945, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 946, + "end": 952, + "loc": { + "start": { + "line": 44, + "column": 13 + }, + "end": { + "line": 44, + "column": 19 + }, + "identifierName": "logger" + }, + "name": "logger" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 953, + "end": 965, + "loc": { + "start": { + "line": 44, + "column": 20 + }, + "end": { + "line": 44, + "column": 32 + }, + "identifierName": "registerType" + }, + "name": "registerType" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 966, + "end": 983, + "loc": { + "start": { + "line": 44, + "column": 33 + }, + "end": { + "line": 44, + "column": 50 + } + }, + "extra": { + "rawValue": "Parallax-Module", + "raw": "'Parallax-Module'" + }, + "value": "Parallax-Module" + }, + { + "type": "StringLiteral", + "start": 985, + "end": 994, + "loc": { + "start": { + "line": 44, + "column": 52 + }, + "end": { + "line": 44, + "column": 61 + } + }, + "extra": { + "rawValue": "#ff6600", + "raw": "'#ff6600'" + }, + "value": "#ff6600" + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adds an instance to the parallax system.\r\n * Call this first and then add your instance to the map.\r\n * @param {Object} pInstance - The instance to add to the parallax system.\r\n * @param {Object} pConfig - The parallax info that tells this module how to control this instance.\r\n * @prop {number} pConfig.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @prop {number} pConfig.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @prop {boolean} pConfig.loop - Whether this instance will loop endlessly.\r\n * @param {number} [pX] - The x position this instance will start at.\r\n * @param {number} [pY] - The y position this instance will start at.\r\n * @param {string} [pMap] - The map this instance will start at.\r\n * \r\n * ## The following is how the speed of the parallax multipliers are factored in. \r\n (x | y) < 1 = faster behind the camera eg: (-> Player goes this way = Instance goes this way <-) \r\n (x | y) > 1 faster against the camera eg: (-> Player goes this way = Instance goes this way ->) \r\n (x | y) = 0 = static to the camera eg: (-> Player goes this way = Instance does nothing, and moves with the camera) \r\n (x | y) = 1 = moves with the camera eg: (-> Player goes this way = Instance goes this way -> at position of camera) \r\n ", + "start": 1006, + "end": 2501, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 63, "column": 7 } } @@ -13720,15 +15173,15 @@ }, { "type": "ClassMethod", - "start": 1862, - "end": 2937, + "start": 2507, + "end": 3495, "loc": { "start": { - "line": 52, + "line": 64, "column": 4 }, "end": { - "line": 72, + "line": 85, "column": 5 } }, @@ -13736,20 +15189,21 @@ "computed": false, "key": { "type": "Identifier", - "start": 1862, - "end": 1865, + "start": 2507, + "end": 2510, "loc": { "start": { - "line": 52, + "line": 64, "column": 4 }, "end": { - "line": 52, + "line": 64, "column": 7 }, "identifierName": "add" }, - "name": "add" + "name": "add", + "leadingComments": null }, "kind": "method", "id": null, @@ -13759,15 +15213,15 @@ "params": [ { "type": "Identifier", - "start": 1866, - "end": 1875, + "start": 2511, + "end": 2520, "loc": { "start": { - "line": 52, + "line": 64, "column": 8 }, "end": { - "line": 52, + "line": 64, "column": 17 }, "identifierName": "pInstance" @@ -13776,33 +15230,33 @@ }, { "type": "Identifier", - "start": 1877, - "end": 1890, + "start": 2522, + "end": 2529, "loc": { "start": { - "line": 52, + "line": 64, "column": 19 }, "end": { - "line": 52, - "column": 32 + "line": 64, + "column": 26 }, - "identifierName": "pParallaxInfo" + "identifierName": "pConfig" }, - "name": "pParallaxInfo" + "name": "pConfig" }, { "type": "Identifier", - "start": 1892, - "end": 1894, + "start": 2531, + "end": 2533, "loc": { "start": { - "line": 52, - "column": 34 + "line": 64, + "column": 28 }, "end": { - "line": 52, - "column": 36 + "line": 64, + "column": 30 }, "identifierName": "pX" }, @@ -13810,16 +15264,16 @@ }, { "type": "Identifier", - "start": 1896, - "end": 1898, + "start": 2535, + "end": 2537, "loc": { "start": { - "line": 52, - "column": 38 + "line": 64, + "column": 32 }, "end": { - "line": 52, - "column": 40 + "line": 64, + "column": 34 }, "identifierName": "pY" }, @@ -13827,5050 +15281,4123 @@ }, { "type": "Identifier", - "start": 1900, - "end": 1904, + "start": 2539, + "end": 2543, "loc": { "start": { - "line": 52, - "column": 42 + "line": 64, + "column": 36 }, "end": { - "line": 52, - "column": 46 + "line": 64, + "column": 40 + }, + "identifierName": "pMap" + }, + "name": "pMap" + } + ], + "body": { + "type": "BlockStatement", + "start": 2545, + "end": 3495, + "loc": { + "start": { + "line": 64, + "column": 42 + }, + "end": { + "line": 85, + "column": 5 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 2556, + "end": 2687, + "loc": { + "start": { + "line": 65, + "column": 8 + }, + "end": { + "line": 68, + "column": 9 + } + }, + "test": { + "type": "UnaryExpression", + "start": 2560, + "end": 2570, + "loc": { + "start": { + "line": 65, + "column": 12 + }, + "end": { + "line": 65, + "column": 22 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 2561, + "end": 2570, + "loc": { + "start": { + "line": 65, + "column": 13 + }, + "end": { + "line": 65, + "column": 22 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 2572, + "end": 2687, + "loc": { + "start": { + "line": 65, + "column": 24 + }, + "end": { + "line": 68, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2587, + "end": 2655, + "loc": { + "start": { + "line": 66, + "column": 12 + }, + "end": { + "line": 66, + "column": 80 + } + }, + "expression": { + "type": "CallExpression", + "start": 2587, + "end": 2654, + "loc": { + "start": { + "line": 66, + "column": 12 + }, + "end": { + "line": 66, + "column": 79 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2587, + "end": 2630, + "loc": { + "start": { + "line": 66, + "column": 12 + }, + "end": { + "line": 66, + "column": 55 + } + }, + "object": { + "type": "CallExpression", + "start": 2587, + "end": 2624, + "loc": { + "start": { + "line": 66, + "column": 12 + }, + "end": { + "line": 66, + "column": 49 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2587, + "end": 2605, + "loc": { + "start": { + "line": 66, + "column": 12 + }, + "end": { + "line": 66, + "column": 30 + } + }, + "object": { + "type": "MemberExpression", + "start": 2587, + "end": 2598, + "loc": { + "start": { + "line": 66, + "column": 12 + }, + "end": { + "line": 66, + "column": 23 + } + }, + "object": { + "type": "ThisExpression", + "start": 2587, + "end": 2591, + "loc": { + "start": { + "line": 66, + "column": 12 + }, + "end": { + "line": 66, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 2592, + "end": 2598, + "loc": { + "start": { + "line": 66, + "column": 17 + }, + "end": { + "line": 66, + "column": 23 + }, + "identifierName": "logger" + }, + "name": "logger" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2599, + "end": 2605, + "loc": { + "start": { + "line": 66, + "column": 24 + }, + "end": { + "line": 66, + "column": 30 + }, + "identifierName": "prefix" + }, + "name": "prefix" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 2606, + "end": 2623, + "loc": { + "start": { + "line": 66, + "column": 31 + }, + "end": { + "line": 66, + "column": 48 + } + }, + "extra": { + "rawValue": "Parallax-Module", + "raw": "'Parallax-Module'" + }, + "value": "Parallax-Module" + } + ] + }, + "property": { + "type": "Identifier", + "start": 2625, + "end": 2630, + "loc": { + "start": { + "line": 66, + "column": 50 + }, + "end": { + "line": 66, + "column": 55 + }, + "identifierName": "error" + }, + "name": "error" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 2631, + "end": 2653, + "loc": { + "start": { + "line": 66, + "column": 56 + }, + "end": { + "line": 66, + "column": 78 + } + }, + "extra": { + "rawValue": "No pInstance passed!", + "raw": "'No pInstance passed!'" + }, + "value": "No pInstance passed!" + } + ] + } + }, + { + "type": "ReturnStatement", + "start": 2669, + "end": 2676, + "loc": { + "start": { + "line": 67, + "column": 12 + }, + "end": { + "line": 67, + "column": 19 + } + }, + "argument": null + } + ], + "directives": [] }, - "identifierName": "pMap" - }, - "name": "pMap" - } - ], - "body": { - "type": "BlockStatement", - "start": 1906, - "end": 2937, - "loc": { - "start": { - "line": 52, - "column": 48 + "alternate": null }, - "end": { - "line": 72, - "column": 5 - } - }, - "body": [ { "type": "IfStatement", - "start": 1917, - "end": 2930, + "start": 2699, + "end": 3488, "loc": { "start": { - "line": 53, + "line": 70, "column": 8 }, "end": { - "line": 71, + "line": 84, "column": 9 } }, "test": { - "type": "Identifier", - "start": 1921, - "end": 1930, + "type": "BinaryExpression", + "start": 2703, + "end": 2728, "loc": { "start": { - "line": 53, + "line": 70, "column": 12 }, "end": { - "line": 53, - "column": 21 + "line": 70, + "column": 37 + } + }, + "left": { + "type": "Identifier", + "start": 2703, + "end": 2710, + "loc": { + "start": { + "line": 70, + "column": 12 + }, + "end": { + "line": 70, + "column": 19 + }, + "identifierName": "pConfig" }, - "identifierName": "pInstance" + "name": "pConfig" }, - "name": "pInstance" + "operator": "instanceof", + "right": { + "type": "Identifier", + "start": 2722, + "end": 2728, + "loc": { + "start": { + "line": 70, + "column": 31 + }, + "end": { + "line": 70, + "column": 37 + }, + "identifierName": "Object" + }, + "name": "Object" + } }, "consequent": { "type": "BlockStatement", - "start": 1932, - "end": 2830, + "start": 2730, + "end": 3368, "loc": { "start": { - "line": 53, - "column": 23 + "line": 70, + "column": 39 }, "end": { - "line": 69, + "line": 82, "column": 9 } }, "body": [ { "type": "IfStatement", - "start": 1947, - "end": 2819, + "start": 2745, + "end": 3357, "loc": { "start": { - "line": 54, + "line": 71, "column": 12 }, "end": { - "line": 68, + "line": 81, "column": 13 } }, "test": { - "type": "BinaryExpression", - "start": 1951, - "end": 1982, + "type": "UnaryExpression", + "start": 2749, + "end": 2779, "loc": { "start": { - "line": 54, + "line": 71, "column": 16 }, "end": { - "line": 54, - "column": 47 + "line": 71, + "column": 46 } }, - "left": { - "type": "Identifier", - "start": 1951, - "end": 1964, + "operator": "!", + "prefix": true, + "argument": { + "type": "CallExpression", + "start": 2750, + "end": 2779, "loc": { "start": { - "line": 54, - "column": 16 + "line": 71, + "column": 17 }, "end": { - "line": 54, - "column": 29 - }, - "identifierName": "pParallaxInfo" + "line": 71, + "column": 46 + } }, - "name": "pParallaxInfo" - }, - "operator": "instanceof", - "right": { - "type": "Identifier", - "start": 1976, - "end": 1982, - "loc": { - "start": { - "line": 54, - "column": 41 + "callee": { + "type": "MemberExpression", + "start": 2750, + "end": 2768, + "loc": { + "start": { + "line": 71, + "column": 17 + }, + "end": { + "line": 71, + "column": 35 + } }, - "end": { - "line": 54, - "column": 47 + "object": { + "type": "MemberExpression", + "start": 2750, + "end": 2764, + "loc": { + "start": { + "line": 71, + "column": 17 + }, + "end": { + "line": 71, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 2750, + "end": 2754, + "loc": { + "start": { + "line": 71, + "column": 17 + }, + "end": { + "line": 71, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "start": 2755, + "end": 2764, + "loc": { + "start": { + "line": 71, + "column": 22 + }, + "end": { + "line": 71, + "column": 31 + }, + "identifierName": "instances" + }, + "name": "instances" + }, + "computed": false }, - "identifierName": "Object" + "property": { + "type": "Identifier", + "start": 2765, + "end": 2768, + "loc": { + "start": { + "line": 71, + "column": 32 + }, + "end": { + "line": 71, + "column": 35 + }, + "identifierName": "has" + }, + "name": "has" + }, + "computed": false }, - "name": "Object" + "arguments": [ + { + "type": "Identifier", + "start": 2769, + "end": 2778, + "loc": { + "start": { + "line": 71, + "column": 36 + }, + "end": { + "line": 71, + "column": 45 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + } + ] + }, + "extra": { + "parenthesizedArgument": false } }, "consequent": { "type": "BlockStatement", - "start": 1984, - "end": 2685, + "start": 2781, + "end": 3357, "loc": { "start": { - "line": 54, - "column": 49 + "line": 71, + "column": 48 }, "end": { - "line": 66, + "line": 81, "column": 13 } }, "body": [ { - "type": "IfStatement", - "start": 2003, - "end": 2670, + "type": "VariableDeclaration", + "start": 2800, + "end": 2852, "loc": { "start": { - "line": 55, + "line": 72, "column": 16 }, "end": { - "line": 65, - "column": 17 + "line": 72, + "column": 68 } }, - "test": { - "type": "UnaryExpression", - "start": 2007, - "end": 2042, - "loc": { - "start": { - "line": 55, - "column": 20 - }, - "end": { - "line": 55, - "column": 55 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "CallExpression", - "start": 2008, - "end": 2042, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2806, + "end": 2851, "loc": { "start": { - "line": 55, - "column": 21 + "line": 72, + "column": 22 }, "end": { - "line": 55, - "column": 55 + "line": 72, + "column": 67 } }, - "callee": { - "type": "MemberExpression", - "start": 2008, - "end": 2031, + "id": { + "type": "Identifier", + "start": 2806, + "end": 2807, "loc": { "start": { - "line": 55, - "column": 21 + "line": 72, + "column": 22 }, "end": { - "line": 55, - "column": 44 + "line": 72, + "column": 23 + }, + "identifierName": "x" + }, + "name": "x" + }, + "init": { + "type": "ConditionalExpression", + "start": 2810, + "end": 2851, + "loc": { + "start": { + "line": 72, + "column": 26 + }, + "end": { + "line": 72, + "column": 67 } }, - "object": { - "type": "MemberExpression", - "start": 2008, - "end": 2022, + "test": { + "type": "BinaryExpression", + "start": 2810, + "end": 2832, "loc": { "start": { - "line": 55, - "column": 21 + "line": 72, + "column": 26 }, "end": { - "line": 55, - "column": 35 + "line": 72, + "column": 48 } }, - "object": { - "type": "ThisExpression", - "start": 2008, - "end": 2012, + "left": { + "type": "UnaryExpression", + "start": 2810, + "end": 2819, "loc": { "start": { - "line": 55, - "column": 21 + "line": 72, + "column": 26 }, "end": { - "line": 55, - "column": 25 + "line": 72, + "column": 35 } + }, + "operator": "typeof", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 2817, + "end": 2819, + "loc": { + "start": { + "line": 72, + "column": 33 + }, + "end": { + "line": 72, + "column": 35 + }, + "identifierName": "pX" + }, + "name": "pX" + }, + "extra": { + "parenthesizedArgument": false } }, - "property": { - "type": "Identifier", - "start": 2013, - "end": 2022, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 2824, + "end": 2832, "loc": { "start": { - "line": 55, - "column": 26 + "line": 72, + "column": 40 }, "end": { - "line": 55, - "column": 35 - }, - "identifierName": "instances" + "line": 72, + "column": 48 + } }, - "name": "instances" - }, - "computed": false + "extra": { + "rawValue": "number", + "raw": "'number'" + }, + "value": "number" + } }, - "property": { + "consequent": { "type": "Identifier", - "start": 2023, - "end": 2031, + "start": 2835, + "end": 2837, "loc": { "start": { - "line": 55, - "column": 36 + "line": 72, + "column": 51 }, "end": { - "line": 55, - "column": 44 + "line": 72, + "column": 53 }, - "identifierName": "includes" + "identifierName": "pX" }, - "name": "includes" + "name": "pX" }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2032, - "end": 2041, + "alternate": { + "type": "MemberExpression", + "start": 2840, + "end": 2851, "loc": { "start": { - "line": 55, - "column": 45 + "line": 72, + "column": 56 }, "end": { - "line": 55, - "column": 54 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - } - ] - }, - "extra": { - "parenthesizedArgument": false - } - }, - "consequent": { - "type": "BlockStatement", - "start": 2044, - "end": 2670, - "loc": { - "start": { - "line": 55, - "column": 57 - }, - "end": { - "line": 65, - "column": 17 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 2067, - "end": 2120, - "loc": { - "start": { - "line": 56, - "column": 20 - }, - "end": { - "line": 56, - "column": 73 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2073, - "end": 2119, - "loc": { - "start": { - "line": 56, - "column": 26 - }, - "end": { - "line": 56, - "column": 72 - } - }, - "id": { - "type": "Identifier", - "start": 2073, - "end": 2074, - "loc": { - "start": { - "line": 56, - "column": 26 - }, - "end": { - "line": 56, - "column": 27 - }, - "identifierName": "x" - }, - "name": "x" - }, - "init": { - "type": "ConditionalExpression", - "start": 2077, - "end": 2119, - "loc": { - "start": { - "line": 56, - "column": 30 - }, - "end": { - "line": 56, - "column": 72 - } - }, - "test": { - "type": "BinaryExpression", - "start": 2077, - "end": 2100, - "loc": { - "start": { - "line": 56, - "column": 30 - }, - "end": { - "line": 56, - "column": 53 - } - }, - "left": { - "type": "UnaryExpression", - "start": 2077, - "end": 2087, - "loc": { - "start": { - "line": 56, - "column": 30 - }, - "end": { - "line": 56, - "column": 40 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 2084, - "end": 2086, - "loc": { - "start": { - "line": 56, - "column": 37 - }, - "end": { - "line": 56, - "column": 39 - }, - "identifierName": "pX" - }, - "name": "pX", - "extra": { - "parenthesized": true, - "parenStart": 2083 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 2092, - "end": 2100, - "loc": { - "start": { - "line": 56, - "column": 45 - }, - "end": { - "line": 56, - "column": 53 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" - }, - "value": "number" - } - }, - "consequent": { - "type": "Identifier", - "start": 2103, - "end": 2105, - "loc": { - "start": { - "line": 56, - "column": 56 - }, - "end": { - "line": 56, - "column": 58 - }, - "identifierName": "pX" - }, - "name": "pX" - }, - "alternate": { - "type": "MemberExpression", - "start": 2108, - "end": 2119, - "loc": { - "start": { - "line": 56, - "column": 61 - }, - "end": { - "line": 56, - "column": 72 - } - }, - "object": { - "type": "Identifier", - "start": 2108, - "end": 2117, - "loc": { - "start": { - "line": 56, - "column": 61 - }, - "end": { - "line": 56, - "column": 70 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 2118, - "end": 2119, - "loc": { - "start": { - "line": 56, - "column": 71 - }, - "end": { - "line": 56, - "column": 72 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - } - } - } - ], - "kind": "const" + "line": 72, + "column": 67 + } + }, + "object": { + "type": "Identifier", + "start": 2840, + "end": 2849, + "loc": { + "start": { + "line": 72, + "column": 56 + }, + "end": { + "line": 72, + "column": 65 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 2850, + "end": 2851, + "loc": { + "start": { + "line": 72, + "column": 66 + }, + "end": { + "line": 72, + "column": 67 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + } + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 2870, + "end": 2922, + "loc": { + "start": { + "line": 73, + "column": 16 + }, + "end": { + "line": 73, + "column": 68 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2876, + "end": 2921, + "loc": { + "start": { + "line": 73, + "column": 22 + }, + "end": { + "line": 73, + "column": 67 + } }, - { - "type": "VariableDeclaration", - "start": 2142, - "end": 2195, + "id": { + "type": "Identifier", + "start": 2876, + "end": 2877, "loc": { "start": { - "line": 57, - "column": 20 + "line": 73, + "column": 22 + }, + "end": { + "line": 73, + "column": 23 + }, + "identifierName": "y" + }, + "name": "y" + }, + "init": { + "type": "ConditionalExpression", + "start": 2880, + "end": 2921, + "loc": { + "start": { + "line": 73, + "column": 26 }, "end": { - "line": 57, - "column": 73 + "line": 73, + "column": 67 } }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2148, - "end": 2194, + "test": { + "type": "BinaryExpression", + "start": 2880, + "end": 2902, + "loc": { + "start": { + "line": 73, + "column": 26 + }, + "end": { + "line": 73, + "column": 48 + } + }, + "left": { + "type": "UnaryExpression", + "start": 2880, + "end": 2889, "loc": { "start": { - "line": 57, + "line": 73, "column": 26 }, "end": { - "line": 57, - "column": 72 + "line": 73, + "column": 35 } }, - "id": { + "operator": "typeof", + "prefix": true, + "argument": { "type": "Identifier", - "start": 2148, - "end": 2149, + "start": 2887, + "end": 2889, "loc": { "start": { - "line": 57, - "column": 26 + "line": 73, + "column": 33 }, "end": { - "line": 57, - "column": 27 + "line": 73, + "column": 35 }, - "identifierName": "y" + "identifierName": "pY" }, - "name": "y" + "name": "pY" }, - "init": { - "type": "ConditionalExpression", - "start": 2152, - "end": 2194, - "loc": { - "start": { - "line": 57, - "column": 30 - }, - "end": { - "line": 57, - "column": 72 - } - }, - "test": { - "type": "BinaryExpression", - "start": 2152, - "end": 2175, - "loc": { - "start": { - "line": 57, - "column": 30 - }, - "end": { - "line": 57, - "column": 53 - } - }, - "left": { - "type": "UnaryExpression", - "start": 2152, - "end": 2162, - "loc": { - "start": { - "line": 57, - "column": 30 - }, - "end": { - "line": 57, - "column": 40 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 2159, - "end": 2161, - "loc": { - "start": { - "line": 57, - "column": 37 - }, - "end": { - "line": 57, - "column": 39 - }, - "identifierName": "pY" - }, - "name": "pY", - "extra": { - "parenthesized": true, - "parenStart": 2158 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 2167, - "end": 2175, - "loc": { - "start": { - "line": 57, - "column": 45 - }, - "end": { - "line": 57, - "column": 53 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" - }, - "value": "number" - } - }, - "consequent": { - "type": "Identifier", - "start": 2178, - "end": 2180, - "loc": { - "start": { - "line": 57, - "column": 56 - }, - "end": { - "line": 57, - "column": 58 - }, - "identifierName": "pY" - }, - "name": "pY" + "extra": { + "parenthesizedArgument": false + } + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 2894, + "end": 2902, + "loc": { + "start": { + "line": 73, + "column": 40 }, - "alternate": { - "type": "MemberExpression", - "start": 2183, - "end": 2194, - "loc": { - "start": { - "line": 57, - "column": 61 - }, - "end": { - "line": 57, - "column": 72 - } - }, - "object": { - "type": "Identifier", - "start": 2183, - "end": 2192, - "loc": { - "start": { - "line": 57, - "column": 61 - }, - "end": { - "line": 57, - "column": 70 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 2193, - "end": 2194, - "loc": { - "start": { - "line": 57, - "column": 71 - }, - "end": { - "line": 57, - "column": 72 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false + "end": { + "line": 73, + "column": 48 } - } + }, + "extra": { + "rawValue": "number", + "raw": "'number'" + }, + "value": "number" } - ], - "kind": "const" + }, + "consequent": { + "type": "Identifier", + "start": 2905, + "end": 2907, + "loc": { + "start": { + "line": 73, + "column": 51 + }, + "end": { + "line": 73, + "column": 53 + }, + "identifierName": "pY" + }, + "name": "pY" + }, + "alternate": { + "type": "MemberExpression", + "start": 2910, + "end": 2921, + "loc": { + "start": { + "line": 73, + "column": 56 + }, + "end": { + "line": 73, + "column": 67 + } + }, + "object": { + "type": "Identifier", + "start": 2910, + "end": 2919, + "loc": { + "start": { + "line": 73, + "column": 56 + }, + "end": { + "line": 73, + "column": 65 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 2920, + "end": 2921, + "loc": { + "start": { + "line": 73, + "column": 66 + }, + "end": { + "line": 73, + "column": 67 + }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + } + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 2940, + "end": 3004, + "loc": { + "start": { + "line": 74, + "column": 16 + }, + "end": { + "line": 74, + "column": 80 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2946, + "end": 3003, + "loc": { + "start": { + "line": 74, + "column": 22 + }, + "end": { + "line": 74, + "column": 79 + } }, - { - "type": "VariableDeclaration", - "start": 2217, - "end": 2282, + "id": { + "type": "Identifier", + "start": 2946, + "end": 2949, "loc": { "start": { - "line": 58, - "column": 20 + "line": 74, + "column": 22 + }, + "end": { + "line": 74, + "column": 25 + }, + "identifierName": "map" + }, + "name": "map" + }, + "init": { + "type": "ConditionalExpression", + "start": 2952, + "end": 3003, + "loc": { + "start": { + "line": 74, + "column": 28 }, "end": { - "line": 58, - "column": 85 + "line": 74, + "column": 79 } }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2223, - "end": 2281, + "test": { + "type": "BinaryExpression", + "start": 2952, + "end": 2976, + "loc": { + "start": { + "line": 74, + "column": 28 + }, + "end": { + "line": 74, + "column": 52 + } + }, + "left": { + "type": "UnaryExpression", + "start": 2952, + "end": 2963, "loc": { "start": { - "line": 58, - "column": 26 + "line": 74, + "column": 28 }, "end": { - "line": 58, - "column": 84 + "line": 74, + "column": 39 } }, - "id": { + "operator": "typeof", + "prefix": true, + "argument": { "type": "Identifier", - "start": 2223, - "end": 2226, + "start": 2959, + "end": 2963, "loc": { "start": { - "line": 58, - "column": 26 + "line": 74, + "column": 35 }, "end": { - "line": 58, - "column": 29 + "line": 74, + "column": 39 }, - "identifierName": "map" + "identifierName": "pMap" }, - "name": "map" + "name": "pMap" }, - "init": { - "type": "ConditionalExpression", - "start": 2229, - "end": 2281, - "loc": { - "start": { - "line": 58, - "column": 32 - }, - "end": { - "line": 58, - "column": 84 - } - }, - "test": { - "type": "BinaryExpression", - "start": 2229, - "end": 2254, - "loc": { - "start": { - "line": 58, - "column": 32 - }, - "end": { - "line": 58, - "column": 57 - } - }, - "left": { - "type": "UnaryExpression", - "start": 2229, - "end": 2241, - "loc": { - "start": { - "line": 58, - "column": 32 - }, - "end": { - "line": 58, - "column": 44 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 2236, - "end": 2240, - "loc": { - "start": { - "line": 58, - "column": 39 - }, - "end": { - "line": 58, - "column": 43 - }, - "identifierName": "pMap" - }, - "name": "pMap", - "extra": { - "parenthesized": true, - "parenStart": 2235 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 2246, - "end": 2254, - "loc": { - "start": { - "line": 58, - "column": 49 - }, - "end": { - "line": 58, - "column": 57 - } - }, - "extra": { - "rawValue": "string", - "raw": "'string'" - }, - "value": "string" - } - }, - "consequent": { - "type": "Identifier", - "start": 2257, - "end": 2261, - "loc": { - "start": { - "line": 58, - "column": 60 - }, - "end": { - "line": 58, - "column": 64 - }, - "identifierName": "pMap" - }, - "name": "pMap" - }, - "alternate": { - "type": "MemberExpression", - "start": 2264, - "end": 2281, - "loc": { - "start": { - "line": 58, - "column": 67 - }, - "end": { - "line": 58, - "column": 84 - } - }, - "object": { - "type": "Identifier", - "start": 2264, - "end": 2273, - "loc": { - "start": { - "line": 58, - "column": 67 - }, - "end": { - "line": 58, - "column": 76 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 2274, - "end": 2281, - "loc": { - "start": { - "line": 58, - "column": 77 - }, - "end": { - "line": 58, - "column": 84 - }, - "identifierName": "mapName" - }, - "name": "mapName" - }, - "computed": false - } + "extra": { + "parenthesizedArgument": false } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " Clone the parallax object", - "start": 2304, - "end": 2332, + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 2968, + "end": 2976, "loc": { "start": { - "line": 59, - "column": 20 + "line": 74, + "column": 44 }, "end": { - "line": 59, - "column": 48 + "line": 74, + "column": 52 } - } + }, + "extra": { + "rawValue": "string", + "raw": "'string'" + }, + "value": "string" } - ] + }, + "consequent": { + "type": "Identifier", + "start": 2979, + "end": 2983, + "loc": { + "start": { + "line": 74, + "column": 55 + }, + "end": { + "line": 74, + "column": 59 + }, + "identifierName": "pMap" + }, + "name": "pMap" + }, + "alternate": { + "type": "MemberExpression", + "start": 2986, + "end": 3003, + "loc": { + "start": { + "line": 74, + "column": 62 + }, + "end": { + "line": 74, + "column": 79 + } + }, + "object": { + "type": "Identifier", + "start": 2986, + "end": 2995, + "loc": { + "start": { + "line": 74, + "column": 62 + }, + "end": { + "line": 74, + "column": 71 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 2996, + "end": 3003, + "loc": { + "start": { + "line": 74, + "column": 72 + }, + "end": { + "line": 74, + "column": 79 + }, + "identifierName": "mapName" + }, + "name": "mapName" + }, + "computed": false + } + } + } + ], + "kind": "const", + "trailingComments": [ + { + "type": "CommentLine", + "value": " Clone the parallax object", + "start": 3022, + "end": 3050, + "loc": { + "start": { + "line": 75, + "column": 16 + }, + "end": { + "line": 75, + "column": 44 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 3068, + "end": 3104, + "loc": { + "start": { + "line": 76, + "column": 16 + }, + "end": { + "line": 76, + "column": 52 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 3074, + "end": 3103, + "loc": { + "start": { + "line": 76, + "column": 22 + }, + "end": { + "line": 76, + "column": 51 + } }, - { - "type": "VariableDeclaration", - "start": 2354, - "end": 2396, + "id": { + "type": "Identifier", + "start": 3074, + "end": 3086, + "loc": { + "start": { + "line": 76, + "column": 22 + }, + "end": { + "line": 76, + "column": 34 + }, + "identifierName": "parallaxInfo" + }, + "name": "parallaxInfo", + "leadingComments": null + }, + "init": { + "type": "ObjectExpression", + "start": 3089, + "end": 3103, "loc": { "start": { - "line": 60, - "column": 20 + "line": 76, + "column": 37 }, "end": { - "line": 60, - "column": 62 + "line": 76, + "column": 51 } }, - "declarations": [ + "properties": [ { - "type": "VariableDeclarator", - "start": 2360, - "end": 2395, + "type": "SpreadProperty", + "start": 3091, + "end": 3101, "loc": { "start": { - "line": 60, - "column": 26 + "line": 76, + "column": 39 }, "end": { - "line": 60, - "column": 61 + "line": 76, + "column": 49 } }, - "id": { + "argument": { "type": "Identifier", - "start": 2360, - "end": 2372, + "start": 3094, + "end": 3101, "loc": { "start": { - "line": 60, - "column": 26 + "line": 76, + "column": 42 }, "end": { - "line": 60, - "column": 38 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo", - "leadingComments": null - }, - "init": { - "type": "ObjectExpression", - "start": 2375, - "end": 2395, - "loc": { - "start": { - "line": 60, - "column": 41 + "line": 76, + "column": 49 }, - "end": { - "line": 60, - "column": 61 - } - }, - "properties": [ - { - "type": "SpreadProperty", - "start": 2377, - "end": 2393, - "loc": { - "start": { - "line": 60, - "column": 43 - }, - "end": { - "line": 60, - "column": 59 - } - }, - "argument": { - "type": "Identifier", - "start": 2380, - "end": 2393, - "loc": { - "start": { - "line": 60, - "column": 46 - }, - "end": { - "line": 60, - "column": 59 - }, - "identifierName": "pParallaxInfo" - }, - "name": "pParallaxInfo" - } - } - ] - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " Clone the parallax object", - "start": 2304, - "end": 2332, - "loc": { - "start": { - "line": 59, - "column": 20 + "identifierName": "pConfig" }, - "end": { - "line": 59, - "column": 48 - } + "name": "pConfig" } } ] }, - { - "type": "ExpressionStatement", - "start": 2418, - "end": 2464, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "CommentLine", + "value": " Clone the parallax object", + "start": 3022, + "end": 3050, + "loc": { + "start": { + "line": 75, + "column": 16 + }, + "end": { + "line": 75, + "column": 44 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 3122, + "end": 3168, + "loc": { + "start": { + "line": 77, + "column": 16 + }, + "end": { + "line": 77, + "column": 62 + } + }, + "expression": { + "type": "CallExpression", + "start": 3122, + "end": 3167, + "loc": { + "start": { + "line": 77, + "column": 16 + }, + "end": { + "line": 77, + "column": 61 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3122, + "end": 3131, + "loc": { + "start": { + "line": 77, + "column": 16 + }, + "end": { + "line": 77, + "column": 25 + } + }, + "object": { + "type": "ThisExpression", + "start": 3122, + "end": 3126, "loc": { "start": { - "line": 61, - "column": 20 + "line": 77, + "column": 16 }, "end": { - "line": 61, - "column": 66 + "line": 77, + "column": 20 } + } + }, + "property": { + "type": "Identifier", + "start": 3127, + "end": 3131, + "loc": { + "start": { + "line": 77, + "column": 21 + }, + "end": { + "line": 77, + "column": 25 + }, + "identifierName": "init" }, - "expression": { - "type": "CallExpression", - "start": 2418, - "end": 2463, - "loc": { - "start": { - "line": 61, - "column": 20 - }, - "end": { - "line": 61, - "column": 65 - } + "name": "init" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 3132, + "end": 3141, + "loc": { + "start": { + "line": 77, + "column": 26 }, - "callee": { - "type": "MemberExpression", - "start": 2418, - "end": 2427, - "loc": { - "start": { - "line": 61, - "column": 20 - }, - "end": { - "line": 61, - "column": 29 - } - }, - "object": { - "type": "ThisExpression", - "start": 2418, - "end": 2422, - "loc": { - "start": { - "line": 61, - "column": 20 - }, - "end": { - "line": 61, - "column": 24 - } - } - }, - "property": { - "type": "Identifier", - "start": 2423, - "end": 2427, - "loc": { - "start": { - "line": 61, - "column": 25 - }, - "end": { - "line": 61, - "column": 29 - }, - "identifierName": "init" - }, - "name": "init" - }, - "computed": false + "end": { + "line": 77, + "column": 35 }, - "arguments": [ - { - "type": "Identifier", - "start": 2428, - "end": 2437, - "loc": { - "start": { - "line": 61, - "column": 30 - }, - "end": { - "line": 61, - "column": 39 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - { - "type": "Identifier", - "start": 2439, - "end": 2451, - "loc": { - "start": { - "line": 61, - "column": 41 - }, - "end": { - "line": 61, - "column": 53 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - { - "type": "Identifier", - "start": 2453, - "end": 2454, - "loc": { - "start": { - "line": 61, - "column": 55 - }, - "end": { - "line": 61, - "column": 56 - }, - "identifierName": "x" - }, - "name": "x" - }, - { - "type": "Identifier", - "start": 2456, - "end": 2457, - "loc": { - "start": { - "line": 61, - "column": 58 - }, - "end": { - "line": 61, - "column": 59 - }, - "identifierName": "y" - }, - "name": "y" - }, - { - "type": "Identifier", - "start": 2459, - "end": 2462, - "loc": { - "start": { - "line": 61, - "column": 61 - }, - "end": { - "line": 61, - "column": 64 - }, - "identifierName": "map" - }, - "name": "map" - } - ] + "identifierName": "pInstance" }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " Set the parallax info to the instance", - "start": 2486, - "end": 2526, - "loc": { - "start": { - "line": 62, - "column": 20 - }, - "end": { - "line": 62, - "column": 60 - } - } - } - ] + "name": "pInstance" }, { - "type": "ExpressionStatement", - "start": 2548, - "end": 2598, + "type": "Identifier", + "start": 3143, + "end": 3155, "loc": { "start": { - "line": 63, - "column": 20 + "line": 77, + "column": 37 + }, + "end": { + "line": 77, + "column": 49 + }, + "identifierName": "parallaxInfo" + }, + "name": "parallaxInfo" + }, + { + "type": "Identifier", + "start": 3157, + "end": 3158, + "loc": { + "start": { + "line": 77, + "column": 51 }, "end": { - "line": 63, - "column": 70 + "line": 77, + "column": 52 + }, + "identifierName": "x" + }, + "name": "x" + }, + { + "type": "Identifier", + "start": 3160, + "end": 3161, + "loc": { + "start": { + "line": 77, + "column": 54 + }, + "end": { + "line": 77, + "column": 55 + }, + "identifierName": "y" + }, + "name": "y" + }, + { + "type": "Identifier", + "start": 3163, + "end": 3166, + "loc": { + "start": { + "line": 77, + "column": 57 + }, + "end": { + "line": 77, + "column": 60 + }, + "identifierName": "map" + }, + "name": "map" + } + ] + }, + "trailingComments": [ + { + "type": "CommentLine", + "value": " Set the parallax info to the instance", + "start": 3186, + "end": 3226, + "loc": { + "start": { + "line": 78, + "column": 16 + }, + "end": { + "line": 78, + "column": 56 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 3244, + "end": 3294, + "loc": { + "start": { + "line": 79, + "column": 16 + }, + "end": { + "line": 79, + "column": 66 + } + }, + "expression": { + "type": "CallExpression", + "start": 3244, + "end": 3293, + "loc": { + "start": { + "line": 79, + "column": 16 + }, + "end": { + "line": 79, + "column": 65 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3244, + "end": 3268, + "loc": { + "start": { + "line": 79, + "column": 16 + }, + "end": { + "line": 79, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 3244, + "end": 3264, + "loc": { + "start": { + "line": 79, + "column": 16 + }, + "end": { + "line": 79, + "column": 36 } }, - "expression": { - "type": "CallExpression", - "start": 2548, - "end": 2597, + "object": { + "type": "ThisExpression", + "start": 3244, + "end": 3248, "loc": { "start": { - "line": 63, - "column": 20 + "line": 79, + "column": 16 }, "end": { - "line": 63, - "column": 69 + "line": 79, + "column": 20 } }, - "callee": { - "type": "MemberExpression", - "start": 2548, - "end": 2572, - "loc": { - "start": { - "line": 63, - "column": 20 - }, - "end": { - "line": 63, - "column": 44 - } - }, - "object": { - "type": "MemberExpression", - "start": 2548, - "end": 2568, - "loc": { - "start": { - "line": 63, - "column": 20 - }, - "end": { - "line": 63, - "column": 40 - } - }, - "object": { - "type": "ThisExpression", - "start": 2548, - "end": 2552, - "loc": { - "start": { - "line": 63, - "column": 20 - }, - "end": { - "line": 63, - "column": 24 - } - }, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 2553, - "end": 2568, - "loc": { - "start": { - "line": 63, - "column": 25 - }, - "end": { - "line": 63, - "column": 40 - }, - "identifierName": "instanceWeakMap" - }, - "name": "instanceWeakMap" - }, - "computed": false, - "leadingComments": null + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 3249, + "end": 3264, + "loc": { + "start": { + "line": 79, + "column": 21 }, - "property": { - "type": "Identifier", - "start": 2569, - "end": 2572, - "loc": { - "start": { - "line": 63, - "column": 41 - }, - "end": { - "line": 63, - "column": 44 - }, - "identifierName": "set" - }, - "name": "set" + "end": { + "line": 79, + "column": 36 }, - "computed": false, - "leadingComments": null + "identifierName": "instanceWeakMap" }, - "arguments": [ - { - "type": "Identifier", - "start": 2573, - "end": 2582, - "loc": { - "start": { - "line": 63, - "column": 45 - }, - "end": { - "line": 63, - "column": 54 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - { - "type": "Identifier", - "start": 2584, - "end": 2596, - "loc": { - "start": { - "line": 63, - "column": 56 - }, - "end": { - "line": 63, - "column": 68 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - } - ], - "leadingComments": null + "name": "instanceWeakMap" }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Set the parallax info to the instance", - "start": 2486, - "end": 2526, - "loc": { - "start": { - "line": 62, - "column": 20 - }, - "end": { - "line": 62, - "column": 60 - } - } - } - ] + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 3265, + "end": 3268, + "loc": { + "start": { + "line": 79, + "column": 37 + }, + "end": { + "line": 79, + "column": 40 + }, + "identifierName": "set" + }, + "name": "set" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [ + { + "type": "Identifier", + "start": 3269, + "end": 3278, + "loc": { + "start": { + "line": 79, + "column": 41 + }, + "end": { + "line": 79, + "column": 50 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + { + "type": "Identifier", + "start": 3280, + "end": 3292, + "loc": { + "start": { + "line": 79, + "column": 52 + }, + "end": { + "line": 79, + "column": 64 + }, + "identifierName": "parallaxInfo" + }, + "name": "parallaxInfo" + } + ], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Set the parallax info to the instance", + "start": 3186, + "end": 3226, + "loc": { + "start": { + "line": 78, + "column": 16 + }, + "end": { + "line": 78, + "column": 56 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 3312, + "end": 3342, + "loc": { + "start": { + "line": 80, + "column": 16 + }, + "end": { + "line": 80, + "column": 46 + } + }, + "expression": { + "type": "CallExpression", + "start": 3312, + "end": 3341, + "loc": { + "start": { + "line": 80, + "column": 16 + }, + "end": { + "line": 80, + "column": 45 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3312, + "end": 3330, + "loc": { + "start": { + "line": 80, + "column": 16 + }, + "end": { + "line": 80, + "column": 34 + } }, - { - "type": "ExpressionStatement", - "start": 2620, - "end": 2651, + "object": { + "type": "MemberExpression", + "start": 3312, + "end": 3326, "loc": { "start": { - "line": 64, - "column": 20 + "line": 80, + "column": 16 }, "end": { - "line": 64, - "column": 51 + "line": 80, + "column": 30 } }, - "expression": { - "type": "CallExpression", - "start": 2620, - "end": 2650, + "object": { + "type": "ThisExpression", + "start": 3312, + "end": 3316, "loc": { "start": { - "line": 64, - "column": 20 + "line": 80, + "column": 16 }, "end": { - "line": 64, - "column": 50 + "line": 80, + "column": 20 } - }, - "callee": { - "type": "MemberExpression", - "start": 2620, - "end": 2639, - "loc": { - "start": { - "line": 64, - "column": 20 - }, - "end": { - "line": 64, - "column": 39 - } - }, - "object": { - "type": "MemberExpression", - "start": 2620, - "end": 2634, - "loc": { - "start": { - "line": 64, - "column": 20 - }, - "end": { - "line": 64, - "column": 34 - } - }, - "object": { - "type": "ThisExpression", - "start": 2620, - "end": 2624, - "loc": { - "start": { - "line": 64, - "column": 20 - }, - "end": { - "line": 64, - "column": 24 - } - } - }, - "property": { - "type": "Identifier", - "start": 2625, - "end": 2634, - "loc": { - "start": { - "line": 64, - "column": 25 - }, - "end": { - "line": 64, - "column": 34 - }, - "identifierName": "instances" - }, - "name": "instances" - }, - "computed": false + } + }, + "property": { + "type": "Identifier", + "start": 3317, + "end": 3326, + "loc": { + "start": { + "line": 80, + "column": 21 }, - "property": { - "type": "Identifier", - "start": 2635, - "end": 2639, - "loc": { - "start": { - "line": 64, - "column": 35 - }, - "end": { - "line": 64, - "column": 39 - }, - "identifierName": "push" - }, - "name": "push" + "end": { + "line": 80, + "column": 30 }, - "computed": false + "identifierName": "instances" }, - "arguments": [ - { - "type": "Identifier", - "start": 2640, - "end": 2649, - "loc": { - "start": { - "line": 64, - "column": 40 - }, - "end": { - "line": 64, - "column": 49 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - } - ] - } + "name": "instances" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3327, + "end": 3330, + "loc": { + "start": { + "line": 80, + "column": 31 + }, + "end": { + "line": 80, + "column": 34 + }, + "identifierName": "add" + }, + "name": "add" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 3331, + "end": 3340, + "loc": { + "start": { + "line": 80, + "column": 35 + }, + "end": { + "line": 80, + "column": 44 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" } - ], - "directives": [] - }, - "alternate": null + ] + } } ], "directives": [] }, - "alternate": { - "type": "BlockStatement", - "start": 2691, - "end": 2819, + "alternate": null + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 3374, + "end": 3488, + "loc": { + "start": { + "line": 82, + "column": 15 + }, + "end": { + "line": 84, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 3389, + "end": 3477, + "loc": { + "start": { + "line": 83, + "column": 12 + }, + "end": { + "line": 83, + "column": 100 + } + }, + "expression": { + "type": "CallExpression", + "start": 3389, + "end": 3476, "loc": { "start": { - "line": 66, - "column": 19 + "line": 83, + "column": 12 }, "end": { - "line": 68, - "column": 13 + "line": 83, + "column": 99 } }, - "body": [ + "callee": { + "type": "MemberExpression", + "start": 3389, + "end": 3432, + "loc": { + "start": { + "line": 83, + "column": 12 + }, + "end": { + "line": 83, + "column": 55 + } + }, + "object": { + "type": "CallExpression", + "start": 3389, + "end": 3426, + "loc": { + "start": { + "line": 83, + "column": 12 + }, + "end": { + "line": 83, + "column": 49 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3389, + "end": 3407, + "loc": { + "start": { + "line": 83, + "column": 12 + }, + "end": { + "line": 83, + "column": 30 + } + }, + "object": { + "type": "MemberExpression", + "start": 3389, + "end": 3400, + "loc": { + "start": { + "line": 83, + "column": 12 + }, + "end": { + "line": 83, + "column": 23 + } + }, + "object": { + "type": "ThisExpression", + "start": 3389, + "end": 3393, + "loc": { + "start": { + "line": 83, + "column": 12 + }, + "end": { + "line": 83, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 3394, + "end": 3400, + "loc": { + "start": { + "line": 83, + "column": 17 + }, + "end": { + "line": 83, + "column": 23 + }, + "identifierName": "logger" + }, + "name": "logger" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3401, + "end": 3407, + "loc": { + "start": { + "line": 83, + "column": 24 + }, + "end": { + "line": 83, + "column": 30 + }, + "identifierName": "prefix" + }, + "name": "prefix" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 3408, + "end": 3425, + "loc": { + "start": { + "line": 83, + "column": 31 + }, + "end": { + "line": 83, + "column": 48 + } + }, + "extra": { + "rawValue": "Parallax-Module", + "raw": "'Parallax-Module'" + }, + "value": "Parallax-Module" + } + ] + }, + "property": { + "type": "Identifier", + "start": 3427, + "end": 3432, + "loc": { + "start": { + "line": 83, + "column": 50 + }, + "end": { + "line": 83, + "column": 55 + }, + "identifierName": "error" + }, + "name": "error" + }, + "computed": false + }, + "arguments": [ { - "type": "ExpressionStatement", - "start": 2710, - "end": 2804, + "type": "StringLiteral", + "start": 3433, + "end": 3475, + "loc": { + "start": { + "line": 83, + "column": 56 + }, + "end": { + "line": 83, + "column": 98 + } + }, + "extra": { + "rawValue": "No pConfig passed or invalid type found!", + "raw": "'No pConfig passed or invalid type found!'" + }, + "value": "No pConfig passed or invalid type found!" + } + ] + } + } + ], + "directives": [] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adds an instance to the parallax system.\r\n * Call this first and then add your instance to the map.\r\n * @param {Object} pInstance - The instance to add to the parallax system.\r\n * @param {Object} pConfig - The parallax info that tells this module how to control this instance.\r\n * @prop {number} pConfig.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @prop {number} pConfig.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @prop {boolean} pConfig.loop - Whether this instance will loop endlessly.\r\n * @param {number} [pX] - The x position this instance will start at.\r\n * @param {number} [pY] - The y position this instance will start at.\r\n * @param {string} [pMap] - The map this instance will start at.\r\n * \r\n * ## The following is how the speed of the parallax multipliers are factored in. \r\n (x | y) < 1 = faster behind the camera eg: (-> Player goes this way = Instance goes this way <-) \r\n (x | y) > 1 faster against the camera eg: (-> Player goes this way = Instance goes this way ->) \r\n (x | y) = 0 = static to the camera eg: (-> Player goes this way = Instance does nothing, and moves with the camera) \r\n (x | y) = 1 = moves with the camera eg: (-> Player goes this way = Instance goes this way -> at position of camera) \r\n ", + "start": 1006, + "end": 2501, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 63, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Initializes this instance.\r\n * @param {Object} pInstance - The instance to initialize.\r\n * @param {Object} pConfig - The parallax info that tells this module how to control this instance.\r\n * @prop {number} pConfig.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 0 to move with camera.\r\n * @prop {number} pConfig.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 0 to move with camera.\r\n * @prop {boolean} pConfig.loop - Whether this instance will loop endlessly.\r\n * @param {number} pX - The x position this parallax will start at.\r\n * @param {number} pY - The y position this parallax will start at.\r\n * @param {string} pMap - The map this instance will start at.\r\n * @private\r\n ", + "start": 3501, + "end": 4358, + "loc": { + "start": { + "line": 86, + "column": 4 + }, + "end": { + "line": 97, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 4364, + "end": 6840, + "loc": { + "start": { + "line": 98, + "column": 4 + }, + "end": { + "line": 156, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 4364, + "end": 4368, + "loc": { + "start": { + "line": 98, + "column": 4 + }, + "end": { + "line": 98, + "column": 8 + }, + "identifierName": "init" + }, + "name": "init", + "leadingComments": null + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 4369, + "end": 4378, + "loc": { + "start": { + "line": 98, + "column": 9 + }, + "end": { + "line": 98, + "column": 18 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + { + "type": "Identifier", + "start": 4380, + "end": 4387, + "loc": { + "start": { + "line": 98, + "column": 20 + }, + "end": { + "line": 98, + "column": 27 + }, + "identifierName": "pConfig" + }, + "name": "pConfig" + }, + { + "type": "Identifier", + "start": 4389, + "end": 4391, + "loc": { + "start": { + "line": 98, + "column": 29 + }, + "end": { + "line": 98, + "column": 31 + }, + "identifierName": "pX" + }, + "name": "pX" + }, + { + "type": "Identifier", + "start": 4393, + "end": 4395, + "loc": { + "start": { + "line": 98, + "column": 33 + }, + "end": { + "line": 98, + "column": 35 + }, + "identifierName": "pY" + }, + "name": "pY" + }, + { + "type": "Identifier", + "start": 4397, + "end": 4401, + "loc": { + "start": { + "line": 98, + "column": 37 + }, + "end": { + "line": 98, + "column": 41 + }, + "identifierName": "pMap" + }, + "name": "pMap" + } + ], + "body": { + "type": "BlockStatement", + "start": 4403, + "end": 6840, + "loc": { + "start": { + "line": 98, + "column": 43 + }, + "end": { + "line": 156, + "column": 5 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 4414, + "end": 4606, + "loc": { + "start": { + "line": 99, + "column": 8 + }, + "end": { + "line": 102, + "column": 9 + } + }, + "test": { + "type": "UnaryExpression", + "start": 4418, + "end": 4423, + "loc": { + "start": { + "line": 99, + "column": 12 + }, + "end": { + "line": 99, + "column": 17 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 4419, + "end": 4423, + "loc": { + "start": { + "line": 99, + "column": 13 + }, + "end": { + "line": 99, + "column": 17 + }, + "identifierName": "VYLO" + }, + "name": "VYLO" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 4425, + "end": 4606, + "loc": { + "start": { + "line": 99, + "column": 19 + }, + "end": { + "line": 102, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 4440, + "end": 4574, + "loc": { + "start": { + "line": 100, + "column": 12 + }, + "end": { + "line": 100, + "column": 146 + } + }, + "expression": { + "type": "CallExpression", + "start": 4440, + "end": 4573, + "loc": { + "start": { + "line": 100, + "column": 12 + }, + "end": { + "line": 100, + "column": 145 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4440, + "end": 4483, + "loc": { + "start": { + "line": 100, + "column": 12 + }, + "end": { + "line": 100, + "column": 55 + } + }, + "object": { + "type": "CallExpression", + "start": 4440, + "end": 4477, "loc": { "start": { - "line": 67, - "column": 16 + "line": 100, + "column": 12 }, "end": { - "line": 67, - "column": 110 + "line": 100, + "column": 49 } }, - "expression": { - "type": "CallExpression", - "start": 2710, - "end": 2803, + "callee": { + "type": "MemberExpression", + "start": 4440, + "end": 4458, "loc": { "start": { - "line": 67, - "column": 16 + "line": 100, + "column": 12 }, "end": { - "line": 67, - "column": 109 + "line": 100, + "column": 30 } }, - "callee": { + "object": { "type": "MemberExpression", - "start": 2710, - "end": 2753, + "start": 4440, + "end": 4451, "loc": { "start": { - "line": 67, - "column": 16 + "line": 100, + "column": 12 }, "end": { - "line": 67, - "column": 59 + "line": 100, + "column": 23 } }, "object": { - "type": "CallExpression", - "start": 2710, - "end": 2747, + "type": "ThisExpression", + "start": 4440, + "end": 4444, "loc": { "start": { - "line": 67, - "column": 16 + "line": 100, + "column": 12 }, "end": { - "line": 67, - "column": 53 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2710, - "end": 2728, - "loc": { - "start": { - "line": 67, - "column": 16 - }, - "end": { - "line": 67, - "column": 34 - } - }, - "object": { - "type": "MemberExpression", - "start": 2710, - "end": 2721, - "loc": { - "start": { - "line": 67, - "column": 16 - }, - "end": { - "line": 67, - "column": 27 - } - }, - "object": { - "type": "ThisExpression", - "start": 2710, - "end": 2714, - "loc": { - "start": { - "line": 67, - "column": 16 - }, - "end": { - "line": 67, - "column": 20 - } - } - }, - "property": { - "type": "Identifier", - "start": 2715, - "end": 2721, - "loc": { - "start": { - "line": 67, - "column": 21 - }, - "end": { - "line": 67, - "column": 27 - }, - "identifierName": "logger" - }, - "name": "logger" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 2722, - "end": 2728, - "loc": { - "start": { - "line": 67, - "column": 28 - }, - "end": { - "line": 67, - "column": 34 - }, - "identifierName": "prefix" - }, - "name": "prefix" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2729, - "end": 2746, - "loc": { - "start": { - "line": 67, - "column": 35 - }, - "end": { - "line": 67, - "column": 52 - } - }, - "extra": { - "rawValue": "Parallax-Module", - "raw": "'Parallax-Module'" - }, - "value": "Parallax-Module" + "line": 100, + "column": 16 } - ] + } }, "property": { "type": "Identifier", - "start": 2748, - "end": 2753, + "start": 4445, + "end": 4451, "loc": { "start": { - "line": 67, - "column": 54 + "line": 100, + "column": 17 }, "end": { - "line": 67, - "column": 59 + "line": 100, + "column": 23 }, - "identifierName": "error" + "identifierName": "logger" }, - "name": "error" + "name": "logger" }, "computed": false }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2754, - "end": 2802, - "loc": { - "start": { - "line": 67, - "column": 60 - }, - "end": { - "line": 67, - "column": 108 - } + "property": { + "type": "Identifier", + "start": 4452, + "end": 4458, + "loc": { + "start": { + "line": 100, + "column": 24 }, - "extra": { - "rawValue": "No pParallaxInfo passed or invalid type found!", - "raw": "'No pParallaxInfo passed or invalid type found!'" + "end": { + "line": 100, + "column": 30 }, - "value": "No pParallaxInfo passed or invalid type found!" - } - ] - } + "identifierName": "prefix" + }, + "name": "prefix" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 4459, + "end": 4476, + "loc": { + "start": { + "line": 100, + "column": 31 + }, + "end": { + "line": 100, + "column": 48 + } + }, + "extra": { + "rawValue": "Parallax-Module", + "raw": "'Parallax-Module'" + }, + "value": "Parallax-Module" + } + ] + }, + "property": { + "type": "Identifier", + "start": 4478, + "end": 4483, + "loc": { + "start": { + "line": 100, + "column": 50 + }, + "end": { + "line": 100, + "column": 55 + }, + "identifierName": "error" + }, + "name": "error" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 4484, + "end": 4572, + "loc": { + "start": { + "line": 100, + "column": 56 + }, + "end": { + "line": 100, + "column": 144 + } + }, + "extra": { + "rawValue": "VYLO not found! This module depends on the VYLO object being in the global name space.", + "raw": "'VYLO not found! This module depends on the VYLO object being in the global name space.'" + }, + "value": "VYLO not found! This module depends on the VYLO object being in the global name space." } - ], - "directives": [] + ] } + }, + { + "type": "ReturnStatement", + "start": 4588, + "end": 4595, + "loc": { + "start": { + "line": 101, + "column": 12 + }, + "end": { + "line": 101, + "column": 19 + } + }, + "argument": null } ], - "directives": [] + "directives": [], + "trailingComments": null }, - "alternate": { + "alternate": null, + "trailingComments": [ + { + "type": "CommentLine", + "value": " If this instance is set to loop, then it needs a left and right clone", + "start": 4618, + "end": 4690, + "loc": { + "start": { + "line": 104, + "column": 8 + }, + "end": { + "line": 104, + "column": 80 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 4700, + "end": 6504, + "loc": { + "start": { + "line": 105, + "column": 8 + }, + "end": { + "line": 145, + "column": 9 + } + }, + "test": { + "type": "MemberExpression", + "start": 4704, + "end": 4716, + "loc": { + "start": { + "line": 105, + "column": 12 + }, + "end": { + "line": 105, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 4704, + "end": 4711, + "loc": { + "start": { + "line": 105, + "column": 12 + }, + "end": { + "line": 105, + "column": 19 + }, + "identifierName": "pConfig" + }, + "name": "pConfig", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 4712, + "end": 4716, + "loc": { + "start": { + "line": 105, + "column": 20 + }, + "end": { + "line": 105, + "column": 24 + }, + "identifierName": "loop" + }, + "name": "loop" + }, + "computed": false, + "leadingComments": null + }, + "consequent": { "type": "BlockStatement", - "start": 2836, - "end": 2930, + "start": 4718, + "end": 6504, "loc": { "start": { - "line": 69, - "column": 15 + "line": 105, + "column": 26 + }, + "end": { + "line": 145, + "column": 9 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 4779, + "end": 4818, + "loc": { + "start": { + "line": 107, + "column": 12 + }, + "end": { + "line": 107, + "column": 51 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 4785, + "end": 4817, + "loc": { + "start": { + "line": 107, + "column": 18 + }, + "end": { + "line": 107, + "column": 50 + } + }, + "id": { + "type": "Identifier", + "start": 4785, + "end": 4789, + "loc": { + "start": { + "line": 107, + "column": 18 + }, + "end": { + "line": 107, + "column": 22 + }, + "identifierName": "left" + }, + "name": "left", + "leadingComments": null + }, + "init": { + "type": "CallExpression", + "start": 4792, + "end": 4817, + "loc": { + "start": { + "line": 107, + "column": 25 + }, + "end": { + "line": 107, + "column": 50 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4792, + "end": 4804, + "loc": { + "start": { + "line": 107, + "column": 25 + }, + "end": { + "line": 107, + "column": 37 + } + }, + "object": { + "type": "Identifier", + "start": 4792, + "end": 4796, + "loc": { + "start": { + "line": 107, + "column": 25 + }, + "end": { + "line": 107, + "column": 29 + }, + "identifierName": "VYLO" + }, + "name": "VYLO" + }, + "property": { + "type": "Identifier", + "start": 4797, + "end": 4804, + "loc": { + "start": { + "line": 107, + "column": 30 + }, + "end": { + "line": 107, + "column": 37 + }, + "identifierName": "newDiob" + }, + "name": "newDiob" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 4805, + "end": 4816, + "loc": { + "start": { + "line": 107, + "column": 38 + }, + "end": { + "line": 107, + "column": 49 + } + }, + "extra": { + "rawValue": "MapObject", + "raw": "'MapObject'" + }, + "value": "MapObject" + } + ] + }, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "CommentLine", + "value": " Create a left and right clone", + "start": 4733, + "end": 4765, + "loc": { + "start": { + "line": 106, + "column": 12 + }, + "end": { + "line": 106, + "column": 44 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 4832, + "end": 4872, + "loc": { + "start": { + "line": 108, + "column": 12 + }, + "end": { + "line": 108, + "column": 52 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 4838, + "end": 4871, + "loc": { + "start": { + "line": 108, + "column": 18 + }, + "end": { + "line": 108, + "column": 51 + } + }, + "id": { + "type": "Identifier", + "start": 4838, + "end": 4843, + "loc": { + "start": { + "line": 108, + "column": 18 + }, + "end": { + "line": 108, + "column": 23 + }, + "identifierName": "right" + }, + "name": "right" + }, + "init": { + "type": "CallExpression", + "start": 4846, + "end": 4871, + "loc": { + "start": { + "line": 108, + "column": 26 + }, + "end": { + "line": 108, + "column": 51 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4846, + "end": 4858, + "loc": { + "start": { + "line": 108, + "column": 26 + }, + "end": { + "line": 108, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 4846, + "end": 4850, + "loc": { + "start": { + "line": 108, + "column": 26 + }, + "end": { + "line": 108, + "column": 30 + }, + "identifierName": "VYLO" + }, + "name": "VYLO" + }, + "property": { + "type": "Identifier", + "start": 4851, + "end": 4858, + "loc": { + "start": { + "line": 108, + "column": 31 + }, + "end": { + "line": 108, + "column": 38 + }, + "identifierName": "newDiob" + }, + "name": "newDiob" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 4859, + "end": 4870, + "loc": { + "start": { + "line": 108, + "column": 39 + }, + "end": { + "line": 108, + "column": 50 + } + }, + "extra": { + "rawValue": "MapObject", + "raw": "'MapObject'" + }, + "value": "MapObject" + } + ] + } + } + ], + "kind": "const", + "trailingComments": [ + { + "type": "CommentLine", + "value": " Make the left and right clone particle look the same as the initial instance", + "start": 4888, + "end": 4967, + "loc": { + "start": { + "line": 110, + "column": 12 + }, + "end": { + "line": 110, + "column": 91 + } + } + } + ] }, - "end": { - "line": 71, - "column": 9 - } - }, - "body": [ { "type": "ExpressionStatement", - "start": 2851, - "end": 2919, + "start": 4981, + "end": 5011, "loc": { "start": { - "line": 70, + "line": 111, "column": 12 }, "end": { - "line": 70, - "column": 80 + "line": 111, + "column": 42 } }, "expression": { "type": "CallExpression", - "start": 2851, - "end": 2918, + "start": 4981, + "end": 5010, "loc": { "start": { - "line": 70, + "line": 111, "column": 12 }, "end": { - "line": 70, - "column": 79 + "line": 111, + "column": 41 } }, "callee": { "type": "MemberExpression", - "start": 2851, - "end": 2894, + "start": 4981, + "end": 4999, "loc": { "start": { - "line": 70, + "line": 111, "column": 12 }, "end": { - "line": 70, - "column": 55 + "line": 111, + "column": 30 } }, "object": { - "type": "CallExpression", - "start": 2851, - "end": 2888, + "type": "Identifier", + "start": 4981, + "end": 4985, "loc": { "start": { - "line": 70, + "line": 111, "column": 12 }, "end": { - "line": 70, - "column": 49 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2851, - "end": 2869, - "loc": { - "start": { - "line": 70, - "column": 12 - }, - "end": { - "line": 70, - "column": 30 - } - }, - "object": { - "type": "MemberExpression", - "start": 2851, - "end": 2862, - "loc": { - "start": { - "line": 70, - "column": 12 - }, - "end": { - "line": 70, - "column": 23 - } - }, - "object": { - "type": "ThisExpression", - "start": 2851, - "end": 2855, - "loc": { - "start": { - "line": 70, - "column": 12 - }, - "end": { - "line": 70, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 2856, - "end": 2862, - "loc": { - "start": { - "line": 70, - "column": 17 - }, - "end": { - "line": 70, - "column": 23 - }, - "identifierName": "logger" - }, - "name": "logger" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 2863, - "end": 2869, - "loc": { - "start": { - "line": 70, - "column": 24 - }, - "end": { - "line": 70, - "column": 30 - }, - "identifierName": "prefix" - }, - "name": "prefix" + "line": 111, + "column": 16 }, - "computed": false + "identifierName": "left" }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2870, - "end": 2887, - "loc": { - "start": { - "line": 70, - "column": 31 - }, - "end": { - "line": 70, - "column": 48 - } - }, - "extra": { - "rawValue": "Parallax-Module", - "raw": "'Parallax-Module'" - }, - "value": "Parallax-Module" - } - ] + "name": "left", + "leadingComments": null }, "property": { "type": "Identifier", - "start": 2889, - "end": 2894, + "start": 4986, + "end": 4999, "loc": { "start": { - "line": 70, - "column": 50 + "line": 111, + "column": 17 }, "end": { - "line": 70, - "column": 55 + "line": 111, + "column": 30 }, - "identifierName": "error" + "identifierName": "setAppearance" }, - "name": "error" + "name": "setAppearance" }, - "computed": false + "computed": false, + "leadingComments": null }, "arguments": [ { - "type": "StringLiteral", - "start": 2895, - "end": 2917, + "type": "Identifier", + "start": 5000, + "end": 5009, "loc": { "start": { - "line": 70, - "column": 56 + "line": 111, + "column": 31 }, "end": { - "line": 70, - "column": 78 - } + "line": 111, + "column": 40 + }, + "identifierName": "pInstance" }, - "extra": { - "rawValue": "No pInstance passed!", - "raw": "'No pInstance passed!'" + "name": "pInstance" + } + ], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Make the left and right clone particle look the same as the initial instance", + "start": 4888, + "end": 4967, + "loc": { + "start": { + "line": 110, + "column": 12 }, - "value": "No pInstance passed!" + "end": { + "line": 110, + "column": 91 + } } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n * Initializes this instance.\r\n * @param {Object} pInstance - The instance to initialize.\r\n * @param {Object} pParallaxInfo - The parallax info that tells this module how to control this instance.\r\n * @property {number} pParallaxInfo.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {number} pParallaxInfo.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {boolean} pParallaxInfo.loop - Whether this instance will loop endlessly.\r\n * @param {number} pX - The x position this parallax will start at.\r\n * @param {number} pY - The y position this parallax will start at.\r\n * @param {string} pMap - The map this instance will start at.\r\n * @private\r\n ", - "start": 2943, - "end": 3836, - "loc": { - "start": { - "line": 73, - "column": 4 - }, - "end": { - "line": 84, - "column": 7 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 3842, - "end": 6154, - "loc": { - "start": { - "line": 85, - "column": 4 - }, - "end": { - "line": 132, - "column": 5 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3842, - "end": 3846, - "loc": { - "start": { - "line": 85, - "column": 4 - }, - "end": { - "line": 85, - "column": 8 - }, - "identifierName": "init" - }, - "name": "init", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 3847, - "end": 3856, - "loc": { - "start": { - "line": 85, - "column": 9 - }, - "end": { - "line": 85, - "column": 18 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - { - "type": "Identifier", - "start": 3858, - "end": 3871, - "loc": { - "start": { - "line": 85, - "column": 20 - }, - "end": { - "line": 85, - "column": 33 - }, - "identifierName": "pParallaxInfo" - }, - "name": "pParallaxInfo" - }, - { - "type": "Identifier", - "start": 3873, - "end": 3875, - "loc": { - "start": { - "line": 85, - "column": 35 - }, - "end": { - "line": 85, - "column": 37 - }, - "identifierName": "pX" - }, - "name": "pX" - }, - { - "type": "Identifier", - "start": 3877, - "end": 3879, - "loc": { - "start": { - "line": 85, - "column": 39 - }, - "end": { - "line": 85, - "column": 41 - }, - "identifierName": "pY" - }, - "name": "pY" - }, - { - "type": "Identifier", - "start": 3881, - "end": 3885, - "loc": { - "start": { - "line": 85, - "column": 43 - }, - "end": { - "line": 85, - "column": 47 - }, - "identifierName": "pMap" - }, - "name": "pMap" - } - ], - "body": { - "type": "BlockStatement", - "start": 3887, - "end": 6154, - "loc": { - "start": { - "line": 85, - "column": 49 - }, - "end": { - "line": 132, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 3898, - "end": 6147, - "loc": { - "start": { - "line": 86, - "column": 8 - }, - "end": { - "line": 131, - "column": 9 - } - }, - "test": { - "type": "Identifier", - "start": 3902, - "end": 3906, - "loc": { - "start": { - "line": 86, - "column": 12 - }, - "end": { - "line": 86, - "column": 16 - }, - "identifierName": "VYLO" - }, - "name": "VYLO" - }, - "consequent": { - "type": "BlockStatement", - "start": 3908, - "end": 5981, - "loc": { - "start": { - "line": 86, - "column": 18 + } + ] }, - "end": { - "line": 129, - "column": 9 - } - }, - "body": [ { - "type": "IfStatement", - "start": 4009, - "end": 5558, + "type": "ExpressionStatement", + "start": 5025, + "end": 5056, "loc": { "start": { - "line": 88, + "line": 112, "column": 12 }, "end": { - "line": 117, - "column": 13 + "line": 112, + "column": 43 } }, - "test": { - "type": "MemberExpression", - "start": 4013, - "end": 4031, + "expression": { + "type": "CallExpression", + "start": 5025, + "end": 5055, "loc": { "start": { - "line": 88, - "column": 16 + "line": 112, + "column": 12 }, "end": { - "line": 88, - "column": 34 + "line": 112, + "column": 42 } }, - "object": { - "type": "Identifier", - "start": 4013, - "end": 4026, + "callee": { + "type": "MemberExpression", + "start": 5025, + "end": 5044, "loc": { "start": { - "line": 88, - "column": 16 + "line": 112, + "column": 12 }, "end": { - "line": 88, - "column": 29 + "line": 112, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 5025, + "end": 5030, + "loc": { + "start": { + "line": 112, + "column": 12 + }, + "end": { + "line": 112, + "column": 17 + }, + "identifierName": "right" }, - "identifierName": "pParallaxInfo" + "name": "right" }, - "name": "pParallaxInfo", - "leadingComments": null + "property": { + "type": "Identifier", + "start": 5031, + "end": 5044, + "loc": { + "start": { + "line": 112, + "column": 18 + }, + "end": { + "line": 112, + "column": 31 + }, + "identifierName": "setAppearance" + }, + "name": "setAppearance" + }, + "computed": false }, - "property": { - "type": "Identifier", - "start": 4027, - "end": 4031, + "arguments": [ + { + "type": "Identifier", + "start": 5045, + "end": 5054, + "loc": { + "start": { + "line": 112, + "column": 32 + }, + "end": { + "line": 112, + "column": 41 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + } + ] + }, + "trailingComments": [ + { + "type": "CommentLine", + "value": " Force the renderer to render it, as if its placed offscreen its not rendered.", + "start": 5072, + "end": 5152, "loc": { "start": { - "line": 88, - "column": 30 + "line": 114, + "column": 12 }, "end": { - "line": 88, - "column": 34 - }, - "identifierName": "loop" - }, - "name": "loop" + "line": 114, + "column": 92 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 5166, + "end": 5192, + "loc": { + "start": { + "line": 115, + "column": 12 }, - "computed": false, - "leadingComments": null + "end": { + "line": 115, + "column": 38 + } }, - "consequent": { - "type": "BlockStatement", - "start": 4033, - "end": 5558, + "expression": { + "type": "CallExpression", + "start": 5166, + "end": 5191, "loc": { "start": { - "line": 88, - "column": 36 + "line": 115, + "column": 12 }, "end": { - "line": 117, - "column": 13 + "line": 115, + "column": 37 } }, - "body": [ - { - "type": "VariableDeclaration", - "start": 4102, - "end": 4140, + "callee": { + "type": "MemberExpression", + "start": 5166, + "end": 5177, + "loc": { + "start": { + "line": 115, + "column": 12 + }, + "end": { + "line": 115, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 5166, + "end": 5170, "loc": { "start": { - "line": 90, - "column": 16 + "line": 115, + "column": 12 }, "end": { - "line": 90, - "column": 54 - } + "line": 115, + "column": 16 + }, + "identifierName": "left" }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4108, - "end": 4139, - "loc": { - "start": { - "line": 90, - "column": 22 - }, - "end": { - "line": 90, - "column": 53 - } - }, - "id": { - "type": "Identifier", - "start": 4108, - "end": 4112, - "loc": { - "start": { - "line": 90, - "column": 22 - }, - "end": { - "line": 90, - "column": 26 - }, - "identifierName": "left" - }, - "name": "left", - "leadingComments": null - }, - "init": { - "type": "CallExpression", - "start": 4115, - "end": 4139, - "loc": { - "start": { - "line": 90, - "column": 29 - }, - "end": { - "line": 90, - "column": 53 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4115, - "end": 4127, - "loc": { - "start": { - "line": 90, - "column": 29 - }, - "end": { - "line": 90, - "column": 41 - } - }, - "object": { - "type": "Identifier", - "start": 4115, - "end": 4119, - "loc": { - "start": { - "line": 90, - "column": 29 - }, - "end": { - "line": 90, - "column": 33 - }, - "identifierName": "VYLO" - }, - "name": "VYLO" - }, - "property": { - "type": "Identifier", - "start": 4120, - "end": 4127, - "loc": { - "start": { - "line": 90, - "column": 34 - }, - "end": { - "line": 90, - "column": 41 - }, - "identifierName": "newDiob" - }, - "name": "newDiob" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 4128, - "end": 4138, - "loc": { - "start": { - "line": 90, - "column": 42 - }, - "end": { - "line": 90, - "column": 52 - } - }, - "extra": { - "rawValue": "Particle", - "raw": "'Particle'" - }, - "value": "Particle" - } - ] - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " Create a left and right clone", - "start": 4052, - "end": 4084, - "loc": { - "start": { - "line": 89, - "column": 16 - }, - "end": { - "line": 89, - "column": 48 - } - } - } - ] + "name": "left", + "leadingComments": null }, - { - "type": "VariableDeclaration", - "start": 4158, - "end": 4197, + "property": { + "type": "Identifier", + "start": 5171, + "end": 5177, "loc": { "start": { - "line": 91, - "column": 16 + "line": 115, + "column": 17 }, "end": { - "line": 91, - "column": 55 - } + "line": 115, + "column": 23 + }, + "identifierName": "setPos" }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4164, - "end": 4196, - "loc": { - "start": { - "line": 91, - "column": 22 - }, - "end": { - "line": 91, - "column": 54 - } - }, - "id": { - "type": "Identifier", - "start": 4164, - "end": 4169, - "loc": { - "start": { - "line": 91, - "column": 22 - }, - "end": { - "line": 91, - "column": 27 - }, - "identifierName": "right" - }, - "name": "right" - }, - "init": { - "type": "CallExpression", - "start": 4172, - "end": 4196, - "loc": { - "start": { - "line": 91, - "column": 30 - }, - "end": { - "line": 91, - "column": 54 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4172, - "end": 4184, - "loc": { - "start": { - "line": 91, - "column": 30 - }, - "end": { - "line": 91, - "column": 42 - } - }, - "object": { - "type": "Identifier", - "start": 4172, - "end": 4176, - "loc": { - "start": { - "line": 91, - "column": 30 - }, - "end": { - "line": 91, - "column": 34 - }, - "identifierName": "VYLO" - }, - "name": "VYLO" - }, - "property": { - "type": "Identifier", - "start": 4177, - "end": 4184, - "loc": { - "start": { - "line": 91, - "column": 35 - }, - "end": { - "line": 91, - "column": 42 - }, - "identifierName": "newDiob" - }, - "name": "newDiob" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 4185, - "end": 4195, - "loc": { - "start": { - "line": 91, - "column": 43 - }, - "end": { - "line": 91, - "column": 53 - } - }, - "extra": { - "rawValue": "Particle", - "raw": "'Particle'" - }, - "value": "Particle" - } - ] - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " Make the left and right clone particle look the same as the initial instance", - "start": 4215, - "end": 4294, - "loc": { - "start": { - "line": 92, - "column": 16 - }, - "end": { - "line": 92, - "column": 95 - } - } - } - ] + "name": "setPos" }, + "computed": false, + "leadingComments": null + }, + "arguments": [ { - "type": "ExpressionStatement", - "start": 4312, - "end": 4342, + "type": "Identifier", + "start": 5178, + "end": 5180, "loc": { "start": { - "line": 93, - "column": 16 + "line": 115, + "column": 24 }, "end": { - "line": 93, - "column": 46 - } + "line": 115, + "column": 26 + }, + "identifierName": "pX" }, - "expression": { - "type": "CallExpression", - "start": 4312, - "end": 4341, - "loc": { - "start": { - "line": 93, - "column": 16 - }, - "end": { - "line": 93, - "column": 45 - } + "name": "pX" + }, + { + "type": "Identifier", + "start": 5182, + "end": 5184, + "loc": { + "start": { + "line": 115, + "column": 28 }, - "callee": { - "type": "MemberExpression", - "start": 4312, - "end": 4330, - "loc": { - "start": { - "line": 93, - "column": 16 - }, - "end": { - "line": 93, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 4312, - "end": 4316, - "loc": { - "start": { - "line": 93, - "column": 16 - }, - "end": { - "line": 93, - "column": 20 - }, - "identifierName": "left" - }, - "name": "left", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 4317, - "end": 4330, - "loc": { - "start": { - "line": 93, - "column": 21 - }, - "end": { - "line": 93, - "column": 34 - }, - "identifierName": "setAppearance" - }, - "name": "setAppearance" - }, - "computed": false, - "leadingComments": null + "end": { + "line": 115, + "column": 30 }, - "arguments": [ - { - "type": "Identifier", - "start": 4331, - "end": 4340, - "loc": { - "start": { - "line": 93, - "column": 35 - }, - "end": { - "line": 93, - "column": 44 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - } - ], - "leadingComments": null + "identifierName": "pY" }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Make the left and right clone particle look the same as the initial instance", - "start": 4215, - "end": 4294, - "loc": { - "start": { - "line": 92, - "column": 16 - }, - "end": { - "line": 92, - "column": 95 - } - } - } - ] + "name": "pY" }, { - "type": "ExpressionStatement", - "start": 4360, - "end": 4391, + "type": "Identifier", + "start": 5186, + "end": 5190, "loc": { "start": { - "line": 94, - "column": 16 + "line": 115, + "column": 32 }, "end": { - "line": 94, - "column": 47 - } + "line": 115, + "column": 36 + }, + "identifierName": "pMap" }, - "expression": { - "type": "CallExpression", - "start": 4360, - "end": 4390, - "loc": { - "start": { - "line": 94, - "column": 16 - }, - "end": { - "line": 94, - "column": 46 - } + "name": "pMap" + } + ], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Force the renderer to render it, as if its placed offscreen its not rendered.", + "start": 5072, + "end": 5152, + "loc": { + "start": { + "line": 114, + "column": 12 + }, + "end": { + "line": 114, + "column": 92 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 5206, + "end": 5233, + "loc": { + "start": { + "line": 116, + "column": 12 + }, + "end": { + "line": 116, + "column": 39 + } + }, + "expression": { + "type": "CallExpression", + "start": 5206, + "end": 5232, + "loc": { + "start": { + "line": 116, + "column": 12 + }, + "end": { + "line": 116, + "column": 38 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5206, + "end": 5218, + "loc": { + "start": { + "line": 116, + "column": 12 + }, + "end": { + "line": 116, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 5206, + "end": 5211, + "loc": { + "start": { + "line": 116, + "column": 12 }, - "callee": { - "type": "MemberExpression", - "start": 4360, - "end": 4379, - "loc": { - "start": { - "line": 94, - "column": 16 - }, - "end": { - "line": 94, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 4360, - "end": 4365, - "loc": { - "start": { - "line": 94, - "column": 16 - }, - "end": { - "line": 94, - "column": 21 - }, - "identifierName": "right" - }, - "name": "right" - }, - "property": { - "type": "Identifier", - "start": 4366, - "end": 4379, - "loc": { - "start": { - "line": 94, - "column": 22 - }, - "end": { - "line": 94, - "column": 35 - }, - "identifierName": "setAppearance" - }, - "name": "setAppearance" - }, - "computed": false + "end": { + "line": 116, + "column": 17 }, - "arguments": [ - { - "type": "Identifier", - "start": 4380, - "end": 4389, - "loc": { - "start": { - "line": 94, - "column": 36 - }, - "end": { - "line": 94, - "column": 45 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - } - ] + "identifierName": "right" }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " Position the left clone", - "start": 4409, - "end": 4435, - "loc": { - "start": { - "line": 95, - "column": 16 - }, - "end": { - "line": 95, - "column": 42 - } - } - } - ] + "name": "right" }, + "property": { + "type": "Identifier", + "start": 5212, + "end": 5218, + "loc": { + "start": { + "line": 116, + "column": 18 + }, + "end": { + "line": 116, + "column": 24 + }, + "identifierName": "setPos" + }, + "name": "setPos" + }, + "computed": false + }, + "arguments": [ { - "type": "ExpressionStatement", - "start": 4453, - "end": 4488, + "type": "Identifier", + "start": 5219, + "end": 5221, "loc": { "start": { - "line": 96, - "column": 16 + "line": 116, + "column": 25 }, "end": { - "line": 96, - "column": 51 - } + "line": 116, + "column": 27 + }, + "identifierName": "pX" }, - "expression": { - "type": "AssignmentExpression", - "start": 4453, - "end": 4487, - "loc": { - "start": { - "line": 96, - "column": 16 - }, - "end": { - "line": 96, - "column": 50 - } + "name": "pX" + }, + { + "type": "Identifier", + "start": 5223, + "end": 5225, + "loc": { + "start": { + "line": 116, + "column": 29 }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 4453, - "end": 4459, - "loc": { - "start": { - "line": 96, - "column": 16 - }, - "end": { - "line": 96, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 4453, - "end": 4457, - "loc": { - "start": { - "line": 96, - "column": 16 - }, - "end": { - "line": 96, - "column": 20 - }, - "identifierName": "left" - }, - "name": "left", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 4458, - "end": 4459, - "loc": { - "start": { - "line": 96, - "column": 21 - }, - "end": { - "line": 96, - "column": 22 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false, - "leadingComments": null + "end": { + "line": 116, + "column": 31 }, - "right": { - "type": "BinaryExpression", - "start": 4462, - "end": 4487, - "loc": { - "start": { - "line": 96, - "column": 25 - }, - "end": { - "line": 96, - "column": 50 - } - }, - "left": { - "type": "Identifier", - "start": 4462, - "end": 4464, - "loc": { - "start": { - "line": 96, - "column": 25 - }, - "end": { - "line": 96, - "column": 27 - }, - "identifierName": "pX" - }, - "name": "pX" - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 4467, - "end": 4487, - "loc": { - "start": { - "line": 96, - "column": 30 - }, - "end": { - "line": 96, - "column": 50 - } - }, - "object": { - "type": "MemberExpression", - "start": 4467, - "end": 4481, - "loc": { - "start": { - "line": 96, - "column": 30 - }, - "end": { - "line": 96, - "column": 44 - } - }, - "object": { - "type": "Identifier", - "start": 4467, - "end": 4476, - "loc": { - "start": { - "line": 96, - "column": 30 - }, - "end": { - "line": 96, - "column": 39 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 4477, - "end": 4481, - "loc": { - "start": { - "line": 96, - "column": 40 - }, - "end": { - "line": 96, - "column": 44 - }, - "identifierName": "icon" - }, - "name": "icon" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 4482, - "end": 4487, - "loc": { - "start": { - "line": 96, - "column": 45 - }, - "end": { - "line": 96, - "column": 50 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - } + "identifierName": "pY" + }, + "name": "pY" + }, + { + "type": "Identifier", + "start": 5227, + "end": 5231, + "loc": { + "start": { + "line": 116, + "column": 33 }, - "leadingComments": null + "end": { + "line": 116, + "column": 37 + }, + "identifierName": "pMap" }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Position the left clone", - "start": 4409, - "end": 4435, - "loc": { - "start": { - "line": 95, - "column": 16 - }, - "end": { - "line": 95, - "column": 42 - } - } - } - ] + "name": "pMap" + } + ] + }, + "trailingComments": [ + { + "type": "CommentLine", + "value": " Position the left clone", + "start": 5249, + "end": 5275, + "loc": { + "start": { + "line": 118, + "column": 12 + }, + "end": { + "line": 118, + "column": 38 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 5289, + "end": 5324, + "loc": { + "start": { + "line": 119, + "column": 12 + }, + "end": { + "line": 119, + "column": 47 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 5289, + "end": 5323, + "loc": { + "start": { + "line": 119, + "column": 12 }, - { - "type": "ExpressionStatement", - "start": 4506, - "end": 4518, + "end": { + "line": 119, + "column": 46 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 5289, + "end": 5295, + "loc": { + "start": { + "line": 119, + "column": 12 + }, + "end": { + "line": 119, + "column": 18 + } + }, + "object": { + "type": "Identifier", + "start": 5289, + "end": 5293, "loc": { "start": { - "line": 97, + "line": 119, + "column": 12 + }, + "end": { + "line": 119, "column": 16 }, + "identifierName": "left" + }, + "name": "left", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 5294, + "end": 5295, + "loc": { + "start": { + "line": 119, + "column": 17 + }, "end": { - "line": 97, - "column": 28 - } + "line": 119, + "column": 18 + }, + "identifierName": "x" }, - "expression": { - "type": "AssignmentExpression", - "start": 4506, - "end": 4517, - "loc": { - "start": { - "line": 97, - "column": 16 - }, - "end": { - "line": 97, - "column": 27 - } + "name": "x" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "BinaryExpression", + "start": 5298, + "end": 5323, + "loc": { + "start": { + "line": 119, + "column": 21 + }, + "end": { + "line": 119, + "column": 46 + } + }, + "left": { + "type": "Identifier", + "start": 5298, + "end": 5300, + "loc": { + "start": { + "line": 119, + "column": 21 }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 4506, - "end": 4512, - "loc": { - "start": { - "line": 97, - "column": 16 - }, - "end": { - "line": 97, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 4506, - "end": 4510, - "loc": { - "start": { - "line": 97, - "column": 16 - }, - "end": { - "line": 97, - "column": 20 - }, - "identifierName": "left" - }, - "name": "left" - }, - "property": { - "type": "Identifier", - "start": 4511, - "end": 4512, - "loc": { - "start": { - "line": 97, - "column": 21 - }, - "end": { - "line": 97, - "column": 22 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false + "end": { + "line": 119, + "column": 23 }, - "right": { - "type": "Identifier", - "start": 4515, - "end": 4517, - "loc": { - "start": { - "line": 97, - "column": 25 - }, - "end": { - "line": 97, - "column": 27 - }, - "identifierName": "pY" - }, - "name": "pY" - } + "identifierName": "pX" }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " Position the right clone", - "start": 4536, - "end": 4563, - "loc": { - "start": { - "line": 98, - "column": 16 - }, - "end": { - "line": 98, - "column": 43 - } - } - } - ] + "name": "pX" }, - { - "type": "ExpressionStatement", - "start": 4581, - "end": 4617, + "operator": "-", + "right": { + "type": "MemberExpression", + "start": 5303, + "end": 5323, "loc": { "start": { - "line": 99, - "column": 16 + "line": 119, + "column": 26 }, "end": { - "line": 99, - "column": 52 + "line": 119, + "column": 46 } }, - "expression": { - "type": "AssignmentExpression", - "start": 4581, - "end": 4616, + "object": { + "type": "MemberExpression", + "start": 5303, + "end": 5317, "loc": { "start": { - "line": 99, - "column": 16 + "line": 119, + "column": 26 }, "end": { - "line": 99, - "column": 51 + "line": 119, + "column": 40 } }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 4581, - "end": 4588, + "object": { + "type": "Identifier", + "start": 5303, + "end": 5312, "loc": { "start": { - "line": 99, - "column": 16 + "line": 119, + "column": 26 }, "end": { - "line": 99, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 4581, - "end": 4586, - "loc": { - "start": { - "line": 99, - "column": 16 - }, - "end": { - "line": 99, - "column": 21 - }, - "identifierName": "right" - }, - "name": "right", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 4587, - "end": 4588, - "loc": { - "start": { - "line": 99, - "column": 22 - }, - "end": { - "line": 99, - "column": 23 - }, - "identifierName": "x" + "line": 119, + "column": 35 }, - "name": "x" + "identifierName": "pInstance" }, - "computed": false, - "leadingComments": null + "name": "pInstance" }, - "right": { - "type": "BinaryExpression", - "start": 4591, - "end": 4616, + "property": { + "type": "Identifier", + "start": 5313, + "end": 5317, "loc": { "start": { - "line": 99, - "column": 26 + "line": 119, + "column": 36 }, "end": { - "line": 99, - "column": 51 - } - }, - "left": { - "type": "Identifier", - "start": 4591, - "end": 4593, - "loc": { - "start": { - "line": 99, - "column": 26 - }, - "end": { - "line": 99, - "column": 28 - }, - "identifierName": "pX" + "line": 119, + "column": 40 }, - "name": "pX" + "identifierName": "icon" }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 4596, - "end": 4616, - "loc": { - "start": { - "line": 99, - "column": 31 - }, - "end": { - "line": 99, - "column": 51 - } - }, - "object": { - "type": "MemberExpression", - "start": 4596, - "end": 4610, - "loc": { - "start": { - "line": 99, - "column": 31 - }, - "end": { - "line": 99, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 4596, - "end": 4605, - "loc": { - "start": { - "line": 99, - "column": 31 - }, - "end": { - "line": 99, - "column": 40 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 4606, - "end": 4610, - "loc": { - "start": { - "line": 99, - "column": 41 - }, - "end": { - "line": 99, - "column": 45 - }, - "identifierName": "icon" - }, - "name": "icon" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 4611, - "end": 4616, - "loc": { - "start": { - "line": 99, - "column": 46 - }, - "end": { - "line": 99, - "column": 51 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - } + "name": "icon" }, - "leadingComments": null + "computed": false }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Position the right clone", - "start": 4536, - "end": 4563, - "loc": { - "start": { - "line": 98, - "column": 16 - }, - "end": { - "line": 98, - "column": 43 - } - } - } - ] + "property": { + "type": "Identifier", + "start": 5318, + "end": 5323, + "loc": { + "start": { + "line": 119, + "column": 41 + }, + "end": { + "line": 119, + "column": 46 + }, + "identifierName": "width" + }, + "name": "width" + }, + "computed": false + } + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Position the left clone", + "start": 5249, + "end": 5275, + "loc": { + "start": { + "line": 118, + "column": 12 + }, + "end": { + "line": 118, + "column": 38 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 5338, + "end": 5350, + "loc": { + "start": { + "line": 120, + "column": 12 + }, + "end": { + "line": 120, + "column": 24 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 5338, + "end": 5349, + "loc": { + "start": { + "line": 120, + "column": 12 }, - { - "type": "ExpressionStatement", - "start": 4635, - "end": 4648, + "end": { + "line": 120, + "column": 23 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 5338, + "end": 5344, + "loc": { + "start": { + "line": 120, + "column": 12 + }, + "end": { + "line": 120, + "column": 18 + } + }, + "object": { + "type": "Identifier", + "start": 5338, + "end": 5342, "loc": { "start": { - "line": 100, - "column": 16 + "line": 120, + "column": 12 }, "end": { - "line": 100, - "column": 29 - } + "line": 120, + "column": 16 + }, + "identifierName": "left" }, - "expression": { - "type": "AssignmentExpression", - "start": 4635, - "end": 4647, - "loc": { - "start": { - "line": 100, - "column": 16 - }, - "end": { - "line": 100, - "column": 28 - } + "name": "left" + }, + "property": { + "type": "Identifier", + "start": 5343, + "end": 5344, + "loc": { + "start": { + "line": 120, + "column": 17 }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 4635, - "end": 4642, - "loc": { - "start": { - "line": 100, - "column": 16 - }, - "end": { - "line": 100, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 4635, - "end": 4640, - "loc": { - "start": { - "line": 100, - "column": 16 - }, - "end": { - "line": 100, - "column": 21 - }, - "identifierName": "right" - }, - "name": "right" - }, - "property": { - "type": "Identifier", - "start": 4641, - "end": 4642, - "loc": { - "start": { - "line": 100, - "column": 22 - }, - "end": { - "line": 100, - "column": 23 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false + "end": { + "line": 120, + "column": 18 }, - "right": { - "type": "Identifier", - "start": 4645, - "end": 4647, - "loc": { - "start": { - "line": 100, - "column": 26 - }, - "end": { - "line": 100, - "column": 28 - }, - "identifierName": "pY" - }, - "name": "pY" - } + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 5347, + "end": 5349, + "loc": { + "start": { + "line": 120, + "column": 21 + }, + "end": { + "line": 120, + "column": 23 + }, + "identifierName": "pY" + }, + "name": "pY" + } + }, + "trailingComments": [ + { + "type": "CommentLine", + "value": " Position the right clone", + "start": 5364, + "end": 5391, + "loc": { + "start": { + "line": 121, + "column": 12 }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " Store the clones in a temporary array", - "start": 4666, - "end": 4706, - "loc": { - "start": { - "line": 101, - "column": 16 - }, - "end": { - "line": 101, - "column": 56 - } - } - } - ] + "end": { + "line": 121, + "column": 39 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 5405, + "end": 5441, + "loc": { + "start": { + "line": 122, + "column": 12 + }, + "end": { + "line": 122, + "column": 48 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 5405, + "end": 5440, + "loc": { + "start": { + "line": 122, + "column": 12 }, - { - "type": "VariableDeclaration", - "start": 4724, - "end": 4755, + "end": { + "line": 122, + "column": 47 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 5405, + "end": 5412, + "loc": { + "start": { + "line": 122, + "column": 12 + }, + "end": { + "line": 122, + "column": 19 + } + }, + "object": { + "type": "Identifier", + "start": 5405, + "end": 5410, "loc": { "start": { - "line": 102, - "column": 16 + "line": 122, + "column": 12 }, "end": { - "line": 102, - "column": 47 - } + "line": 122, + "column": 17 + }, + "identifierName": "right" }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4730, - "end": 4754, - "loc": { - "start": { - "line": 102, - "column": 22 - }, - "end": { - "line": 102, - "column": 46 - } - }, - "id": { - "type": "Identifier", - "start": 4730, - "end": 4738, - "loc": { - "start": { - "line": 102, - "column": 22 - }, - "end": { - "line": 102, - "column": 30 - }, - "identifierName": "children" - }, - "name": "children", - "leadingComments": null - }, - "init": { - "type": "ArrayExpression", - "start": 4741, - "end": 4754, - "loc": { - "start": { - "line": 102, - "column": 33 - }, - "end": { - "line": 102, - "column": 46 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 4742, - "end": 4746, - "loc": { - "start": { - "line": 102, - "column": 34 - }, - "end": { - "line": 102, - "column": 38 - }, - "identifierName": "left" - }, - "name": "left" - }, - { - "type": "Identifier", - "start": 4748, - "end": 4753, - "loc": { - "start": { - "line": 102, - "column": 40 - }, - "end": { - "line": 102, - "column": 45 - }, - "identifierName": "right" - }, - "name": "right" - } - ] - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " Store the clones in a temporary array", - "start": 4666, - "end": 4706, - "loc": { - "start": { - "line": 101, - "column": 16 - }, - "end": { - "line": 101, - "column": 56 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " Loop the clones and store their relative positions to the main instance", - "start": 4773, - "end": 4847, - "loc": { - "start": { - "line": 103, - "column": 16 - }, - "end": { - "line": 103, - "column": 90 - } - } - } - ] + "name": "right", + "leadingComments": null }, - { - "type": "ExpressionStatement", - "start": 4865, - "end": 5026, + "property": { + "type": "Identifier", + "start": 5411, + "end": 5412, "loc": { "start": { - "line": 104, - "column": 16 + "line": 122, + "column": 18 }, "end": { - "line": 107, + "line": 122, "column": 19 - } - }, - "expression": { - "type": "CallExpression", - "start": 4865, - "end": 5025, - "loc": { - "start": { - "line": 104, - "column": 16 - }, - "end": { - "line": 107, - "column": 18 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4865, - "end": 4881, - "loc": { - "start": { - "line": 104, - "column": 16 - }, - "end": { - "line": 104, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 4865, - "end": 4873, - "loc": { - "start": { - "line": 104, - "column": 16 - }, - "end": { - "line": 104, - "column": 24 - }, - "identifierName": "children" - }, - "name": "children", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 4874, - "end": 4881, - "loc": { - "start": { - "line": 104, - "column": 25 - }, - "end": { - "line": 104, - "column": 32 - }, - "identifierName": "forEach" - }, - "name": "forEach" - }, - "computed": false, - "leadingComments": null }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 4882, - "end": 5024, - "loc": { - "start": { - "line": 104, - "column": 33 - }, - "end": { - "line": 107, - "column": 17 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 4883, - "end": 4889, - "loc": { - "start": { - "line": 104, - "column": 34 - }, - "end": { - "line": 104, - "column": 40 - }, - "identifierName": "pChild" - }, - "name": "pChild" - } - ], - "body": { - "type": "BlockStatement", - "start": 4894, - "end": 5024, - "loc": { - "start": { - "line": 104, - "column": 45 - }, - "end": { - "line": 107, - "column": 17 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 4917, - "end": 4950, - "loc": { - "start": { - "line": 105, - "column": 20 - }, - "end": { - "line": 105, - "column": 53 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 4917, - "end": 4949, - "loc": { - "start": { - "line": 105, - "column": 20 - }, - "end": { - "line": 105, - "column": 52 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 4917, - "end": 4933, - "loc": { - "start": { - "line": 105, - "column": 20 - }, - "end": { - "line": 105, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 4917, - "end": 4923, - "loc": { - "start": { - "line": 105, - "column": 20 - }, - "end": { - "line": 105, - "column": 26 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 4924, - "end": 4933, - "loc": { - "start": { - "line": 105, - "column": 27 - }, - "end": { - "line": 105, - "column": 36 - }, - "identifierName": "relativeX" - }, - "name": "relativeX" - }, - "computed": false - }, - "right": { - "type": "BinaryExpression", - "start": 4936, - "end": 4949, - "loc": { - "start": { - "line": 105, - "column": 39 - }, - "end": { - "line": 105, - "column": 52 - } - }, - "left": { - "type": "MemberExpression", - "start": 4936, - "end": 4944, - "loc": { - "start": { - "line": 105, - "column": 39 - }, - "end": { - "line": 105, - "column": 47 - } - }, - "object": { - "type": "Identifier", - "start": 4936, - "end": 4942, - "loc": { - "start": { - "line": 105, - "column": 39 - }, - "end": { - "line": 105, - "column": 45 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 4943, - "end": 4944, - "loc": { - "start": { - "line": 105, - "column": 46 - }, - "end": { - "line": 105, - "column": 47 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 4947, - "end": 4949, - "loc": { - "start": { - "line": 105, - "column": 50 - }, - "end": { - "line": 105, - "column": 52 - }, - "identifierName": "pX" - }, - "name": "pX" - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 4972, - "end": 5005, - "loc": { - "start": { - "line": 106, - "column": 20 - }, - "end": { - "line": 106, - "column": 53 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 4972, - "end": 5004, - "loc": { - "start": { - "line": 106, - "column": 20 - }, - "end": { - "line": 106, - "column": 52 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 4972, - "end": 4988, - "loc": { - "start": { - "line": 106, - "column": 20 - }, - "end": { - "line": 106, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 4972, - "end": 4978, - "loc": { - "start": { - "line": 106, - "column": 20 - }, - "end": { - "line": 106, - "column": 26 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 4979, - "end": 4988, - "loc": { - "start": { - "line": 106, - "column": 27 - }, - "end": { - "line": 106, - "column": 36 - }, - "identifierName": "relativeY" - }, - "name": "relativeY" - }, - "computed": false - }, - "right": { - "type": "BinaryExpression", - "start": 4991, - "end": 5004, - "loc": { - "start": { - "line": 106, - "column": 39 - }, - "end": { - "line": 106, - "column": 52 - } - }, - "left": { - "type": "MemberExpression", - "start": 4991, - "end": 4999, - "loc": { - "start": { - "line": 106, - "column": 39 - }, - "end": { - "line": 106, - "column": 47 - } - }, - "object": { - "type": "Identifier", - "start": 4991, - "end": 4997, - "loc": { - "start": { - "line": 106, - "column": 39 - }, - "end": { - "line": 106, - "column": 45 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 4998, - "end": 4999, - "loc": { - "start": { - "line": 106, - "column": 46 - }, - "end": { - "line": 106, - "column": 47 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 5002, - "end": 5004, - "loc": { - "start": { - "line": 106, - "column": 50 - }, - "end": { - "line": 106, - "column": 52 - }, - "identifierName": "pY" - }, - "name": "pY" - } - } - } - } - ], - "directives": [] - } - } - ], - "leadingComments": null + "identifierName": "x" }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Loop the clones and store their relative positions to the main instance", - "start": 4773, - "end": 4847, - "loc": { - "start": { - "line": 103, - "column": 16 - }, - "end": { - "line": 103, - "column": 90 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " When the main instance moves, move the clones with their relative position to it.", - "start": 5044, - "end": 5128, - "loc": { - "start": { - "line": 108, - "column": 16 - }, - "end": { - "line": 108, - "column": 100 - } - } - } - ] + "name": "x" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "BinaryExpression", + "start": 5415, + "end": 5440, + "loc": { + "start": { + "line": 122, + "column": 22 + }, + "end": { + "line": 122, + "column": 47 + } }, - { - "type": "ExpressionStatement", - "start": 5146, - "end": 5543, + "left": { + "type": "Identifier", + "start": 5415, + "end": 5417, "loc": { "start": { - "line": 109, - "column": 16 + "line": 122, + "column": 22 }, "end": { - "line": 116, - "column": 17 + "line": 122, + "column": 24 + }, + "identifierName": "pX" + }, + "name": "pX" + }, + "operator": "+", + "right": { + "type": "MemberExpression", + "start": 5420, + "end": 5440, + "loc": { + "start": { + "line": 122, + "column": 27 + }, + "end": { + "line": 122, + "column": 47 } }, - "expression": { - "type": "AssignmentExpression", - "start": 5146, - "end": 5543, + "object": { + "type": "MemberExpression", + "start": 5420, + "end": 5434, "loc": { "start": { - "line": 109, - "column": 16 + "line": 122, + "column": 27 }, "end": { - "line": 116, - "column": 17 + "line": 122, + "column": 41 } }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 5146, - "end": 5167, + "object": { + "type": "Identifier", + "start": 5420, + "end": 5429, "loc": { "start": { - "line": 109, - "column": 16 + "line": 122, + "column": 27 }, "end": { - "line": 109, - "column": 37 - } - }, - "object": { - "type": "Identifier", - "start": 5146, - "end": 5155, - "loc": { - "start": { - "line": 109, - "column": 16 - }, - "end": { - "line": 109, - "column": 25 - }, - "identifierName": "pInstance" - }, - "name": "pInstance", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 5156, - "end": 5167, - "loc": { - "start": { - "line": 109, - "column": 26 - }, - "end": { - "line": 109, - "column": 37 - }, - "identifierName": "onRelocated" + "line": 122, + "column": 36 }, - "name": "onRelocated" + "identifierName": "pInstance" }, - "computed": false, - "leadingComments": null + "name": "pInstance" }, - "right": { - "type": "FunctionExpression", - "start": 5170, - "end": 5543, + "property": { + "type": "Identifier", + "start": 5430, + "end": 5434, "loc": { "start": { - "line": 109, - "column": 40 + "line": 122, + "column": 37 }, "end": { - "line": 116, - "column": 17 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 5179, - "end": 5181, - "loc": { - "start": { - "line": 109, - "column": 49 - }, - "end": { - "line": 109, - "column": 51 - }, - "identifierName": "pX" - }, - "name": "pX" - }, - { - "type": "Identifier", - "start": 5183, - "end": 5185, - "loc": { - "start": { - "line": 109, - "column": 53 - }, - "end": { - "line": 109, - "column": 55 - }, - "identifierName": "pY" - }, - "name": "pY" - } - ], - "body": { - "type": "BlockStatement", - "start": 5187, - "end": 5543, - "loc": { - "start": { - "line": 109, - "column": 57 - }, - "end": { - "line": 116, - "column": 17 - } + "line": 122, + "column": 41 }, - "body": [ - { - "type": "ExpressionStatement", - "start": 5287, - "end": 5524, - "loc": { - "start": { - "line": 111, - "column": 20 - }, - "end": { - "line": 115, - "column": 23 - } - }, - "expression": { - "type": "CallExpression", - "start": 5287, - "end": 5523, - "loc": { - "start": { - "line": 111, - "column": 20 - }, - "end": { - "line": 115, - "column": 22 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5287, - "end": 5303, - "loc": { - "start": { - "line": 111, - "column": 20 - }, - "end": { - "line": 111, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 5287, - "end": 5295, - "loc": { - "start": { - "line": 111, - "column": 20 - }, - "end": { - "line": 111, - "column": 28 - }, - "identifierName": "children" - }, - "name": "children", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 5296, - "end": 5303, - "loc": { - "start": { - "line": 111, - "column": 29 - }, - "end": { - "line": 111, - "column": 36 - }, - "identifierName": "forEach" - }, - "name": "forEach" - }, - "computed": false, - "leadingComments": null - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 5304, - "end": 5522, - "loc": { - "start": { - "line": 111, - "column": 37 - }, - "end": { - "line": 115, - "column": 21 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 5305, - "end": 5311, - "loc": { - "start": { - "line": 111, - "column": 38 - }, - "end": { - "line": 111, - "column": 44 - }, - "identifierName": "pChild" - }, - "name": "pChild" - } - ], - "body": { - "type": "BlockStatement", - "start": 5316, - "end": 5522, - "loc": { - "start": { - "line": 111, - "column": 49 - }, - "end": { - "line": 115, - "column": 21 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 5343, - "end": 5380, - "loc": { - "start": { - "line": 112, - "column": 24 - }, - "end": { - "line": 112, - "column": 61 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 5343, - "end": 5379, - "loc": { - "start": { - "line": 112, - "column": 24 - }, - "end": { - "line": 112, - "column": 60 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 5343, - "end": 5351, - "loc": { - "start": { - "line": 112, - "column": 24 - }, - "end": { - "line": 112, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 5343, - "end": 5349, - "loc": { - "start": { - "line": 112, - "column": 24 - }, - "end": { - "line": 112, - "column": 30 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 5350, - "end": 5351, - "loc": { - "start": { - "line": 112, - "column": 31 - }, - "end": { - "line": 112, - "column": 32 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "right": { - "type": "BinaryExpression", - "start": 5354, - "end": 5379, - "loc": { - "start": { - "line": 112, - "column": 35 - }, - "end": { - "line": 112, - "column": 60 - } - }, - "left": { - "type": "MemberExpression", - "start": 5354, - "end": 5360, - "loc": { - "start": { - "line": 112, - "column": 35 - }, - "end": { - "line": 112, - "column": 41 - } - }, - "object": { - "type": "ThisExpression", - "start": 5354, - "end": 5358, - "loc": { - "start": { - "line": 112, - "column": 35 - }, - "end": { - "line": 112, - "column": 39 - } - } - }, - "property": { - "type": "Identifier", - "start": 5359, - "end": 5360, - "loc": { - "start": { - "line": 112, - "column": 40 - }, - "end": { - "line": 112, - "column": 41 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 5363, - "end": 5379, - "loc": { - "start": { - "line": 112, - "column": 44 - }, - "end": { - "line": 112, - "column": 60 - } - }, - "object": { - "type": "Identifier", - "start": 5363, - "end": 5369, - "loc": { - "start": { - "line": 112, - "column": 44 - }, - "end": { - "line": 112, - "column": 50 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 5370, - "end": 5379, - "loc": { - "start": { - "line": 112, - "column": 51 - }, - "end": { - "line": 112, - "column": 60 - }, - "identifierName": "relativeX" - }, - "name": "relativeX" - }, - "computed": false - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 5406, - "end": 5443, - "loc": { - "start": { - "line": 113, - "column": 24 - }, - "end": { - "line": 113, - "column": 61 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 5406, - "end": 5442, - "loc": { - "start": { - "line": 113, - "column": 24 - }, - "end": { - "line": 113, - "column": 60 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 5406, - "end": 5414, - "loc": { - "start": { - "line": 113, - "column": 24 - }, - "end": { - "line": 113, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 5406, - "end": 5412, - "loc": { - "start": { - "line": 113, - "column": 24 - }, - "end": { - "line": 113, - "column": 30 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 5413, - "end": 5414, - "loc": { - "start": { - "line": 113, - "column": 31 - }, - "end": { - "line": 113, - "column": 32 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "right": { - "type": "BinaryExpression", - "start": 5417, - "end": 5442, - "loc": { - "start": { - "line": 113, - "column": 35 - }, - "end": { - "line": 113, - "column": 60 - } - }, - "left": { - "type": "MemberExpression", - "start": 5417, - "end": 5423, - "loc": { - "start": { - "line": 113, - "column": 35 - }, - "end": { - "line": 113, - "column": 41 - } - }, - "object": { - "type": "ThisExpression", - "start": 5417, - "end": 5421, - "loc": { - "start": { - "line": 113, - "column": 35 - }, - "end": { - "line": 113, - "column": 39 - } - } - }, - "property": { - "type": "Identifier", - "start": 5422, - "end": 5423, - "loc": { - "start": { - "line": 113, - "column": 40 - }, - "end": { - "line": 113, - "column": 41 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 5426, - "end": 5442, - "loc": { - "start": { - "line": 113, - "column": 44 - }, - "end": { - "line": 113, - "column": 60 - } - }, - "object": { - "type": "Identifier", - "start": 5426, - "end": 5432, - "loc": { - "start": { - "line": 113, - "column": 44 - }, - "end": { - "line": 113, - "column": 50 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 5433, - "end": 5442, - "loc": { - "start": { - "line": 113, - "column": 51 - }, - "end": { - "line": 113, - "column": 60 - }, - "identifierName": "relativeY" - }, - "name": "relativeY" - }, - "computed": false - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 5469, - "end": 5499, - "loc": { - "start": { - "line": 114, - "column": 24 - }, - "end": { - "line": 114, - "column": 54 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 5469, - "end": 5498, - "loc": { - "start": { - "line": 114, - "column": 24 - }, - "end": { - "line": 114, - "column": 53 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 5469, - "end": 5483, - "loc": { - "start": { - "line": 114, - "column": 24 - }, - "end": { - "line": 114, - "column": 38 - } - }, - "object": { - "type": "Identifier", - "start": 5469, - "end": 5475, - "loc": { - "start": { - "line": 114, - "column": 24 - }, - "end": { - "line": 114, - "column": 30 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 5476, - "end": 5483, - "loc": { - "start": { - "line": 114, - "column": 31 - }, - "end": { - "line": 114, - "column": 38 - }, - "identifierName": "mapName" - }, - "name": "mapName" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 5486, - "end": 5498, - "loc": { - "start": { - "line": 114, - "column": 41 - }, - "end": { - "line": 114, - "column": 53 - } - }, - "object": { - "type": "ThisExpression", - "start": 5486, - "end": 5490, - "loc": { - "start": { - "line": 114, - "column": 41 - }, - "end": { - "line": 114, - "column": 45 - } - } - }, - "property": { - "type": "Identifier", - "start": 5491, - "end": 5498, - "loc": { - "start": { - "line": 114, - "column": 46 - }, - "end": { - "line": 114, - "column": 53 - }, - "identifierName": "mapName" - }, - "name": "mapName" - }, - "computed": false - } - } - } - ], - "directives": [] - } - } - ], - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Update the children's position when the parent moves", - "start": 5210, - "end": 5265, - "loc": { - "start": { - "line": 110, - "column": 20 - }, - "end": { - "line": 110, - "column": 75 - } - } - } - ] - } - ], - "directives": [] - } + "identifierName": "icon" + }, + "name": "icon" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 5435, + "end": 5440, + "loc": { + "start": { + "line": 122, + "column": 42 + }, + "end": { + "line": 122, + "column": 47 + }, + "identifierName": "width" + }, + "name": "width" + }, + "computed": false + } + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Position the right clone", + "start": 5364, + "end": 5391, + "loc": { + "start": { + "line": 121, + "column": 12 + }, + "end": { + "line": 121, + "column": 39 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 5455, + "end": 5468, + "loc": { + "start": { + "line": 123, + "column": 12 + }, + "end": { + "line": 123, + "column": 25 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 5455, + "end": 5467, + "loc": { + "start": { + "line": 123, + "column": 12 + }, + "end": { + "line": 123, + "column": 24 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 5455, + "end": 5462, + "loc": { + "start": { + "line": 123, + "column": 12 + }, + "end": { + "line": 123, + "column": 19 + } + }, + "object": { + "type": "Identifier", + "start": 5455, + "end": 5460, + "loc": { + "start": { + "line": 123, + "column": 12 }, - "leadingComments": null + "end": { + "line": 123, + "column": 17 + }, + "identifierName": "right" }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " When the main instance moves, move the clones with their relative position to it.", - "start": 5044, - "end": 5128, - "loc": { - "start": { - "line": 108, - "column": 16 - }, - "end": { - "line": 108, - "column": 100 - } - } - } - ] - } - ], - "directives": [] + "name": "right" + }, + "property": { + "type": "Identifier", + "start": 5461, + "end": 5462, + "loc": { + "start": { + "line": 123, + "column": 18 + }, + "end": { + "line": 123, + "column": 19 + }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 5465, + "end": 5467, + "loc": { + "start": { + "line": 123, + "column": 22 + }, + "end": { + "line": 123, + "column": 24 + }, + "identifierName": "pY" + }, + "name": "pY" + } }, - "alternate": null, - "leadingComments": [ + "trailingComments": [ { "type": "CommentLine", - "value": " If this instance is set to loop, then it needs a left and right clone", - "start": 3923, - "end": 3995, + "value": " Store the clones in a temporary array", + "start": 5482, + "end": 5522, "loc": { "start": { - "line": 87, + "line": 124, "column": 12 }, "end": { - "line": 87, - "column": 84 + "line": 124, + "column": 52 } } } @@ -18878,1198 +19405,2840 @@ }, { "type": "VariableDeclaration", - "start": 5572, - "end": 5613, + "start": 5536, + "end": 5567, "loc": { "start": { - "line": 118, + "line": 125, "column": 12 }, "end": { - "line": 118, - "column": 53 + "line": 125, + "column": 43 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 5578, - "end": 5612, + "start": 5542, + "end": 5566, "loc": { "start": { - "line": 118, + "line": 125, "column": 18 }, "end": { - "line": 118, - "column": 52 + "line": 125, + "column": 42 } }, "id": { "type": "Identifier", - "start": 5578, - "end": 5585, + "start": 5542, + "end": 5550, "loc": { "start": { - "line": 118, + "line": 125, "column": 18 }, "end": { - "line": 118, - "column": 25 + "line": 125, + "column": 26 }, - "identifierName": "viewEye" + "identifierName": "children" }, - "name": "viewEye" + "name": "children", + "leadingComments": null }, "init": { - "type": "CallExpression", - "start": 5588, - "end": 5612, + "type": "ArrayExpression", + "start": 5553, + "end": 5566, "loc": { "start": { - "line": 118, - "column": 28 + "line": 125, + "column": 29 }, "end": { - "line": 118, - "column": 52 + "line": 125, + "column": 42 } }, - "callee": { - "type": "MemberExpression", - "start": 5588, - "end": 5610, - "loc": { - "start": { - "line": 118, - "column": 28 - }, - "end": { - "line": 118, - "column": 50 - } - }, - "object": { - "type": "MemberExpression", - "start": 5588, - "end": 5599, + "elements": [ + { + "type": "Identifier", + "start": 5554, + "end": 5558, "loc": { "start": { - "line": 118, - "column": 28 + "line": 125, + "column": 30 }, "end": { - "line": 118, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 5588, - "end": 5592, - "loc": { - "start": { - "line": 118, - "column": 28 - }, - "end": { - "line": 118, - "column": 32 - }, - "identifierName": "VYLO" - }, - "name": "VYLO" - }, - "property": { - "type": "Identifier", - "start": 5593, - "end": 5599, - "loc": { - "start": { - "line": 118, - "column": 33 - }, - "end": { - "line": 118, - "column": 39 - }, - "identifierName": "Client" + "line": 125, + "column": 34 }, - "name": "Client" + "identifierName": "left" }, - "computed": false + "name": "left" }, - "property": { + { "type": "Identifier", - "start": 5600, - "end": 5610, + "start": 5560, + "end": 5565, "loc": { "start": { - "line": 118, - "column": 40 + "line": 125, + "column": 36 }, "end": { - "line": 118, - "column": 50 + "line": 125, + "column": 41 }, - "identifierName": "getViewEye" + "identifierName": "right" }, - "name": "getViewEye" - }, - "computed": false + "name": "right" + } + ] + }, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "CommentLine", + "value": " Store the clones in a temporary array", + "start": 5482, + "end": 5522, + "loc": { + "start": { + "line": 124, + "column": 12 }, - "arguments": [] + "end": { + "line": 124, + "column": 52 + } } } ], - "kind": "const" + "trailingComments": [ + { + "type": "CommentLine", + "value": " Loop the clones and store their relative positions to the main instance", + "start": 5581, + "end": 5655, + "loc": { + "start": { + "line": 126, + "column": 12 + }, + "end": { + "line": 126, + "column": 86 + } + } + } + ] }, { - "type": "VariableDeclaration", - "start": 5627, - "end": 5644, + "type": "ExpressionStatement", + "start": 5669, + "end": 5818, "loc": { "start": { - "line": 119, + "line": 127, "column": 12 }, "end": { - "line": 119, - "column": 29 + "line": 130, + "column": 15 } }, - "declarations": [ + "expression": { + "type": "CallExpression", + "start": 5669, + "end": 5817, + "loc": { + "start": { + "line": 127, + "column": 12 + }, + "end": { + "line": 130, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5669, + "end": 5685, + "loc": { + "start": { + "line": 127, + "column": 12 + }, + "end": { + "line": 127, + "column": 28 + } + }, + "object": { + "type": "Identifier", + "start": 5669, + "end": 5677, + "loc": { + "start": { + "line": 127, + "column": 12 + }, + "end": { + "line": 127, + "column": 20 + }, + "identifierName": "children" + }, + "name": "children", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 5678, + "end": 5685, + "loc": { + "start": { + "line": 127, + "column": 21 + }, + "end": { + "line": 127, + "column": 28 + }, + "identifierName": "forEach" + }, + "name": "forEach" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 5686, + "end": 5816, + "loc": { + "start": { + "line": 127, + "column": 29 + }, + "end": { + "line": 130, + "column": 13 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 5687, + "end": 5693, + "loc": { + "start": { + "line": 127, + "column": 30 + }, + "end": { + "line": 127, + "column": 36 + }, + "identifierName": "pChild" + }, + "name": "pChild" + } + ], + "body": { + "type": "BlockStatement", + "start": 5698, + "end": 5816, + "loc": { + "start": { + "line": 127, + "column": 41 + }, + "end": { + "line": 130, + "column": 13 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 5717, + "end": 5750, + "loc": { + "start": { + "line": 128, + "column": 16 + }, + "end": { + "line": 128, + "column": 49 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 5717, + "end": 5749, + "loc": { + "start": { + "line": 128, + "column": 16 + }, + "end": { + "line": 128, + "column": 48 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 5717, + "end": 5733, + "loc": { + "start": { + "line": 128, + "column": 16 + }, + "end": { + "line": 128, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 5717, + "end": 5723, + "loc": { + "start": { + "line": 128, + "column": 16 + }, + "end": { + "line": 128, + "column": 22 + }, + "identifierName": "pChild" + }, + "name": "pChild" + }, + "property": { + "type": "Identifier", + "start": 5724, + "end": 5733, + "loc": { + "start": { + "line": 128, + "column": 23 + }, + "end": { + "line": 128, + "column": 32 + }, + "identifierName": "relativeX" + }, + "name": "relativeX" + }, + "computed": false + }, + "right": { + "type": "BinaryExpression", + "start": 5736, + "end": 5749, + "loc": { + "start": { + "line": 128, + "column": 35 + }, + "end": { + "line": 128, + "column": 48 + } + }, + "left": { + "type": "MemberExpression", + "start": 5736, + "end": 5744, + "loc": { + "start": { + "line": 128, + "column": 35 + }, + "end": { + "line": 128, + "column": 43 + } + }, + "object": { + "type": "Identifier", + "start": 5736, + "end": 5742, + "loc": { + "start": { + "line": 128, + "column": 35 + }, + "end": { + "line": 128, + "column": 41 + }, + "identifierName": "pChild" + }, + "name": "pChild" + }, + "property": { + "type": "Identifier", + "start": 5743, + "end": 5744, + "loc": { + "start": { + "line": 128, + "column": 42 + }, + "end": { + "line": 128, + "column": 43 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + }, + "operator": "-", + "right": { + "type": "Identifier", + "start": 5747, + "end": 5749, + "loc": { + "start": { + "line": 128, + "column": 46 + }, + "end": { + "line": 128, + "column": 48 + }, + "identifierName": "pX" + }, + "name": "pX" + } + } + } + }, + { + "type": "ExpressionStatement", + "start": 5768, + "end": 5801, + "loc": { + "start": { + "line": 129, + "column": 16 + }, + "end": { + "line": 129, + "column": 49 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 5768, + "end": 5800, + "loc": { + "start": { + "line": 129, + "column": 16 + }, + "end": { + "line": 129, + "column": 48 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 5768, + "end": 5784, + "loc": { + "start": { + "line": 129, + "column": 16 + }, + "end": { + "line": 129, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 5768, + "end": 5774, + "loc": { + "start": { + "line": 129, + "column": 16 + }, + "end": { + "line": 129, + "column": 22 + }, + "identifierName": "pChild" + }, + "name": "pChild" + }, + "property": { + "type": "Identifier", + "start": 5775, + "end": 5784, + "loc": { + "start": { + "line": 129, + "column": 23 + }, + "end": { + "line": 129, + "column": 32 + }, + "identifierName": "relativeY" + }, + "name": "relativeY" + }, + "computed": false + }, + "right": { + "type": "BinaryExpression", + "start": 5787, + "end": 5800, + "loc": { + "start": { + "line": 129, + "column": 35 + }, + "end": { + "line": 129, + "column": 48 + } + }, + "left": { + "type": "MemberExpression", + "start": 5787, + "end": 5795, + "loc": { + "start": { + "line": 129, + "column": 35 + }, + "end": { + "line": 129, + "column": 43 + } + }, + "object": { + "type": "Identifier", + "start": 5787, + "end": 5793, + "loc": { + "start": { + "line": 129, + "column": 35 + }, + "end": { + "line": 129, + "column": 41 + }, + "identifierName": "pChild" + }, + "name": "pChild" + }, + "property": { + "type": "Identifier", + "start": 5794, + "end": 5795, + "loc": { + "start": { + "line": 129, + "column": 42 + }, + "end": { + "line": 129, + "column": 43 + }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + }, + "operator": "-", + "right": { + "type": "Identifier", + "start": 5798, + "end": 5800, + "loc": { + "start": { + "line": 129, + "column": 46 + }, + "end": { + "line": 129, + "column": 48 + }, + "identifierName": "pY" + }, + "name": "pY" + } + } + } + } + ], + "directives": [] + } + } + ], + "leadingComments": null + }, + "leadingComments": [ { - "type": "VariableDeclarator", - "start": 5631, - "end": 5643, + "type": "CommentLine", + "value": " Loop the clones and store their relative positions to the main instance", + "start": 5581, + "end": 5655, + "loc": { + "start": { + "line": 126, + "column": 12 + }, + "end": { + "line": 126, + "column": 86 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentLine", + "value": " Do not mutate event if one is found. Call alongside it.", + "start": 5834, + "end": 5892, "loc": { "start": { - "line": 119, - "column": 16 + "line": 132, + "column": 12 }, "end": { - "line": 119, - "column": 28 + "line": 132, + "column": 70 } - }, - "id": { - "type": "Identifier", - "start": 5631, - "end": 5639, - "loc": { - "start": { - "line": 119, - "column": 16 - }, - "end": { - "line": 119, - "column": 24 - }, - "identifierName": "lastCamX" - }, - "name": "lastCamX" - }, - "init": { - "type": "NumericLiteral", - "start": 5642, - "end": 5643, - "loc": { - "start": { - "line": 119, - "column": 27 - }, - "end": { - "line": 119, - "column": 28 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 } } - ], - "kind": "let" + ] }, { "type": "VariableDeclaration", - "start": 5658, - "end": 5675, + "start": 5906, + "end": 5954, "loc": { "start": { - "line": 120, + "line": 133, "column": 12 }, "end": { - "line": 120, - "column": 29 + "line": 133, + "column": 60 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 5662, - "end": 5674, + "start": 5912, + "end": 5953, "loc": { "start": { - "line": 120, - "column": 16 + "line": 133, + "column": 18 }, "end": { - "line": 120, - "column": 28 + "line": 133, + "column": 59 } }, "id": { "type": "Identifier", - "start": 5662, - "end": 5670, + "start": 5912, + "end": 5929, "loc": { "start": { - "line": 120, - "column": 16 + "line": 133, + "column": 18 }, "end": { - "line": 120, - "column": 24 + "line": 133, + "column": 35 }, - "identifierName": "lastCamY" + "identifierName": "oldRelocatedEvent" }, - "name": "lastCamY" + "name": "oldRelocatedEvent", + "leadingComments": null }, "init": { - "type": "NumericLiteral", - "start": 5673, - "end": 5674, + "type": "MemberExpression", + "start": 5932, + "end": 5953, "loc": { "start": { - "line": 120, - "column": 27 + "line": 133, + "column": 38 }, "end": { - "line": 120, - "column": 28 + "line": 133, + "column": 59 } }, - "extra": { - "rawValue": 0, - "raw": "0" + "object": { + "type": "Identifier", + "start": 5932, + "end": 5941, + "loc": { + "start": { + "line": 133, + "column": 38 + }, + "end": { + "line": 133, + "column": 47 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 5942, + "end": 5953, + "loc": { + "start": { + "line": 133, + "column": 48 + }, + "end": { + "line": 133, + "column": 59 + }, + "identifierName": "onRelocated" + }, + "name": "onRelocated" + }, + "computed": false + }, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "CommentLine", + "value": " Do not mutate event if one is found. Call alongside it.", + "start": 5834, + "end": 5892, + "loc": { + "start": { + "line": 132, + "column": 12 }, - "value": 0 + "end": { + "line": 132, + "column": 70 + } } } ], - "kind": "let" + "trailingComments": [ + { + "type": "CommentLine", + "value": " When the main instance moves, move the clones with their relative position to it.", + "start": 5968, + "end": 6052, + "loc": { + "start": { + "line": 134, + "column": 12 + }, + "end": { + "line": 134, + "column": 96 + } + } + } + ] }, { "type": "IfStatement", - "start": 5689, - "end": 5796, + "start": 6066, + "end": 6493, "loc": { "start": { - "line": 121, + "line": 135, "column": 12 }, "end": { - "line": 124, + "line": 144, "column": 13 } }, "test": { - "type": "Identifier", - "start": 5693, - "end": 5700, + "type": "BinaryExpression", + "start": 6070, + "end": 6109, "loc": { "start": { - "line": 121, + "line": 135, "column": 16 }, "end": { - "line": 121, - "column": 23 + "line": 135, + "column": 55 + } + }, + "left": { + "type": "UnaryExpression", + "start": 6070, + "end": 6094, + "loc": { + "start": { + "line": 135, + "column": 16 + }, + "end": { + "line": 135, + "column": 40 + } + }, + "operator": "typeof", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 6077, + "end": 6094, + "loc": { + "start": { + "line": 135, + "column": 23 + }, + "end": { + "line": 135, + "column": 40 + }, + "identifierName": "oldRelocatedEvent" + }, + "name": "oldRelocatedEvent", + "leadingComments": null + }, + "extra": { + "parenthesizedArgument": false + }, + "leadingComments": null + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 6099, + "end": 6109, + "loc": { + "start": { + "line": 135, + "column": 45 + }, + "end": { + "line": 135, + "column": 55 + } }, - "identifierName": "viewEye" + "extra": { + "rawValue": "function", + "raw": "'function'" + }, + "value": "function" }, - "name": "viewEye" + "leadingComments": null }, "consequent": { "type": "BlockStatement", - "start": 5702, - "end": 5796, + "start": 6111, + "end": 6331, "loc": { "start": { - "line": 121, - "column": 25 + "line": 135, + "column": 57 }, "end": { - "line": 124, + "line": 140, "column": 13 } }, "body": [ { "type": "ExpressionStatement", - "start": 5721, - "end": 5742, + "start": 6130, + "end": 6316, "loc": { "start": { - "line": 122, + "line": 136, "column": 16 }, "end": { - "line": 122, - "column": 37 + "line": 139, + "column": 17 } }, "expression": { "type": "AssignmentExpression", - "start": 5721, - "end": 5741, + "start": 6130, + "end": 6316, "loc": { "start": { - "line": 122, + "line": 136, "column": 16 }, "end": { - "line": 122, - "column": 36 + "line": 139, + "column": 17 } }, "operator": "=", "left": { - "type": "Identifier", - "start": 5721, - "end": 5729, - "loc": { - "start": { - "line": 122, - "column": 16 - }, - "end": { - "line": 122, - "column": 24 - }, - "identifierName": "lastCamX" - }, - "name": "lastCamX" - }, - "right": { "type": "MemberExpression", - "start": 5732, - "end": 5741, + "start": 6130, + "end": 6151, "loc": { "start": { - "line": 122, - "column": 27 + "line": 136, + "column": 16 }, "end": { - "line": 122, - "column": 36 + "line": 136, + "column": 37 } }, "object": { "type": "Identifier", - "start": 5732, - "end": 5739, + "start": 6130, + "end": 6139, "loc": { "start": { - "line": 122, - "column": 27 + "line": 136, + "column": 16 }, "end": { - "line": 122, - "column": 34 + "line": 136, + "column": 25 }, - "identifierName": "viewEye" + "identifierName": "pInstance" }, - "name": "viewEye" + "name": "pInstance" }, "property": { "type": "Identifier", - "start": 5740, - "end": 5741, + "start": 6140, + "end": 6151, "loc": { "start": { - "line": 122, - "column": 35 + "line": 136, + "column": 26 }, "end": { - "line": 122, - "column": 36 + "line": 136, + "column": 37 }, - "identifierName": "x" + "identifierName": "onRelocated" }, - "name": "x" + "name": "onRelocated" }, "computed": false + }, + "right": { + "type": "ArrowFunctionExpression", + "start": 6154, + "end": 6316, + "loc": { + "start": { + "line": 136, + "column": 40 + }, + "end": { + "line": 139, + "column": 17 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 6155, + "end": 6157, + "loc": { + "start": { + "line": 136, + "column": 41 + }, + "end": { + "line": 136, + "column": 43 + }, + "identifierName": "pX" + }, + "name": "pX" + }, + { + "type": "Identifier", + "start": 6159, + "end": 6161, + "loc": { + "start": { + "line": 136, + "column": 45 + }, + "end": { + "line": 136, + "column": 47 + }, + "identifierName": "pY" + }, + "name": "pY" + } + ], + "body": { + "type": "BlockStatement", + "start": 6166, + "end": 6316, + "loc": { + "start": { + "line": 136, + "column": 52 + }, + "end": { + "line": 139, + "column": 17 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 6189, + "end": 6231, + "loc": { + "start": { + "line": 137, + "column": 20 + }, + "end": { + "line": 137, + "column": 62 + } + }, + "expression": { + "type": "CallExpression", + "start": 6189, + "end": 6230, + "loc": { + "start": { + "line": 137, + "column": 20 + }, + "end": { + "line": 137, + "column": 61 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6189, + "end": 6211, + "loc": { + "start": { + "line": 137, + "column": 20 + }, + "end": { + "line": 137, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 6189, + "end": 6206, + "loc": { + "start": { + "line": 137, + "column": 20 + }, + "end": { + "line": 137, + "column": 37 + }, + "identifierName": "oldRelocatedEvent" + }, + "name": "oldRelocatedEvent" + }, + "property": { + "type": "Identifier", + "start": 6207, + "end": 6211, + "loc": { + "start": { + "line": 137, + "column": 38 + }, + "end": { + "line": 137, + "column": 42 + }, + "identifierName": "call" + }, + "name": "call" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 6212, + "end": 6221, + "loc": { + "start": { + "line": 137, + "column": 43 + }, + "end": { + "line": 137, + "column": 52 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + { + "type": "Identifier", + "start": 6223, + "end": 6225, + "loc": { + "start": { + "line": 137, + "column": 54 + }, + "end": { + "line": 137, + "column": 56 + }, + "identifierName": "pX" + }, + "name": "pX" + }, + { + "type": "Identifier", + "start": 6227, + "end": 6229, + "loc": { + "start": { + "line": 137, + "column": 58 + }, + "end": { + "line": 137, + "column": 60 + }, + "identifierName": "pY" + }, + "name": "pY" + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 6253, + "end": 6297, + "loc": { + "start": { + "line": 138, + "column": 20 + }, + "end": { + "line": 138, + "column": 64 + } + }, + "expression": { + "type": "CallExpression", + "start": 6253, + "end": 6296, + "loc": { + "start": { + "line": 138, + "column": 20 + }, + "end": { + "line": 138, + "column": 63 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6253, + "end": 6275, + "loc": { + "start": { + "line": 138, + "column": 20 + }, + "end": { + "line": 138, + "column": 42 + } + }, + "object": { + "type": "ThisExpression", + "start": 6253, + "end": 6257, + "loc": { + "start": { + "line": 138, + "column": 20 + }, + "end": { + "line": 138, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "start": 6258, + "end": 6275, + "loc": { + "start": { + "line": 138, + "column": 25 + }, + "end": { + "line": 138, + "column": 42 + }, + "identifierName": "handleOnRelocated" + }, + "name": "handleOnRelocated" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 6276, + "end": 6285, + "loc": { + "start": { + "line": 138, + "column": 43 + }, + "end": { + "line": 138, + "column": 52 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + { + "type": "Identifier", + "start": 6287, + "end": 6295, + "loc": { + "start": { + "line": 138, + "column": 54 + }, + "end": { + "line": 138, + "column": 62 + }, + "identifierName": "children" + }, + "name": "children" + } + ] + } + } + ], + "directives": [] + } } } + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 6337, + "end": 6493, + "loc": { + "start": { + "line": 140, + "column": 19 }, + "end": { + "line": 144, + "column": 13 + } + }, + "body": [ { "type": "ExpressionStatement", - "start": 5760, - "end": 5781, + "start": 6356, + "end": 6478, "loc": { "start": { - "line": 123, + "line": 141, "column": 16 }, "end": { - "line": 123, - "column": 37 + "line": 143, + "column": 17 } }, "expression": { "type": "AssignmentExpression", - "start": 5760, - "end": 5780, + "start": 6356, + "end": 6478, "loc": { "start": { - "line": 123, + "line": 141, "column": 16 }, "end": { - "line": 123, - "column": 36 + "line": 143, + "column": 17 } }, "operator": "=", "left": { - "type": "Identifier", - "start": 5760, - "end": 5768, - "loc": { - "start": { - "line": 123, - "column": 16 - }, - "end": { - "line": 123, - "column": 24 - }, - "identifierName": "lastCamY" - }, - "name": "lastCamY" - }, - "right": { "type": "MemberExpression", - "start": 5771, - "end": 5780, + "start": 6356, + "end": 6377, "loc": { "start": { - "line": 123, - "column": 27 + "line": 141, + "column": 16 }, "end": { - "line": 123, - "column": 36 + "line": 141, + "column": 37 } }, "object": { "type": "Identifier", - "start": 5771, - "end": 5778, + "start": 6356, + "end": 6365, "loc": { "start": { - "line": 123, - "column": 27 + "line": 141, + "column": 16 }, "end": { - "line": 123, - "column": 34 + "line": 141, + "column": 25 }, - "identifierName": "viewEye" + "identifierName": "pInstance" }, - "name": "viewEye" + "name": "pInstance" }, "property": { "type": "Identifier", - "start": 5779, - "end": 5780, + "start": 6366, + "end": 6377, + "loc": { + "start": { + "line": 141, + "column": 26 + }, + "end": { + "line": 141, + "column": 37 + }, + "identifierName": "onRelocated" + }, + "name": "onRelocated" + }, + "computed": false + }, + "right": { + "type": "ArrowFunctionExpression", + "start": 6380, + "end": 6478, + "loc": { + "start": { + "line": 141, + "column": 40 + }, + "end": { + "line": 143, + "column": 17 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 6381, + "end": 6383, + "loc": { + "start": { + "line": 141, + "column": 41 + }, + "end": { + "line": 141, + "column": 43 + }, + "identifierName": "pX" + }, + "name": "pX" + }, + { + "type": "Identifier", + "start": 6385, + "end": 6387, + "loc": { + "start": { + "line": 141, + "column": 45 + }, + "end": { + "line": 141, + "column": 47 + }, + "identifierName": "pY" + }, + "name": "pY" + } + ], + "body": { + "type": "BlockStatement", + "start": 6392, + "end": 6478, "loc": { "start": { - "line": 123, - "column": 35 + "line": 141, + "column": 52 }, "end": { - "line": 123, - "column": 36 - }, - "identifierName": "y" + "line": 143, + "column": 17 + } }, - "name": "y" - }, - "computed": false + "body": [ + { + "type": "ExpressionStatement", + "start": 6415, + "end": 6459, + "loc": { + "start": { + "line": 142, + "column": 20 + }, + "end": { + "line": 142, + "column": 64 + } + }, + "expression": { + "type": "CallExpression", + "start": 6415, + "end": 6458, + "loc": { + "start": { + "line": 142, + "column": 20 + }, + "end": { + "line": 142, + "column": 63 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6415, + "end": 6437, + "loc": { + "start": { + "line": 142, + "column": 20 + }, + "end": { + "line": 142, + "column": 42 + } + }, + "object": { + "type": "ThisExpression", + "start": 6415, + "end": 6419, + "loc": { + "start": { + "line": 142, + "column": 20 + }, + "end": { + "line": 142, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "start": 6420, + "end": 6437, + "loc": { + "start": { + "line": 142, + "column": 25 + }, + "end": { + "line": 142, + "column": 42 + }, + "identifierName": "handleOnRelocated" + }, + "name": "handleOnRelocated" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 6438, + "end": 6447, + "loc": { + "start": { + "line": 142, + "column": 43 + }, + "end": { + "line": 142, + "column": 52 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + { + "type": "Identifier", + "start": 6449, + "end": 6457, + "loc": { + "start": { + "line": 142, + "column": 54 + }, + "end": { + "line": 142, + "column": 62 + }, + "identifierName": "children" + }, + "name": "children" + } + ] + } + } + ], + "directives": [] + } } } } ], "directives": [] }, - "alternate": null + "leadingComments": [ + { + "type": "CommentLine", + "value": " When the main instance moves, move the clones with their relative position to it.", + "start": 5968, + "end": 6052, + "loc": { + "start": { + "line": 134, + "column": 12 + }, + "end": { + "line": 134, + "column": 96 + } + } + } + ] + } + ], + "directives": [] + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentLine", + "value": " If this instance is set to loop, then it needs a left and right clone", + "start": 4618, + "end": 4690, + "loc": { + "start": { + "line": 104, + "column": 8 + }, + "end": { + "line": 104, + "column": 80 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 6514, + "end": 6555, + "loc": { + "start": { + "line": 146, + "column": 8 + }, + "end": { + "line": 146, + "column": 49 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 6520, + "end": 6554, + "loc": { + "start": { + "line": 146, + "column": 14 + }, + "end": { + "line": 146, + "column": 48 + } }, - { - "type": "ExpressionStatement", - "start": 5810, - "end": 5839, + "id": { + "type": "Identifier", + "start": 6520, + "end": 6527, "loc": { "start": { - "line": 125, - "column": 12 + "line": 146, + "column": 14 }, "end": { - "line": 125, - "column": 41 + "line": 146, + "column": 21 + }, + "identifierName": "viewEye" + }, + "name": "viewEye" + }, + "init": { + "type": "CallExpression", + "start": 6530, + "end": 6554, + "loc": { + "start": { + "line": 146, + "column": 24 + }, + "end": { + "line": 146, + "column": 48 } }, - "expression": { - "type": "AssignmentExpression", - "start": 5810, - "end": 5838, + "callee": { + "type": "MemberExpression", + "start": 6530, + "end": 6552, "loc": { "start": { - "line": 125, - "column": 12 + "line": 146, + "column": 24 }, "end": { - "line": 125, - "column": 40 + "line": 146, + "column": 46 } }, - "operator": "=", - "left": { + "object": { "type": "MemberExpression", - "start": 5810, - "end": 5827, + "start": 6530, + "end": 6541, "loc": { "start": { - "line": 125, - "column": 12 + "line": 146, + "column": 24 }, "end": { - "line": 125, - "column": 29 + "line": 146, + "column": 35 } }, "object": { - "type": "MemberExpression", - "start": 5810, - "end": 5825, + "type": "Identifier", + "start": 6530, + "end": 6534, "loc": { "start": { - "line": 125, - "column": 12 + "line": 146, + "column": 24 }, "end": { - "line": 125, - "column": 27 - } - }, - "object": { - "type": "ThisExpression", - "start": 5810, - "end": 5814, - "loc": { - "start": { - "line": 125, - "column": 12 - }, - "end": { - "line": 125, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 5815, - "end": 5825, - "loc": { - "start": { - "line": 125, - "column": 17 - }, - "end": { - "line": 125, - "column": 27 - }, - "identifierName": "lastCamPos" + "line": 146, + "column": 28 }, - "name": "lastCamPos" + "identifierName": "VYLO" }, - "computed": false + "name": "VYLO" }, "property": { "type": "Identifier", - "start": 5826, - "end": 5827, + "start": 6535, + "end": 6541, "loc": { "start": { - "line": 125, - "column": 28 + "line": 146, + "column": 29 }, "end": { - "line": 125, - "column": 29 + "line": 146, + "column": 35 }, - "identifierName": "x" + "identifierName": "Client" }, - "name": "x" + "name": "Client" }, "computed": false }, - "right": { + "property": { "type": "Identifier", - "start": 5830, - "end": 5838, + "start": 6542, + "end": 6552, "loc": { "start": { - "line": 125, - "column": 32 + "line": 146, + "column": 36 }, "end": { - "line": 125, - "column": 40 + "line": 146, + "column": 46 }, - "identifierName": "lastCamX" + "identifierName": "getViewEye" }, - "name": "lastCamX" - } + "name": "getViewEye" + }, + "computed": false + }, + "arguments": [] + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 6565, + "end": 6582, + "loc": { + "start": { + "line": 147, + "column": 8 + }, + "end": { + "line": 147, + "column": 25 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 6569, + "end": 6581, + "loc": { + "start": { + "line": 147, + "column": 12 + }, + "end": { + "line": 147, + "column": 24 } }, - { - "type": "ExpressionStatement", - "start": 5853, - "end": 5882, + "id": { + "type": "Identifier", + "start": 6569, + "end": 6577, "loc": { "start": { - "line": 126, + "line": 147, "column": 12 }, "end": { - "line": 126, - "column": 41 + "line": 147, + "column": 20 + }, + "identifierName": "lastCamX" + }, + "name": "lastCamX" + }, + "init": { + "type": "NumericLiteral", + "start": 6580, + "end": 6581, + "loc": { + "start": { + "line": 147, + "column": 23 + }, + "end": { + "line": 147, + "column": 24 } }, - "expression": { - "type": "AssignmentExpression", - "start": 5853, - "end": 5881, - "loc": { - "start": { - "line": 126, - "column": 12 - }, - "end": { - "line": 126, - "column": 40 - } + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 6592, + "end": 6609, + "loc": { + "start": { + "line": 148, + "column": 8 + }, + "end": { + "line": 148, + "column": 25 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 6596, + "end": 6608, + "loc": { + "start": { + "line": 148, + "column": 12 + }, + "end": { + "line": 148, + "column": 24 + } + }, + "id": { + "type": "Identifier", + "start": 6596, + "end": 6604, + "loc": { + "start": { + "line": 148, + "column": 12 }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 5853, - "end": 5870, - "loc": { - "start": { - "line": 126, - "column": 12 - }, - "end": { - "line": 126, - "column": 29 - } - }, - "object": { - "type": "MemberExpression", - "start": 5853, - "end": 5868, - "loc": { - "start": { - "line": 126, - "column": 12 - }, - "end": { - "line": 126, - "column": 27 - } - }, - "object": { - "type": "ThisExpression", - "start": 5853, - "end": 5857, - "loc": { - "start": { - "line": 126, - "column": 12 - }, - "end": { - "line": 126, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 5858, - "end": 5868, - "loc": { - "start": { - "line": 126, - "column": 17 - }, - "end": { - "line": 126, - "column": 27 - }, - "identifierName": "lastCamPos" - }, - "name": "lastCamPos" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 5869, - "end": 5870, - "loc": { - "start": { - "line": 126, - "column": 28 - }, - "end": { - "line": 126, - "column": 29 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false + "end": { + "line": 148, + "column": 20 }, - "right": { - "type": "Identifier", - "start": 5873, - "end": 5881, - "loc": { - "start": { - "line": 126, - "column": 32 - }, - "end": { - "line": 126, - "column": 40 - }, - "identifierName": "lastCamY" - }, - "name": "lastCamY" + "identifierName": "lastCamY" + }, + "name": "lastCamY" + }, + "init": { + "type": "NumericLiteral", + "start": 6607, + "end": 6608, + "loc": { + "start": { + "line": 148, + "column": 23 + }, + "end": { + "line": 148, + "column": 24 } - } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 6619, + "end": 6714, + "loc": { + "start": { + "line": 149, + "column": 8 + }, + "end": { + "line": 152, + "column": 9 + } + }, + "test": { + "type": "Identifier", + "start": 6623, + "end": 6630, + "loc": { + "start": { + "line": 149, + "column": 12 }, + "end": { + "line": 149, + "column": 19 + }, + "identifierName": "viewEye" + }, + "name": "viewEye" + }, + "consequent": { + "type": "BlockStatement", + "start": 6632, + "end": 6714, + "loc": { + "start": { + "line": 149, + "column": 21 + }, + "end": { + "line": 152, + "column": 9 + } + }, + "body": [ { "type": "ExpressionStatement", - "start": 5896, - "end": 5925, + "start": 6647, + "end": 6668, "loc": { "start": { - "line": 127, + "line": 150, "column": 12 }, "end": { - "line": 127, - "column": 41 + "line": 150, + "column": 33 } }, "expression": { - "type": "CallExpression", - "start": 5896, - "end": 5924, + "type": "AssignmentExpression", + "start": 6647, + "end": 6667, "loc": { "start": { - "line": 127, + "line": 150, "column": 12 }, "end": { - "line": 127, - "column": 40 + "line": 150, + "column": 32 } }, - "callee": { - "type": "MemberExpression", - "start": 5896, - "end": 5912, + "operator": "=", + "left": { + "type": "Identifier", + "start": 6647, + "end": 6655, "loc": { "start": { - "line": 127, + "line": 150, "column": 12 }, - "end": { - "line": 127, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 5896, - "end": 5905, - "loc": { - "start": { - "line": 127, - "column": 12 - }, - "end": { - "line": 127, - "column": 21 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 5906, - "end": 5912, - "loc": { - "start": { - "line": 127, - "column": 22 - }, - "end": { - "line": 127, - "column": 28 - }, - "identifierName": "setPos" - }, - "name": "setPos" - }, - "computed": false - }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 5913, - "end": 5914, - "loc": { - "start": { - "line": 127, - "column": 29 - }, - "end": { - "line": 127, - "column": 30 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" + "end": { + "line": 150, + "column": 20 }, - "value": 0 + "identifierName": "lastCamX" }, - { - "type": "NumericLiteral", - "start": 5916, - "end": 5917, + "name": "lastCamX" + }, + "right": { + "type": "MemberExpression", + "start": 6658, + "end": 6667, + "loc": { + "start": { + "line": 150, + "column": 23 + }, + "end": { + "line": 150, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 6658, + "end": 6665, "loc": { "start": { - "line": 127, - "column": 32 + "line": 150, + "column": 23 }, "end": { - "line": 127, - "column": 33 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" + "line": 150, + "column": 30 + }, + "identifierName": "viewEye" }, - "value": 0 + "name": "viewEye" }, - { + "property": { "type": "Identifier", - "start": 5919, - "end": 5923, + "start": 6666, + "end": 6667, "loc": { "start": { - "line": 127, - "column": 35 + "line": 150, + "column": 31 }, "end": { - "line": 127, - "column": 39 + "line": 150, + "column": 32 }, - "identifierName": "pMap" + "identifierName": "x" }, - "name": "pMap" - } - ] + "name": "x" + }, + "computed": false + } } }, { "type": "ExpressionStatement", - "start": 5939, - "end": 5970, + "start": 6682, + "end": 6703, "loc": { "start": { - "line": 128, + "line": 151, "column": 12 }, "end": { - "line": 128, - "column": 43 + "line": 151, + "column": 33 } }, "expression": { - "type": "CallExpression", - "start": 5939, - "end": 5969, + "type": "AssignmentExpression", + "start": 6682, + "end": 6702, "loc": { "start": { - "line": 128, + "line": 151, "column": 12 }, "end": { - "line": 128, - "column": 42 + "line": 151, + "column": 32 } }, - "callee": { - "type": "MemberExpression", - "start": 5939, - "end": 5955, + "operator": "=", + "left": { + "type": "Identifier", + "start": 6682, + "end": 6690, "loc": { "start": { - "line": 128, + "line": 151, "column": 12 }, "end": { - "line": 128, - "column": 28 + "line": 151, + "column": 20 + }, + "identifierName": "lastCamY" + }, + "name": "lastCamY" + }, + "right": { + "type": "MemberExpression", + "start": 6693, + "end": 6702, + "loc": { + "start": { + "line": 151, + "column": 23 + }, + "end": { + "line": 151, + "column": 32 } }, "object": { "type": "Identifier", - "start": 5939, - "end": 5948, + "start": 6693, + "end": 6700, "loc": { "start": { - "line": 128, - "column": 12 + "line": 151, + "column": 23 }, "end": { - "line": 128, - "column": 21 + "line": 151, + "column": 30 }, - "identifierName": "pInstance" + "identifierName": "viewEye" }, - "name": "pInstance" + "name": "viewEye" }, "property": { "type": "Identifier", - "start": 5949, - "end": 5955, + "start": 6701, + "end": 6702, "loc": { "start": { - "line": 128, - "column": 22 + "line": 151, + "column": 31 }, "end": { - "line": 128, - "column": 28 + "line": 151, + "column": 32 }, - "identifierName": "setPos" + "identifierName": "y" }, - "name": "setPos" + "name": "y" }, "computed": false + } + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "ExpressionStatement", + "start": 6724, + "end": 6753, + "loc": { + "start": { + "line": 153, + "column": 8 + }, + "end": { + "line": 153, + "column": 37 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 6724, + "end": 6752, + "loc": { + "start": { + "line": 153, + "column": 8 + }, + "end": { + "line": 153, + "column": 36 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 6724, + "end": 6741, + "loc": { + "start": { + "line": 153, + "column": 8 + }, + "end": { + "line": 153, + "column": 25 + } + }, + "object": { + "type": "MemberExpression", + "start": 6724, + "end": 6739, + "loc": { + "start": { + "line": 153, + "column": 8 }, - "arguments": [ - { - "type": "Identifier", - "start": 5956, - "end": 5958, - "loc": { - "start": { - "line": 128, - "column": 29 - }, - "end": { - "line": 128, - "column": 31 - }, - "identifierName": "pX" - }, - "name": "pX" + "end": { + "line": 153, + "column": 23 + } + }, + "object": { + "type": "ThisExpression", + "start": 6724, + "end": 6728, + "loc": { + "start": { + "line": 153, + "column": 8 }, - { - "type": "Identifier", - "start": 5960, - "end": 5962, - "loc": { - "start": { - "line": 128, - "column": 33 - }, - "end": { - "line": 128, - "column": 35 - }, - "identifierName": "pY" - }, - "name": "pY" + "end": { + "line": 153, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 6729, + "end": 6739, + "loc": { + "start": { + "line": 153, + "column": 13 }, - { - "type": "Identifier", - "start": 5964, - "end": 5968, - "loc": { - "start": { - "line": 128, - "column": 37 - }, - "end": { - "line": 128, - "column": 41 - }, - "identifierName": "pMap" - }, - "name": "pMap" + "end": { + "line": 153, + "column": 23 + }, + "identifierName": "lastCamPos" + }, + "name": "lastCamPos" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6740, + "end": 6741, + "loc": { + "start": { + "line": 153, + "column": 24 + }, + "end": { + "line": 153, + "column": 25 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 6744, + "end": 6752, + "loc": { + "start": { + "line": 153, + "column": 28 + }, + "end": { + "line": 153, + "column": 36 + }, + "identifierName": "lastCamX" + }, + "name": "lastCamX" + } + } + }, + { + "type": "ExpressionStatement", + "start": 6763, + "end": 6792, + "loc": { + "start": { + "line": 154, + "column": 8 + }, + "end": { + "line": 154, + "column": 37 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 6763, + "end": 6791, + "loc": { + "start": { + "line": 154, + "column": 8 + }, + "end": { + "line": 154, + "column": 36 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 6763, + "end": 6780, + "loc": { + "start": { + "line": 154, + "column": 8 + }, + "end": { + "line": 154, + "column": 25 + } + }, + "object": { + "type": "MemberExpression", + "start": 6763, + "end": 6778, + "loc": { + "start": { + "line": 154, + "column": 8 + }, + "end": { + "line": 154, + "column": 23 + } + }, + "object": { + "type": "ThisExpression", + "start": 6763, + "end": 6767, + "loc": { + "start": { + "line": 154, + "column": 8 + }, + "end": { + "line": 154, + "column": 12 } - ] + } + }, + "property": { + "type": "Identifier", + "start": 6768, + "end": 6778, + "loc": { + "start": { + "line": 154, + "column": 13 + }, + "end": { + "line": 154, + "column": 23 + }, + "identifierName": "lastCamPos" + }, + "name": "lastCamPos" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6779, + "end": 6780, + "loc": { + "start": { + "line": 154, + "column": 24 + }, + "end": { + "line": 154, + "column": 25 + }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 6783, + "end": 6791, + "loc": { + "start": { + "line": 154, + "column": 28 + }, + "end": { + "line": 154, + "column": 36 + }, + "identifierName": "lastCamY" + }, + "name": "lastCamY" + } + } + }, + { + "type": "ExpressionStatement", + "start": 6802, + "end": 6833, + "loc": { + "start": { + "line": 155, + "column": 8 + }, + "end": { + "line": 155, + "column": 39 + } + }, + "expression": { + "type": "CallExpression", + "start": 6802, + "end": 6832, + "loc": { + "start": { + "line": 155, + "column": 8 + }, + "end": { + "line": 155, + "column": 38 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6802, + "end": 6818, + "loc": { + "start": { + "line": 155, + "column": 8 + }, + "end": { + "line": 155, + "column": 24 } + }, + "object": { + "type": "Identifier", + "start": 6802, + "end": 6811, + "loc": { + "start": { + "line": 155, + "column": 8 + }, + "end": { + "line": 155, + "column": 17 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 6812, + "end": 6818, + "loc": { + "start": { + "line": 155, + "column": 18 + }, + "end": { + "line": 155, + "column": 24 + }, + "identifierName": "setPos" + }, + "name": "setPos" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 6819, + "end": 6821, + "loc": { + "start": { + "line": 155, + "column": 25 + }, + "end": { + "line": 155, + "column": 27 + }, + "identifierName": "pX" + }, + "name": "pX" + }, + { + "type": "Identifier", + "start": 6823, + "end": 6825, + "loc": { + "start": { + "line": 155, + "column": 29 + }, + "end": { + "line": 155, + "column": 31 + }, + "identifierName": "pY" + }, + "name": "pY" + }, + { + "type": "Identifier", + "start": 6827, + "end": 6831, + "loc": { + "start": { + "line": 155, + "column": 33 + }, + "end": { + "line": 155, + "column": 37 + }, + "identifierName": "pMap" + }, + "name": "pMap" + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Initializes this instance.\r\n * @param {Object} pInstance - The instance to initialize.\r\n * @param {Object} pConfig - The parallax info that tells this module how to control this instance.\r\n * @prop {number} pConfig.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 0 to move with camera.\r\n * @prop {number} pConfig.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 0 to move with camera.\r\n * @prop {boolean} pConfig.loop - Whether this instance will loop endlessly.\r\n * @param {number} pX - The x position this parallax will start at.\r\n * @param {number} pY - The y position this parallax will start at.\r\n * @param {string} pMap - The map this instance will start at.\r\n * @private\r\n ", + "start": 3501, + "end": 4358, + "loc": { + "start": { + "line": 86, + "column": 4 + }, + "end": { + "line": 97, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Removes an instance to the parallax system.\r\n * @param {Object} pInstance - The instance to remove to the parallax system.\r\n ", + "start": 6846, + "end": 6993, + "loc": { + "start": { + "line": 157, + "column": 4 + }, + "end": { + "line": 160, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 6999, + "end": 7325, + "loc": { + "start": { + "line": 161, + "column": 4 + }, + "end": { + "line": 171, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 6999, + "end": 7005, + "loc": { + "start": { + "line": 161, + "column": 4 + }, + "end": { + "line": 161, + "column": 10 + }, + "identifierName": "remove" + }, + "name": "remove", + "leadingComments": null + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 7006, + "end": 7015, + "loc": { + "start": { + "line": 161, + "column": 11 + }, + "end": { + "line": 161, + "column": 20 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + } + ], + "body": { + "type": "BlockStatement", + "start": 7017, + "end": 7325, + "loc": { + "start": { + "line": 161, + "column": 22 + }, + "end": { + "line": 171, + "column": 5 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 7028, + "end": 7159, + "loc": { + "start": { + "line": 162, + "column": 8 + }, + "end": { + "line": 165, + "column": 9 + } + }, + "test": { + "type": "UnaryExpression", + "start": 7032, + "end": 7042, + "loc": { + "start": { + "line": 162, + "column": 12 + }, + "end": { + "line": 162, + "column": 22 } - ], - "directives": [] + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 7033, + "end": 7042, + "loc": { + "start": { + "line": 162, + "column": 13 + }, + "end": { + "line": 162, + "column": 22 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "extra": { + "parenthesizedArgument": false + } }, - "alternate": { + "consequent": { "type": "BlockStatement", - "start": 5987, - "end": 6147, + "start": 7044, + "end": 7159, "loc": { "start": { - "line": 129, - "column": 15 + "line": 162, + "column": 24 }, "end": { - "line": 131, + "line": 165, "column": 9 } }, "body": [ { "type": "ExpressionStatement", - "start": 6002, - "end": 6136, + "start": 7059, + "end": 7127, "loc": { "start": { - "line": 130, + "line": 163, "column": 12 }, "end": { - "line": 130, - "column": 146 + "line": 163, + "column": 80 } }, "expression": { "type": "CallExpression", - "start": 6002, - "end": 6135, + "start": 7059, + "end": 7126, "loc": { "start": { - "line": 130, + "line": 163, "column": 12 }, "end": { - "line": 130, - "column": 145 + "line": 163, + "column": 79 } }, "callee": { "type": "MemberExpression", - "start": 6002, - "end": 6045, + "start": 7059, + "end": 7102, "loc": { "start": { - "line": 130, + "line": 163, "column": 12 }, "end": { - "line": 130, + "line": 163, "column": 55 } }, "object": { "type": "CallExpression", - "start": 6002, - "end": 6039, + "start": 7059, + "end": 7096, "loc": { "start": { - "line": 130, + "line": 163, "column": 12 }, "end": { - "line": 130, + "line": 163, "column": 49 } }, "callee": { "type": "MemberExpression", - "start": 6002, - "end": 6020, + "start": 7059, + "end": 7077, "loc": { "start": { - "line": 130, + "line": 163, "column": 12 }, "end": { - "line": 130, + "line": 163, "column": 30 } }, "object": { "type": "MemberExpression", - "start": 6002, - "end": 6013, + "start": 7059, + "end": 7070, "loc": { "start": { - "line": 130, + "line": 163, "column": 12 }, "end": { - "line": 130, + "line": 163, "column": 23 } }, "object": { "type": "ThisExpression", - "start": 6002, - "end": 6006, + "start": 7059, + "end": 7063, "loc": { "start": { - "line": 130, + "line": 163, "column": 12 }, "end": { - "line": 130, + "line": 163, "column": 16 } } }, "property": { "type": "Identifier", - "start": 6007, - "end": 6013, + "start": 7064, + "end": 7070, "loc": { "start": { - "line": 130, + "line": 163, "column": 17 }, "end": { - "line": 130, + "line": 163, "column": 23 }, "identifierName": "logger" @@ -20080,15 +22249,15 @@ }, "property": { "type": "Identifier", - "start": 6014, - "end": 6020, + "start": 7071, + "end": 7077, "loc": { "start": { - "line": 130, + "line": 163, "column": 24 }, "end": { - "line": 130, + "line": 163, "column": 30 }, "identifierName": "prefix" @@ -20100,15 +22269,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 6021, - "end": 6038, + "start": 7078, + "end": 7095, "loc": { "start": { - "line": 130, + "line": 163, "column": 31 }, "end": { - "line": 130, + "line": 163, "column": 48 } }, @@ -20122,15 +22291,15 @@ }, "property": { "type": "Identifier", - "start": 6040, - "end": 6045, + "start": 7097, + "end": 7102, "loc": { "start": { - "line": 130, + "line": 163, "column": 50 }, "end": { - "line": 130, + "line": 163, "column": 55 }, "identifierName": "error" @@ -20142,812 +22311,456 @@ "arguments": [ { "type": "StringLiteral", - "start": 6046, - "end": 6134, + "start": 7103, + "end": 7125, "loc": { "start": { - "line": 130, + "line": 163, "column": 56 }, "end": { - "line": 130, - "column": 144 + "line": 163, + "column": 78 } }, "extra": { - "rawValue": "VYLO not found! This module depends on the VYLO object being in the global name space.", - "raw": "'VYLO not found! This module depends on the VYLO object being in the global name space.'" + "rawValue": "No pInstance passed!", + "raw": "'No pInstance passed!'" }, - "value": "VYLO not found! This module depends on the VYLO object being in the global name space." + "value": "No pInstance passed!" } ] } + }, + { + "type": "ReturnStatement", + "start": 7141, + "end": 7148, + "loc": { + "start": { + "line": 164, + "column": 12 + }, + "end": { + "line": 164, + "column": 19 + } + }, + "argument": null } ], "directives": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n * Initializes this instance.\r\n * @param {Object} pInstance - The instance to initialize.\r\n * @param {Object} pParallaxInfo - The parallax info that tells this module how to control this instance.\r\n * @property {number} pParallaxInfo.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {number} pParallaxInfo.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {boolean} pParallaxInfo.loop - Whether this instance will loop endlessly.\r\n * @param {number} pX - The x position this parallax will start at.\r\n * @param {number} pY - The y position this parallax will start at.\r\n * @param {string} pMap - The map this instance will start at.\r\n * @private\r\n ", - "start": 2943, - "end": 3836, - "loc": { - "start": { - "line": 73, - "column": 4 - }, - "end": { - "line": 84, - "column": 7 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n * Removes an instance to the parallax system.\r\n * @param {Object} pInstance - The instance to remove to the parallax system.\r\n ", - "start": 6160, - "end": 6307, - "loc": { - "start": { - "line": 133, - "column": 4 - }, - "end": { - "line": 136, - "column": 7 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 6313, - "end": 6624, - "loc": { - "start": { - "line": 137, - "column": 4 - }, - "end": { - "line": 145, - "column": 5 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6313, - "end": 6319, - "loc": { - "start": { - "line": 137, - "column": 4 - }, - "end": { - "line": 137, - "column": 10 - }, - "identifierName": "remove" - }, - "name": "remove", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 6320, - "end": 6329, - "loc": { - "start": { - "line": 137, - "column": 11 - }, - "end": { - "line": 137, - "column": 20 }, - "identifierName": "pInstance" - }, - "name": "pInstance" - } - ], - "body": { - "type": "BlockStatement", - "start": 6331, - "end": 6624, - "loc": { - "start": { - "line": 137, - "column": 22 + "alternate": null }, - "end": { - "line": 145, - "column": 5 - } - }, - "body": [ { "type": "IfStatement", - "start": 6342, - "end": 6617, + "start": 7171, + "end": 7318, "loc": { "start": { - "line": 138, + "line": 167, "column": 8 }, "end": { - "line": 144, + "line": 170, "column": 9 } }, "test": { - "type": "Identifier", - "start": 6346, - "end": 6355, + "type": "CallExpression", + "start": 7175, + "end": 7204, "loc": { "start": { - "line": 138, + "line": 167, "column": 12 }, "end": { - "line": 138, - "column": 21 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "consequent": { - "type": "BlockStatement", - "start": 6357, - "end": 6517, - "loc": { - "start": { - "line": 138, - "column": 23 - }, - "end": { - "line": 142, - "column": 9 + "line": 167, + "column": 41 } }, - "body": [ - { - "type": "IfStatement", - "start": 6372, - "end": 6506, + "callee": { + "type": "MemberExpression", + "start": 7175, + "end": 7193, + "loc": { + "start": { + "line": 167, + "column": 12 + }, + "end": { + "line": 167, + "column": 30 + } + }, + "object": { + "type": "MemberExpression", + "start": 7175, + "end": 7189, "loc": { "start": { - "line": 139, + "line": 167, "column": 12 }, "end": { - "line": 141, - "column": 13 + "line": 167, + "column": 26 } }, - "test": { - "type": "CallExpression", - "start": 6376, - "end": 6410, + "object": { + "type": "ThisExpression", + "start": 7175, + "end": 7179, "loc": { "start": { - "line": 139, - "column": 16 + "line": 167, + "column": 12 }, "end": { - "line": 139, - "column": 50 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6376, - "end": 6399, - "loc": { - "start": { - "line": 139, - "column": 16 - }, - "end": { - "line": 139, - "column": 39 - } - }, - "object": { - "type": "MemberExpression", - "start": 6376, - "end": 6390, - "loc": { - "start": { - "line": 139, - "column": 16 - }, - "end": { - "line": 139, - "column": 30 - } - }, - "object": { - "type": "ThisExpression", - "start": 6376, - "end": 6380, - "loc": { - "start": { - "line": 139, - "column": 16 - }, - "end": { - "line": 139, - "column": 20 - } - } - }, - "property": { - "type": "Identifier", - "start": 6381, - "end": 6390, - "loc": { - "start": { - "line": 139, - "column": 21 - }, - "end": { - "line": 139, - "column": 30 - }, - "identifierName": "instances" - }, - "name": "instances" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 6391, - "end": 6399, - "loc": { - "start": { - "line": 139, - "column": 31 - }, - "end": { - "line": 139, - "column": 39 - }, - "identifierName": "includes" - }, - "name": "includes" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 6400, - "end": 6409, - "loc": { - "start": { - "line": 139, - "column": 40 - }, - "end": { - "line": 139, - "column": 49 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" + "line": 167, + "column": 16 } - ] + } }, - "consequent": { - "type": "BlockStatement", - "start": 6412, - "end": 6506, + "property": { + "type": "Identifier", + "start": 7180, + "end": 7189, "loc": { "start": { - "line": 139, - "column": 52 + "line": 167, + "column": 17 }, "end": { - "line": 141, - "column": 13 - } + "line": 167, + "column": 26 + }, + "identifierName": "instances" }, - "body": [ - { - "type": "ExpressionStatement", - "start": 6431, - "end": 6491, - "loc": { - "start": { - "line": 140, - "column": 16 - }, - "end": { - "line": 140, - "column": 76 - } - }, - "expression": { - "type": "CallExpression", - "start": 6431, - "end": 6490, - "loc": { - "start": { - "line": 140, - "column": 16 - }, - "end": { - "line": 140, - "column": 75 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6431, - "end": 6452, - "loc": { - "start": { - "line": 140, - "column": 16 - }, - "end": { - "line": 140, - "column": 37 - } - }, - "object": { - "type": "MemberExpression", - "start": 6431, - "end": 6445, - "loc": { - "start": { - "line": 140, - "column": 16 - }, - "end": { - "line": 140, - "column": 30 - } - }, - "object": { - "type": "ThisExpression", - "start": 6431, - "end": 6435, - "loc": { - "start": { - "line": 140, - "column": 16 - }, - "end": { - "line": 140, - "column": 20 - } - } - }, - "property": { - "type": "Identifier", - "start": 6436, - "end": 6445, - "loc": { - "start": { - "line": 140, - "column": 21 - }, - "end": { - "line": 140, - "column": 30 - }, - "identifierName": "instances" - }, - "name": "instances" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 6446, - "end": 6452, - "loc": { - "start": { - "line": 140, - "column": 31 - }, - "end": { - "line": 140, - "column": 37 - }, - "identifierName": "splice" - }, - "name": "splice" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 6453, - "end": 6486, - "loc": { - "start": { - "line": 140, - "column": 38 - }, - "end": { - "line": 140, - "column": 71 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6453, - "end": 6475, - "loc": { - "start": { - "line": 140, - "column": 38 - }, - "end": { - "line": 140, - "column": 60 - } - }, - "object": { - "type": "MemberExpression", - "start": 6453, - "end": 6467, - "loc": { - "start": { - "line": 140, - "column": 38 - }, - "end": { - "line": 140, - "column": 52 - } - }, - "object": { - "type": "ThisExpression", - "start": 6453, - "end": 6457, - "loc": { - "start": { - "line": 140, - "column": 38 - }, - "end": { - "line": 140, - "column": 42 - } - } - }, - "property": { - "type": "Identifier", - "start": 6458, - "end": 6467, - "loc": { - "start": { - "line": 140, - "column": 43 - }, - "end": { - "line": 140, - "column": 52 - }, - "identifierName": "instances" - }, - "name": "instances" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 6468, - "end": 6475, - "loc": { - "start": { - "line": 140, - "column": 53 - }, - "end": { - "line": 140, - "column": 60 - }, - "identifierName": "indexOf" - }, - "name": "indexOf" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 6476, - "end": 6485, - "loc": { - "start": { - "line": 140, - "column": 61 - }, - "end": { - "line": 140, - "column": 70 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - } - ] - }, - { - "type": "NumericLiteral", - "start": 6488, - "end": 6489, - "loc": { - "start": { - "line": 140, - "column": 73 - }, - "end": { - "line": 140, - "column": 74 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - ] - } - } - ], - "directives": [] + "name": "instances" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 7190, + "end": 7193, + "loc": { + "start": { + "line": 167, + "column": 27 + }, + "end": { + "line": 167, + "column": 30 + }, + "identifierName": "has" }, - "alternate": null + "name": "has" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 7194, + "end": 7203, + "loc": { + "start": { + "line": 167, + "column": 31 + }, + "end": { + "line": 167, + "column": 40 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" } - ], - "directives": [] + ] }, - "alternate": { + "consequent": { "type": "BlockStatement", - "start": 6523, - "end": 6617, + "start": 7206, + "end": 7318, "loc": { "start": { - "line": 142, - "column": 15 + "line": 167, + "column": 43 }, "end": { - "line": 144, + "line": 170, "column": 9 } }, "body": [ { "type": "ExpressionStatement", - "start": 6538, - "end": 6606, + "start": 7221, + "end": 7254, "loc": { "start": { - "line": 143, + "line": 168, "column": 12 }, "end": { - "line": 143, - "column": 80 + "line": 168, + "column": 45 } }, "expression": { "type": "CallExpression", - "start": 6538, - "end": 6605, + "start": 7221, + "end": 7253, "loc": { "start": { - "line": 143, + "line": 168, "column": 12 }, "end": { - "line": 143, - "column": 79 + "line": 168, + "column": 44 } }, "callee": { "type": "MemberExpression", - "start": 6538, - "end": 6581, + "start": 7221, + "end": 7242, "loc": { "start": { - "line": 143, + "line": 168, "column": 12 }, "end": { - "line": 143, - "column": 55 + "line": 168, + "column": 33 } }, "object": { - "type": "CallExpression", - "start": 6538, - "end": 6575, + "type": "MemberExpression", + "start": 7221, + "end": 7235, "loc": { "start": { - "line": 143, + "line": 168, "column": 12 }, "end": { - "line": 143, - "column": 49 + "line": 168, + "column": 26 } }, - "callee": { - "type": "MemberExpression", - "start": 6538, - "end": 6556, + "object": { + "type": "ThisExpression", + "start": 7221, + "end": 7225, "loc": { "start": { - "line": 143, + "line": 168, "column": 12 }, "end": { - "line": 143, - "column": 30 + "line": 168, + "column": 16 } - }, - "object": { - "type": "MemberExpression", - "start": 6538, - "end": 6549, - "loc": { - "start": { - "line": 143, - "column": 12 - }, - "end": { - "line": 143, - "column": 23 - } - }, - "object": { - "type": "ThisExpression", - "start": 6538, - "end": 6542, - "loc": { - "start": { - "line": 143, - "column": 12 - }, - "end": { - "line": 143, - "column": 16 - } - } + } + }, + "property": { + "type": "Identifier", + "start": 7226, + "end": 7235, + "loc": { + "start": { + "line": 168, + "column": 17 }, - "property": { - "type": "Identifier", - "start": 6543, - "end": 6549, - "loc": { - "start": { - "line": 143, - "column": 17 - }, - "end": { - "line": 143, - "column": 23 - }, - "identifierName": "logger" - }, - "name": "logger" + "end": { + "line": 168, + "column": 26 }, - "computed": false + "identifierName": "instances" }, - "property": { - "type": "Identifier", - "start": 6550, - "end": 6556, - "loc": { - "start": { - "line": 143, - "column": 24 - }, - "end": { - "line": 143, - "column": 30 - }, - "identifierName": "prefix" - }, - "name": "prefix" + "name": "instances" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 7236, + "end": 7242, + "loc": { + "start": { + "line": 168, + "column": 27 }, - "computed": false + "end": { + "line": 168, + "column": 33 + }, + "identifierName": "delete" }, - "arguments": [ - { - "type": "StringLiteral", - "start": 6557, - "end": 6574, - "loc": { - "start": { - "line": 143, - "column": 31 - }, - "end": { - "line": 143, - "column": 48 - } - }, - "extra": { - "rawValue": "Parallax-Module", - "raw": "'Parallax-Module'" + "name": "delete" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 7243, + "end": 7252, + "loc": { + "start": { + "line": 168, + "column": 34 + }, + "end": { + "line": 168, + "column": 43 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 7268, + "end": 7307, + "loc": { + "start": { + "line": 169, + "column": 12 + }, + "end": { + "line": 169, + "column": 51 + } + }, + "expression": { + "type": "CallExpression", + "start": 7268, + "end": 7306, + "loc": { + "start": { + "line": 169, + "column": 12 + }, + "end": { + "line": 169, + "column": 50 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7268, + "end": 7295, + "loc": { + "start": { + "line": 169, + "column": 12 + }, + "end": { + "line": 169, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 7268, + "end": 7288, + "loc": { + "start": { + "line": 169, + "column": 12 + }, + "end": { + "line": 169, + "column": 32 + } + }, + "object": { + "type": "ThisExpression", + "start": 7268, + "end": 7272, + "loc": { + "start": { + "line": 169, + "column": 12 }, - "value": "Parallax-Module" + "end": { + "line": 169, + "column": 16 + } } - ] + }, + "property": { + "type": "Identifier", + "start": 7273, + "end": 7288, + "loc": { + "start": { + "line": 169, + "column": 17 + }, + "end": { + "line": 169, + "column": 32 + }, + "identifierName": "instanceWeakMap" + }, + "name": "instanceWeakMap" + }, + "computed": false }, "property": { "type": "Identifier", - "start": 6576, - "end": 6581, + "start": 7289, + "end": 7295, "loc": { "start": { - "line": 143, - "column": 50 + "line": 169, + "column": 33 }, "end": { - "line": 143, - "column": 55 + "line": 169, + "column": 39 }, - "identifierName": "error" + "identifierName": "delete" }, - "name": "error" + "name": "delete" }, "computed": false }, "arguments": [ { - "type": "StringLiteral", - "start": 6582, - "end": 6604, + "type": "Identifier", + "start": 7296, + "end": 7305, "loc": { "start": { - "line": 143, - "column": 56 + "line": 169, + "column": 40 }, "end": { - "line": 143, - "column": 78 - } - }, - "extra": { - "rawValue": "No pInstance passed!", - "raw": "'No pInstance passed!'" + "line": 169, + "column": 49 + }, + "identifierName": "pInstance" }, - "value": "No pInstance passed!" + "name": "pInstance" } ] } } ], "directives": [] - } + }, + "alternate": null } ], "directives": [], @@ -20957,15 +22770,15 @@ { "type": "CommentBlock", "value": "*\r\n * Removes an instance to the parallax system.\r\n * @param {Object} pInstance - The instance to remove to the parallax system.\r\n ", - "start": 6160, - "end": 6307, + "start": 6846, + "end": 6993, "loc": { "start": { - "line": 133, + "line": 157, "column": 4 }, "end": { - "line": 136, + "line": 160, "column": 7 } } @@ -20974,16 +22787,16 @@ "trailingComments": [ { "type": "CommentBlock", - "value": "*\r\n * Updates the parallax system.\r\n * @param {number} pCameraX - The x position of the camera.\r\n * @param {number} pCameraY - The y position of the camera.\r\n * @param {number} pSimulatedPosition - The simulated position. This is used to simulate a position larger than possible, but internally it treats it as its downscaled position.\r\n * One such reason for using this paramater would be to simulate a map larger than you actually have, to convince the parallax that it is infinite.\r\n ", - "start": 6630, - "end": 7145, + "value": "*\r\n * Updates the parallax system.\r\n * @param {number} pCameraX - The x position of the camera.\r\n * @param {number} pCameraY - The y position of the camera.\r\n ", + "start": 7331, + "end": 7510, "loc": { "start": { - "line": 146, + "line": 172, "column": 4 }, "end": { - "line": 152, + "line": 176, "column": 7 } } @@ -20992,15 +22805,15 @@ }, { "type": "ClassMethod", - "start": 7151, - "end": 9325, + "start": 7516, + "end": 9592, "loc": { "start": { - "line": 153, + "line": 177, "column": 4 }, "end": { - "line": 206, + "line": 230, "column": 5 } }, @@ -21008,15 +22821,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 7151, - "end": 7157, + "start": 7516, + "end": 7522, "loc": { "start": { - "line": 153, + "line": 177, "column": 4 }, "end": { - "line": 153, + "line": 177, "column": 10 }, "identifierName": "update" @@ -21032,29 +22845,29 @@ "params": [ { "type": "AssignmentPattern", - "start": 7158, - "end": 7170, + "start": 7523, + "end": 7535, "loc": { "start": { - "line": 153, + "line": 177, "column": 11 }, "end": { - "line": 153, + "line": 177, "column": 23 } }, "left": { "type": "Identifier", - "start": 7158, - "end": 7166, + "start": 7523, + "end": 7531, "loc": { "start": { - "line": 153, + "line": 177, "column": 11 }, "end": { - "line": 153, + "line": 177, "column": 19 }, "identifierName": "pCameraX" @@ -21063,15 +22876,15 @@ }, "right": { "type": "NumericLiteral", - "start": 7169, - "end": 7170, + "start": 7534, + "end": 7535, "loc": { "start": { - "line": 153, + "line": 177, "column": 22 }, "end": { - "line": 153, + "line": 177, "column": 23 } }, @@ -21084,29 +22897,29 @@ }, { "type": "AssignmentPattern", - "start": 7172, - "end": 7184, + "start": 7537, + "end": 7549, "loc": { "start": { - "line": 153, + "line": 177, "column": 25 }, "end": { - "line": 153, + "line": 177, "column": 37 } }, "left": { "type": "Identifier", - "start": 7172, - "end": 7180, + "start": 7537, + "end": 7545, "loc": { "start": { - "line": 153, + "line": 177, "column": 25 }, "end": { - "line": 153, + "line": 177, "column": 33 }, "identifierName": "pCameraY" @@ -21115,15 +22928,15 @@ }, "right": { "type": "NumericLiteral", - "start": 7183, - "end": 7184, + "start": 7548, + "end": 7549, "loc": { "start": { - "line": 153, + "line": 177, "column": 36 }, "end": { - "line": 153, + "line": 177, "column": 37 } }, @@ -21133,80 +22946,63 @@ }, "value": 0 } - }, - { - "type": "Identifier", - "start": 7186, - "end": 7204, - "loc": { - "start": { - "line": 153, - "column": 39 - }, - "end": { - "line": 153, - "column": 57 - }, - "identifierName": "pSimulatedPosition" - }, - "name": "pSimulatedPosition" } ], "body": { "type": "BlockStatement", - "start": 7206, - "end": 9325, + "start": 7551, + "end": 9592, "loc": { "start": { - "line": 153, - "column": 59 + "line": 177, + "column": 39 }, "end": { - "line": 206, + "line": 230, "column": 5 } }, "body": [ { "type": "VariableDeclaration", - "start": 7301, - "end": 7324, + "start": 7599, + "end": 7622, "loc": { "start": { - "line": 155, + "line": 179, "column": 8 }, "end": { - "line": 155, + "line": 179, "column": 31 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 7305, - "end": 7323, + "start": 7603, + "end": 7621, "loc": { "start": { - "line": 155, + "line": 179, "column": 12 }, "end": { - "line": 155, + "line": 179, "column": 30 } }, "id": { "type": "Identifier", - "start": 7305, - "end": 7312, + "start": 7603, + "end": 7610, "loc": { "start": { - "line": 155, + "line": 179, "column": 12 }, "end": { - "line": 155, + "line": 179, "column": 19 }, "identifierName": "cameraX" @@ -21216,15 +23012,15 @@ }, "init": { "type": "Identifier", - "start": 7315, - "end": 7323, + "start": 7613, + "end": 7621, "loc": { "start": { - "line": 155, + "line": 179, "column": 22 }, "end": { - "line": 155, + "line": 179, "column": 30 }, "identifierName": "pCameraX" @@ -21238,17 +23034,17 @@ "leadingComments": [ { "type": "CommentLine", - "value": " The camera's x position. May be adjusted if pSimulatedPosition is used.", - "start": 7217, - "end": 7291, + "value": " The camera's x position.", + "start": 7562, + "end": 7589, "loc": { "start": { - "line": 154, + "line": 178, "column": 8 }, "end": { - "line": 154, - "column": 82 + "line": 178, + "column": 35 } } } @@ -21256,17 +23052,17 @@ "trailingComments": [ { "type": "CommentLine", - "value": " The camera's x position. May be adjusted if pSimulatedPosition is used.", - "start": 7334, - "end": 7408, + "value": " The camera's x position.", + "start": 7632, + "end": 7659, "loc": { "start": { - "line": 156, + "line": 180, "column": 8 }, "end": { - "line": 156, - "column": 82 + "line": 180, + "column": 35 } } } @@ -21274,44 +23070,44 @@ }, { "type": "VariableDeclaration", - "start": 7418, - "end": 7441, + "start": 7669, + "end": 7692, "loc": { "start": { - "line": 157, + "line": 181, "column": 8 }, "end": { - "line": 157, + "line": 181, "column": 31 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 7422, - "end": 7440, + "start": 7673, + "end": 7691, "loc": { "start": { - "line": 157, + "line": 181, "column": 12 }, "end": { - "line": 157, + "line": 181, "column": 30 } }, "id": { "type": "Identifier", - "start": 7422, - "end": 7429, + "start": 7673, + "end": 7680, "loc": { "start": { - "line": 157, + "line": 181, "column": 12 }, "end": { - "line": 157, + "line": 181, "column": 19 }, "identifierName": "cameraY" @@ -21321,15 +23117,15 @@ }, "init": { "type": "Identifier", - "start": 7432, - "end": 7440, + "start": 7683, + "end": 7691, "loc": { "start": { - "line": 157, + "line": 181, "column": 22 }, "end": { - "line": 157, + "line": 181, "column": 30 }, "identifierName": "pCameraY" @@ -21343,3888 +23139,4740 @@ "leadingComments": [ { "type": "CommentLine", - "value": " The camera's x position. May be adjusted if pSimulatedPosition is used.", - "start": 7334, - "end": 7408, + "value": " The camera's x position.", + "start": 7632, + "end": 7659, "loc": { "start": { - "line": 156, + "line": 180, "column": 8 }, "end": { - "line": 156, - "column": 82 + "line": 180, + "column": 35 } } } ] }, { - "type": "ForOfStatement", - "start": 7451, - "end": 9242, + "type": "ExpressionStatement", + "start": 7702, + "end": 9509, "loc": { "start": { - "line": 158, + "line": 182, "column": 8 }, "end": { - "line": 203, - "column": 9 + "line": 227, + "column": 11 } }, - "left": { - "type": "VariableDeclaration", - "start": 7456, - "end": 7470, + "expression": { + "type": "CallExpression", + "start": 7702, + "end": 9508, "loc": { "start": { - "line": 158, - "column": 13 + "line": 182, + "column": 8 }, "end": { - "line": 158, - "column": 27 + "line": 227, + "column": 10 } }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7462, - "end": 7470, + "callee": { + "type": "MemberExpression", + "start": 7702, + "end": 7724, + "loc": { + "start": { + "line": 182, + "column": 8 + }, + "end": { + "line": 182, + "column": 30 + } + }, + "object": { + "type": "MemberExpression", + "start": 7702, + "end": 7716, "loc": { "start": { - "line": 158, - "column": 19 + "line": 182, + "column": 8 }, "end": { - "line": 158, - "column": 27 + "line": 182, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 7702, + "end": 7706, + "loc": { + "start": { + "line": 182, + "column": 8 + }, + "end": { + "line": 182, + "column": 12 + } } }, - "id": { + "property": { "type": "Identifier", - "start": 7462, - "end": 7470, + "start": 7707, + "end": 7716, "loc": { "start": { - "line": 158, - "column": 19 + "line": 182, + "column": 13 + }, + "end": { + "line": 182, + "column": 22 + }, + "identifierName": "instances" + }, + "name": "instances" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 7717, + "end": 7724, + "loc": { + "start": { + "line": 182, + "column": 23 + }, + "end": { + "line": 182, + "column": 30 + }, + "identifierName": "forEach" + }, + "name": "forEach" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 7725, + "end": 9507, + "loc": { + "start": { + "line": 182, + "column": 31 + }, + "end": { + "line": 227, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 7726, + "end": 7735, + "loc": { + "start": { + "line": 182, + "column": 32 + }, + "end": { + "line": 182, + "column": 41 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + } + ], + "body": { + "type": "BlockStatement", + "start": 7740, + "end": 9507, + "loc": { + "start": { + "line": 182, + "column": 46 + }, + "end": { + "line": 227, + "column": 9 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 7755, + "end": 7812, + "loc": { + "start": { + "line": 183, + "column": 12 + }, + "end": { + "line": 183, + "column": 69 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 7761, + "end": 7811, + "loc": { + "start": { + "line": 183, + "column": 18 + }, + "end": { + "line": 183, + "column": 68 + } + }, + "id": { + "type": "Identifier", + "start": 7761, + "end": 7773, + "loc": { + "start": { + "line": 183, + "column": 18 + }, + "end": { + "line": 183, + "column": 30 + }, + "identifierName": "parallaxInfo" + }, + "name": "parallaxInfo" + }, + "init": { + "type": "CallExpression", + "start": 7776, + "end": 7811, + "loc": { + "start": { + "line": 183, + "column": 33 + }, + "end": { + "line": 183, + "column": 68 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7776, + "end": 7800, + "loc": { + "start": { + "line": 183, + "column": 33 + }, + "end": { + "line": 183, + "column": 57 + } + }, + "object": { + "type": "MemberExpression", + "start": 7776, + "end": 7796, + "loc": { + "start": { + "line": 183, + "column": 33 + }, + "end": { + "line": 183, + "column": 53 + } + }, + "object": { + "type": "ThisExpression", + "start": 7776, + "end": 7780, + "loc": { + "start": { + "line": 183, + "column": 33 + }, + "end": { + "line": 183, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "start": 7781, + "end": 7796, + "loc": { + "start": { + "line": 183, + "column": 38 + }, + "end": { + "line": 183, + "column": 53 + }, + "identifierName": "instanceWeakMap" + }, + "name": "instanceWeakMap" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 7797, + "end": 7800, + "loc": { + "start": { + "line": 183, + "column": 54 + }, + "end": { + "line": 183, + "column": 57 + }, + "identifierName": "get" + }, + "name": "get" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 7801, + "end": 7810, + "loc": { + "start": { + "line": 183, + "column": 58 + }, + "end": { + "line": 183, + "column": 67 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + } + ] + } + } + ], + "kind": "const", + "trailingComments": [ + { + "type": "CommentLine", + "value": " Move the instance with the camera if the parallax is set to 0", + "start": 7828, + "end": 7892, + "loc": { + "start": { + "line": 185, + "column": 12 + }, + "end": { + "line": 185, + "column": 76 + } + } + } + ] }, - "end": { - "line": 158, - "column": 27 + { + "type": "VariableDeclaration", + "start": 7906, + "end": 7949, + "loc": { + "start": { + "line": 186, + "column": 12 + }, + "end": { + "line": 186, + "column": 55 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 7912, + "end": 7948, + "loc": { + "start": { + "line": 186, + "column": 18 + }, + "end": { + "line": 186, + "column": 54 + } + }, + "id": { + "type": "Identifier", + "start": 7912, + "end": 7925, + "loc": { + "start": { + "line": 186, + "column": 18 + }, + "end": { + "line": 186, + "column": 31 + }, + "identifierName": "isBackgroundX" + }, + "name": "isBackgroundX", + "leadingComments": null + }, + "init": { + "type": "BinaryExpression", + "start": 7928, + "end": 7948, + "loc": { + "start": { + "line": 186, + "column": 34 + }, + "end": { + "line": 186, + "column": 54 + } + }, + "left": { + "type": "MemberExpression", + "start": 7928, + "end": 7942, + "loc": { + "start": { + "line": 186, + "column": 34 + }, + "end": { + "line": 186, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 7928, + "end": 7940, + "loc": { + "start": { + "line": 186, + "column": 34 + }, + "end": { + "line": 186, + "column": 46 + }, + "identifierName": "parallaxInfo" + }, + "name": "parallaxInfo" + }, + "property": { + "type": "Identifier", + "start": 7941, + "end": 7942, + "loc": { + "start": { + "line": 186, + "column": 47 + }, + "end": { + "line": 186, + "column": 48 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + }, + "operator": "===", + "right": { + "type": "NumericLiteral", + "start": 7947, + "end": 7948, + "loc": { + "start": { + "line": 186, + "column": 53 + }, + "end": { + "line": 186, + "column": 54 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + }, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "CommentLine", + "value": " Move the instance with the camera if the parallax is set to 0", + "start": 7828, + "end": 7892, + "loc": { + "start": { + "line": 185, + "column": 12 + }, + "end": { + "line": 185, + "column": 76 + } + } + } + ] }, - "identifierName": "instance" - }, - "name": "instance" - }, - "init": null - } - ], - "kind": "const" - }, - "right": { - "type": "MemberExpression", - "start": 7474, - "end": 7488, - "loc": { - "start": { - "line": 158, - "column": 31 - }, - "end": { - "line": 158, - "column": 45 - } - }, - "object": { - "type": "ThisExpression", - "start": 7474, - "end": 7478, - "loc": { - "start": { - "line": 158, - "column": 31 - }, - "end": { - "line": 158, - "column": 35 - } - } - }, - "property": { - "type": "Identifier", - "start": 7479, - "end": 7488, - "loc": { - "start": { - "line": 158, - "column": 36 - }, - "end": { - "line": 158, - "column": 45 - }, - "identifierName": "instances" - }, - "name": "instances" - }, - "computed": false - }, - "body": { - "type": "BlockStatement", - "start": 7490, - "end": 9242, - "loc": { - "start": { - "line": 158, - "column": 47 - }, - "end": { - "line": 203, - "column": 9 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 7505, - "end": 7561, - "loc": { - "start": { - "line": 159, - "column": 12 - }, - "end": { - "line": 159, - "column": 68 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7511, - "end": 7560, - "loc": { - "start": { - "line": 159, - "column": 18 + { + "type": "VariableDeclaration", + "start": 7963, + "end": 8006, + "loc": { + "start": { + "line": 187, + "column": 12 + }, + "end": { + "line": 187, + "column": 55 + } }, - "end": { - "line": 159, - "column": 67 - } + "declarations": [ + { + "type": "VariableDeclarator", + "start": 7969, + "end": 8005, + "loc": { + "start": { + "line": 187, + "column": 18 + }, + "end": { + "line": 187, + "column": 54 + } + }, + "id": { + "type": "Identifier", + "start": 7969, + "end": 7982, + "loc": { + "start": { + "line": 187, + "column": 18 + }, + "end": { + "line": 187, + "column": 31 + }, + "identifierName": "isBackgroundY" + }, + "name": "isBackgroundY" + }, + "init": { + "type": "BinaryExpression", + "start": 7985, + "end": 8005, + "loc": { + "start": { + "line": 187, + "column": 34 + }, + "end": { + "line": 187, + "column": 54 + } + }, + "left": { + "type": "MemberExpression", + "start": 7985, + "end": 7999, + "loc": { + "start": { + "line": 187, + "column": 34 + }, + "end": { + "line": 187, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 7985, + "end": 7997, + "loc": { + "start": { + "line": 187, + "column": 34 + }, + "end": { + "line": 187, + "column": 46 + }, + "identifierName": "parallaxInfo" + }, + "name": "parallaxInfo" + }, + "property": { + "type": "Identifier", + "start": 7998, + "end": 7999, + "loc": { + "start": { + "line": 187, + "column": 47 + }, + "end": { + "line": 187, + "column": 48 + }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + }, + "operator": "===", + "right": { + "type": "NumericLiteral", + "start": 8004, + "end": 8005, + "loc": { + "start": { + "line": 187, + "column": 53 + }, + "end": { + "line": 187, + "column": 54 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + } + } + ], + "kind": "const", + "trailingComments": [ + { + "type": "CommentLine", + "value": " Position to set the instance to.", + "start": 8022, + "end": 8057, + "loc": { + "start": { + "line": 189, + "column": 12 + }, + "end": { + "line": 189, + "column": 47 + } + } + } + ] }, - "id": { - "type": "Identifier", - "start": 7511, - "end": 7523, + { + "type": "VariableDeclaration", + "start": 8071, + "end": 8077, "loc": { "start": { - "line": 159, - "column": 18 + "line": 190, + "column": 12 }, "end": { - "line": 159, - "column": 30 + "line": 190, + "column": 18 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 8075, + "end": 8076, + "loc": { + "start": { + "line": 190, + "column": 16 + }, + "end": { + "line": 190, + "column": 17 + } + }, + "id": { + "type": "Identifier", + "start": 8075, + "end": 8076, + "loc": { + "start": { + "line": 190, + "column": 16 + }, + "end": { + "line": 190, + "column": 17 + }, + "identifierName": "x" + }, + "name": "x", + "leadingComments": null + }, + "init": null, + "leadingComments": null + } + ], + "kind": "let", + "leadingComments": [ + { + "type": "CommentLine", + "value": " Position to set the instance to.", + "start": 8022, + "end": 8057, + "loc": { + "start": { + "line": 189, + "column": 12 + }, + "end": { + "line": 189, + "column": 47 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 8091, + "end": 8097, + "loc": { + "start": { + "line": 191, + "column": 12 }, - "identifierName": "parallaxInfo" + "end": { + "line": 191, + "column": 18 + } }, - "name": "parallaxInfo" + "declarations": [ + { + "type": "VariableDeclarator", + "start": 8095, + "end": 8096, + "loc": { + "start": { + "line": 191, + "column": 16 + }, + "end": { + "line": 191, + "column": 17 + } + }, + "id": { + "type": "Identifier", + "start": 8095, + "end": 8096, + "loc": { + "start": { + "line": 191, + "column": 16 + }, + "end": { + "line": 191, + "column": 17 + }, + "identifierName": "y" + }, + "name": "y" + }, + "init": null + } + ], + "kind": "let" }, - "init": { - "type": "CallExpression", - "start": 7526, - "end": 7560, + { + "type": "IfStatement", + "start": 8113, + "end": 8382, "loc": { "start": { - "line": 159, - "column": 33 + "line": 193, + "column": 12 }, "end": { - "line": 159, - "column": 67 + "line": 199, + "column": 13 } }, - "callee": { - "type": "MemberExpression", - "start": 7526, - "end": 7550, + "test": { + "type": "Identifier", + "start": 8117, + "end": 8130, + "loc": { + "start": { + "line": 193, + "column": 16 + }, + "end": { + "line": 193, + "column": 29 + }, + "identifierName": "isBackgroundX" + }, + "name": "isBackgroundX" + }, + "consequent": { + "type": "BlockStatement", + "start": 8132, + "end": 8205, + "loc": { + "start": { + "line": 193, + "column": 31 + }, + "end": { + "line": 195, + "column": 13 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 8151, + "end": 8190, + "loc": { + "start": { + "line": 194, + "column": 16 + }, + "end": { + "line": 194, + "column": 55 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 8151, + "end": 8189, + "loc": { + "start": { + "line": 194, + "column": 16 + }, + "end": { + "line": 194, + "column": 54 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 8151, + "end": 8152, + "loc": { + "start": { + "line": 194, + "column": 16 + }, + "end": { + "line": 194, + "column": 17 + }, + "identifierName": "x" + }, + "name": "x" + }, + "right": { + "type": "BinaryExpression", + "start": 8155, + "end": 8189, + "loc": { + "start": { + "line": 194, + "column": 20 + }, + "end": { + "line": 194, + "column": 54 + } + }, + "left": { + "type": "Identifier", + "start": 8155, + "end": 8162, + "loc": { + "start": { + "line": 194, + "column": 20 + }, + "end": { + "line": 194, + "column": 27 + }, + "identifierName": "cameraX" + }, + "name": "cameraX" + }, + "operator": "-", + "right": { + "type": "BinaryExpression", + "start": 8165, + "end": 8189, + "loc": { + "start": { + "line": 194, + "column": 30 + }, + "end": { + "line": 194, + "column": 54 + } + }, + "left": { + "type": "MemberExpression", + "start": 8165, + "end": 8185, + "loc": { + "start": { + "line": 194, + "column": 30 + }, + "end": { + "line": 194, + "column": 50 + } + }, + "object": { + "type": "MemberExpression", + "start": 8165, + "end": 8179, + "loc": { + "start": { + "line": 194, + "column": 30 + }, + "end": { + "line": 194, + "column": 44 + } + }, + "object": { + "type": "Identifier", + "start": 8165, + "end": 8174, + "loc": { + "start": { + "line": 194, + "column": 30 + }, + "end": { + "line": 194, + "column": 39 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 8175, + "end": 8179, + "loc": { + "start": { + "line": 194, + "column": 40 + }, + "end": { + "line": 194, + "column": 44 + }, + "identifierName": "icon" + }, + "name": "icon" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 8180, + "end": 8185, + "loc": { + "start": { + "line": 194, + "column": 45 + }, + "end": { + "line": 194, + "column": 50 + }, + "identifierName": "width" + }, + "name": "width" + }, + "computed": false + }, + "operator": "/", + "right": { + "type": "NumericLiteral", + "start": 8188, + "end": 8189, + "loc": { + "start": { + "line": 194, + "column": 53 + }, + "end": { + "line": 194, + "column": 54 + } + }, + "extra": { + "rawValue": 2, + "raw": "2" + }, + "value": 2 + } + } + } + } + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 8211, + "end": 8382, "loc": { "start": { - "line": 159, - "column": 33 + "line": 195, + "column": 19 }, "end": { - "line": 159, - "column": 57 + "line": 199, + "column": 13 } }, - "object": { - "type": "MemberExpression", - "start": 7526, - "end": 7546, - "loc": { - "start": { - "line": 159, - "column": 33 - }, - "end": { - "line": 159, - "column": 53 - } - }, - "object": { - "type": "ThisExpression", - "start": 7526, - "end": 7530, + "body": [ + { + "type": "VariableDeclaration", + "start": 8230, + "end": 8271, "loc": { "start": { - "line": 159, - "column": 33 + "line": 196, + "column": 16 }, "end": { - "line": 159, - "column": 37 + "line": 196, + "column": 57 } - } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 8234, + "end": 8270, + "loc": { + "start": { + "line": 196, + "column": 20 + }, + "end": { + "line": 196, + "column": 56 + } + }, + "id": { + "type": "Identifier", + "start": 8234, + "end": 8240, + "loc": { + "start": { + "line": 196, + "column": 20 + }, + "end": { + "line": 196, + "column": 26 + }, + "identifierName": "deltaX" + }, + "name": "deltaX" + }, + "init": { + "type": "BinaryExpression", + "start": 8243, + "end": 8270, + "loc": { + "start": { + "line": 196, + "column": 29 + }, + "end": { + "line": 196, + "column": 56 + } + }, + "left": { + "type": "Identifier", + "start": 8243, + "end": 8250, + "loc": { + "start": { + "line": 196, + "column": 29 + }, + "end": { + "line": 196, + "column": 36 + }, + "identifierName": "cameraX" + }, + "name": "cameraX" + }, + "operator": "-", + "right": { + "type": "MemberExpression", + "start": 8253, + "end": 8270, + "loc": { + "start": { + "line": 196, + "column": 39 + }, + "end": { + "line": 196, + "column": 56 + } + }, + "object": { + "type": "MemberExpression", + "start": 8253, + "end": 8268, + "loc": { + "start": { + "line": 196, + "column": 39 + }, + "end": { + "line": 196, + "column": 54 + } + }, + "object": { + "type": "ThisExpression", + "start": 8253, + "end": 8257, + "loc": { + "start": { + "line": 196, + "column": 39 + }, + "end": { + "line": 196, + "column": 43 + } + } + }, + "property": { + "type": "Identifier", + "start": 8258, + "end": 8268, + "loc": { + "start": { + "line": 196, + "column": 44 + }, + "end": { + "line": 196, + "column": 54 + }, + "identifierName": "lastCamPos" + }, + "name": "lastCamPos" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 8269, + "end": 8270, + "loc": { + "start": { + "line": 196, + "column": 55 + }, + "end": { + "line": 196, + "column": 56 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + } + } + } + ], + "kind": "let" }, - "property": { - "type": "Identifier", - "start": 7531, - "end": 7546, + { + "type": "VariableDeclaration", + "start": 8289, + "end": 8325, "loc": { "start": { - "line": 159, - "column": 38 + "line": 197, + "column": 16 }, "end": { - "line": 159, - "column": 53 - }, - "identifierName": "instanceWeakMap" - }, - "name": "instanceWeakMap" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 7547, - "end": 7550, - "loc": { - "start": { - "line": 159, - "column": 54 - }, - "end": { - "line": 159, - "column": 57 - }, - "identifierName": "get" - }, - "name": "get" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 7551, - "end": 7559, - "loc": { - "start": { - "line": 159, - "column": 58 - }, - "end": { - "line": 159, - "column": 66 - }, - "identifierName": "instance" - }, - "name": "instance" - } - ] - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " Move the instance with the camera if the parallax is set to 0", - "start": 7577, - "end": 7641, - "loc": { - "start": { - "line": 161, - "column": 12 - }, - "end": { - "line": 161, - "column": 76 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 7655, - "end": 7698, - "loc": { - "start": { - "line": 162, - "column": 12 - }, - "end": { - "line": 162, - "column": 55 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7661, - "end": 7697, - "loc": { - "start": { - "line": 162, - "column": 18 - }, - "end": { - "line": 162, - "column": 54 - } - }, - "id": { - "type": "Identifier", - "start": 7661, - "end": 7674, - "loc": { - "start": { - "line": 162, - "column": 18 - }, - "end": { - "line": 162, - "column": 31 - }, - "identifierName": "isBackgroundX" - }, - "name": "isBackgroundX", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 7677, - "end": 7697, - "loc": { - "start": { - "line": 162, - "column": 34 - }, - "end": { - "line": 162, - "column": 54 - } - }, - "left": { - "type": "MemberExpression", - "start": 7677, - "end": 7691, - "loc": { - "start": { - "line": 162, - "column": 34 - }, - "end": { - "line": 162, - "column": 48 - } - }, - "object": { - "type": "Identifier", - "start": 7677, - "end": 7689, - "loc": { - "start": { - "line": 162, - "column": 34 - }, - "end": { - "line": 162, - "column": 46 + "line": 197, + "column": 52 + } }, - "identifierName": "parallaxInfo" + "declarations": [ + { + "type": "VariableDeclarator", + "start": 8293, + "end": 8324, + "loc": { + "start": { + "line": 197, + "column": 20 + }, + "end": { + "line": 197, + "column": 51 + } + }, + "id": { + "type": "Identifier", + "start": 8293, + "end": 8298, + "loc": { + "start": { + "line": 197, + "column": 20 + }, + "end": { + "line": 197, + "column": 25 + }, + "identifierName": "distX" + }, + "name": "distX" + }, + "init": { + "type": "BinaryExpression", + "start": 8301, + "end": 8324, + "loc": { + "start": { + "line": 197, + "column": 28 + }, + "end": { + "line": 197, + "column": 51 + } + }, + "left": { + "type": "Identifier", + "start": 8301, + "end": 8307, + "loc": { + "start": { + "line": 197, + "column": 28 + }, + "end": { + "line": 197, + "column": 34 + }, + "identifierName": "deltaX" + }, + "name": "deltaX" + }, + "operator": "*", + "right": { + "type": "MemberExpression", + "start": 8310, + "end": 8324, + "loc": { + "start": { + "line": 197, + "column": 37 + }, + "end": { + "line": 197, + "column": 51 + } + }, + "object": { + "type": "Identifier", + "start": 8310, + "end": 8322, + "loc": { + "start": { + "line": 197, + "column": 37 + }, + "end": { + "line": 197, + "column": 49 + }, + "identifierName": "parallaxInfo" + }, + "name": "parallaxInfo" + }, + "property": { + "type": "Identifier", + "start": 8323, + "end": 8324, + "loc": { + "start": { + "line": 197, + "column": 50 + }, + "end": { + "line": 197, + "column": 51 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + } + } + } + ], + "kind": "let" }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 7690, - "end": 7691, - "loc": { - "start": { - "line": 162, - "column": 47 - }, - "end": { - "line": 162, - "column": 48 + { + "type": "ExpressionStatement", + "start": 8343, + "end": 8367, + "loc": { + "start": { + "line": 198, + "column": 16 + }, + "end": { + "line": 198, + "column": 40 + } }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 7696, - "end": 7697, - "loc": { - "start": { - "line": 162, - "column": 53 - }, - "end": { - "line": 162, - "column": 54 + "expression": { + "type": "AssignmentExpression", + "start": 8343, + "end": 8366, + "loc": { + "start": { + "line": 198, + "column": 16 + }, + "end": { + "line": 198, + "column": 39 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 8343, + "end": 8344, + "loc": { + "start": { + "line": 198, + "column": 16 + }, + "end": { + "line": 198, + "column": 17 + }, + "identifierName": "x" + }, + "name": "x" + }, + "right": { + "type": "BinaryExpression", + "start": 8347, + "end": 8366, + "loc": { + "start": { + "line": 198, + "column": 20 + }, + "end": { + "line": 198, + "column": 39 + } + }, + "left": { + "type": "MemberExpression", + "start": 8347, + "end": 8358, + "loc": { + "start": { + "line": 198, + "column": 20 + }, + "end": { + "line": 198, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 8347, + "end": 8356, + "loc": { + "start": { + "line": 198, + "column": 20 + }, + "end": { + "line": 198, + "column": 29 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 8357, + "end": 8358, + "loc": { + "start": { + "line": 198, + "column": 30 + }, + "end": { + "line": 198, + "column": 31 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + }, + "operator": "+", + "right": { + "type": "Identifier", + "start": 8361, + "end": 8366, + "loc": { + "start": { + "line": 198, + "column": 34 + }, + "end": { + "line": 198, + "column": 39 + }, + "identifierName": "distX" + }, + "name": "distX" + } + } + } } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " Move the instance with the camera if the parallax is set to 0", - "start": 7577, - "end": 7641, - "loc": { - "start": { - "line": 161, - "column": 12 - }, - "end": { - "line": 161, - "column": 76 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 7712, - "end": 7755, - "loc": { - "start": { - "line": 163, - "column": 12 - }, - "end": { - "line": 163, - "column": 55 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7718, - "end": 7754, - "loc": { - "start": { - "line": 163, - "column": 18 - }, - "end": { - "line": 163, - "column": 54 + ], + "directives": [] } }, - "id": { - "type": "Identifier", - "start": 7718, - "end": 7731, - "loc": { - "start": { - "line": 163, - "column": 18 - }, - "end": { - "line": 163, - "column": 31 - }, - "identifierName": "isBackgroundY" - }, - "name": "isBackgroundY" - }, - "init": { - "type": "BinaryExpression", - "start": 7734, - "end": 7754, + { + "type": "IfStatement", + "start": 8398, + "end": 8668, "loc": { "start": { - "line": 163, - "column": 34 + "line": 201, + "column": 12 }, "end": { - "line": 163, - "column": 54 + "line": 207, + "column": 13 } }, - "left": { - "type": "MemberExpression", - "start": 7734, - "end": 7748, + "test": { + "type": "Identifier", + "start": 8402, + "end": 8415, "loc": { "start": { - "line": 163, - "column": 34 + "line": 201, + "column": 16 }, "end": { - "line": 163, - "column": 48 - } - }, - "object": { - "type": "Identifier", - "start": 7734, - "end": 7746, - "loc": { - "start": { - "line": 163, - "column": 34 - }, - "end": { - "line": 163, - "column": 46 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 7747, - "end": 7748, - "loc": { - "start": { - "line": 163, - "column": 47 - }, - "end": { - "line": 163, - "column": 48 - }, - "identifierName": "y" + "line": 201, + "column": 29 }, - "name": "y" + "identifierName": "isBackgroundY" }, - "computed": false + "name": "isBackgroundY" }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 7753, - "end": 7754, + "consequent": { + "type": "BlockStatement", + "start": 8417, + "end": 8491, "loc": { "start": { - "line": 163, - "column": 53 + "line": 201, + "column": 31 }, "end": { - "line": 163, - "column": 54 + "line": 203, + "column": 13 } }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " Position to set the instance to.", - "start": 7771, - "end": 7806, - "loc": { - "start": { - "line": 165, - "column": 12 - }, - "end": { - "line": 165, - "column": 47 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 7820, - "end": 7826, - "loc": { - "start": { - "line": 166, - "column": 12 - }, - "end": { - "line": 166, - "column": 18 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7824, - "end": 7825, - "loc": { - "start": { - "line": 166, - "column": 16 - }, - "end": { - "line": 166, - "column": 17 - } - }, - "id": { - "type": "Identifier", - "start": 7824, - "end": 7825, - "loc": { - "start": { - "line": 166, - "column": 16 - }, - "end": { - "line": 166, - "column": 17 - }, - "identifierName": "x" - }, - "name": "x", - "leadingComments": null - }, - "init": null, - "leadingComments": null - } - ], - "kind": "let", - "leadingComments": [ - { - "type": "CommentLine", - "value": " Position to set the instance to.", - "start": 7771, - "end": 7806, - "loc": { - "start": { - "line": 165, - "column": 12 - }, - "end": { - "line": 165, - "column": 47 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 7840, - "end": 7846, - "loc": { - "start": { - "line": 167, - "column": 12 - }, - "end": { - "line": 167, - "column": 18 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7844, - "end": 7845, - "loc": { - "start": { - "line": 167, - "column": 16 - }, - "end": { - "line": 167, - "column": 17 - } - }, - "id": { - "type": "Identifier", - "start": 7844, - "end": 7845, - "loc": { - "start": { - "line": 167, - "column": 16 - }, - "end": { - "line": 167, - "column": 17 - }, - "identifierName": "y" - }, - "name": "y" - }, - "init": null - } - ], - "kind": "let" - }, - { - "type": "IfStatement", - "start": 7862, - "end": 8129, - "loc": { - "start": { - "line": 169, - "column": 12 - }, - "end": { - "line": 175, - "column": 13 - } - }, - "test": { - "type": "Identifier", - "start": 7866, - "end": 7879, - "loc": { - "start": { - "line": 169, - "column": 16 - }, - "end": { - "line": 169, - "column": 29 - }, - "identifierName": "isBackgroundX" - }, - "name": "isBackgroundX" - }, - "consequent": { - "type": "BlockStatement", - "start": 7881, - "end": 7953, - "loc": { - "start": { - "line": 169, - "column": 31 - }, - "end": { - "line": 171, - "column": 13 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7900, - "end": 7938, - "loc": { - "start": { - "line": 170, - "column": 16 - }, - "end": { - "line": 170, - "column": 54 - } + "body": [ + { + "type": "ExpressionStatement", + "start": 8436, + "end": 8476, + "loc": { + "start": { + "line": 202, + "column": 16 + }, + "end": { + "line": 202, + "column": 56 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 8436, + "end": 8475, + "loc": { + "start": { + "line": 202, + "column": 16 + }, + "end": { + "line": 202, + "column": 55 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 8436, + "end": 8437, + "loc": { + "start": { + "line": 202, + "column": 16 + }, + "end": { + "line": 202, + "column": 17 + }, + "identifierName": "y" + }, + "name": "y" + }, + "right": { + "type": "BinaryExpression", + "start": 8440, + "end": 8475, + "loc": { + "start": { + "line": 202, + "column": 20 + }, + "end": { + "line": 202, + "column": 55 + } + }, + "left": { + "type": "Identifier", + "start": 8440, + "end": 8447, + "loc": { + "start": { + "line": 202, + "column": 20 + }, + "end": { + "line": 202, + "column": 27 + }, + "identifierName": "cameraY" + }, + "name": "cameraY" + }, + "operator": "-", + "right": { + "type": "BinaryExpression", + "start": 8450, + "end": 8475, + "loc": { + "start": { + "line": 202, + "column": 30 + }, + "end": { + "line": 202, + "column": 55 + } + }, + "left": { + "type": "MemberExpression", + "start": 8450, + "end": 8471, + "loc": { + "start": { + "line": 202, + "column": 30 + }, + "end": { + "line": 202, + "column": 51 + } + }, + "object": { + "type": "MemberExpression", + "start": 8450, + "end": 8464, + "loc": { + "start": { + "line": 202, + "column": 30 + }, + "end": { + "line": 202, + "column": 44 + } + }, + "object": { + "type": "Identifier", + "start": 8450, + "end": 8459, + "loc": { + "start": { + "line": 202, + "column": 30 + }, + "end": { + "line": 202, + "column": 39 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 8460, + "end": 8464, + "loc": { + "start": { + "line": 202, + "column": 40 + }, + "end": { + "line": 202, + "column": 44 + }, + "identifierName": "icon" + }, + "name": "icon" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 8465, + "end": 8471, + "loc": { + "start": { + "line": 202, + "column": 45 + }, + "end": { + "line": 202, + "column": 51 + }, + "identifierName": "height" + }, + "name": "height" + }, + "computed": false + }, + "operator": "/", + "right": { + "type": "NumericLiteral", + "start": 8474, + "end": 8475, + "loc": { + "start": { + "line": 202, + "column": 54 + }, + "end": { + "line": 202, + "column": 55 + } + }, + "extra": { + "rawValue": 2, + "raw": "2" + }, + "value": 2 + } + } + } + } + } + ], + "directives": [] }, - "expression": { - "type": "AssignmentExpression", - "start": 7900, - "end": 7937, + "alternate": { + "type": "BlockStatement", + "start": 8497, + "end": 8668, "loc": { "start": { - "line": 170, - "column": 16 + "line": 203, + "column": 19 }, "end": { - "line": 170, - "column": 53 + "line": 207, + "column": 13 } }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 7900, - "end": 7901, - "loc": { - "start": { - "line": 170, - "column": 16 - }, - "end": { - "line": 170, - "column": 17 - }, - "identifierName": "x" - }, - "name": "x" - }, - "right": { - "type": "BinaryExpression", - "start": 7904, - "end": 7937, - "loc": { - "start": { - "line": 170, - "column": 20 - }, - "end": { - "line": 170, - "column": 53 - } - }, - "left": { - "type": "Identifier", - "start": 7904, - "end": 7911, + "body": [ + { + "type": "VariableDeclaration", + "start": 8516, + "end": 8557, "loc": { "start": { - "line": 170, - "column": 20 + "line": 204, + "column": 16 }, "end": { - "line": 170, - "column": 27 - }, - "identifierName": "cameraX" + "line": 204, + "column": 57 + } }, - "name": "cameraX" + "declarations": [ + { + "type": "VariableDeclarator", + "start": 8520, + "end": 8556, + "loc": { + "start": { + "line": 204, + "column": 20 + }, + "end": { + "line": 204, + "column": 56 + } + }, + "id": { + "type": "Identifier", + "start": 8520, + "end": 8526, + "loc": { + "start": { + "line": 204, + "column": 20 + }, + "end": { + "line": 204, + "column": 26 + }, + "identifierName": "deltaY" + }, + "name": "deltaY" + }, + "init": { + "type": "BinaryExpression", + "start": 8529, + "end": 8556, + "loc": { + "start": { + "line": 204, + "column": 29 + }, + "end": { + "line": 204, + "column": 56 + } + }, + "left": { + "type": "Identifier", + "start": 8529, + "end": 8536, + "loc": { + "start": { + "line": 204, + "column": 29 + }, + "end": { + "line": 204, + "column": 36 + }, + "identifierName": "cameraY" + }, + "name": "cameraY" + }, + "operator": "-", + "right": { + "type": "MemberExpression", + "start": 8539, + "end": 8556, + "loc": { + "start": { + "line": 204, + "column": 39 + }, + "end": { + "line": 204, + "column": 56 + } + }, + "object": { + "type": "MemberExpression", + "start": 8539, + "end": 8554, + "loc": { + "start": { + "line": 204, + "column": 39 + }, + "end": { + "line": 204, + "column": 54 + } + }, + "object": { + "type": "ThisExpression", + "start": 8539, + "end": 8543, + "loc": { + "start": { + "line": 204, + "column": 39 + }, + "end": { + "line": 204, + "column": 43 + } + } + }, + "property": { + "type": "Identifier", + "start": 8544, + "end": 8554, + "loc": { + "start": { + "line": 204, + "column": 44 + }, + "end": { + "line": 204, + "column": 54 + }, + "identifierName": "lastCamPos" + }, + "name": "lastCamPos" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 8555, + "end": 8556, + "loc": { + "start": { + "line": 204, + "column": 55 + }, + "end": { + "line": 204, + "column": 56 + }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + } + } + } + ], + "kind": "let" }, - "operator": "-", - "right": { - "type": "BinaryExpression", - "start": 7914, - "end": 7937, + { + "type": "VariableDeclaration", + "start": 8575, + "end": 8611, "loc": { "start": { - "line": 170, - "column": 30 + "line": 205, + "column": 16 }, "end": { - "line": 170, - "column": 53 + "line": 205, + "column": 52 } }, - "left": { - "type": "MemberExpression", - "start": 7914, - "end": 7933, - "loc": { - "start": { - "line": 170, - "column": 30 - }, - "end": { - "line": 170, - "column": 49 - } - }, - "object": { - "type": "MemberExpression", - "start": 7914, - "end": 7927, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 8579, + "end": 8610, "loc": { "start": { - "line": 170, - "column": 30 + "line": 205, + "column": 20 }, "end": { - "line": 170, - "column": 43 + "line": 205, + "column": 51 } }, - "object": { + "id": { "type": "Identifier", - "start": 7914, - "end": 7922, + "start": 8579, + "end": 8584, "loc": { "start": { - "line": 170, - "column": 30 + "line": 205, + "column": 20 }, "end": { - "line": 170, - "column": 38 + "line": 205, + "column": 25 }, - "identifierName": "instance" + "identifierName": "distY" }, - "name": "instance" + "name": "distY" }, - "property": { - "type": "Identifier", - "start": 7923, - "end": 7927, + "init": { + "type": "BinaryExpression", + "start": 8587, + "end": 8610, "loc": { "start": { - "line": 170, - "column": 39 + "line": 205, + "column": 28 }, "end": { - "line": 170, - "column": 43 - }, - "identifierName": "icon" - }, - "name": "icon" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 7928, - "end": 7933, - "loc": { - "start": { - "line": 170, - "column": 44 + "line": 205, + "column": 51 + } }, - "end": { - "line": 170, - "column": 49 + "left": { + "type": "Identifier", + "start": 8587, + "end": 8593, + "loc": { + "start": { + "line": 205, + "column": 28 + }, + "end": { + "line": 205, + "column": 34 + }, + "identifierName": "deltaY" + }, + "name": "deltaY" }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 7936, - "end": 7937, - "loc": { - "start": { - "line": 170, - "column": 52 - }, - "end": { - "line": 170, - "column": 53 + "operator": "*", + "right": { + "type": "MemberExpression", + "start": 8596, + "end": 8610, + "loc": { + "start": { + "line": 205, + "column": 37 + }, + "end": { + "line": 205, + "column": 51 + } + }, + "object": { + "type": "Identifier", + "start": 8596, + "end": 8608, + "loc": { + "start": { + "line": 205, + "column": 37 + }, + "end": { + "line": 205, + "column": 49 + }, + "identifierName": "parallaxInfo" + }, + "name": "parallaxInfo" + }, + "property": { + "type": "Identifier", + "start": 8609, + "end": 8610, + "loc": { + "start": { + "line": 205, + "column": 50 + }, + "end": { + "line": 205, + "column": 51 + }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + } } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - } - } - } - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 7959, - "end": 8129, - "loc": { - "start": { - "line": 171, - "column": 19 - }, - "end": { - "line": 175, - "column": 13 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 7978, - "end": 8019, - "loc": { - "start": { - "line": 172, - "column": 16 - }, - "end": { - "line": 172, - "column": 57 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7982, - "end": 8018, - "loc": { - "start": { - "line": 172, - "column": 20 - }, - "end": { - "line": 172, - "column": 56 - } - }, - "id": { - "type": "Identifier", - "start": 7982, - "end": 7988, - "loc": { - "start": { - "line": 172, - "column": 20 - }, - "end": { - "line": 172, - "column": 26 - }, - "identifierName": "deltaX" - }, - "name": "deltaX" + } + ], + "kind": "let" }, - "init": { - "type": "BinaryExpression", - "start": 7991, - "end": 8018, + { + "type": "ExpressionStatement", + "start": 8629, + "end": 8653, "loc": { "start": { - "line": 172, - "column": 29 + "line": 206, + "column": 16 }, "end": { - "line": 172, - "column": 56 + "line": 206, + "column": 40 } }, - "left": { - "type": "Identifier", - "start": 7991, - "end": 7998, + "expression": { + "type": "AssignmentExpression", + "start": 8629, + "end": 8652, "loc": { "start": { - "line": 172, - "column": 29 + "line": 206, + "column": 16 }, "end": { - "line": 172, - "column": 36 - }, - "identifierName": "cameraX" - }, - "name": "cameraX" - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 8001, - "end": 8018, - "loc": { - "start": { - "line": 172, + "line": 206, "column": 39 - }, - "end": { - "line": 172, - "column": 56 } }, - "object": { - "type": "MemberExpression", - "start": 8001, - "end": 8016, + "operator": "=", + "left": { + "type": "Identifier", + "start": 8629, + "end": 8630, "loc": { "start": { - "line": 172, - "column": 39 + "line": 206, + "column": 16 }, "end": { - "line": 172, - "column": 54 + "line": 206, + "column": 17 + }, + "identifierName": "y" + }, + "name": "y" + }, + "right": { + "type": "BinaryExpression", + "start": 8633, + "end": 8652, + "loc": { + "start": { + "line": 206, + "column": 20 + }, + "end": { + "line": 206, + "column": 39 } }, - "object": { - "type": "ThisExpression", - "start": 8001, - "end": 8005, + "left": { + "type": "MemberExpression", + "start": 8633, + "end": 8644, "loc": { "start": { - "line": 172, - "column": 39 + "line": 206, + "column": 20 }, "end": { - "line": 172, - "column": 43 + "line": 206, + "column": 31 } - } + }, + "object": { + "type": "Identifier", + "start": 8633, + "end": 8642, + "loc": { + "start": { + "line": 206, + "column": 20 + }, + "end": { + "line": 206, + "column": 29 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 8643, + "end": 8644, + "loc": { + "start": { + "line": 206, + "column": 30 + }, + "end": { + "line": 206, + "column": 31 + }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false }, - "property": { + "operator": "+", + "right": { "type": "Identifier", - "start": 8006, - "end": 8016, + "start": 8647, + "end": 8652, "loc": { "start": { - "line": 172, - "column": 44 + "line": 206, + "column": 34 }, "end": { - "line": 172, - "column": 54 + "line": 206, + "column": 39 }, - "identifierName": "lastCamPos" - }, - "name": "lastCamPos" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 8017, - "end": 8018, - "loc": { - "start": { - "line": 172, - "column": 55 - }, - "end": { - "line": 172, - "column": 56 + "identifierName": "distY" }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false + "name": "distY" + } + } + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": [ + { + "type": "CommentLine", + "value": " Set the position", + "start": 8684, + "end": 8703, + "loc": { + "start": { + "line": 209, + "column": 12 + }, + "end": { + "line": 209, + "column": 31 } } } - ], - "kind": "let" + ] }, { - "type": "VariableDeclaration", - "start": 8037, - "end": 8073, + "type": "ExpressionStatement", + "start": 8717, + "end": 8733, "loc": { "start": { - "line": 173, - "column": 16 + "line": 210, + "column": 12 }, "end": { - "line": 173, - "column": 52 + "line": 210, + "column": 28 } }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8041, - "end": 8072, + "expression": { + "type": "AssignmentExpression", + "start": 8717, + "end": 8732, + "loc": { + "start": { + "line": 210, + "column": 12 + }, + "end": { + "line": 210, + "column": 27 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 8717, + "end": 8728, "loc": { "start": { - "line": 173, - "column": 20 + "line": 210, + "column": 12 }, "end": { - "line": 173, - "column": 51 + "line": 210, + "column": 23 } }, - "id": { + "object": { "type": "Identifier", - "start": 8041, - "end": 8046, + "start": 8717, + "end": 8726, "loc": { "start": { - "line": 173, - "column": 20 + "line": 210, + "column": 12 }, "end": { - "line": 173, - "column": 25 + "line": 210, + "column": 21 }, - "identifierName": "distX" + "identifierName": "pInstance" }, - "name": "distX" + "name": "pInstance", + "leadingComments": null }, - "init": { - "type": "BinaryExpression", - "start": 8049, - "end": 8072, + "property": { + "type": "Identifier", + "start": 8727, + "end": 8728, "loc": { "start": { - "line": 173, - "column": 28 + "line": 210, + "column": 22 }, "end": { - "line": 173, - "column": 51 - } - }, - "left": { - "type": "Identifier", - "start": 8049, - "end": 8055, - "loc": { - "start": { - "line": 173, - "column": 28 - }, - "end": { - "line": 173, - "column": 34 - }, - "identifierName": "deltaX" + "line": 210, + "column": 23 }, - "name": "deltaX" + "identifierName": "x" }, - "operator": "*", - "right": { - "type": "MemberExpression", - "start": 8058, - "end": 8072, - "loc": { - "start": { - "line": 173, - "column": 37 - }, - "end": { - "line": 173, - "column": 51 - } - }, - "object": { - "type": "Identifier", - "start": 8058, - "end": 8070, - "loc": { - "start": { - "line": 173, - "column": 37 - }, - "end": { - "line": 173, - "column": 49 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 8071, - "end": 8072, - "loc": { - "start": { - "line": 173, - "column": 50 - }, - "end": { - "line": 173, - "column": 51 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false + "name": "x" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "Identifier", + "start": 8731, + "end": 8732, + "loc": { + "start": { + "line": 210, + "column": 26 + }, + "end": { + "line": 210, + "column": 27 + }, + "identifierName": "x" + }, + "name": "x" + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Set the position", + "start": 8684, + "end": 8703, + "loc": { + "start": { + "line": 209, + "column": 12 + }, + "end": { + "line": 209, + "column": 31 } } } - ], - "kind": "let" + ] }, { "type": "ExpressionStatement", - "start": 8091, - "end": 8114, + "start": 8747, + "end": 8763, "loc": { "start": { - "line": 174, - "column": 16 + "line": 211, + "column": 12 }, "end": { - "line": 174, - "column": 39 + "line": 211, + "column": 28 } }, "expression": { "type": "AssignmentExpression", - "start": 8091, - "end": 8113, + "start": 8747, + "end": 8762, "loc": { "start": { - "line": 174, - "column": 16 + "line": 211, + "column": 12 }, "end": { - "line": 174, - "column": 38 + "line": 211, + "column": 27 } }, "operator": "=", "left": { - "type": "Identifier", - "start": 8091, - "end": 8092, - "loc": { - "start": { - "line": 174, - "column": 16 - }, - "end": { - "line": 174, - "column": 17 - }, - "identifierName": "x" - }, - "name": "x" - }, - "right": { - "type": "BinaryExpression", - "start": 8095, - "end": 8113, + "type": "MemberExpression", + "start": 8747, + "end": 8758, "loc": { "start": { - "line": 174, - "column": 20 + "line": 211, + "column": 12 }, "end": { - "line": 174, - "column": 38 - } - }, - "left": { - "type": "MemberExpression", - "start": 8095, - "end": 8105, - "loc": { - "start": { - "line": 174, - "column": 20 - }, - "end": { - "line": 174, - "column": 30 - } - }, - "object": { - "type": "Identifier", - "start": 8095, - "end": 8103, - "loc": { - "start": { - "line": 174, - "column": 20 - }, - "end": { - "line": 174, - "column": 28 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 8104, - "end": 8105, - "loc": { - "start": { - "line": 174, - "column": 29 - }, - "end": { - "line": 174, - "column": 30 - }, - "identifierName": "x" + "line": 211, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 8747, + "end": 8756, + "loc": { + "start": { + "line": 211, + "column": 12 }, - "name": "x" + "end": { + "line": 211, + "column": 21 + }, + "identifierName": "pInstance" }, - "computed": false + "name": "pInstance" }, - "operator": "+", - "right": { + "property": { "type": "Identifier", - "start": 8108, - "end": 8113, + "start": 8757, + "end": 8758, "loc": { "start": { - "line": 174, - "column": 33 + "line": 211, + "column": 22 }, "end": { - "line": 174, - "column": 38 + "line": 211, + "column": 23 }, - "identifierName": "distX" + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 8761, + "end": 8762, + "loc": { + "start": { + "line": 211, + "column": 26 + }, + "end": { + "line": 211, + "column": 27 + }, + "identifierName": "y" + }, + "name": "y" + } + }, + "trailingComments": [ + { + "type": "CommentLine", + "value": " Logic cannot be ran on background instances as they should not loop", + "start": 8791, + "end": 8861, + "loc": { + "start": { + "line": 213, + "column": 12 }, - "name": "distX" + "end": { + "line": 213, + "column": 82 + } } } - } - } - ], - "directives": [] - } - }, - { - "type": "IfStatement", - "start": 8145, - "end": 8413, - "loc": { - "start": { - "line": 177, - "column": 12 - }, - "end": { - "line": 183, - "column": 13 - } - }, - "test": { - "type": "Identifier", - "start": 8149, - "end": 8162, - "loc": { - "start": { - "line": 177, - "column": 16 - }, - "end": { - "line": 177, - "column": 29 - }, - "identifierName": "isBackgroundY" - }, - "name": "isBackgroundY" - }, - "consequent": { - "type": "BlockStatement", - "start": 8164, - "end": 8237, - "loc": { - "start": { - "line": 177, - "column": 31 + ] }, - "end": { - "line": 179, - "column": 13 - } - }, - "body": [ { - "type": "ExpressionStatement", - "start": 8183, - "end": 8222, + "type": "IfStatement", + "start": 8875, + "end": 9496, "loc": { "start": { - "line": 178, - "column": 16 + "line": 214, + "column": 12 }, "end": { - "line": 178, - "column": 55 + "line": 226, + "column": 13 } }, - "expression": { - "type": "AssignmentExpression", - "start": 8183, - "end": 8221, + "test": { + "type": "LogicalExpression", + "start": 8879, + "end": 8911, "loc": { "start": { - "line": 178, + "line": 214, "column": 16 }, "end": { - "line": 178, - "column": 54 + "line": 214, + "column": 48 } }, - "operator": "=", "left": { - "type": "Identifier", - "start": 8183, - "end": 8184, + "type": "UnaryExpression", + "start": 8879, + "end": 8893, "loc": { "start": { - "line": 178, + "line": 214, "column": 16 }, "end": { - "line": 178, - "column": 17 + "line": 214, + "column": 30 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 8880, + "end": 8893, + "loc": { + "start": { + "line": 214, + "column": 17 + }, + "end": { + "line": 214, + "column": 30 + }, + "identifierName": "isBackgroundX" }, - "identifierName": "y" + "name": "isBackgroundX", + "leadingComments": null }, - "name": "y" + "extra": { + "parenthesizedArgument": false + }, + "leadingComments": null }, + "operator": "&&", "right": { - "type": "BinaryExpression", - "start": 8187, - "end": 8221, + "type": "UnaryExpression", + "start": 8897, + "end": 8911, "loc": { "start": { - "line": 178, - "column": 20 + "line": 214, + "column": 34 }, "end": { - "line": 178, - "column": 54 + "line": 214, + "column": 48 } }, - "left": { + "operator": "!", + "prefix": true, + "argument": { "type": "Identifier", - "start": 8187, - "end": 8194, + "start": 8898, + "end": 8911, "loc": { "start": { - "line": 178, - "column": 20 + "line": 214, + "column": 35 }, "end": { - "line": 178, - "column": 27 + "line": 214, + "column": 48 }, - "identifierName": "cameraY" + "identifierName": "isBackgroundY" }, - "name": "cameraY" + "name": "isBackgroundY" }, - "operator": "-", - "right": { - "type": "BinaryExpression", - "start": 8197, - "end": 8221, + "extra": { + "parenthesizedArgument": false + } + }, + "leadingComments": null + }, + "consequent": { + "type": "BlockStatement", + "start": 8913, + "end": 9496, + "loc": { + "start": { + "line": 214, + "column": 50 + }, + "end": { + "line": 226, + "column": 13 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 8932, + "end": 9481, "loc": { "start": { - "line": 178, - "column": 30 + "line": 215, + "column": 16 }, "end": { - "line": 178, - "column": 54 + "line": 225, + "column": 17 } }, - "left": { + "test": { "type": "MemberExpression", - "start": 8197, - "end": 8217, + "start": 8936, + "end": 8953, "loc": { "start": { - "line": 178, - "column": 30 + "line": 215, + "column": 20 }, "end": { - "line": 178, - "column": 50 + "line": 215, + "column": 37 } }, "object": { - "type": "MemberExpression", - "start": 8197, - "end": 8210, + "type": "Identifier", + "start": 8936, + "end": 8948, "loc": { "start": { - "line": 178, - "column": 30 + "line": 215, + "column": 20 }, "end": { - "line": 178, - "column": 43 - } - }, - "object": { - "type": "Identifier", - "start": 8197, - "end": 8205, - "loc": { - "start": { - "line": 178, - "column": 30 - }, - "end": { - "line": 178, - "column": 38 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 8206, - "end": 8210, - "loc": { - "start": { - "line": 178, - "column": 39 - }, - "end": { - "line": 178, - "column": 43 - }, - "identifierName": "icon" + "line": 215, + "column": 32 }, - "name": "icon" + "identifierName": "parallaxInfo" }, - "computed": false + "name": "parallaxInfo" }, "property": { "type": "Identifier", - "start": 8211, - "end": 8217, + "start": 8949, + "end": 8953, "loc": { "start": { - "line": 178, - "column": 44 + "line": 215, + "column": 33 }, "end": { - "line": 178, - "column": 50 + "line": 215, + "column": 37 }, - "identifierName": "height" + "identifierName": "loop" }, - "name": "height" + "name": "loop" }, "computed": false }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 8220, - "end": 8221, - "loc": { - "start": { - "line": 178, - "column": 53 - }, - "end": { - "line": 178, - "column": 54 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - } - } - } - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 8243, - "end": 8413, - "loc": { - "start": { - "line": 179, - "column": 19 - }, - "end": { - "line": 183, - "column": 13 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 8262, - "end": 8303, - "loc": { - "start": { - "line": 180, - "column": 16 - }, - "end": { - "line": 180, - "column": 57 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8266, - "end": 8302, - "loc": { - "start": { - "line": 180, - "column": 20 - }, - "end": { - "line": 180, - "column": 56 - } - }, - "id": { - "type": "Identifier", - "start": 8266, - "end": 8272, - "loc": { - "start": { - "line": 180, - "column": 20 - }, - "end": { - "line": 180, - "column": 26 - }, - "identifierName": "deltaY" - }, - "name": "deltaY" - }, - "init": { - "type": "BinaryExpression", - "start": 8275, - "end": 8302, - "loc": { - "start": { - "line": 180, - "column": 29 - }, - "end": { - "line": 180, - "column": 56 - } - }, - "left": { - "type": "Identifier", - "start": 8275, - "end": 8282, - "loc": { - "start": { - "line": 180, - "column": 29 - }, - "end": { - "line": 180, - "column": 36 - }, - "identifierName": "cameraY" - }, - "name": "cameraY" - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 8285, - "end": 8302, + "consequent": { + "type": "BlockStatement", + "start": 8955, + "end": 9481, "loc": { "start": { - "line": 180, + "line": 215, "column": 39 }, "end": { - "line": 180, - "column": 56 + "line": 225, + "column": 17 } }, - "object": { - "type": "MemberExpression", - "start": 8285, - "end": 8300, - "loc": { - "start": { - "line": 180, - "column": 39 + "body": [ + { + "type": "VariableDeclaration", + "start": 9030, + "end": 9082, + "loc": { + "start": { + "line": 217, + "column": 20 + }, + "end": { + "line": 217, + "column": 72 + } }, - "end": { - "line": 180, - "column": 54 - } + "declarations": [ + { + "type": "VariableDeclarator", + "start": 9036, + "end": 9081, + "loc": { + "start": { + "line": 217, + "column": 26 + }, + "end": { + "line": 217, + "column": 71 + } + }, + "id": { + "type": "Identifier", + "start": 9036, + "end": 9044, + "loc": { + "start": { + "line": 217, + "column": 26 + }, + "end": { + "line": 217, + "column": 34 + }, + "identifierName": "rightEnd" + }, + "name": "rightEnd", + "leadingComments": null + }, + "init": { + "type": "BinaryExpression", + "start": 9047, + "end": 9081, + "loc": { + "start": { + "line": 217, + "column": 37 + }, + "end": { + "line": 217, + "column": 71 + } + }, + "left": { + "type": "MemberExpression", + "start": 9047, + "end": 9058, + "loc": { + "start": { + "line": 217, + "column": 37 + }, + "end": { + "line": 217, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 9047, + "end": 9056, + "loc": { + "start": { + "line": 217, + "column": 37 + }, + "end": { + "line": 217, + "column": 46 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 9057, + "end": 9058, + "loc": { + "start": { + "line": 217, + "column": 47 + }, + "end": { + "line": 217, + "column": 48 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + }, + "operator": "+", + "right": { + "type": "MemberExpression", + "start": 9061, + "end": 9081, + "loc": { + "start": { + "line": 217, + "column": 51 + }, + "end": { + "line": 217, + "column": 71 + } + }, + "object": { + "type": "MemberExpression", + "start": 9061, + "end": 9075, + "loc": { + "start": { + "line": 217, + "column": 51 + }, + "end": { + "line": 217, + "column": 65 + } + }, + "object": { + "type": "Identifier", + "start": 9061, + "end": 9070, + "loc": { + "start": { + "line": 217, + "column": 51 + }, + "end": { + "line": 217, + "column": 60 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 9071, + "end": 9075, + "loc": { + "start": { + "line": 217, + "column": 61 + }, + "end": { + "line": 217, + "column": 65 + }, + "identifierName": "icon" + }, + "name": "icon" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 9076, + "end": 9081, + "loc": { + "start": { + "line": 217, + "column": 66 + }, + "end": { + "line": 217, + "column": 71 + }, + "identifierName": "width" + }, + "name": "width" + }, + "computed": false + } + }, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "CommentLine", + "value": " The start pos + total width", + "start": 8978, + "end": 9008, + "loc": { + "start": { + "line": 216, + "column": 20 + }, + "end": { + "line": 216, + "column": 50 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentLine", + "value": " The start pos - total width / 2", + "start": 9104, + "end": 9138, + "loc": { + "start": { + "line": 218, + "column": 20 + }, + "end": { + "line": 218, + "column": 54 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 9160, + "end": 9215, + "loc": { + "start": { + "line": 219, + "column": 20 + }, + "end": { + "line": 219, + "column": 75 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 9166, + "end": 9214, + "loc": { + "start": { + "line": 219, + "column": 26 + }, + "end": { + "line": 219, + "column": 74 + } + }, + "id": { + "type": "Identifier", + "start": 9166, + "end": 9173, + "loc": { + "start": { + "line": 219, + "column": 26 + }, + "end": { + "line": 219, + "column": 33 + }, + "identifierName": "leftEnd" + }, + "name": "leftEnd", + "leadingComments": null + }, + "init": { + "type": "BinaryExpression", + "start": 9176, + "end": 9214, + "loc": { + "start": { + "line": 219, + "column": 36 + }, + "end": { + "line": 219, + "column": 74 + } + }, + "left": { + "type": "MemberExpression", + "start": 9176, + "end": 9187, + "loc": { + "start": { + "line": 219, + "column": 36 + }, + "end": { + "line": 219, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 9176, + "end": 9185, + "loc": { + "start": { + "line": 219, + "column": 36 + }, + "end": { + "line": 219, + "column": 45 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 9186, + "end": 9187, + "loc": { + "start": { + "line": 219, + "column": 46 + }, + "end": { + "line": 219, + "column": 47 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + }, + "operator": "-", + "right": { + "type": "BinaryExpression", + "start": 9190, + "end": 9214, + "loc": { + "start": { + "line": 219, + "column": 50 + }, + "end": { + "line": 219, + "column": 74 + } + }, + "left": { + "type": "MemberExpression", + "start": 9190, + "end": 9210, + "loc": { + "start": { + "line": 219, + "column": 50 + }, + "end": { + "line": 219, + "column": 70 + } + }, + "object": { + "type": "MemberExpression", + "start": 9190, + "end": 9204, + "loc": { + "start": { + "line": 219, + "column": 50 + }, + "end": { + "line": 219, + "column": 64 + } + }, + "object": { + "type": "Identifier", + "start": 9190, + "end": 9199, + "loc": { + "start": { + "line": 219, + "column": 50 + }, + "end": { + "line": 219, + "column": 59 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 9200, + "end": 9204, + "loc": { + "start": { + "line": 219, + "column": 60 + }, + "end": { + "line": 219, + "column": 64 + }, + "identifierName": "icon" + }, + "name": "icon" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 9205, + "end": 9210, + "loc": { + "start": { + "line": 219, + "column": 65 + }, + "end": { + "line": 219, + "column": 70 + }, + "identifierName": "width" + }, + "name": "width" + }, + "computed": false + }, + "operator": "/", + "right": { + "type": "NumericLiteral", + "start": 9213, + "end": 9214, + "loc": { + "start": { + "line": 219, + "column": 73 + }, + "end": { + "line": 219, + "column": 74 + } + }, + "extra": { + "rawValue": 6, + "raw": "6" + }, + "value": 6 + } + } + }, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "CommentLine", + "value": " The start pos - total width / 2", + "start": 9104, + "end": 9138, + "loc": { + "start": { + "line": 218, + "column": 20 + }, + "end": { + "line": 218, + "column": 54 + } + } + } + ] }, - "object": { - "type": "ThisExpression", - "start": 8285, - "end": 8289, + { + "type": "IfStatement", + "start": 9237, + "end": 9462, "loc": { "start": { - "line": 180, - "column": 39 + "line": 220, + "column": 20 }, "end": { - "line": 180, - "column": 43 + "line": 224, + "column": 21 } - } - }, - "property": { - "type": "Identifier", - "start": 8290, - "end": 8300, - "loc": { - "start": { - "line": 180, - "column": 44 + }, + "test": { + "type": "BinaryExpression", + "start": 9241, + "end": 9259, + "loc": { + "start": { + "line": 220, + "column": 24 + }, + "end": { + "line": 220, + "column": 42 + } }, - "end": { - "line": 180, - "column": 54 + "left": { + "type": "Identifier", + "start": 9241, + "end": 9248, + "loc": { + "start": { + "line": 220, + "column": 24 + }, + "end": { + "line": 220, + "column": 31 + }, + "identifierName": "cameraX" + }, + "name": "cameraX" }, - "identifierName": "lastCamPos" - }, - "name": "lastCamPos" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 8301, - "end": 8302, - "loc": { - "start": { - "line": 180, - "column": 55 - }, - "end": { - "line": 180, - "column": 56 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 8321, - "end": 8357, - "loc": { - "start": { - "line": 181, - "column": 16 - }, - "end": { - "line": 181, - "column": 52 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8325, - "end": 8356, - "loc": { - "start": { - "line": 181, - "column": 20 - }, - "end": { - "line": 181, - "column": 51 - } - }, - "id": { - "type": "Identifier", - "start": 8325, - "end": 8330, - "loc": { - "start": { - "line": 181, - "column": 20 - }, - "end": { - "line": 181, - "column": 25 - }, - "identifierName": "distY" - }, - "name": "distY" - }, - "init": { - "type": "BinaryExpression", - "start": 8333, - "end": 8356, - "loc": { - "start": { - "line": 181, - "column": 28 - }, - "end": { - "line": 181, - "column": 51 - } - }, - "left": { - "type": "Identifier", - "start": 8333, - "end": 8339, - "loc": { - "start": { - "line": 181, - "column": 28 - }, - "end": { - "line": 181, - "column": 34 - }, - "identifierName": "deltaY" - }, - "name": "deltaY" - }, - "operator": "*", - "right": { - "type": "MemberExpression", - "start": 8342, - "end": 8356, - "loc": { - "start": { - "line": 181, - "column": 37 - }, - "end": { - "line": 181, - "column": 51 - } - }, - "object": { - "type": "Identifier", - "start": 8342, - "end": 8354, - "loc": { - "start": { - "line": 181, - "column": 37 - }, - "end": { - "line": 181, - "column": 49 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 8355, - "end": 8356, - "loc": { - "start": { - "line": 181, - "column": 50 + "operator": ">", + "right": { + "type": "Identifier", + "start": 9251, + "end": 9259, + "loc": { + "start": { + "line": 220, + "column": 34 + }, + "end": { + "line": 220, + "column": 42 + }, + "identifierName": "rightEnd" + }, + "name": "rightEnd" + } }, - "end": { - "line": 181, - "column": 51 + "consequent": { + "type": "BlockStatement", + "start": 9261, + "end": 9347, + "loc": { + "start": { + "line": 220, + "column": 44 + }, + "end": { + "line": 222, + "column": 21 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 9288, + "end": 9324, + "loc": { + "start": { + "line": 221, + "column": 24 + }, + "end": { + "line": 221, + "column": 60 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 9288, + "end": 9323, + "loc": { + "start": { + "line": 221, + "column": 24 + }, + "end": { + "line": 221, + "column": 59 + } + }, + "operator": "+=", + "left": { + "type": "MemberExpression", + "start": 9288, + "end": 9299, + "loc": { + "start": { + "line": 221, + "column": 24 + }, + "end": { + "line": 221, + "column": 35 + } + }, + "object": { + "type": "Identifier", + "start": 9288, + "end": 9297, + "loc": { + "start": { + "line": 221, + "column": 24 + }, + "end": { + "line": 221, + "column": 33 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 9298, + "end": 9299, + "loc": { + "start": { + "line": 221, + "column": 34 + }, + "end": { + "line": 221, + "column": 35 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + }, + "right": { + "type": "MemberExpression", + "start": 9303, + "end": 9323, + "loc": { + "start": { + "line": 221, + "column": 39 + }, + "end": { + "line": 221, + "column": 59 + } + }, + "object": { + "type": "MemberExpression", + "start": 9303, + "end": 9317, + "loc": { + "start": { + "line": 221, + "column": 39 + }, + "end": { + "line": 221, + "column": 53 + } + }, + "object": { + "type": "Identifier", + "start": 9303, + "end": 9312, + "loc": { + "start": { + "line": 221, + "column": 39 + }, + "end": { + "line": 221, + "column": 48 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 9313, + "end": 9317, + "loc": { + "start": { + "line": 221, + "column": 49 + }, + "end": { + "line": 221, + "column": 53 + }, + "identifierName": "icon" + }, + "name": "icon" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 9318, + "end": 9323, + "loc": { + "start": { + "line": 221, + "column": 54 + }, + "end": { + "line": 221, + "column": 59 + }, + "identifierName": "width" + }, + "name": "width" + }, + "computed": false + } + } + } + ], + "directives": [] }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - } - } - ], - "kind": "let" - }, - { - "type": "ExpressionStatement", - "start": 8375, - "end": 8398, - "loc": { - "start": { - "line": 182, - "column": 16 - }, - "end": { - "line": 182, - "column": 39 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 8375, - "end": 8397, - "loc": { - "start": { - "line": 182, - "column": 16 - }, - "end": { - "line": 182, - "column": 38 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 8375, - "end": 8376, - "loc": { - "start": { - "line": 182, - "column": 16 - }, - "end": { - "line": 182, - "column": 17 - }, - "identifierName": "y" - }, - "name": "y" - }, - "right": { - "type": "BinaryExpression", - "start": 8379, - "end": 8397, - "loc": { - "start": { - "line": 182, - "column": 20 - }, - "end": { - "line": 182, - "column": 38 - } - }, - "left": { - "type": "MemberExpression", - "start": 8379, - "end": 8389, - "loc": { - "start": { - "line": 182, - "column": 20 - }, - "end": { - "line": 182, - "column": 30 - } - }, - "object": { - "type": "Identifier", - "start": 8379, - "end": 8387, - "loc": { - "start": { - "line": 182, - "column": 20 - }, - "end": { - "line": 182, - "column": 28 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 8388, - "end": 8389, - "loc": { - "start": { - "line": 182, - "column": 29 - }, - "end": { - "line": 182, - "column": 30 - }, - "identifierName": "y" - }, - "name": "y" + "alternate": { + "type": "IfStatement", + "start": 9353, + "end": 9462, + "loc": { + "start": { + "line": 222, + "column": 27 + }, + "end": { + "line": 224, + "column": 21 + } + }, + "test": { + "type": "BinaryExpression", + "start": 9357, + "end": 9374, + "loc": { + "start": { + "line": 222, + "column": 31 + }, + "end": { + "line": 222, + "column": 48 + } + }, + "left": { + "type": "Identifier", + "start": 9357, + "end": 9364, + "loc": { + "start": { + "line": 222, + "column": 31 + }, + "end": { + "line": 222, + "column": 38 + }, + "identifierName": "cameraX" + }, + "name": "cameraX" + }, + "operator": "<", + "right": { + "type": "Identifier", + "start": 9367, + "end": 9374, + "loc": { + "start": { + "line": 222, + "column": 41 + }, + "end": { + "line": 222, + "column": 48 + }, + "identifierName": "leftEnd" + }, + "name": "leftEnd" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 9376, + "end": 9462, + "loc": { + "start": { + "line": 222, + "column": 50 + }, + "end": { + "line": 224, + "column": 21 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 9403, + "end": 9439, + "loc": { + "start": { + "line": 223, + "column": 24 + }, + "end": { + "line": 223, + "column": 60 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 9403, + "end": 9438, + "loc": { + "start": { + "line": 223, + "column": 24 + }, + "end": { + "line": 223, + "column": 59 + } + }, + "operator": "-=", + "left": { + "type": "MemberExpression", + "start": 9403, + "end": 9414, + "loc": { + "start": { + "line": 223, + "column": 24 + }, + "end": { + "line": 223, + "column": 35 + } + }, + "object": { + "type": "Identifier", + "start": 9403, + "end": 9412, + "loc": { + "start": { + "line": 223, + "column": 24 + }, + "end": { + "line": 223, + "column": 33 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 9413, + "end": 9414, + "loc": { + "start": { + "line": 223, + "column": 34 + }, + "end": { + "line": 223, + "column": 35 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + }, + "right": { + "type": "MemberExpression", + "start": 9418, + "end": 9438, + "loc": { + "start": { + "line": 223, + "column": 39 + }, + "end": { + "line": 223, + "column": 59 + } + }, + "object": { + "type": "MemberExpression", + "start": 9418, + "end": 9432, + "loc": { + "start": { + "line": 223, + "column": 39 + }, + "end": { + "line": 223, + "column": 53 + } + }, + "object": { + "type": "Identifier", + "start": 9418, + "end": 9427, + "loc": { + "start": { + "line": 223, + "column": 39 + }, + "end": { + "line": 223, + "column": 48 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 9428, + "end": 9432, + "loc": { + "start": { + "line": 223, + "column": 49 + }, + "end": { + "line": 223, + "column": 53 + }, + "identifierName": "icon" + }, + "name": "icon" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 9433, + "end": 9438, + "loc": { + "start": { + "line": 223, + "column": 54 + }, + "end": { + "line": 223, + "column": 59 + }, + "identifierName": "width" + }, + "name": "width" + }, + "computed": false + } + } + } + ], + "directives": [] + }, + "alternate": null + } + } + ], + "directives": [] }, - "computed": false - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 8392, - "end": 8397, - "loc": { - "start": { - "line": 182, - "column": 33 - }, - "end": { - "line": 182, - "column": 38 - }, - "identifierName": "distY" + "alternate": null + } + ], + "directives": [] + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Logic cannot be ran on background instances as they should not loop", + "start": 8791, + "end": 8861, + "loc": { + "start": { + "line": 213, + "column": 12 }, - "name": "distY" + "end": { + "line": 213, + "column": 82 + } } } - } + ] } ], - "directives": [], - "trailingComments": null + "directives": [] + } + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 9519, + "end": 9547, + "loc": { + "start": { + "line": 228, + "column": 8 + }, + "end": { + "line": 228, + "column": 36 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 9519, + "end": 9546, + "loc": { + "start": { + "line": 228, + "column": 8 + }, + "end": { + "line": 228, + "column": 35 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 9519, + "end": 9536, + "loc": { + "start": { + "line": 228, + "column": 8 }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " Set the position", - "start": 8429, - "end": 8448, - "loc": { - "start": { - "line": 185, - "column": 12 - }, - "end": { - "line": 185, - "column": 31 - } - } - } - ] + "end": { + "line": 228, + "column": 25 + } }, - { - "type": "ExpressionStatement", - "start": 8462, - "end": 8477, + "object": { + "type": "MemberExpression", + "start": 9519, + "end": 9534, "loc": { "start": { - "line": 186, - "column": 12 + "line": 228, + "column": 8 }, "end": { - "line": 186, - "column": 27 + "line": 228, + "column": 23 } }, - "expression": { - "type": "AssignmentExpression", - "start": 8462, - "end": 8476, + "object": { + "type": "ThisExpression", + "start": 9519, + "end": 9523, "loc": { "start": { - "line": 186, - "column": 12 + "line": 228, + "column": 8 }, "end": { - "line": 186, - "column": 26 + "line": 228, + "column": 12 } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 8462, - "end": 8472, - "loc": { - "start": { - "line": 186, - "column": 12 - }, - "end": { - "line": 186, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 8462, - "end": 8470, - "loc": { - "start": { - "line": 186, - "column": 12 - }, - "end": { - "line": 186, - "column": 20 - }, - "identifierName": "instance" - }, - "name": "instance", - "leadingComments": null + } + }, + "property": { + "type": "Identifier", + "start": 9524, + "end": 9534, + "loc": { + "start": { + "line": 228, + "column": 13 }, - "property": { - "type": "Identifier", - "start": 8471, - "end": 8472, - "loc": { - "start": { - "line": 186, - "column": 21 - }, - "end": { - "line": 186, - "column": 22 - }, - "identifierName": "x" - }, - "name": "x" + "end": { + "line": 228, + "column": 23 }, - "computed": false, - "leadingComments": null + "identifierName": "lastCamPos" }, - "right": { - "type": "Identifier", - "start": 8475, - "end": 8476, - "loc": { - "start": { - "line": 186, - "column": 25 - }, - "end": { - "line": 186, - "column": 26 - }, - "identifierName": "x" - }, - "name": "x" + "name": "lastCamPos" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 9535, + "end": 9536, + "loc": { + "start": { + "line": 228, + "column": 24 }, - "leadingComments": null + "end": { + "line": 228, + "column": 25 + }, + "identifierName": "x" }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Set the position", - "start": 8429, - "end": 8448, - "loc": { - "start": { - "line": 185, - "column": 12 - }, - "end": { - "line": 185, - "column": 31 - } - } - } - ] + "name": "x" }, - { - "type": "ExpressionStatement", - "start": 8491, - "end": 8506, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 9539, + "end": 9546, + "loc": { + "start": { + "line": 228, + "column": 28 + }, + "end": { + "line": 228, + "column": 35 + }, + "identifierName": "cameraX" + }, + "name": "cameraX" + } + } + }, + { + "type": "ExpressionStatement", + "start": 9557, + "end": 9585, + "loc": { + "start": { + "line": 229, + "column": 8 + }, + "end": { + "line": 229, + "column": 36 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 9557, + "end": 9584, + "loc": { + "start": { + "line": 229, + "column": 8 + }, + "end": { + "line": 229, + "column": 35 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 9557, + "end": 9574, + "loc": { + "start": { + "line": 229, + "column": 8 + }, + "end": { + "line": 229, + "column": 25 + } + }, + "object": { + "type": "MemberExpression", + "start": 9557, + "end": 9572, "loc": { "start": { - "line": 187, - "column": 12 + "line": 229, + "column": 8 }, "end": { - "line": 187, - "column": 27 + "line": 229, + "column": 23 } }, - "expression": { - "type": "AssignmentExpression", - "start": 8491, - "end": 8505, + "object": { + "type": "ThisExpression", + "start": 9557, + "end": 9561, "loc": { "start": { - "line": 187, - "column": 12 + "line": 229, + "column": 8 }, "end": { - "line": 187, - "column": 26 + "line": 229, + "column": 12 } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 8491, - "end": 8501, - "loc": { - "start": { - "line": 187, - "column": 12 - }, - "end": { - "line": 187, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 8491, - "end": 8499, - "loc": { - "start": { - "line": 187, - "column": 12 - }, - "end": { - "line": 187, - "column": 20 - }, - "identifierName": "instance" - }, - "name": "instance" + } + }, + "property": { + "type": "Identifier", + "start": 9562, + "end": 9572, + "loc": { + "start": { + "line": 229, + "column": 13 }, - "property": { - "type": "Identifier", - "start": 8500, - "end": 8501, - "loc": { - "start": { - "line": 187, - "column": 21 - }, - "end": { - "line": 187, - "column": 22 - }, - "identifierName": "y" - }, - "name": "y" + "end": { + "line": 229, + "column": 23 }, - "computed": false + "identifierName": "lastCamPos" }, - "right": { - "type": "Identifier", - "start": 8504, - "end": 8505, - "loc": { - "start": { - "line": 187, - "column": 25 - }, - "end": { - "line": 187, - "column": 26 - }, - "identifierName": "y" - }, - "name": "y" - } + "name": "lastCamPos" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 9573, + "end": 9574, + "loc": { + "start": { + "line": 229, + "column": 24 + }, + "end": { + "line": 229, + "column": 25 + }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 9577, + "end": 9584, + "loc": { + "start": { + "line": 229, + "column": 28 + }, + "end": { + "line": 229, + "column": 35 + }, + "identifierName": "cameraY" + }, + "name": "cameraY" + } + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Updates the parallax system.\r\n * @param {number} pCameraX - The x position of the camera.\r\n * @param {number} pCameraY - The y position of the camera.\r\n ", + "start": 7331, + "end": 7510, + "loc": { + "start": { + "line": 172, + "column": 4 + }, + "end": { + "line": 176, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Handles the onRelocated event for instances. Moves their children in relativity to their position.\r\n * @param {Diob | MapObject} pInstance - The instance to handle the event for.\r\n * @param {MapObject[]} pChildren - An array of children belonging to the instance.\r\n ", + "start": 9598, + "end": 9890, + "loc": { + "start": { + "line": 231, + "column": 4 + }, + "end": { + "line": 235, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 9896, + "end": 10224, + "loc": { + "start": { + "line": 236, + "column": 4 + }, + "end": { + "line": 243, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 9896, + "end": 9913, + "loc": { + "start": { + "line": 236, + "column": 4 + }, + "end": { + "line": 236, + "column": 21 + }, + "identifierName": "handleOnRelocated" + }, + "name": "handleOnRelocated", + "leadingComments": null + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 9914, + "end": 9923, + "loc": { + "start": { + "line": 236, + "column": 22 + }, + "end": { + "line": 236, + "column": 31 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + { + "type": "Identifier", + "start": 9925, + "end": 9934, + "loc": { + "start": { + "line": 236, + "column": 33 + }, + "end": { + "line": 236, + "column": 42 + }, + "identifierName": "pChildren" + }, + "name": "pChildren" + } + ], + "body": { + "type": "BlockStatement", + "start": 9936, + "end": 10224, + "loc": { + "start": { + "line": 236, + "column": 44 + }, + "end": { + "line": 243, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 10012, + "end": 10217, + "loc": { + "start": { + "line": 238, + "column": 8 + }, + "end": { + "line": 242, + "column": 11 + } + }, + "expression": { + "type": "CallExpression", + "start": 10012, + "end": 10216, + "loc": { + "start": { + "line": 238, + "column": 8 + }, + "end": { + "line": 242, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 10012, + "end": 10029, + "loc": { + "start": { + "line": 238, + "column": 8 + }, + "end": { + "line": 238, + "column": 25 + } + }, + "object": { + "type": "Identifier", + "start": 10012, + "end": 10021, + "loc": { + "start": { + "line": 238, + "column": 8 + }, + "end": { + "line": 238, + "column": 17 + }, + "identifierName": "pChildren" + }, + "name": "pChildren", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 10022, + "end": 10029, + "loc": { + "start": { + "line": 238, + "column": 18 + }, + "end": { + "line": 238, + "column": 25 + }, + "identifierName": "forEach" }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " Logic cannot be ran on background instances as they should not loop", - "start": 8534, - "end": 8604, - "loc": { - "start": { - "line": 189, - "column": 12 - }, - "end": { - "line": 189, - "column": 82 - } - } - } - ] + "name": "forEach" }, + "computed": false, + "leadingComments": null + }, + "arguments": [ { - "type": "IfStatement", - "start": 8618, - "end": 9231, + "type": "ArrowFunctionExpression", + "start": 10030, + "end": 10215, "loc": { "start": { - "line": 190, - "column": 12 + "line": 238, + "column": 26 }, "end": { - "line": 202, - "column": 13 + "line": 242, + "column": 9 } }, - "test": { - "type": "LogicalExpression", - "start": 8622, - "end": 8654, - "loc": { - "start": { - "line": 190, - "column": 16 - }, - "end": { - "line": 190, - "column": 48 - } - }, - "left": { - "type": "UnaryExpression", - "start": 8622, - "end": 8636, - "loc": { - "start": { - "line": 190, - "column": 16 - }, - "end": { - "line": 190, - "column": 30 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 8623, - "end": 8636, - "loc": { - "start": { - "line": 190, - "column": 17 - }, - "end": { - "line": 190, - "column": 30 - }, - "identifierName": "isBackgroundX" - }, - "name": "isBackgroundX", - "leadingComments": null - }, - "extra": { - "parenthesizedArgument": false - }, - "leadingComments": null - }, - "operator": "&&", - "right": { - "type": "UnaryExpression", - "start": 8640, - "end": 8654, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 10031, + "end": 10037, "loc": { "start": { - "line": 190, - "column": 34 + "line": 238, + "column": 27 }, "end": { - "line": 190, - "column": 48 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 8641, - "end": 8654, - "loc": { - "start": { - "line": 190, - "column": 35 - }, - "end": { - "line": 190, - "column": 48 - }, - "identifierName": "isBackgroundY" + "line": 238, + "column": 33 }, - "name": "isBackgroundY" + "identifierName": "pChild" }, - "extra": { - "parenthesizedArgument": false - } - }, - "leadingComments": null - }, - "consequent": { + "name": "pChild" + } + ], + "body": { "type": "BlockStatement", - "start": 8656, - "end": 9231, + "start": 10042, + "end": 10215, "loc": { "start": { - "line": 190, - "column": 50 + "line": 238, + "column": 38 }, "end": { - "line": 202, - "column": 13 + "line": 242, + "column": 9 } }, "body": [ { - "type": "IfStatement", - "start": 8675, - "end": 9216, + "type": "ExpressionStatement", + "start": 10057, + "end": 10099, "loc": { "start": { - "line": 191, - "column": 16 + "line": 239, + "column": 12 }, "end": { - "line": 201, - "column": 17 + "line": 239, + "column": 54 } }, - "test": { - "type": "MemberExpression", - "start": 8679, - "end": 8696, + "expression": { + "type": "AssignmentExpression", + "start": 10057, + "end": 10098, "loc": { "start": { - "line": 191, - "column": 20 + "line": 239, + "column": 12 }, "end": { - "line": 191, - "column": 37 + "line": 239, + "column": 53 } }, - "object": { - "type": "Identifier", - "start": 8679, - "end": 8691, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 10057, + "end": 10065, "loc": { "start": { - "line": 191, - "column": 20 + "line": 239, + "column": 12 }, "end": { - "line": 191, - "column": 32 + "line": 239, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 10057, + "end": 10063, + "loc": { + "start": { + "line": 239, + "column": 12 + }, + "end": { + "line": 239, + "column": 18 + }, + "identifierName": "pChild" }, - "identifierName": "parallaxInfo" + "name": "pChild" }, - "name": "parallaxInfo" + "property": { + "type": "Identifier", + "start": 10064, + "end": 10065, + "loc": { + "start": { + "line": 239, + "column": 19 + }, + "end": { + "line": 239, + "column": 20 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false }, - "property": { - "type": "Identifier", - "start": 8692, - "end": 8696, + "right": { + "type": "BinaryExpression", + "start": 10068, + "end": 10098, "loc": { "start": { - "line": 191, - "column": 33 + "line": 239, + "column": 23 }, "end": { - "line": 191, - "column": 37 - }, - "identifierName": "loop" - }, - "name": "loop" - }, - "computed": false - }, - "consequent": { - "type": "BlockStatement", - "start": 8698, - "end": 9216, - "loc": { - "start": { - "line": 191, - "column": 39 + "line": 239, + "column": 53 + } }, - "end": { - "line": 201, - "column": 17 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 8773, - "end": 8823, + "left": { + "type": "MemberExpression", + "start": 10068, + "end": 10079, "loc": { "start": { - "line": 193, - "column": 20 + "line": 239, + "column": 23 }, "end": { - "line": 193, - "column": 70 + "line": 239, + "column": 34 } }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8779, - "end": 8822, - "loc": { - "start": { - "line": 193, - "column": 26 - }, - "end": { - "line": 193, - "column": 69 - } + "object": { + "type": "Identifier", + "start": 10068, + "end": 10077, + "loc": { + "start": { + "line": 239, + "column": 23 }, - "id": { - "type": "Identifier", - "start": 8779, - "end": 8787, - "loc": { - "start": { - "line": 193, - "column": 26 - }, - "end": { - "line": 193, - "column": 34 - }, - "identifierName": "rightEnd" - }, - "name": "rightEnd", - "leadingComments": null + "end": { + "line": 239, + "column": 32 }, - "init": { - "type": "BinaryExpression", - "start": 8790, - "end": 8822, - "loc": { - "start": { - "line": 193, - "column": 37 - }, - "end": { - "line": 193, - "column": 69 - } - }, - "left": { - "type": "MemberExpression", - "start": 8790, - "end": 8800, - "loc": { - "start": { - "line": 193, - "column": 37 - }, - "end": { - "line": 193, - "column": 47 - } - }, - "object": { - "type": "Identifier", - "start": 8790, - "end": 8798, - "loc": { - "start": { - "line": 193, - "column": 37 - }, - "end": { - "line": 193, - "column": 45 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 8799, - "end": 8800, - "loc": { - "start": { - "line": 193, - "column": 46 - }, - "end": { - "line": 193, - "column": 47 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 8803, - "end": 8822, - "loc": { - "start": { - "line": 193, - "column": 50 - }, - "end": { - "line": 193, - "column": 69 - } - }, - "object": { - "type": "MemberExpression", - "start": 8803, - "end": 8816, - "loc": { - "start": { - "line": 193, - "column": 50 - }, - "end": { - "line": 193, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 8803, - "end": 8811, - "loc": { - "start": { - "line": 193, - "column": 50 - }, - "end": { - "line": 193, - "column": 58 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 8812, - "end": 8816, - "loc": { - "start": { - "line": 193, - "column": 59 - }, - "end": { - "line": 193, - "column": 63 - }, - "identifierName": "icon" - }, - "name": "icon" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 8817, - "end": 8822, - "loc": { - "start": { - "line": 193, - "column": 64 - }, - "end": { - "line": 193, - "column": 69 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - } + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 10078, + "end": 10079, + "loc": { + "start": { + "line": 239, + "column": 33 }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " The start pos + total width", - "start": 8721, - "end": 8751, - "loc": { - "start": { - "line": 192, - "column": 20 - }, - "end": { - "line": 192, - "column": 50 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " The start pos - total width / 2", - "start": 8845, - "end": 8879, - "loc": { - "start": { - "line": 194, - "column": 20 - }, - "end": { - "line": 194, - "column": 54 - } - } - } - ] + "end": { + "line": 239, + "column": 34 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false }, - { - "type": "VariableDeclaration", - "start": 8901, - "end": 8954, + "operator": "+", + "right": { + "type": "MemberExpression", + "start": 10082, + "end": 10098, "loc": { "start": { - "line": 195, - "column": 20 + "line": 239, + "column": 37 }, "end": { - "line": 195, - "column": 73 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8907, - "end": 8953, - "loc": { - "start": { - "line": 195, - "column": 26 - }, - "end": { - "line": 195, - "column": 72 - } - }, - "id": { - "type": "Identifier", - "start": 8907, - "end": 8914, - "loc": { - "start": { - "line": 195, - "column": 26 - }, - "end": { - "line": 195, - "column": 33 - }, - "identifierName": "leftEnd" - }, - "name": "leftEnd", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 8917, - "end": 8953, - "loc": { - "start": { - "line": 195, - "column": 36 - }, - "end": { - "line": 195, - "column": 72 - } - }, - "left": { - "type": "MemberExpression", - "start": 8917, - "end": 8927, - "loc": { - "start": { - "line": 195, - "column": 36 - }, - "end": { - "line": 195, - "column": 46 - } - }, - "object": { - "type": "Identifier", - "start": 8917, - "end": 8925, - "loc": { - "start": { - "line": 195, - "column": 36 - }, - "end": { - "line": 195, - "column": 44 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 8926, - "end": 8927, - "loc": { - "start": { - "line": 195, - "column": 45 - }, - "end": { - "line": 195, - "column": 46 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "BinaryExpression", - "start": 8930, - "end": 8953, - "loc": { - "start": { - "line": 195, - "column": 49 - }, - "end": { - "line": 195, - "column": 72 - } - }, - "left": { - "type": "MemberExpression", - "start": 8930, - "end": 8949, - "loc": { - "start": { - "line": 195, - "column": 49 - }, - "end": { - "line": 195, - "column": 68 - } - }, - "object": { - "type": "MemberExpression", - "start": 8930, - "end": 8943, - "loc": { - "start": { - "line": 195, - "column": 49 - }, - "end": { - "line": 195, - "column": 62 - } - }, - "object": { - "type": "Identifier", - "start": 8930, - "end": 8938, - "loc": { - "start": { - "line": 195, - "column": 49 - }, - "end": { - "line": 195, - "column": 57 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 8939, - "end": 8943, - "loc": { - "start": { - "line": 195, - "column": 58 - }, - "end": { - "line": 195, - "column": 62 - }, - "identifierName": "icon" - }, - "name": "icon" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 8944, - "end": 8949, - "loc": { - "start": { - "line": 195, - "column": 63 - }, - "end": { - "line": 195, - "column": 68 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 8952, - "end": 8953, - "loc": { - "start": { - "line": 195, - "column": 71 - }, - "end": { - "line": 195, - "column": 72 - } - }, - "extra": { - "rawValue": 6, - "raw": "6" - }, - "value": 6 - } - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " The start pos - total width / 2", - "start": 8845, - "end": 8879, - "loc": { - "start": { - "line": 194, - "column": 20 - }, - "end": { - "line": 194, - "column": 54 - } - } + "line": 239, + "column": 53 } - ] + }, + "object": { + "type": "Identifier", + "start": 10082, + "end": 10088, + "loc": { + "start": { + "line": 239, + "column": 37 + }, + "end": { + "line": 239, + "column": 43 + }, + "identifierName": "pChild" + }, + "name": "pChild" + }, + "property": { + "type": "Identifier", + "start": 10089, + "end": 10098, + "loc": { + "start": { + "line": 239, + "column": 44 + }, + "end": { + "line": 239, + "column": 53 + }, + "identifierName": "relativeX" + }, + "name": "relativeX" + }, + "computed": false + } + } + } + }, + { + "type": "ExpressionStatement", + "start": 10113, + "end": 10155, + "loc": { + "start": { + "line": 240, + "column": 12 + }, + "end": { + "line": 240, + "column": 54 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 10113, + "end": 10154, + "loc": { + "start": { + "line": 240, + "column": 12 }, - { - "type": "IfStatement", - "start": 8976, - "end": 9197, + "end": { + "line": 240, + "column": 53 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 10113, + "end": 10121, + "loc": { + "start": { + "line": 240, + "column": 12 + }, + "end": { + "line": 240, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 10113, + "end": 10119, "loc": { "start": { - "line": 196, + "line": 240, + "column": 12 + }, + "end": { + "line": 240, + "column": 18 + }, + "identifierName": "pChild" + }, + "name": "pChild" + }, + "property": { + "type": "Identifier", + "start": 10120, + "end": 10121, + "loc": { + "start": { + "line": 240, + "column": 19 + }, + "end": { + "line": 240, "column": 20 }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + }, + "right": { + "type": "BinaryExpression", + "start": 10124, + "end": 10154, + "loc": { + "start": { + "line": 240, + "column": 23 + }, + "end": { + "line": 240, + "column": 53 + } + }, + "left": { + "type": "MemberExpression", + "start": 10124, + "end": 10135, + "loc": { + "start": { + "line": 240, + "column": 23 + }, "end": { - "line": 200, - "column": 21 + "line": 240, + "column": 34 } }, - "test": { - "type": "BinaryExpression", - "start": 8980, - "end": 8998, + "object": { + "type": "Identifier", + "start": 10124, + "end": 10133, "loc": { "start": { - "line": 196, - "column": 24 + "line": 240, + "column": 23 }, "end": { - "line": 196, - "column": 42 - } - }, - "left": { - "type": "Identifier", - "start": 8980, - "end": 8987, - "loc": { - "start": { - "line": 196, - "column": 24 - }, - "end": { - "line": 196, - "column": 31 - }, - "identifierName": "cameraX" + "line": 240, + "column": 32 }, - "name": "cameraX" + "identifierName": "pInstance" }, - "operator": ">", - "right": { - "type": "Identifier", - "start": 8990, - "end": 8998, - "loc": { - "start": { - "line": 196, - "column": 34 - }, - "end": { - "line": 196, - "column": 42 - }, - "identifierName": "rightEnd" - }, - "name": "rightEnd" - } + "name": "pInstance" }, - "consequent": { - "type": "BlockStatement", - "start": 9000, - "end": 9084, + "property": { + "type": "Identifier", + "start": 10134, + "end": 10135, "loc": { "start": { - "line": 196, - "column": 44 + "line": 240, + "column": 33 }, "end": { - "line": 198, - "column": 21 - } + "line": 240, + "column": 34 + }, + "identifierName": "y" }, - "body": [ - { - "type": "ExpressionStatement", - "start": 9027, - "end": 9061, - "loc": { - "start": { - "line": 197, - "column": 24 - }, - "end": { - "line": 197, - "column": 58 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 9027, - "end": 9060, - "loc": { - "start": { - "line": 197, - "column": 24 - }, - "end": { - "line": 197, - "column": 57 - } - }, - "operator": "+=", - "left": { - "type": "MemberExpression", - "start": 9027, - "end": 9037, - "loc": { - "start": { - "line": 197, - "column": 24 - }, - "end": { - "line": 197, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 9027, - "end": 9035, - "loc": { - "start": { - "line": 197, - "column": 24 - }, - "end": { - "line": 197, - "column": 32 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 9036, - "end": 9037, - "loc": { - "start": { - "line": 197, - "column": 33 - }, - "end": { - "line": 197, - "column": 34 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 9041, - "end": 9060, - "loc": { - "start": { - "line": 197, - "column": 38 - }, - "end": { - "line": 197, - "column": 57 - } - }, - "object": { - "type": "MemberExpression", - "start": 9041, - "end": 9054, - "loc": { - "start": { - "line": 197, - "column": 38 - }, - "end": { - "line": 197, - "column": 51 - } - }, - "object": { - "type": "Identifier", - "start": 9041, - "end": 9049, - "loc": { - "start": { - "line": 197, - "column": 38 - }, - "end": { - "line": 197, - "column": 46 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 9050, - "end": 9054, - "loc": { - "start": { - "line": 197, - "column": 47 - }, - "end": { - "line": 197, - "column": 51 - }, - "identifierName": "icon" - }, - "name": "icon" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 9055, - "end": 9060, - "loc": { - "start": { - "line": 197, - "column": 52 - }, - "end": { - "line": 197, - "column": 57 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - } - } - } - ], - "directives": [] + "name": "y" }, - "alternate": { - "type": "IfStatement", - "start": 9090, - "end": 9197, + "computed": false + }, + "operator": "+", + "right": { + "type": "MemberExpression", + "start": 10138, + "end": 10154, + "loc": { + "start": { + "line": 240, + "column": 37 + }, + "end": { + "line": 240, + "column": 53 + } + }, + "object": { + "type": "Identifier", + "start": 10138, + "end": 10144, "loc": { "start": { - "line": 198, - "column": 27 + "line": 240, + "column": 37 }, "end": { - "line": 200, - "column": 21 - } + "line": 240, + "column": 43 + }, + "identifierName": "pChild" }, - "test": { - "type": "BinaryExpression", - "start": 9094, - "end": 9111, - "loc": { - "start": { - "line": 198, - "column": 31 - }, - "end": { - "line": 198, - "column": 48 - } + "name": "pChild" + }, + "property": { + "type": "Identifier", + "start": 10145, + "end": 10154, + "loc": { + "start": { + "line": 240, + "column": 44 }, - "left": { - "type": "Identifier", - "start": 9094, - "end": 9101, - "loc": { - "start": { - "line": 198, - "column": 31 - }, - "end": { - "line": 198, - "column": 38 - }, - "identifierName": "cameraX" - }, - "name": "cameraX" + "end": { + "line": 240, + "column": 53 }, - "operator": "<", - "right": { - "type": "Identifier", - "start": 9104, - "end": 9111, - "loc": { - "start": { - "line": 198, - "column": 41 - }, - "end": { - "line": 198, - "column": 48 - }, - "identifierName": "leftEnd" - }, - "name": "leftEnd" - } + "identifierName": "relativeY" }, - "consequent": { - "type": "BlockStatement", - "start": 9113, - "end": 9197, - "loc": { - "start": { - "line": 198, - "column": 50 - }, - "end": { - "line": 200, - "column": 21 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 9140, - "end": 9174, - "loc": { - "start": { - "line": 199, - "column": 24 - }, - "end": { - "line": 199, - "column": 58 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 9140, - "end": 9173, - "loc": { - "start": { - "line": 199, - "column": 24 - }, - "end": { - "line": 199, - "column": 57 - } - }, - "operator": "-=", - "left": { - "type": "MemberExpression", - "start": 9140, - "end": 9150, - "loc": { - "start": { - "line": 199, - "column": 24 - }, - "end": { - "line": 199, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 9140, - "end": 9148, - "loc": { - "start": { - "line": 199, - "column": 24 - }, - "end": { - "line": 199, - "column": 32 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 9149, - "end": 9150, - "loc": { - "start": { - "line": 199, - "column": 33 - }, - "end": { - "line": 199, - "column": 34 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 9154, - "end": 9173, - "loc": { - "start": { - "line": 199, - "column": 38 - }, - "end": { - "line": 199, - "column": 57 - } - }, - "object": { - "type": "MemberExpression", - "start": 9154, - "end": 9167, - "loc": { - "start": { - "line": 199, - "column": 38 - }, - "end": { - "line": 199, - "column": 51 - } - }, - "object": { - "type": "Identifier", - "start": 9154, - "end": 9162, - "loc": { - "start": { - "line": 199, - "column": 38 - }, - "end": { - "line": 199, - "column": 46 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 9163, - "end": 9167, - "loc": { - "start": { - "line": 199, - "column": 47 - }, - "end": { - "line": 199, - "column": 51 - }, - "identifierName": "icon" - }, - "name": "icon" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 9168, - "end": 9173, - "loc": { - "start": { - "line": 199, - "column": 52 - }, - "end": { - "line": 199, - "column": 57 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - } - } - } - ], - "directives": [] + "name": "relativeY" + }, + "computed": false + } + } + } + }, + { + "type": "ExpressionStatement", + "start": 10169, + "end": 10204, + "loc": { + "start": { + "line": 241, + "column": 12 + }, + "end": { + "line": 241, + "column": 47 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 10169, + "end": 10203, + "loc": { + "start": { + "line": 241, + "column": 12 + }, + "end": { + "line": 241, + "column": 46 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 10169, + "end": 10183, + "loc": { + "start": { + "line": 241, + "column": 12 + }, + "end": { + "line": 241, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 10169, + "end": 10175, + "loc": { + "start": { + "line": 241, + "column": 12 }, - "alternate": null + "end": { + "line": 241, + "column": 18 + }, + "identifierName": "pChild" + }, + "name": "pChild" + }, + "property": { + "type": "Identifier", + "start": 10176, + "end": 10183, + "loc": { + "start": { + "line": 241, + "column": 19 + }, + "end": { + "line": 241, + "column": 26 + }, + "identifierName": "mapName" + }, + "name": "mapName" + }, + "computed": false + }, + "right": { + "type": "MemberExpression", + "start": 10186, + "end": 10203, + "loc": { + "start": { + "line": 241, + "column": 29 + }, + "end": { + "line": 241, + "column": 46 } - } - ], - "directives": [] - }, - "alternate": null + }, + "object": { + "type": "Identifier", + "start": 10186, + "end": 10195, + "loc": { + "start": { + "line": 241, + "column": 29 + }, + "end": { + "line": 241, + "column": 38 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 10196, + "end": 10203, + "loc": { + "start": { + "line": 241, + "column": 39 + }, + "end": { + "line": 241, + "column": 46 + }, + "identifierName": "mapName" + }, + "name": "mapName" + }, + "computed": false + } + } } ], "directives": [] - }, - "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Logic cannot be ran on background instances as they should not loop", - "start": 8534, - "end": 8604, - "loc": { - "start": { - "line": 189, - "column": 12 - }, - "end": { - "line": 189, - "column": 82 - } - } - } - ] + } } ], - "directives": [] - } - }, - { - "type": "ExpressionStatement", - "start": 9252, - "end": 9280, - "loc": { - "start": { - "line": 204, - "column": 8 - }, - "end": { - "line": 204, - "column": 36 - } + "leadingComments": null }, - "expression": { - "type": "AssignmentExpression", - "start": 9252, - "end": 9279, - "loc": { - "start": { - "line": 204, - "column": 8 - }, - "end": { - "line": 204, - "column": 35 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 9252, - "end": 9269, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Update the children's position when the parent moves", + "start": 9947, + "end": 10002, "loc": { "start": { - "line": 204, + "line": 237, "column": 8 }, "end": { - "line": 204, - "column": 25 + "line": 237, + "column": 63 } - }, - "object": { - "type": "MemberExpression", - "start": 9252, - "end": 9267, - "loc": { - "start": { - "line": 204, - "column": 8 - }, - "end": { - "line": 204, - "column": 23 - } - }, - "object": { - "type": "ThisExpression", - "start": 9252, - "end": 9256, - "loc": { - "start": { - "line": 204, - "column": 8 - }, - "end": { - "line": 204, - "column": 12 - } - } - }, - "property": { - "type": "Identifier", - "start": 9257, - "end": 9267, - "loc": { - "start": { - "line": 204, - "column": 13 - }, - "end": { - "line": 204, - "column": 23 - }, - "identifierName": "lastCamPos" - }, - "name": "lastCamPos" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 9268, - "end": 9269, - "loc": { - "start": { - "line": 204, - "column": 24 - }, - "end": { - "line": 204, - "column": 25 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "right": { - "type": "Identifier", - "start": 9272, - "end": 9279, - "loc": { - "start": { - "line": 204, - "column": 28 - }, - "end": { - "line": 204, - "column": 35 - }, - "identifierName": "cameraX" - }, - "name": "cameraX" - } - } - }, - { - "type": "ExpressionStatement", - "start": 9290, - "end": 9318, - "loc": { - "start": { - "line": 205, - "column": 8 - }, - "end": { - "line": 205, - "column": 36 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 9290, - "end": 9317, - "loc": { - "start": { - "line": 205, - "column": 8 - }, - "end": { - "line": 205, - "column": 35 } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 9290, - "end": 9307, - "loc": { - "start": { - "line": 205, - "column": 8 - }, - "end": { - "line": 205, - "column": 25 - } - }, - "object": { - "type": "MemberExpression", - "start": 9290, - "end": 9305, - "loc": { - "start": { - "line": 205, - "column": 8 - }, - "end": { - "line": 205, - "column": 23 - } - }, - "object": { - "type": "ThisExpression", - "start": 9290, - "end": 9294, - "loc": { - "start": { - "line": 205, - "column": 8 - }, - "end": { - "line": 205, - "column": 12 - } - } - }, - "property": { - "type": "Identifier", - "start": 9295, - "end": 9305, - "loc": { - "start": { - "line": 205, - "column": 13 - }, - "end": { - "line": 205, - "column": 23 - }, - "identifierName": "lastCamPos" - }, - "name": "lastCamPos" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 9306, - "end": 9307, - "loc": { - "start": { - "line": 205, - "column": 24 - }, - "end": { - "line": 205, - "column": 25 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "right": { - "type": "Identifier", - "start": 9310, - "end": 9317, - "loc": { - "start": { - "line": 205, - "column": 28 - }, - "end": { - "line": 205, - "column": 35 - }, - "identifierName": "cameraY" - }, - "name": "cameraY" } - } + ] } ], "directives": [] @@ -25232,16 +27880,16 @@ "leadingComments": [ { "type": "CommentBlock", - "value": "*\r\n * Updates the parallax system.\r\n * @param {number} pCameraX - The x position of the camera.\r\n * @param {number} pCameraY - The y position of the camera.\r\n * @param {number} pSimulatedPosition - The simulated position. This is used to simulate a position larger than possible, but internally it treats it as its downscaled position.\r\n * One such reason for using this paramater would be to simulate a map larger than you actually have, to convince the parallax that it is infinite.\r\n ", - "start": 6630, - "end": 7145, + "value": "*\r\n * Handles the onRelocated event for instances. Moves their children in relativity to their position.\r\n * @param {Diob | MapObject} pInstance - The instance to handle the event for.\r\n * @param {MapObject[]} pChildren - An array of children belonging to the instance.\r\n ", + "start": 9598, + "end": 9890, "loc": { "start": { - "line": 146, + "line": 231, "column": 4 }, "end": { - "line": 152, + "line": 235, "column": 7 } } @@ -25254,83 +27902,1609 @@ "leadingComments": [], "trailingComments": [] }, - "specifiers": null, - "source": null, - "leadingComments": null + "specifiers": null, + "source": null, + "leadingComments": null + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\r\n\t * The version of the module.\r\n\t ", + "start": 118, + "end": 159, + "loc": { + "start": { + "line": 5, + "column": 1 + }, + "end": { + "line": 7, + "column": 4 + } + } + }, + { + "type": "CommentBlock", + "value": "* The logger module this module uses to log errors / logs\r\n * @private\r\n * @type {Object}\r\n ", + "start": 199, + "end": 307, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 12, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * The layer class.\r\n * @type {Layer}\r\n ", + "start": 341, + "end": 400, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 17, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * An set of instances that use the parallax system.\r\n * @private\r\n * @type {Set}\r\n ", + "start": 426, + "end": 533, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 23, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Weakmap to store info on instances used in this module.\r\n * @private\r\n * @type {WeakMap}\r\n ", + "start": 567, + "end": 684, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 29, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * The last position of the camera.\r\n * @private\r\n * @type {Object}\r\n ", + "start": 728, + "end": 821, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 35, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * @private\r\n ", + "start": 884, + "end": 913, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 42, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Adds an instance to the parallax system.\r\n * Call this first and then add your instance to the map.\r\n * @param {Object} pInstance - The instance to add to the parallax system.\r\n * @param {Object} pConfig - The parallax info that tells this module how to control this instance.\r\n * @prop {number} pConfig.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @prop {number} pConfig.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @prop {boolean} pConfig.loop - Whether this instance will loop endlessly.\r\n * @param {number} [pX] - The x position this instance will start at.\r\n * @param {number} [pY] - The y position this instance will start at.\r\n * @param {string} [pMap] - The map this instance will start at.\r\n * \r\n * ## The following is how the speed of the parallax multipliers are factored in. \r\n (x | y) < 1 = faster behind the camera eg: (-> Player goes this way = Instance goes this way <-) \r\n (x | y) > 1 faster against the camera eg: (-> Player goes this way = Instance goes this way ->) \r\n (x | y) = 0 = static to the camera eg: (-> Player goes this way = Instance does nothing, and moves with the camera) \r\n (x | y) = 1 = moves with the camera eg: (-> Player goes this way = Instance goes this way -> at position of camera) \r\n ", + "start": 1006, + "end": 2501, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 63, + "column": 7 + } + } + }, + { + "type": "CommentLine", + "value": " Clone the parallax object", + "start": 3022, + "end": 3050, + "loc": { + "start": { + "line": 75, + "column": 16 + }, + "end": { + "line": 75, + "column": 44 + } + } + }, + { + "type": "CommentLine", + "value": " Set the parallax info to the instance", + "start": 3186, + "end": 3226, + "loc": { + "start": { + "line": 78, + "column": 16 + }, + "end": { + "line": 78, + "column": 56 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Initializes this instance.\r\n * @param {Object} pInstance - The instance to initialize.\r\n * @param {Object} pConfig - The parallax info that tells this module how to control this instance.\r\n * @prop {number} pConfig.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 0 to move with camera.\r\n * @prop {number} pConfig.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 0 to move with camera.\r\n * @prop {boolean} pConfig.loop - Whether this instance will loop endlessly.\r\n * @param {number} pX - The x position this parallax will start at.\r\n * @param {number} pY - The y position this parallax will start at.\r\n * @param {string} pMap - The map this instance will start at.\r\n * @private\r\n ", + "start": 3501, + "end": 4358, + "loc": { + "start": { + "line": 86, + "column": 4 + }, + "end": { + "line": 97, + "column": 7 + } + } + }, + { + "type": "CommentLine", + "value": " If this instance is set to loop, then it needs a left and right clone", + "start": 4618, + "end": 4690, + "loc": { + "start": { + "line": 104, + "column": 8 + }, + "end": { + "line": 104, + "column": 80 + } + } + }, + { + "type": "CommentLine", + "value": " Create a left and right clone", + "start": 4733, + "end": 4765, + "loc": { + "start": { + "line": 106, + "column": 12 + }, + "end": { + "line": 106, + "column": 44 + } + } + }, + { + "type": "CommentLine", + "value": " Make the left and right clone particle look the same as the initial instance", + "start": 4888, + "end": 4967, + "loc": { + "start": { + "line": 110, + "column": 12 + }, + "end": { + "line": 110, + "column": 91 + } + } + }, + { + "type": "CommentLine", + "value": " Force the renderer to render it, as if its placed offscreen its not rendered.", + "start": 5072, + "end": 5152, + "loc": { + "start": { + "line": 114, + "column": 12 + }, + "end": { + "line": 114, + "column": 92 + } + } + }, + { + "type": "CommentLine", + "value": " Position the left clone", + "start": 5249, + "end": 5275, + "loc": { + "start": { + "line": 118, + "column": 12 + }, + "end": { + "line": 118, + "column": 38 + } + } + }, + { + "type": "CommentLine", + "value": " Position the right clone", + "start": 5364, + "end": 5391, + "loc": { + "start": { + "line": 121, + "column": 12 + }, + "end": { + "line": 121, + "column": 39 + } + } + }, + { + "type": "CommentLine", + "value": " Store the clones in a temporary array", + "start": 5482, + "end": 5522, + "loc": { + "start": { + "line": 124, + "column": 12 + }, + "end": { + "line": 124, + "column": 52 + } + } + }, + { + "type": "CommentLine", + "value": " Loop the clones and store their relative positions to the main instance", + "start": 5581, + "end": 5655, + "loc": { + "start": { + "line": 126, + "column": 12 + }, + "end": { + "line": 126, + "column": 86 + } + } + }, + { + "type": "CommentLine", + "value": " Do not mutate event if one is found. Call alongside it.", + "start": 5834, + "end": 5892, + "loc": { + "start": { + "line": 132, + "column": 12 + }, + "end": { + "line": 132, + "column": 70 + } + } + }, + { + "type": "CommentLine", + "value": " When the main instance moves, move the clones with their relative position to it.", + "start": 5968, + "end": 6052, + "loc": { + "start": { + "line": 134, + "column": 12 + }, + "end": { + "line": 134, + "column": 96 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Removes an instance to the parallax system.\r\n * @param {Object} pInstance - The instance to remove to the parallax system.\r\n ", + "start": 6846, + "end": 6993, + "loc": { + "start": { + "line": 157, + "column": 4 + }, + "end": { + "line": 160, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Updates the parallax system.\r\n * @param {number} pCameraX - The x position of the camera.\r\n * @param {number} pCameraY - The y position of the camera.\r\n ", + "start": 7331, + "end": 7510, + "loc": { + "start": { + "line": 172, + "column": 4 + }, + "end": { + "line": 176, + "column": 7 + } + } + }, + { + "type": "CommentLine", + "value": " The camera's x position.", + "start": 7562, + "end": 7589, + "loc": { + "start": { + "line": 178, + "column": 8 + }, + "end": { + "line": 178, + "column": 35 + } + } + }, + { + "type": "CommentLine", + "value": " The camera's x position.", + "start": 7632, + "end": 7659, + "loc": { + "start": { + "line": 180, + "column": 8 + }, + "end": { + "line": 180, + "column": 35 + } + } + }, + { + "type": "CommentLine", + "value": " Move the instance with the camera if the parallax is set to 0", + "start": 7828, + "end": 7892, + "loc": { + "start": { + "line": 185, + "column": 12 + }, + "end": { + "line": 185, + "column": 76 + } + } + }, + { + "type": "CommentLine", + "value": " Position to set the instance to.", + "start": 8022, + "end": 8057, + "loc": { + "start": { + "line": 189, + "column": 12 + }, + "end": { + "line": 189, + "column": 47 + } + } + }, + { + "type": "CommentLine", + "value": " Set the position", + "start": 8684, + "end": 8703, + "loc": { + "start": { + "line": 209, + "column": 12 + }, + "end": { + "line": 209, + "column": 31 + } + } + }, + { + "type": "CommentLine", + "value": " Logic cannot be ran on background instances as they should not loop", + "start": 8791, + "end": 8861, + "loc": { + "start": { + "line": 213, + "column": 12 + }, + "end": { + "line": 213, + "column": 82 + } + } + }, + { + "type": "CommentLine", + "value": " The start pos + total width", + "start": 8978, + "end": 9008, + "loc": { + "start": { + "line": 216, + "column": 20 + }, + "end": { + "line": 216, + "column": 50 + } + } + }, + { + "type": "CommentLine", + "value": " The start pos - total width / 2", + "start": 9104, + "end": 9138, + "loc": { + "start": { + "line": 218, + "column": 20 + }, + "end": { + "line": 218, + "column": 54 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Handles the onRelocated event for instances. Moves their children in relativity to their position.\r\n * @param {Diob | MapObject} pInstance - The instance to handle the event for.\r\n * @param {MapObject[]} pChildren - An array of children belonging to the instance.\r\n ", + "start": 9598, + "end": 9890, + "loc": { + "start": { + "line": 231, + "column": 4 + }, + "end": { + "line": 235, + "column": 7 + } + } + }, + { + "type": "CommentLine", + "value": " Update the children's position when the parent moves", + "start": 9947, + "end": 10002, + "loc": { + "start": { + "line": 237, + "column": 8 + }, + "end": { + "line": 237, + "column": 63 + } + } + } + ], + "tokens": [ + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Logger", + "start": 9, + "end": 15, + "loc": { + "start": { + "line": 1, + "column": 9 + }, + "end": { + "line": 1, + "column": 15 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16, + "end": 17, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 18, + "end": 22, + "loc": { + "start": { + "line": 1, + "column": 18 + }, + "end": { + "line": 1, + "column": 22 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./vendor/logger.min.mjs", + "start": 23, + "end": 48, + "loc": { + "start": { + "line": 1, + "column": 23 + }, + "end": { + "line": 1, + "column": 48 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 48, + "end": 49, + "loc": { + "start": { + "line": 1, + "column": 48 + }, + "end": { + "line": 1, + "column": 49 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 51, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 58, + "end": 59, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Layer", + "start": 60, + "end": 65, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 14 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 66, + "end": 67, + "loc": { + "start": { + "line": 2, + "column": 15 + }, + "end": { + "line": 2, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 68, + "end": 72, + "loc": { + "start": { + "line": 2, + "column": 17 + }, + "end": { + "line": 2, + "column": 21 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./layer.mjs", + "start": 73, + "end": 86, + "loc": { + "start": { + "line": 2, + "column": 22 + }, + "end": { + "line": 2, + "column": 35 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 90, + "end": 95, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "ParallaxSingleton", + "start": 96, + "end": 113, + "loc": { + "start": { + "line": 4, + "column": 6 + }, + "end": { + "line": 4, + "column": 23 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 114, + "end": 115, + "loc": { + "start": { + "line": 4, + "column": 24 + }, + "end": { + "line": 4, + "column": 25 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n\t * The version of the module.\r\n\t ", + "start": 118, + "end": 159, + "loc": { + "start": { + "line": 5, + "column": 1 + }, + "end": { + "line": 7, + "column": 4 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "version", + "start": 162, + "end": 169, + "loc": { + "start": { + "line": 8, + "column": 1 + }, + "end": { + "line": 8, + "column": 8 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 170, + "end": 171, + "loc": { + "start": { + "line": 8, + "column": 9 + }, + "end": { + "line": 8, + "column": 10 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "VERSION_REPLACE_ME", + "start": 172, + "end": 192, + "loc": { + "start": { + "line": 8, + "column": 11 + }, + "end": { + "line": 8, + "column": 31 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 192, + "end": 193, + "loc": { + "start": { + "line": 8, + "column": 31 + }, + "end": { + "line": 8, + "column": 32 + } + } + }, + { + "type": "CommentBlock", + "value": "* The logger module this module uses to log errors / logs\r\n * @private\r\n * @type {Object}\r\n ", + "start": 199, + "end": 307, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 12, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "logger", + "start": 313, + "end": 319, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 10 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 320, + "end": 321, + "loc": { + "start": { + "line": 13, + "column": 11 + }, + "end": { + "line": 13, + "column": 12 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 322, + "end": 325, + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 13, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Logger", + "start": 326, + "end": 332, + "loc": { + "start": { + "line": 13, + "column": 17 + }, + "end": { + "line": 13, + "column": 23 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 332, + "end": 333, + "loc": { + "start": { + "line": 13, + "column": 23 + }, + "end": { + "line": 13, + "column": 24 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 333, + "end": 334, + "loc": { + "start": { + "line": 13, + "column": 24 + }, + "end": { + "line": 13, + "column": 25 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 334, + "end": 335, + "loc": { + "start": { + "line": 13, + "column": 25 + }, + "end": { + "line": 13, + "column": 26 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * The layer class.\r\n * @type {Layer}\r\n ", + "start": 341, + "end": 400, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 17, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Layer", + "start": 406, + "end": 411, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 9 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 412, + "end": 413, + "loc": { + "start": { + "line": 18, + "column": 10 + }, + "end": { + "line": 18, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Layer", + "start": 414, + "end": 419, + "loc": { + "start": { + "line": 18, + "column": 12 + }, + "end": { + "line": 18, + "column": 17 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 419, + "end": 420, + "loc": { + "start": { + "line": 18, + "column": 17 + }, + "end": { + "line": 18, + "column": 18 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * An set of instances that use the parallax system.\r\n * @private\r\n * @type {Set}\r\n ", + "start": 426, + "end": 533, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 23, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "instances", + "start": 539, + "end": 548, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 13 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 549, + "end": 550, + "loc": { + "start": { + "line": 24, + "column": 14 + }, + "end": { + "line": 24, + "column": 15 + } } - ], - "directives": [] - }, - "comments": [ + }, { - "type": "CommentBlock", - "value": "*\r\n\t * The version of the module.\r\n\t ", - "start": 81, - "end": 122, + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 551, + "end": 554, "loc": { "start": { - "line": 4, - "column": 1 + "line": 24, + "column": 16 }, "end": { - "line": 6, - "column": 4 + "line": 24, + "column": 19 } } }, { - "type": "CommentBlock", - "value": "* The logger module this module uses to log errors / logs\r\n * @private\r\n * @type {Object}\r\n ", - "start": 162, - "end": 270, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Set", + "start": 555, + "end": 558, "loc": { "start": { - "line": 8, - "column": 4 + "line": 24, + "column": 20 }, "end": { - "line": 11, - "column": 7 + "line": 24, + "column": 23 } } }, { - "type": "CommentBlock", - "value": "*\r\n * @private\r\n ", - "start": 304, - "end": 333, + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 558, + "end": 559, "loc": { "start": { - "line": 13, - "column": 4 + "line": 24, + "column": 23 }, "end": { - "line": 15, - "column": 7 + "line": 24, + "column": 24 } } }, { - "type": "CommentBlock", - "value": "*\r\n * An array of instances that use the parallax system.\r\n * @private\r\n * @type {Array}\r\n ", - "start": 426, - "end": 537, + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 559, + "end": 560, "loc": { "start": { - "line": 19, - "column": 4 + "line": 24, + "column": 24 }, "end": { - "line": 23, - "column": 7 + "line": 24, + "column": 25 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 560, + "end": 561, + "loc": { + "start": { + "line": 24, + "column": 25 + }, + "end": { + "line": 24, + "column": 26 } } }, { "type": "CommentBlock", "value": "*\r\n * Weakmap to store info on instances used in this module.\r\n * @private\r\n * @type {WeakMap}\r\n ", - "start": 564, - "end": 681, + "start": 567, + "end": 684, "loc": { "start": { "line": 25, @@ -25342,11 +29516,194 @@ } } }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "instanceWeakMap", + "start": 690, + "end": 705, + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 19 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 706, + "end": 707, + "loc": { + "start": { + "line": 30, + "column": 20 + }, + "end": { + "line": 30, + "column": 21 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 708, + "end": 711, + "loc": { + "start": { + "line": 30, + "column": 22 + }, + "end": { + "line": 30, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "WeakMap", + "start": 712, + "end": 719, + "loc": { + "start": { + "line": 30, + "column": 26 + }, + "end": { + "line": 30, + "column": 33 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 719, + "end": 720, + "loc": { + "start": { + "line": 30, + "column": 33 + }, + "end": { + "line": 30, + "column": 34 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 720, + "end": 721, + "loc": { + "start": { + "line": 30, + "column": 34 + }, + "end": { + "line": 30, + "column": 35 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 721, + "end": 722, + "loc": { + "start": { + "line": 30, + "column": 35 + }, + "end": { + "line": 30, + "column": 36 + } + } + }, { "type": "CommentBlock", "value": "*\r\n * The last position of the camera.\r\n * @private\r\n * @type {Object}\r\n ", - "start": 725, - "end": 818, + "start": 728, + "end": 821, "loc": { "start": { "line": 31, @@ -25359,379 +29716,792 @@ } }, { - "type": "CommentBlock", - "value": "*\r\n * Adds an instance to the parallax system.\r\n * Call this first and then add your instance to the map.\r\n * @param {Object} pInstance - The instance to add to the parallax system.\r\n * @param {Object} pParallaxInfo - The parallax info that tells this module how to control this instance.\r\n * @property {number} pParallaxInfo.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {number} pParallaxInfo.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {boolean} pParallaxInfo.loop - Whether this instance will loop endlessly.\r\n * @param {number} [pX] - The x position this instance will start at.\r\n * @param {number} [pY] - The y position this instance will start at.\r\n * @param {string} [pMap] - The map this instance will start at.\r\n ", - "start": 881, - "end": 1856, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "lastCamPos", + "start": 827, + "end": 837, "loc": { "start": { - "line": 40, + "line": 36, "column": 4 }, "end": { - "line": 51, - "column": 7 + "line": 36, + "column": 14 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 838, + "end": 839, + "loc": { + "start": { + "line": 36, + "column": 15 + }, + "end": { + "line": 36, + "column": 16 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 840, + "end": 841, + "loc": { + "start": { + "line": 36, + "column": 17 + }, + "end": { + "line": 36, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "x", + "start": 852, + "end": 853, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 37, + "column": 9 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 853, + "end": 854, + "loc": { + "start": { + "line": 37, + "column": 9 + }, + "end": { + "line": 37, + "column": 10 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 855, + "end": 856, + "loc": { + "start": { + "line": 37, + "column": 11 + }, + "end": { + "line": 37, + "column": 12 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 856, + "end": 857, + "loc": { + "start": { + "line": 37, + "column": 12 + }, + "end": { + "line": 37, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "y", + "start": 867, + "end": 868, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 9 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 868, + "end": 869, + "loc": { + "start": { + "line": 38, + "column": 9 + }, + "end": { + "line": 38, + "column": 10 } } }, { - "type": "CommentLine", - "value": " Clone the parallax object", - "start": 2304, - "end": 2332, + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 870, + "end": 871, "loc": { "start": { - "line": 59, - "column": 20 + "line": 38, + "column": 11 }, "end": { - "line": 59, - "column": 48 + "line": 38, + "column": 12 } } }, { - "type": "CommentLine", - "value": " Set the parallax info to the instance", - "start": 2486, - "end": 2526, + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 877, + "end": 878, "loc": { "start": { - "line": 62, - "column": 20 + "line": 39, + "column": 4 }, "end": { - "line": 62, - "column": 60 + "line": 39, + "column": 5 } } }, { "type": "CommentBlock", - "value": "*\r\n * Initializes this instance.\r\n * @param {Object} pInstance - The instance to initialize.\r\n * @param {Object} pParallaxInfo - The parallax info that tells this module how to control this instance.\r\n * @property {number} pParallaxInfo.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {number} pParallaxInfo.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {boolean} pParallaxInfo.loop - Whether this instance will loop endlessly.\r\n * @param {number} pX - The x position this parallax will start at.\r\n * @param {number} pY - The y position this parallax will start at.\r\n * @param {string} pMap - The map this instance will start at.\r\n * @private\r\n ", - "start": 2943, - "end": 3836, + "value": "*\r\n * @private\r\n ", + "start": 884, + "end": 913, "loc": { "start": { - "line": 73, + "line": 40, "column": 4 }, "end": { - "line": 84, + "line": 42, "column": 7 } } }, { - "type": "CommentLine", - "value": " If this instance is set to loop, then it needs a left and right clone", - "start": 3923, - "end": 3995, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "constructor", + "start": 916, + "end": 927, "loc": { "start": { - "line": 87, - "column": 12 + "line": 43, + "column": 1 }, "end": { - "line": 87, - "column": 84 + "line": 43, + "column": 12 } } }, { - "type": "CommentLine", - "value": " Create a left and right clone", - "start": 4052, - "end": 4084, + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 927, + "end": 928, "loc": { "start": { - "line": 89, - "column": 16 + "line": 43, + "column": 12 }, "end": { - "line": 89, - "column": 48 + "line": 43, + "column": 13 } } }, { - "type": "CommentLine", - "value": " Make the left and right clone particle look the same as the initial instance", - "start": 4215, - "end": 4294, + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 928, + "end": 929, "loc": { "start": { - "line": 92, - "column": 16 + "line": 43, + "column": 13 }, "end": { - "line": 92, - "column": 95 + "line": 43, + "column": 14 } } }, { - "type": "CommentLine", - "value": " Position the left clone", - "start": 4409, - "end": 4435, + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 930, + "end": 931, "loc": { "start": { - "line": 95, - "column": 16 + "line": 43, + "column": 15 }, "end": { - "line": 95, - "column": 42 + "line": 43, + "column": 16 } } }, { - "type": "CommentLine", - "value": " Position the right clone", - "start": 4536, - "end": 4563, + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 941, + "end": 945, "loc": { "start": { - "line": 98, - "column": 16 + "line": 44, + "column": 8 }, "end": { - "line": 98, - "column": 43 + "line": 44, + "column": 12 } } }, { - "type": "CommentLine", - "value": " Store the clones in a temporary array", - "start": 4666, - "end": 4706, + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 945, + "end": 946, "loc": { "start": { - "line": 101, - "column": 16 + "line": 44, + "column": 12 }, "end": { - "line": 101, - "column": 56 + "line": 44, + "column": 13 } } }, { - "type": "CommentLine", - "value": " Loop the clones and store their relative positions to the main instance", - "start": 4773, - "end": 4847, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "logger", + "start": 946, + "end": 952, "loc": { "start": { - "line": 103, - "column": 16 + "line": 44, + "column": 13 }, "end": { - "line": 103, - "column": 90 + "line": 44, + "column": 19 } } }, { - "type": "CommentLine", - "value": " When the main instance moves, move the clones with their relative position to it.", - "start": 5044, - "end": 5128, + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 952, + "end": 953, "loc": { "start": { - "line": 108, - "column": 16 + "line": 44, + "column": 19 }, "end": { - "line": 108, - "column": 100 + "line": 44, + "column": 20 } } }, { - "type": "CommentLine", - "value": " Update the children's position when the parent moves", - "start": 5210, - "end": 5265, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "registerType", + "start": 953, + "end": 965, "loc": { "start": { - "line": 110, + "line": 44, "column": 20 }, "end": { - "line": 110, - "column": 75 + "line": 44, + "column": 32 } } }, { - "type": "CommentBlock", - "value": "*\r\n * Removes an instance to the parallax system.\r\n * @param {Object} pInstance - The instance to remove to the parallax system.\r\n ", - "start": 6160, - "end": 6307, + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 965, + "end": 966, "loc": { "start": { - "line": 133, - "column": 4 + "line": 44, + "column": 32 }, "end": { - "line": 136, - "column": 7 + "line": 44, + "column": 33 } } }, { - "type": "CommentBlock", - "value": "*\r\n * Updates the parallax system.\r\n * @param {number} pCameraX - The x position of the camera.\r\n * @param {number} pCameraY - The y position of the camera.\r\n * @param {number} pSimulatedPosition - The simulated position. This is used to simulate a position larger than possible, but internally it treats it as its downscaled position.\r\n * One such reason for using this paramater would be to simulate a map larger than you actually have, to convince the parallax that it is infinite.\r\n ", - "start": 6630, - "end": 7145, + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Parallax-Module", + "start": 966, + "end": 983, "loc": { "start": { - "line": 146, - "column": 4 + "line": 44, + "column": 33 }, "end": { - "line": 152, - "column": 7 + "line": 44, + "column": 50 } } }, { - "type": "CommentLine", - "value": " The camera's x position. May be adjusted if pSimulatedPosition is used.", - "start": 7217, - "end": 7291, + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 983, + "end": 984, "loc": { "start": { - "line": 154, - "column": 8 + "line": 44, + "column": 50 }, "end": { - "line": 154, - "column": 82 + "line": 44, + "column": 51 } } }, { - "type": "CommentLine", - "value": " The camera's x position. May be adjusted if pSimulatedPosition is used.", - "start": 7334, - "end": 7408, + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "#ff6600", + "start": 985, + "end": 994, "loc": { "start": { - "line": 156, - "column": 8 + "line": 44, + "column": 52 }, "end": { - "line": 156, - "column": 82 + "line": 44, + "column": 61 } } }, { - "type": "CommentLine", - "value": " Move the instance with the camera if the parallax is set to 0", - "start": 7577, - "end": 7641, + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 994, + "end": 995, "loc": { "start": { - "line": 161, - "column": 12 + "line": 44, + "column": 61 }, "end": { - "line": 161, - "column": 76 + "line": 44, + "column": 62 } } }, { - "type": "CommentLine", - "value": " Position to set the instance to.", - "start": 7771, - "end": 7806, + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 995, + "end": 996, "loc": { "start": { - "line": 165, - "column": 12 + "line": 44, + "column": 62 }, "end": { - "line": 165, - "column": 47 + "line": 44, + "column": 63 } } }, { - "type": "CommentLine", - "value": " Set the position", - "start": 8429, - "end": 8448, + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 999, + "end": 1000, "loc": { "start": { - "line": 185, - "column": 12 + "line": 45, + "column": 1 }, "end": { - "line": 185, - "column": 31 + "line": 45, + "column": 2 } } }, { - "type": "CommentLine", - "value": " Logic cannot be ran on background instances as they should not loop", - "start": 8534, - "end": 8604, + "type": "CommentBlock", + "value": "*\r\n * Adds an instance to the parallax system.\r\n * Call this first and then add your instance to the map.\r\n * @param {Object} pInstance - The instance to add to the parallax system.\r\n * @param {Object} pConfig - The parallax info that tells this module how to control this instance.\r\n * @prop {number} pConfig.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @prop {number} pConfig.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @prop {boolean} pConfig.loop - Whether this instance will loop endlessly.\r\n * @param {number} [pX] - The x position this instance will start at.\r\n * @param {number} [pY] - The y position this instance will start at.\r\n * @param {string} [pMap] - The map this instance will start at.\r\n * \r\n * ## The following is how the speed of the parallax multipliers are factored in. \r\n (x | y) < 1 = faster behind the camera eg: (-> Player goes this way = Instance goes this way <-) \r\n (x | y) > 1 faster against the camera eg: (-> Player goes this way = Instance goes this way ->) \r\n (x | y) = 0 = static to the camera eg: (-> Player goes this way = Instance does nothing, and moves with the camera) \r\n (x | y) = 1 = moves with the camera eg: (-> Player goes this way = Instance goes this way -> at position of camera) \r\n ", + "start": 1006, + "end": 2501, "loc": { "start": { - "line": 189, - "column": 12 + "line": 46, + "column": 4 }, "end": { - "line": 189, - "column": 82 + "line": 63, + "column": 7 } } }, { - "type": "CommentLine", - "value": " The start pos + total width", - "start": 8721, - "end": 8751, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "add", + "start": 2507, + "end": 2510, "loc": { "start": { - "line": 192, - "column": 20 + "line": 64, + "column": 4 }, "end": { - "line": 192, - "column": 50 + "line": 64, + "column": 7 } } }, { - "type": "CommentLine", - "value": " The start pos - total width / 2", - "start": 8845, - "end": 8879, + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2510, + "end": 2511, "loc": { "start": { - "line": 194, - "column": 20 + "line": 64, + "column": 7 }, "end": { - "line": 194, - "column": 54 + "line": 64, + "column": 8 } } - } - ], - "tokens": [ + }, { "type": { - "label": "import", - "keyword": "import", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -25739,45 +30509,45 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "import", - "start": 0, - "end": 6, + "value": "pInstance", + "start": 2511, + "end": 2520, "loc": { "start": { - "line": 1, - "column": 0 + "line": 64, + "column": 8 }, "end": { - "line": 1, - "column": 6 + "line": 64, + "column": 17 } } }, { "type": { - "label": "{", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 7, - "end": 8, + "start": 2520, + "end": 2521, "loc": { "start": { - "line": 1, - "column": 7 + "line": 64, + "column": 17 }, "end": { - "line": 1, - "column": 8 + "line": 64, + "column": 18 } } }, @@ -25793,42 +30563,43 @@ "postfix": false, "binop": null }, - "value": "Logger", - "start": 9, - "end": 15, + "value": "pConfig", + "start": 2522, + "end": 2529, "loc": { "start": { - "line": 1, - "column": 9 + "line": 64, + "column": 19 }, "end": { - "line": 1, - "column": 15 + "line": 64, + "column": 26 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 16, - "end": 17, + "start": 2529, + "end": 2530, "loc": { "start": { - "line": 1, - "column": 16 + "line": 64, + "column": 26 }, "end": { - "line": 1, - "column": 17 + "line": 64, + "column": 27 } } }, @@ -25844,25 +30615,25 @@ "postfix": false, "binop": null }, - "value": "from", - "start": 18, - "end": 22, + "value": "pX", + "start": 2531, + "end": 2533, "loc": { "start": { - "line": 1, - "column": 18 + "line": 64, + "column": 28 }, "end": { - "line": 1, - "column": 22 + "line": 64, + "column": 30 } } }, { "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -25871,23 +30642,48 @@ "binop": null, "updateContext": null }, - "value": "./vendor/logger.min.mjs", - "start": 23, - "end": 48, + "start": 2533, + "end": 2534, + "loc": { + "start": { + "line": 64, + "column": 30 + }, + "end": { + "line": 64, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pY", + "start": 2535, + "end": 2537, "loc": { "start": { - "line": 1, - "column": 23 + "line": 64, + "column": 32 }, "end": { - "line": 1, - "column": 48 + "line": 64, + "column": 34 } } }, { "type": { - "label": ";", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -25898,52 +30694,50 @@ "binop": null, "updateContext": null }, - "start": 48, - "end": 49, + "start": 2537, + "end": 2538, "loc": { "start": { - "line": 1, - "column": 48 + "line": 64, + "column": 34 }, "end": { - "line": 1, - "column": 49 + "line": 64, + "column": 35 } } }, { "type": { - "label": "class", - "keyword": "class", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "class", - "start": 53, - "end": 58, + "value": "pMap", + "start": 2539, + "end": 2543, "loc": { "start": { - "line": 3, - "column": 0 + "line": 64, + "column": 36 }, "end": { - "line": 3, - "column": 5 + "line": 64, + "column": 40 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -25951,17 +30745,16 @@ "postfix": false, "binop": null }, - "value": "ParallaxSingleton", - "start": 59, - "end": 76, + "start": 2543, + "end": 2544, "loc": { "start": { - "line": 3, - "column": 6 + "line": 64, + "column": 40 }, "end": { - "line": 3, - "column": 23 + "line": 64, + "column": 41 } } }, @@ -25977,39 +30770,51 @@ "postfix": false, "binop": null }, - "start": 77, - "end": 78, + "start": 2545, + "end": 2546, "loc": { "start": { - "line": 3, - "column": 24 + "line": 64, + "column": 42 }, "end": { - "line": 3, - "column": 25 + "line": 64, + "column": 43 } } }, { - "type": "CommentBlock", - "value": "*\r\n\t * The version of the module.\r\n\t ", - "start": 81, - "end": 122, + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 2556, + "end": 2558, "loc": { "start": { - "line": 4, - "column": 1 + "line": 65, + "column": 8 }, "end": { - "line": 6, - "column": 4 + "line": 65, + "column": 10 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -26018,50 +30823,49 @@ "postfix": false, "binop": null }, - "value": "version", - "start": 125, - "end": 132, + "start": 2559, + "end": 2560, "loc": { "start": { - "line": 7, - "column": 1 + "line": 65, + "column": 11 }, "end": { - "line": 7, - "column": 8 + "line": 65, + "column": 12 } } }, { "type": { - "label": "=", + "label": "prefix", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, - "prefix": false, + "isAssign": false, + "prefix": true, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 133, - "end": 134, + "value": "!", + "start": 2560, + "end": 2561, "loc": { "start": { - "line": 7, - "column": 9 + "line": 65, + "column": 12 }, "end": { - "line": 7, - "column": 10 + "line": 65, + "column": 13 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -26069,69 +30873,51 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "VERSION_REPLACE_ME", - "start": 135, - "end": 155, + "value": "pInstance", + "start": 2561, + "end": 2570, "loc": { "start": { - "line": 7, - "column": 11 + "line": 65, + "column": 13 }, "end": { - "line": 7, - "column": 31 + "line": 65, + "column": 22 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 155, - "end": 156, - "loc": { - "start": { - "line": 7, - "column": 31 - }, - "end": { - "line": 7, - "column": 32 - } - } - }, - { - "type": "CommentBlock", - "value": "* The logger module this module uses to log errors / logs\r\n * @private\r\n * @type {Object}\r\n ", - "start": 162, - "end": 270, + "start": 2570, + "end": 2571, "loc": { "start": { - "line": 8, - "column": 4 + "line": 65, + "column": 22 }, "end": { - "line": 11, - "column": 7 + "line": 65, + "column": 23 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -26140,53 +30926,52 @@ "postfix": false, "binop": null }, - "value": "logger", - "start": 276, - "end": 282, + "start": 2572, + "end": 2573, "loc": { "start": { - "line": 12, - "column": 4 + "line": 65, + "column": 24 }, "end": { - "line": 12, - "column": 10 + "line": 65, + "column": 25 } } }, { "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 283, - "end": 284, + "value": "this", + "start": 2587, + "end": 2591, "loc": { "start": { - "line": 12, - "column": 11 + "line": 66, + "column": 12 }, "end": { - "line": 12, - "column": 12 + "line": 66, + "column": 16 } } }, { "type": { - "label": "new", - "keyword": "new", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -26195,17 +30980,16 @@ "binop": null, "updateContext": null }, - "value": "new", - "start": 285, - "end": 288, + "start": 2591, + "end": 2592, "loc": { "start": { - "line": 12, - "column": 13 + "line": 66, + "column": 16 }, "end": { - "line": 12, - "column": 16 + "line": 66, + "column": 17 } } }, @@ -26221,50 +31005,51 @@ "postfix": false, "binop": null }, - "value": "Logger", - "start": 289, - "end": 295, + "value": "logger", + "start": 2592, + "end": 2598, "loc": { "start": { - "line": 12, + "line": 66, "column": 17 }, "end": { - "line": 12, + "line": 66, "column": 23 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 295, - "end": 296, + "start": 2598, + "end": 2599, "loc": { "start": { - "line": 12, + "line": 66, "column": 23 }, "end": { - "line": 12, + "line": 66, "column": 24 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -26272,66 +31057,77 @@ "postfix": false, "binop": null }, - "start": 296, - "end": 297, + "value": "prefix", + "start": 2599, + "end": 2605, "loc": { "start": { - "line": 12, + "line": 66, "column": 24 }, "end": { - "line": 12, - "column": 25 + "line": 66, + "column": 30 } } }, { "type": { - "label": ";", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 297, - "end": 298, + "start": 2605, + "end": 2606, "loc": { "start": { - "line": 12, - "column": 25 + "line": 66, + "column": 30 }, "end": { - "line": 12, - "column": 26 + "line": 66, + "column": 31 } } }, { - "type": "CommentBlock", - "value": "*\r\n * @private\r\n ", - "start": 304, - "end": 333, + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Parallax-Module", + "start": 2606, + "end": 2623, "loc": { "start": { - "line": 13, - "column": 4 + "line": 66, + "column": 31 }, "end": { - "line": 15, - "column": 7 + "line": 66, + "column": 48 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -26339,50 +31135,50 @@ "postfix": false, "binop": null }, - "value": "constructor", - "start": 336, - "end": 347, + "start": 2623, + "end": 2624, "loc": { "start": { - "line": 16, - "column": 1 + "line": 66, + "column": 48 }, "end": { - "line": 16, - "column": 12 + "line": 66, + "column": 49 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 347, - "end": 348, + "start": 2624, + "end": 2625, "loc": { "start": { - "line": 16, - "column": 12 + "line": 66, + "column": 49 }, "end": { - "line": 16, - "column": 13 + "line": 66, + "column": 50 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -26390,22 +31186,23 @@ "postfix": false, "binop": null }, - "start": 348, - "end": 349, + "value": "error", + "start": 2625, + "end": 2630, "loc": { "start": { - "line": 16, - "column": 13 + "line": 66, + "column": 50 }, "end": { - "line": 16, - "column": 14 + "line": 66, + "column": 55 } } }, { "type": { - "label": "{", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -26415,23 +31212,22 @@ "postfix": false, "binop": null }, - "start": 350, - "end": 351, + "start": 2630, + "end": 2631, "loc": { "start": { - "line": 16, - "column": 15 + "line": 66, + "column": 55 }, "end": { - "line": 16, - "column": 16 + "line": 66, + "column": 56 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -26442,23 +31238,23 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 361, - "end": 365, + "value": "No pInstance passed!", + "start": 2631, + "end": 2653, "loc": { "start": { - "line": 17, - "column": 8 + "line": 66, + "column": 56 }, "end": { - "line": 17, - "column": 12 + "line": 66, + "column": 78 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -26466,52 +31262,52 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 365, - "end": 366, + "start": 2653, + "end": 2654, "loc": { "start": { - "line": 17, - "column": 12 + "line": 66, + "column": 78 }, "end": { - "line": 17, - "column": 13 + "line": 66, + "column": 79 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "logger", - "start": 366, - "end": 372, + "start": 2654, + "end": 2655, "loc": { "start": { - "line": 17, - "column": 13 + "line": 66, + "column": 79 }, "end": { - "line": 17, - "column": 19 + "line": 66, + "column": 80 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "return", + "keyword": "return", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -26521,50 +31317,51 @@ "binop": null, "updateContext": null }, - "start": 372, - "end": 373, + "value": "return", + "start": 2669, + "end": 2675, "loc": { "start": { - "line": 17, - "column": 19 + "line": 67, + "column": 12 }, "end": { - "line": 17, - "column": 20 + "line": 67, + "column": 18 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "registerType", - "start": 373, - "end": 385, + "start": 2675, + "end": 2676, "loc": { "start": { - "line": 17, - "column": 20 + "line": 67, + "column": 18 }, "end": { - "line": 17, - "column": 32 + "line": 67, + "column": 19 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": "}", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -26572,24 +31369,25 @@ "postfix": false, "binop": null }, - "start": 385, - "end": 386, + "start": 2686, + "end": 2687, "loc": { "start": { - "line": 17, - "column": 32 + "line": 68, + "column": 8 }, "end": { - "line": 17, - "column": 33 + "line": 68, + "column": 9 } } }, { "type": { - "label": "string", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -26598,49 +31396,48 @@ "binop": null, "updateContext": null }, - "value": "Parallax-Module", - "start": 386, - "end": 403, + "value": "if", + "start": 2699, + "end": 2701, "loc": { "start": { - "line": 17, - "column": 33 + "line": 70, + "column": 8 }, "end": { - "line": 17, - "column": 50 + "line": 70, + "column": 10 } } }, { "type": { - "label": ",", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 403, - "end": 404, + "start": 2702, + "end": 2703, "loc": { "start": { - "line": 17, - "column": 50 + "line": 70, + "column": 11 }, "end": { - "line": 17, - "column": 51 + "line": 70, + "column": 12 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -26648,77 +31445,79 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "#ff6600", - "start": 405, - "end": 414, + "value": "pConfig", + "start": 2703, + "end": 2710, "loc": { "start": { - "line": 17, - "column": 52 + "line": 70, + "column": 12 }, "end": { - "line": 17, - "column": 61 + "line": 70, + "column": 19 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "instanceof", + "keyword": "instanceof", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 7, + "updateContext": null }, - "start": 414, - "end": 415, + "value": "instanceof", + "start": 2711, + "end": 2721, "loc": { "start": { - "line": 17, - "column": 61 + "line": 70, + "column": 20 }, "end": { - "line": 17, - "column": 62 + "line": 70, + "column": 30 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 415, - "end": 416, + "value": "Object", + "start": 2722, + "end": 2728, "loc": { "start": { - "line": 17, - "column": 62 + "line": 70, + "column": 31 }, "end": { - "line": 17, - "column": 63 + "line": 70, + "column": 37 } } }, { "type": { - "label": "}", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -26728,119 +31527,130 @@ "postfix": false, "binop": null }, - "start": 419, - "end": 420, + "start": 2728, + "end": 2729, "loc": { "start": { - "line": 18, - "column": 1 + "line": 70, + "column": 37 }, "end": { - "line": 18, - "column": 2 + "line": 70, + "column": 38 } } }, { - "type": "CommentBlock", - "value": "*\r\n * An array of instances that use the parallax system.\r\n * @private\r\n * @type {Array}\r\n ", - "start": 426, - "end": 537, + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2730, + "end": 2731, "loc": { "start": { - "line": 19, - "column": 4 + "line": 70, + "column": 39 }, "end": { - "line": 23, - "column": 7 + "line": 70, + "column": 40 } } }, { "type": { - "label": "name", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "instances", - "start": 543, - "end": 552, + "value": "if", + "start": 2745, + "end": 2747, "loc": { "start": { - "line": 24, - "column": 4 + "line": 71, + "column": 12 }, "end": { - "line": 24, - "column": 13 + "line": 71, + "column": 14 } } }, { "type": { - "label": "=", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 553, - "end": 554, + "start": 2748, + "end": 2749, "loc": { "start": { - "line": 24, - "column": 14 + "line": 71, + "column": 15 }, "end": { - "line": 24, - "column": 15 + "line": 71, + "column": 16 } } }, { "type": { - "label": "[", + "label": "prefix", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, "binop": null, "updateContext": null }, - "start": 555, - "end": 556, + "value": "!", + "start": 2749, + "end": 2750, "loc": { "start": { - "line": 24, + "line": 71, "column": 16 }, "end": { - "line": 24, + "line": 71, "column": 17 } } }, { "type": { - "label": "]", + "label": "this", + "keyword": "this", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -26849,23 +31659,24 @@ "binop": null, "updateContext": null }, - "start": 556, - "end": 557, + "value": "this", + "start": 2750, + "end": 2754, "loc": { "start": { - "line": 24, + "line": 71, "column": 17 }, "end": { - "line": 24, - "column": 18 + "line": 71, + "column": 21 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -26875,92 +31686,100 @@ "binop": null, "updateContext": null }, - "start": 557, - "end": 558, + "start": 2754, + "end": 2755, "loc": { "start": { - "line": 24, - "column": 18 + "line": 71, + "column": 21 }, "end": { - "line": 24, - "column": 19 + "line": 71, + "column": 22 } } }, { - "type": "CommentBlock", - "value": "*\r\n * Weakmap to store info on instances used in this module.\r\n * @private\r\n * @type {WeakMap}\r\n ", - "start": 564, - "end": 681, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "instances", + "start": 2755, + "end": 2764, "loc": { "start": { - "line": 25, - "column": 4 + "line": 71, + "column": 22 }, "end": { - "line": 29, - "column": 7 + "line": 71, + "column": 31 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "instanceWeakMap", - "start": 687, - "end": 702, + "start": 2764, + "end": 2765, "loc": { "start": { - "line": 30, - "column": 4 + "line": 71, + "column": 31 }, "end": { - "line": 30, - "column": 19 + "line": 71, + "column": 32 } } }, { "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 703, - "end": 704, + "value": "has", + "start": 2765, + "end": 2768, "loc": { "start": { - "line": 30, - "column": 20 + "line": 71, + "column": 32 }, "end": { - "line": 30, - "column": 21 + "line": 71, + "column": 35 } } }, { "type": { - "label": "new", - "keyword": "new", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -26968,20 +31787,18 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "new", - "start": 705, - "end": 708, + "start": 2768, + "end": 2769, "loc": { "start": { - "line": 30, - "column": 22 + "line": 71, + "column": 35 }, "end": { - "line": 30, - "column": 25 + "line": 71, + "column": 36 } } }, @@ -26997,25 +31814,25 @@ "postfix": false, "binop": null }, - "value": "WeakMap", - "start": 709, - "end": 716, + "value": "pInstance", + "start": 2769, + "end": 2778, "loc": { "start": { - "line": 30, - "column": 26 + "line": 71, + "column": 36 }, "end": { - "line": 30, - "column": 33 + "line": 71, + "column": 45 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -27023,16 +31840,16 @@ "postfix": false, "binop": null }, - "start": 716, - "end": 717, + "start": 2778, + "end": 2779, "loc": { "start": { - "line": 30, - "column": 33 + "line": 71, + "column": 45 }, "end": { - "line": 30, - "column": 34 + "line": 71, + "column": 46 } } }, @@ -27048,58 +31865,69 @@ "postfix": false, "binop": null }, - "start": 717, - "end": 718, + "start": 2779, + "end": 2780, "loc": { "start": { - "line": 30, - "column": 34 + "line": 71, + "column": 46 }, "end": { - "line": 30, - "column": 35 + "line": 71, + "column": 47 } } }, { "type": { - "label": ";", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 718, - "end": 719, + "start": 2781, + "end": 2782, "loc": { "start": { - "line": 30, - "column": 35 + "line": 71, + "column": 48 }, "end": { - "line": 30, - "column": 36 + "line": 71, + "column": 49 } } }, { - "type": "CommentBlock", - "value": "*\r\n * The last position of the camera.\r\n * @private\r\n * @type {Object}\r\n ", - "start": 725, - "end": 818, + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 2800, + "end": 2805, "loc": { "start": { - "line": 31, - "column": 4 + "line": 72, + "column": 16 }, "end": { - "line": 35, - "column": 7 + "line": 72, + "column": 21 } } }, @@ -27115,17 +31943,17 @@ "postfix": false, "binop": null }, - "value": "lastCamPos", - "start": 824, - "end": 834, + "value": "x", + "start": 2806, + "end": 2807, "loc": { "start": { - "line": 36, - "column": 4 + "line": 72, + "column": 22 }, "end": { - "line": 36, - "column": 14 + "line": 72, + "column": 23 } } }, @@ -27143,41 +31971,44 @@ "updateContext": null }, "value": "=", - "start": 835, - "end": 836, + "start": 2808, + "end": 2809, "loc": { "start": { - "line": 36, - "column": 15 + "line": 72, + "column": 24 }, "end": { - "line": 36, - "column": 16 + "line": 72, + "column": 25 } } }, { "type": { - "label": "{", + "label": "typeof", + "keyword": "typeof", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 837, - "end": 838, + "value": "typeof", + "start": 2810, + "end": 2816, "loc": { "start": { - "line": 36, - "column": 17 + "line": 72, + "column": 26 }, "end": { - "line": 36, - "column": 18 + "line": 72, + "column": 32 } } }, @@ -27193,23 +32024,23 @@ "postfix": false, "binop": null }, - "value": "x", - "start": 849, - "end": 850, + "value": "pX", + "start": 2817, + "end": 2819, "loc": { "start": { - "line": 37, - "column": 8 + "line": 72, + "column": 33 }, "end": { - "line": 37, - "column": 9 + "line": 72, + "column": 35 } } }, { "type": { - "label": ":", + "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -27217,25 +32048,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 6, "updateContext": null }, - "start": 850, - "end": 851, + "value": "===", + "start": 2820, + "end": 2823, "loc": { "start": { - "line": 37, - "column": 9 + "line": 72, + "column": 36 }, "end": { - "line": 37, - "column": 10 + "line": 72, + "column": 39 } } }, { "type": { - "label": "num", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -27246,23 +32078,23 @@ "binop": null, "updateContext": null }, - "value": 0, - "start": 852, - "end": 853, + "value": "number", + "start": 2824, + "end": 2832, "loc": { "start": { - "line": 37, - "column": 11 + "line": 72, + "column": 40 }, "end": { - "line": 37, - "column": 12 + "line": 72, + "column": 48 } } }, { "type": { - "label": ",", + "label": "?", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -27273,16 +32105,16 @@ "binop": null, "updateContext": null }, - "start": 853, - "end": 854, + "start": 2833, + "end": 2834, "loc": { "start": { - "line": 37, - "column": 12 + "line": 72, + "column": 49 }, "end": { - "line": 37, - "column": 13 + "line": 72, + "column": 50 } } }, @@ -27298,17 +32130,17 @@ "postfix": false, "binop": null }, - "value": "y", - "start": 864, - "end": 865, + "value": "pX", + "start": 2835, + "end": 2837, "loc": { "start": { - "line": 38, - "column": 8 + "line": 72, + "column": 51 }, "end": { - "line": 38, - "column": 9 + "line": 72, + "column": 53 } } }, @@ -27325,22 +32157,22 @@ "binop": null, "updateContext": null }, - "start": 865, - "end": 866, + "start": 2838, + "end": 2839, "loc": { "start": { - "line": 38, - "column": 9 + "line": 72, + "column": 54 }, "end": { - "line": 38, - "column": 10 + "line": 72, + "column": 55 } } }, { "type": { - "label": "num", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -27348,26 +32180,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 0, - "start": 867, - "end": 868, + "value": "pInstance", + "start": 2840, + "end": 2849, "loc": { "start": { - "line": 38, - "column": 11 + "line": 72, + "column": 56 }, "end": { - "line": 38, - "column": 12 + "line": 72, + "column": 65 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -27375,34 +32206,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 874, - "end": 875, - "loc": { - "start": { - "line": 39, - "column": 4 - }, - "end": { - "line": 39, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n * Adds an instance to the parallax system.\r\n * Call this first and then add your instance to the map.\r\n * @param {Object} pInstance - The instance to add to the parallax system.\r\n * @param {Object} pParallaxInfo - The parallax info that tells this module how to control this instance.\r\n * @property {number} pParallaxInfo.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {number} pParallaxInfo.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {boolean} pParallaxInfo.loop - Whether this instance will loop endlessly.\r\n * @param {number} [pX] - The x position this instance will start at.\r\n * @param {number} [pY] - The y position this instance will start at.\r\n * @param {string} [pMap] - The map this instance will start at.\r\n ", - "start": 881, - "end": 1856, + "start": 2849, + "end": 2850, "loc": { "start": { - "line": 40, - "column": 4 + "line": 72, + "column": 65 }, "end": { - "line": 51, - "column": 7 + "line": 72, + "column": 66 } } }, @@ -27418,146 +32234,152 @@ "postfix": false, "binop": null }, - "value": "add", - "start": 1862, - "end": 1865, + "value": "x", + "start": 2850, + "end": 2851, "loc": { "start": { - "line": 52, - "column": 4 + "line": 72, + "column": 66 }, "end": { - "line": 52, - "column": 7 + "line": 72, + "column": 67 } } }, { "type": { - "label": "(", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1865, - "end": 1866, + "start": 2851, + "end": 2852, "loc": { "start": { - "line": 52, - "column": 7 + "line": 72, + "column": 67 }, "end": { - "line": 52, - "column": 8 + "line": 72, + "column": 68 } } }, { "type": { - "label": "name", + "label": "const", + "keyword": "const", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "pInstance", - "start": 1866, - "end": 1875, + "value": "const", + "start": 2870, + "end": 2875, "loc": { "start": { - "line": 52, - "column": 8 + "line": 73, + "column": 16 }, "end": { - "line": 52, - "column": 17 + "line": 73, + "column": 21 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1875, - "end": 1876, + "value": "y", + "start": 2876, + "end": 2877, "loc": { "start": { - "line": 52, - "column": 17 + "line": 73, + "column": 22 }, "end": { - "line": 52, - "column": 18 + "line": 73, + "column": 23 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "=", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "pParallaxInfo", - "start": 1877, - "end": 1890, + "value": "=", + "start": 2878, + "end": 2879, "loc": { "start": { - "line": 52, - "column": 19 + "line": 73, + "column": 24 }, "end": { - "line": 52, - "column": 32 + "line": 73, + "column": 25 } } }, { "type": { - "label": ",", + "label": "typeof", + "keyword": "typeof", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, "binop": null, "updateContext": null }, - "start": 1890, - "end": 1891, + "value": "typeof", + "start": 2880, + "end": 2886, "loc": { "start": { - "line": 52, - "column": 32 + "line": 73, + "column": 26 }, "end": { - "line": 52, - "column": 33 + "line": 73, + "column": 32 } } }, @@ -27573,23 +32395,23 @@ "postfix": false, "binop": null }, - "value": "pX", - "start": 1892, - "end": 1894, + "value": "pY", + "start": 2887, + "end": 2889, "loc": { "start": { - "line": 52, - "column": 34 + "line": 73, + "column": 33 }, "end": { - "line": 52, - "column": 36 + "line": 73, + "column": 35 } } }, { "type": { - "label": ",", + "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -27597,25 +32419,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 6, "updateContext": null }, - "start": 1894, - "end": 1895, + "value": "===", + "start": 2890, + "end": 2893, "loc": { "start": { - "line": 52, + "line": 73, "column": 36 }, "end": { - "line": 52, - "column": 37 + "line": 73, + "column": 39 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -27623,25 +32446,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "pY", - "start": 1896, - "end": 1898, + "value": "number", + "start": 2894, + "end": 2902, "loc": { "start": { - "line": 52, - "column": 38 + "line": 73, + "column": 40 }, "end": { - "line": 52, - "column": 40 + "line": 73, + "column": 48 } } }, { "type": { - "label": ",", + "label": "?", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -27652,16 +32476,16 @@ "binop": null, "updateContext": null }, - "start": 1898, - "end": 1899, + "start": 2903, + "end": 2904, "loc": { "start": { - "line": 52, - "column": 40 + "line": 73, + "column": 49 }, "end": { - "line": 52, - "column": 41 + "line": 73, + "column": 50 } } }, @@ -27677,49 +32501,50 @@ "postfix": false, "binop": null }, - "value": "pMap", - "start": 1900, - "end": 1904, + "value": "pY", + "start": 2905, + "end": 2907, "loc": { "start": { - "line": 52, - "column": 42 + "line": 73, + "column": 51 }, "end": { - "line": 52, - "column": 46 + "line": 73, + "column": 53 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ":", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1904, - "end": 1905, + "start": 2908, + "end": 2909, "loc": { "start": { - "line": 52, - "column": 46 + "line": 73, + "column": 54 }, "end": { - "line": 52, - "column": 47 + "line": 73, + "column": 55 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -27728,23 +32553,23 @@ "postfix": false, "binop": null }, - "start": 1906, - "end": 1907, + "value": "pInstance", + "start": 2910, + "end": 2919, "loc": { "start": { - "line": 52, - "column": 48 + "line": 73, + "column": 56 }, "end": { - "line": 52, - "column": 49 + "line": 73, + "column": 65 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -27755,24 +32580,23 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 1917, - "end": 1919, + "start": 2919, + "end": 2920, "loc": { "start": { - "line": 53, - "column": 8 + "line": 73, + "column": 65 }, "end": { - "line": 53, - "column": 10 + "line": 73, + "column": 66 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -27781,48 +32605,50 @@ "postfix": false, "binop": null }, - "start": 1920, - "end": 1921, + "value": "y", + "start": 2920, + "end": 2921, "loc": { "start": { - "line": 53, - "column": 11 + "line": 73, + "column": 66 }, "end": { - "line": 53, - "column": 12 + "line": 73, + "column": 67 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "pInstance", - "start": 1921, - "end": 1930, + "start": 2921, + "end": 2922, "loc": { "start": { - "line": 53, - "column": 12 + "line": 73, + "column": 67 }, "end": { - "line": 53, - "column": 21 + "line": 73, + "column": 68 } } }, { "type": { - "label": ")", + "label": "const", + "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -27830,25 +32656,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1930, - "end": 1931, + "value": "const", + "start": 2940, + "end": 2945, "loc": { "start": { - "line": 53, - "column": 21 + "line": 74, + "column": 16 }, "end": { - "line": 53, - "column": 22 + "line": 74, + "column": 21 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -27857,69 +32685,72 @@ "postfix": false, "binop": null }, - "start": 1932, - "end": 1933, + "value": "map", + "start": 2946, + "end": 2949, "loc": { "start": { - "line": 53, - "column": 23 + "line": 74, + "column": 22 }, "end": { - "line": 53, - "column": 24 + "line": 74, + "column": 25 } } }, { "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "if", - "start": 1947, - "end": 1949, + "value": "=", + "start": 2950, + "end": 2951, "loc": { "start": { - "line": 54, - "column": 12 + "line": 74, + "column": 26 }, "end": { - "line": 54, - "column": 14 + "line": 74, + "column": 27 } } }, { "type": { - "label": "(", + "label": "typeof", + "keyword": "typeof", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1950, - "end": 1951, + "value": "typeof", + "start": 2952, + "end": 2958, "loc": { "start": { - "line": 54, - "column": 15 + "line": 74, + "column": 28 }, "end": { - "line": 54, - "column": 16 + "line": 74, + "column": 34 } } }, @@ -27935,24 +32766,23 @@ "postfix": false, "binop": null }, - "value": "pParallaxInfo", - "start": 1951, - "end": 1964, + "value": "pMap", + "start": 2959, + "end": 2963, "loc": { "start": { - "line": 54, - "column": 16 + "line": 74, + "column": 35 }, "end": { - "line": 54, - "column": 29 + "line": 74, + "column": 39 } } }, { "type": { - "label": "instanceof", - "keyword": "instanceof", + "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -27960,26 +32790,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 7, + "binop": 6, "updateContext": null }, - "value": "instanceof", - "start": 1965, - "end": 1975, + "value": "===", + "start": 2964, + "end": 2967, "loc": { "start": { - "line": 54, - "column": 30 + "line": 74, + "column": 40 }, "end": { - "line": 54, - "column": 40 + "line": 74, + "column": 43 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -27987,51 +32817,53 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "Object", - "start": 1976, - "end": 1982, + "value": "string", + "start": 2968, + "end": 2976, "loc": { "start": { - "line": 54, - "column": 41 + "line": 74, + "column": 44 }, "end": { - "line": 54, - "column": 47 + "line": 74, + "column": 52 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "?", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1982, - "end": 1983, + "start": 2977, + "end": 2978, "loc": { "start": { - "line": 54, - "column": 47 + "line": 74, + "column": 53 }, "end": { - "line": 54, - "column": 48 + "line": 74, + "column": 54 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -28040,24 +32872,24 @@ "postfix": false, "binop": null }, - "start": 1984, - "end": 1985, + "value": "pMap", + "start": 2979, + "end": 2983, "loc": { "start": { - "line": 54, - "column": 49 + "line": 74, + "column": 55 }, "end": { - "line": 54, - "column": 50 + "line": 74, + "column": 59 } } }, { "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, + "label": ":", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -28067,24 +32899,23 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 2003, - "end": 2005, + "start": 2984, + "end": 2985, "loc": { "start": { - "line": 55, - "column": 16 + "line": 74, + "column": 60 }, "end": { - "line": 55, - "column": 18 + "line": 74, + "column": 61 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -28093,50 +32924,49 @@ "postfix": false, "binop": null }, - "start": 2006, - "end": 2007, + "value": "pInstance", + "start": 2986, + "end": 2995, "loc": { "start": { - "line": 55, - "column": 19 + "line": 74, + "column": 62 }, "end": { - "line": 55, - "column": 20 + "line": 74, + "column": 71 } } }, { "type": { - "label": "prefix", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "!", - "start": 2007, - "end": 2008, + "start": 2995, + "end": 2996, "loc": { "start": { - "line": 55, - "column": 20 + "line": 74, + "column": 71 }, "end": { - "line": 55, - "column": 21 + "line": 74, + "column": 72 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -28144,27 +32974,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 2008, - "end": 2012, + "value": "mapName", + "start": 2996, + "end": 3003, "loc": { "start": { - "line": 55, - "column": 21 + "line": 74, + "column": 72 }, "end": { - "line": 55, - "column": 25 + "line": 74, + "column": 79 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -28174,48 +33003,39 @@ "binop": null, "updateContext": null }, - "start": 2012, - "end": 2013, + "start": 3003, + "end": 3004, "loc": { "start": { - "line": 55, - "column": 25 + "line": 74, + "column": 79 }, "end": { - "line": 55, - "column": 26 + "line": 74, + "column": 80 } } }, { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "instances", - "start": 2013, - "end": 2022, + "type": "CommentLine", + "value": " Clone the parallax object", + "start": 3022, + "end": 3050, "loc": { "start": { - "line": 55, - "column": 26 + "line": 75, + "column": 16 }, "end": { - "line": 55, - "column": 35 + "line": 75, + "column": 44 } } }, { "type": { - "label": ".", + "label": "const", + "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -28226,16 +33046,17 @@ "binop": null, "updateContext": null }, - "start": 2022, - "end": 2023, + "value": "const", + "start": 3068, + "end": 3073, "loc": { "start": { - "line": 55, - "column": 35 + "line": 76, + "column": 16 }, "end": { - "line": 55, - "column": 36 + "line": 76, + "column": 21 } } }, @@ -28251,49 +33072,51 @@ "postfix": false, "binop": null }, - "value": "includes", - "start": 2023, - "end": 2031, + "value": "parallaxInfo", + "start": 3074, + "end": 3086, "loc": { "start": { - "line": 55, - "column": 36 + "line": 76, + "column": 22 }, "end": { - "line": 55, - "column": 44 + "line": 76, + "column": 34 } } }, { "type": { - "label": "(", + "label": "=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2031, - "end": 2032, + "value": "=", + "start": 3087, + "end": 3088, "loc": { "start": { - "line": 55, - "column": 44 + "line": 76, + "column": 35 }, "end": { - "line": 55, - "column": 45 + "line": 76, + "column": 36 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -28302,50 +33125,50 @@ "postfix": false, "binop": null }, - "value": "pInstance", - "start": 2032, - "end": 2041, + "start": 3089, + "end": 3090, "loc": { "start": { - "line": 55, - "column": 45 + "line": 76, + "column": 37 }, "end": { - "line": 55, - "column": 54 + "line": 76, + "column": 38 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "...", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2041, - "end": 2042, + "start": 3091, + "end": 3094, "loc": { "start": { - "line": 55, - "column": 54 + "line": 76, + "column": 39 }, "end": { - "line": 55, - "column": 55 + "line": 76, + "column": 42 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -28353,24 +33176,25 @@ "postfix": false, "binop": null }, - "start": 2042, - "end": 2043, + "value": "pConfig", + "start": 3094, + "end": 3101, "loc": { "start": { - "line": 55, - "column": 55 + "line": 76, + "column": 42 }, "end": { - "line": 55, - "column": 56 + "line": 76, + "column": 49 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": "}", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -28378,24 +33202,23 @@ "postfix": false, "binop": null }, - "start": 2044, - "end": 2045, + "start": 3102, + "end": 3103, "loc": { "start": { - "line": 55, - "column": 57 + "line": 76, + "column": 50 }, "end": { - "line": 55, - "column": 58 + "line": 76, + "column": 51 } } }, { "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -28405,23 +33228,23 @@ "binop": null, "updateContext": null }, - "value": "const", - "start": 2067, - "end": 2072, + "start": 3103, + "end": 3104, "loc": { "start": { - "line": 56, - "column": 20 + "line": 76, + "column": 51 }, "end": { - "line": 56, - "column": 25 + "line": 76, + "column": 52 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -28429,74 +33252,72 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "x", - "start": 2073, - "end": 2074, + "value": "this", + "start": 3122, + "end": 3126, "loc": { "start": { - "line": 56, - "column": 26 + "line": 77, + "column": 16 }, "end": { - "line": 56, - "column": 27 + "line": 77, + "column": 20 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 2075, - "end": 2076, + "start": 3126, + "end": 3127, "loc": { "start": { - "line": 56, - "column": 28 + "line": 77, + "column": 20 }, "end": { - "line": 56, - "column": 29 + "line": 77, + "column": 21 } } }, { "type": { - "label": "typeof", - "keyword": "typeof", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "typeof", - "start": 2077, - "end": 2083, + "value": "init", + "start": 3127, + "end": 3131, "loc": { "start": { - "line": 56, - "column": 30 + "line": 77, + "column": 21 }, "end": { - "line": 56, - "column": 36 + "line": 77, + "column": 25 } } }, @@ -28512,16 +33333,16 @@ "postfix": false, "binop": null }, - "start": 2083, - "end": 2084, + "start": 3131, + "end": 3132, "loc": { "start": { - "line": 56, - "column": 36 + "line": 77, + "column": 25 }, "end": { - "line": 56, - "column": 37 + "line": 77, + "column": 26 } } }, @@ -28537,48 +33358,23 @@ "postfix": false, "binop": null }, - "value": "pX", - "start": 2084, - "end": 2086, - "loc": { - "start": { - "line": 56, - "column": 37 - }, - "end": { - "line": 56, - "column": 39 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2086, - "end": 2087, + "value": "pInstance", + "start": 3132, + "end": 3141, "loc": { "start": { - "line": 56, - "column": 39 + "line": 77, + "column": 26 }, "end": { - "line": 56, - "column": 40 + "line": 77, + "column": 35 } } }, { "type": { - "label": "==/!=", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -28586,26 +33382,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, + "binop": null, "updateContext": null }, - "value": "===", - "start": 2088, - "end": 2091, + "start": 3141, + "end": 3142, "loc": { "start": { - "line": 56, - "column": 41 + "line": 77, + "column": 35 }, "end": { - "line": 56, - "column": 44 + "line": 77, + "column": 36 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -28613,26 +33408,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "number", - "start": 2092, - "end": 2100, + "value": "parallaxInfo", + "start": 3143, + "end": 3155, "loc": { "start": { - "line": 56, - "column": 45 + "line": 77, + "column": 37 }, "end": { - "line": 56, - "column": 53 + "line": 77, + "column": 49 } } }, { "type": { - "label": "?", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -28643,16 +33437,16 @@ "binop": null, "updateContext": null }, - "start": 2101, - "end": 2102, + "start": 3155, + "end": 3156, "loc": { "start": { - "line": 56, - "column": 54 + "line": 77, + "column": 49 }, "end": { - "line": 56, - "column": 55 + "line": 77, + "column": 50 } } }, @@ -28668,23 +33462,23 @@ "postfix": false, "binop": null }, - "value": "pX", - "start": 2103, - "end": 2105, + "value": "x", + "start": 3157, + "end": 3158, "loc": { "start": { - "line": 56, - "column": 56 + "line": 77, + "column": 51 }, "end": { - "line": 56, - "column": 58 + "line": 77, + "column": 52 } } }, { "type": { - "label": ":", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -28695,16 +33489,16 @@ "binop": null, "updateContext": null }, - "start": 2106, - "end": 2107, + "start": 3158, + "end": 3159, "loc": { "start": { - "line": 56, - "column": 59 + "line": 77, + "column": 52 }, "end": { - "line": 56, - "column": 60 + "line": 77, + "column": 53 } } }, @@ -28720,24 +33514,24 @@ "postfix": false, "binop": null }, - "value": "pInstance", - "start": 2108, - "end": 2117, + "value": "y", + "start": 3160, + "end": 3161, "loc": { "start": { - "line": 56, - "column": 61 + "line": 77, + "column": 54 }, "end": { - "line": 56, - "column": 70 + "line": 77, + "column": 55 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -28747,16 +33541,16 @@ "binop": null, "updateContext": null }, - "start": 2117, - "end": 2118, + "start": 3161, + "end": 3162, "loc": { "start": { - "line": 56, - "column": 70 + "line": 77, + "column": 55 }, "end": { - "line": 56, - "column": 71 + "line": 77, + "column": 56 } } }, @@ -28772,51 +33566,49 @@ "postfix": false, "binop": null }, - "value": "x", - "start": 2118, - "end": 2119, + "value": "map", + "start": 3163, + "end": 3166, "loc": { "start": { - "line": 56, - "column": 71 + "line": 77, + "column": 57 }, "end": { - "line": 56, - "column": 72 + "line": 77, + "column": 60 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2119, - "end": 2120, + "start": 3166, + "end": 3167, "loc": { "start": { - "line": 56, - "column": 72 + "line": 77, + "column": 60 }, "end": { - "line": 56, - "column": 73 + "line": 77, + "column": 61 } } }, { "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -28826,23 +33618,39 @@ "binop": null, "updateContext": null }, - "value": "const", - "start": 2142, - "end": 2147, + "start": 3167, + "end": 3168, "loc": { "start": { - "line": 57, - "column": 20 + "line": 77, + "column": 61 }, "end": { - "line": 57, - "column": 25 + "line": 77, + "column": 62 + } + } + }, + { + "type": "CommentLine", + "value": " Set the parallax info to the instance", + "start": 3186, + "end": 3226, + "loc": { + "start": { + "line": 78, + "column": 16 + }, + "end": { + "line": 78, + "column": 56 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -28850,98 +33658,97 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "y", - "start": 2148, - "end": 2149, + "value": "this", + "start": 3244, + "end": 3248, "loc": { "start": { - "line": 57, - "column": 26 + "line": 79, + "column": 16 }, "end": { - "line": 57, - "column": 27 + "line": 79, + "column": 20 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 2150, - "end": 2151, + "start": 3248, + "end": 3249, "loc": { "start": { - "line": 57, - "column": 28 + "line": 79, + "column": 20 }, "end": { - "line": 57, - "column": 29 + "line": 79, + "column": 21 } } }, { "type": { - "label": "typeof", - "keyword": "typeof", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "typeof", - "start": 2152, - "end": 2158, + "value": "instanceWeakMap", + "start": 3249, + "end": 3264, "loc": { "start": { - "line": 57, - "column": 30 + "line": 79, + "column": 21 }, "end": { - "line": 57, + "line": 79, "column": 36 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2158, - "end": 2159, + "start": 3264, + "end": 3265, "loc": { "start": { - "line": 57, + "line": 79, "column": 36 }, "end": { - "line": 57, + "line": 79, "column": 37 } } @@ -28958,25 +33765,25 @@ "postfix": false, "binop": null }, - "value": "pY", - "start": 2159, - "end": 2161, + "value": "set", + "start": 3265, + "end": 3268, "loc": { "start": { - "line": 57, + "line": 79, "column": 37 }, "end": { - "line": 57, - "column": 39 + "line": 79, + "column": 40 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -28984,51 +33791,50 @@ "postfix": false, "binop": null }, - "start": 2161, - "end": 2162, + "start": 3268, + "end": 3269, "loc": { "start": { - "line": 57, - "column": 39 + "line": 79, + "column": 40 }, "end": { - "line": 57, - "column": 40 + "line": 79, + "column": 41 } } }, { "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, - "updateContext": null + "binop": null }, - "value": "===", - "start": 2163, - "end": 2166, + "value": "pInstance", + "start": 3269, + "end": 3278, "loc": { "start": { - "line": 57, + "line": 79, "column": 41 }, "end": { - "line": 57, - "column": 44 + "line": 79, + "column": 50 } } }, { "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -29037,51 +33843,50 @@ "binop": null, "updateContext": null }, - "value": "number", - "start": 2167, - "end": 2175, + "start": 3278, + "end": 3279, "loc": { "start": { - "line": 57, - "column": 45 + "line": 79, + "column": 50 }, "end": { - "line": 57, - "column": 53 + "line": 79, + "column": 51 } } }, { "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2176, - "end": 2177, + "value": "parallaxInfo", + "start": 3280, + "end": 3292, "loc": { "start": { - "line": 57, - "column": 54 + "line": 79, + "column": 52 }, "end": { - "line": 57, - "column": 55 + "line": 79, + "column": 64 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -29089,23 +33894,22 @@ "postfix": false, "binop": null }, - "value": "pY", - "start": 2178, - "end": 2180, + "start": 3292, + "end": 3293, "loc": { "start": { - "line": 57, - "column": 56 + "line": 79, + "column": 64 }, "end": { - "line": 57, - "column": 58 + "line": 79, + "column": 65 } } }, { "type": { - "label": ":", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -29116,22 +33920,23 @@ "binop": null, "updateContext": null }, - "start": 2181, - "end": 2182, + "start": 3293, + "end": 3294, "loc": { "start": { - "line": 57, - "column": 59 + "line": 79, + "column": 65 }, "end": { - "line": 57, - "column": 60 + "line": 79, + "column": 66 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -29139,19 +33944,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "pInstance", - "start": 2183, - "end": 2192, + "value": "this", + "start": 3312, + "end": 3316, "loc": { "start": { - "line": 57, - "column": 61 + "line": 80, + "column": 16 }, "end": { - "line": 57, - "column": 70 + "line": 80, + "column": 20 } } }, @@ -29168,16 +33974,16 @@ "binop": null, "updateContext": null }, - "start": 2192, - "end": 2193, + "start": 3316, + "end": 3317, "loc": { "start": { - "line": 57, - "column": 70 + "line": 80, + "column": 20 }, "end": { - "line": 57, - "column": 71 + "line": 80, + "column": 21 } } }, @@ -29193,50 +33999,23 @@ "postfix": false, "binop": null }, - "value": "y", - "start": 2193, - "end": 2194, - "loc": { - "start": { - "line": 57, - "column": 71 - }, - "end": { - "line": 57, - "column": 72 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2194, - "end": 2195, + "value": "instances", + "start": 3317, + "end": 3326, "loc": { "start": { - "line": 57, - "column": 72 + "line": 80, + "column": 21 }, "end": { - "line": 57, - "column": 73 + "line": 80, + "column": 30 } } }, { "type": { - "label": "const", - "keyword": "const", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -29247,17 +34026,16 @@ "binop": null, "updateContext": null }, - "value": "const", - "start": 2217, - "end": 2222, + "start": 3326, + "end": 3327, "loc": { "start": { - "line": 58, - "column": 20 + "line": 80, + "column": 30 }, "end": { - "line": 58, - "column": 25 + "line": 80, + "column": 31 } } }, @@ -29273,80 +34051,76 @@ "postfix": false, "binop": null }, - "value": "map", - "start": 2223, - "end": 2226, + "value": "add", + "start": 3327, + "end": 3330, "loc": { "start": { - "line": 58, - "column": 26 + "line": 80, + "column": 31 }, "end": { - "line": 58, - "column": 29 + "line": 80, + "column": 34 } } }, { "type": { - "label": "=", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 2227, - "end": 2228, + "start": 3330, + "end": 3331, "loc": { "start": { - "line": 58, - "column": 30 + "line": 80, + "column": 34 }, "end": { - "line": 58, - "column": 31 + "line": 80, + "column": 35 } } }, { "type": { - "label": "typeof", - "keyword": "typeof", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "typeof", - "start": 2229, - "end": 2235, + "value": "pInstance", + "start": 3331, + "end": 3340, "loc": { "start": { - "line": 58, - "column": 32 + "line": 80, + "column": 35 }, "end": { - "line": 58, - "column": 38 + "line": 80, + "column": 44 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -29354,48 +34128,48 @@ "postfix": false, "binop": null }, - "start": 2235, - "end": 2236, + "start": 3340, + "end": 3341, "loc": { "start": { - "line": 58, - "column": 38 + "line": 80, + "column": 44 }, "end": { - "line": 58, - "column": 39 + "line": 80, + "column": 45 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "pMap", - "start": 2236, - "end": 2240, + "start": 3341, + "end": 3342, "loc": { "start": { - "line": 58, - "column": 39 + "line": 80, + "column": 45 }, "end": { - "line": 58, - "column": 43 + "line": 80, + "column": 46 } } }, { "type": { - "label": ")", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -29405,51 +34179,50 @@ "postfix": false, "binop": null }, - "start": 2240, - "end": 2241, + "start": 3356, + "end": 3357, "loc": { "start": { - "line": 58, - "column": 43 + "line": 81, + "column": 12 }, "end": { - "line": 58, - "column": 44 + "line": 81, + "column": 13 } } }, { "type": { - "label": "==/!=", - "beforeExpr": true, + "label": "}", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, - "updateContext": null + "binop": null }, - "value": "===", - "start": 2242, - "end": 2245, + "start": 3367, + "end": 3368, "loc": { "start": { - "line": 58, - "column": 45 + "line": 82, + "column": 8 }, "end": { - "line": 58, - "column": 48 + "line": 82, + "column": 9 } } }, { "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -29458,49 +34231,49 @@ "binop": null, "updateContext": null }, - "value": "string", - "start": 2246, - "end": 2254, + "value": "else", + "start": 3369, + "end": 3373, "loc": { "start": { - "line": 58, - "column": 49 + "line": 82, + "column": 10 }, "end": { - "line": 58, - "column": 57 + "line": 82, + "column": 14 } } }, { "type": { - "label": "?", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2255, - "end": 2256, + "start": 3374, + "end": 3375, "loc": { "start": { - "line": 58, - "column": 58 + "line": 82, + "column": 15 }, "end": { - "line": 58, - "column": 59 + "line": 82, + "column": 16 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -29508,26 +34281,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "pMap", - "start": 2257, - "end": 2261, + "value": "this", + "start": 3389, + "end": 3393, "loc": { "start": { - "line": 58, - "column": 60 + "line": 83, + "column": 12 }, "end": { - "line": 58, - "column": 64 + "line": 83, + "column": 16 } } }, { "type": { - "label": ":", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -29537,16 +34311,16 @@ "binop": null, "updateContext": null }, - "start": 2262, - "end": 2263, + "start": 3393, + "end": 3394, "loc": { "start": { - "line": 58, - "column": 65 + "line": 83, + "column": 16 }, "end": { - "line": 58, - "column": 66 + "line": 83, + "column": 17 } } }, @@ -29562,17 +34336,17 @@ "postfix": false, "binop": null }, - "value": "pInstance", - "start": 2264, - "end": 2273, + "value": "logger", + "start": 3394, + "end": 3400, "loc": { "start": { - "line": 58, - "column": 67 + "line": 83, + "column": 17 }, "end": { - "line": 58, - "column": 76 + "line": 83, + "column": 23 } } }, @@ -29589,16 +34363,16 @@ "binop": null, "updateContext": null }, - "start": 2273, - "end": 2274, + "start": 3400, + "end": 3401, "loc": { "start": { - "line": 58, - "column": 76 + "line": 83, + "column": 23 }, "end": { - "line": 58, - "column": 77 + "line": 83, + "column": 24 } } }, @@ -29614,68 +34388,50 @@ "postfix": false, "binop": null }, - "value": "mapName", - "start": 2274, - "end": 2281, + "value": "prefix", + "start": 3401, + "end": 3407, "loc": { "start": { - "line": 58, - "column": 77 + "line": 83, + "column": 24 }, "end": { - "line": 58, - "column": 84 + "line": 83, + "column": 30 } } }, { "type": { - "label": ";", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2281, - "end": 2282, + "start": 3407, + "end": 3408, "loc": { "start": { - "line": 58, - "column": 84 - }, - "end": { - "line": 58, - "column": 85 - } - } - }, - { - "type": "CommentLine", - "value": " Clone the parallax object", - "start": 2304, - "end": 2332, - "loc": { - "start": { - "line": 59, - "column": 20 + "line": 83, + "column": 30 }, "end": { - "line": 59, - "column": 48 + "line": 83, + "column": 31 } } }, { "type": { - "label": "const", - "keyword": "const", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -29684,25 +34440,25 @@ "binop": null, "updateContext": null }, - "value": "const", - "start": 2354, - "end": 2359, + "value": "Parallax-Module", + "start": 3408, + "end": 3425, "loc": { "start": { - "line": 60, - "column": 20 + "line": 83, + "column": 31 }, "end": { - "line": 60, - "column": 25 + "line": 83, + "column": 48 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -29710,51 +34466,49 @@ "postfix": false, "binop": null }, - "value": "parallaxInfo", - "start": 2360, - "end": 2372, + "start": 3425, + "end": 3426, "loc": { "start": { - "line": 60, - "column": 26 + "line": 83, + "column": 48 }, "end": { - "line": 60, - "column": 38 + "line": 83, + "column": 49 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 2373, - "end": 2374, + "start": 3426, + "end": 3427, "loc": { "start": { - "line": 60, - "column": 39 + "line": 83, + "column": 49 }, "end": { - "line": 60, - "column": 40 + "line": 83, + "column": 50 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -29763,48 +34517,48 @@ "postfix": false, "binop": null }, - "start": 2375, - "end": 2376, + "value": "error", + "start": 3427, + "end": 3432, "loc": { "start": { - "line": 60, - "column": 41 + "line": 83, + "column": 50 }, "end": { - "line": 60, - "column": 42 + "line": 83, + "column": 55 } } }, { "type": { - "label": "...", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2377, - "end": 2380, + "start": 3432, + "end": 3433, "loc": { "start": { - "line": 60, - "column": 43 + "line": 83, + "column": 55 }, "end": { - "line": 60, - "column": 46 + "line": 83, + "column": 56 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -29812,25 +34566,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "pParallaxInfo", - "start": 2380, - "end": 2393, + "value": "No pConfig passed or invalid type found!", + "start": 3433, + "end": 3475, "loc": { "start": { - "line": 60, - "column": 46 + "line": 83, + "column": 56 }, "end": { - "line": 60, - "column": 59 + "line": 83, + "column": 98 } } }, { "type": { - "label": "}", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -29840,16 +34595,16 @@ "postfix": false, "binop": null }, - "start": 2394, - "end": 2395, + "start": 3475, + "end": 3476, "loc": { "start": { - "line": 60, - "column": 60 + "line": 83, + "column": 98 }, "end": { - "line": 60, - "column": 61 + "line": 83, + "column": 99 } } }, @@ -29866,50 +34621,47 @@ "binop": null, "updateContext": null }, - "start": 2395, - "end": 2396, + "start": 3476, + "end": 3477, "loc": { "start": { - "line": 60, - "column": 61 + "line": 83, + "column": 99 }, "end": { - "line": 60, - "column": 62 + "line": 83, + "column": 100 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 2418, - "end": 2422, + "start": 3487, + "end": 3488, "loc": { "start": { - "line": 61, - "column": 20 + "line": 84, + "column": 8 }, "end": { - "line": 61, - "column": 24 + "line": 84, + "column": 9 } } }, { "type": { - "label": ".", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -29917,19 +34669,34 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2422, - "end": 2423, + "start": 3494, + "end": 3495, "loc": { "start": { - "line": 61, - "column": 24 + "line": 85, + "column": 4 }, "end": { - "line": 61, - "column": 25 + "line": 85, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Initializes this instance.\r\n * @param {Object} pInstance - The instance to initialize.\r\n * @param {Object} pConfig - The parallax info that tells this module how to control this instance.\r\n * @prop {number} pConfig.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 0 to move with camera.\r\n * @prop {number} pConfig.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 0 to move with camera.\r\n * @prop {boolean} pConfig.loop - Whether this instance will loop endlessly.\r\n * @param {number} pX - The x position this parallax will start at.\r\n * @param {number} pY - The y position this parallax will start at.\r\n * @param {string} pMap - The map this instance will start at.\r\n * @private\r\n ", + "start": 3501, + "end": 4358, + "loc": { + "start": { + "line": 86, + "column": 4 + }, + "end": { + "line": 97, + "column": 7 } } }, @@ -29946,16 +34713,16 @@ "binop": null }, "value": "init", - "start": 2423, - "end": 2427, + "start": 4364, + "end": 4368, "loc": { "start": { - "line": 61, - "column": 25 + "line": 98, + "column": 4 }, "end": { - "line": 61, - "column": 29 + "line": 98, + "column": 8 } } }, @@ -29971,16 +34738,16 @@ "postfix": false, "binop": null }, - "start": 2427, - "end": 2428, + "start": 4368, + "end": 4369, "loc": { "start": { - "line": 61, - "column": 29 + "line": 98, + "column": 8 }, "end": { - "line": 61, - "column": 30 + "line": 98, + "column": 9 } } }, @@ -29997,16 +34764,16 @@ "binop": null }, "value": "pInstance", - "start": 2428, - "end": 2437, + "start": 4369, + "end": 4378, "loc": { "start": { - "line": 61, - "column": 30 + "line": 98, + "column": 9 }, "end": { - "line": 61, - "column": 39 + "line": 98, + "column": 18 } } }, @@ -30023,16 +34790,16 @@ "binop": null, "updateContext": null }, - "start": 2437, - "end": 2438, + "start": 4378, + "end": 4379, "loc": { "start": { - "line": 61, - "column": 39 + "line": 98, + "column": 18 }, "end": { - "line": 61, - "column": 40 + "line": 98, + "column": 19 } } }, @@ -30048,17 +34815,17 @@ "postfix": false, "binop": null }, - "value": "parallaxInfo", - "start": 2439, - "end": 2451, + "value": "pConfig", + "start": 4380, + "end": 4387, "loc": { "start": { - "line": 61, - "column": 41 + "line": 98, + "column": 20 }, "end": { - "line": 61, - "column": 53 + "line": 98, + "column": 27 } } }, @@ -30075,16 +34842,16 @@ "binop": null, "updateContext": null }, - "start": 2451, - "end": 2452, + "start": 4387, + "end": 4388, "loc": { "start": { - "line": 61, - "column": 53 + "line": 98, + "column": 27 }, "end": { - "line": 61, - "column": 54 + "line": 98, + "column": 28 } } }, @@ -30100,17 +34867,17 @@ "postfix": false, "binop": null }, - "value": "x", - "start": 2453, - "end": 2454, + "value": "pX", + "start": 4389, + "end": 4391, "loc": { "start": { - "line": 61, - "column": 55 + "line": 98, + "column": 29 }, "end": { - "line": 61, - "column": 56 + "line": 98, + "column": 31 } } }, @@ -30127,16 +34894,16 @@ "binop": null, "updateContext": null }, - "start": 2454, - "end": 2455, + "start": 4391, + "end": 4392, "loc": { "start": { - "line": 61, - "column": 56 + "line": 98, + "column": 31 }, "end": { - "line": 61, - "column": 57 + "line": 98, + "column": 32 } } }, @@ -30152,17 +34919,17 @@ "postfix": false, "binop": null }, - "value": "y", - "start": 2456, - "end": 2457, + "value": "pY", + "start": 4393, + "end": 4395, "loc": { "start": { - "line": 61, - "column": 58 + "line": 98, + "column": 33 }, "end": { - "line": 61, - "column": 59 + "line": 98, + "column": 35 } } }, @@ -30179,16 +34946,16 @@ "binop": null, "updateContext": null }, - "start": 2457, - "end": 2458, + "start": 4395, + "end": 4396, "loc": { "start": { - "line": 61, - "column": 59 + "line": 98, + "column": 35 }, "end": { - "line": 61, - "column": 60 + "line": 98, + "column": 36 } } }, @@ -30204,17 +34971,17 @@ "postfix": false, "binop": null }, - "value": "map", - "start": 2459, - "end": 2462, + "value": "pMap", + "start": 4397, + "end": 4401, "loc": { "start": { - "line": 61, - "column": 61 + "line": 98, + "column": 37 }, "end": { - "line": 61, - "column": 64 + "line": 98, + "column": 41 } } }, @@ -30230,67 +34997,50 @@ "postfix": false, "binop": null }, - "start": 2462, - "end": 2463, + "start": 4401, + "end": 4402, "loc": { "start": { - "line": 61, - "column": 64 + "line": 98, + "column": 41 }, "end": { - "line": 61, - "column": 65 + "line": 98, + "column": 42 } } }, { "type": { - "label": ";", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2463, - "end": 2464, - "loc": { - "start": { - "line": 61, - "column": 65 - }, - "end": { - "line": 61, - "column": 66 - } - } - }, - { - "type": "CommentLine", - "value": " Set the parallax info to the instance", - "start": 2486, - "end": 2526, + "start": 4403, + "end": 4404, "loc": { "start": { - "line": 62, - "column": 20 + "line": 98, + "column": 43 }, "end": { - "line": 62, - "column": 60 + "line": 98, + "column": 44 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -30299,103 +35049,103 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 2548, - "end": 2552, + "value": "if", + "start": 4414, + "end": 4416, "loc": { "start": { - "line": 63, - "column": 20 + "line": 99, + "column": 8 }, "end": { - "line": 63, - "column": 24 + "line": 99, + "column": 10 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2552, - "end": 2553, + "start": 4417, + "end": 4418, "loc": { "start": { - "line": 63, - "column": 24 + "line": 99, + "column": 11 }, "end": { - "line": 63, - "column": 25 + "line": 99, + "column": 12 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "prefix", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "instanceWeakMap", - "start": 2553, - "end": 2568, + "value": "!", + "start": 4418, + "end": 4419, "loc": { "start": { - "line": 63, - "column": 25 + "line": 99, + "column": 12 }, "end": { - "line": 63, - "column": 40 + "line": 99, + "column": 13 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2568, - "end": 2569, + "value": "VYLO", + "start": 4419, + "end": 4423, "loc": { "start": { - "line": 63, - "column": 40 + "line": 99, + "column": 13 }, "end": { - "line": 63, - "column": 41 + "line": 99, + "column": 17 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -30403,23 +35153,22 @@ "postfix": false, "binop": null }, - "value": "set", - "start": 2569, - "end": 2572, + "start": 4423, + "end": 4424, "loc": { "start": { - "line": 63, - "column": 41 + "line": 99, + "column": 17 }, "end": { - "line": 63, - "column": 44 + "line": 99, + "column": 18 } } }, { "type": { - "label": "(", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -30429,22 +35178,23 @@ "postfix": false, "binop": null }, - "start": 2572, - "end": 2573, + "start": 4425, + "end": 4426, "loc": { "start": { - "line": 63, - "column": 44 + "line": 99, + "column": 19 }, "end": { - "line": 63, - "column": 45 + "line": 99, + "column": 20 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -30452,26 +35202,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "pInstance", - "start": 2573, - "end": 2582, + "value": "this", + "start": 4440, + "end": 4444, "loc": { "start": { - "line": 63, - "column": 45 + "line": 100, + "column": 12 }, "end": { - "line": 63, - "column": 54 + "line": 100, + "column": 16 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -30481,16 +35232,16 @@ "binop": null, "updateContext": null }, - "start": 2582, - "end": 2583, + "start": 4444, + "end": 4445, "loc": { "start": { - "line": 63, - "column": 54 + "line": 100, + "column": 16 }, "end": { - "line": 63, - "column": 55 + "line": 100, + "column": 17 } } }, @@ -30506,23 +35257,23 @@ "postfix": false, "binop": null }, - "value": "parallaxInfo", - "start": 2584, - "end": 2596, + "value": "logger", + "start": 4445, + "end": 4451, "loc": { "start": { - "line": 63, - "column": 56 + "line": 100, + "column": 17 }, "end": { - "line": 63, - "column": 68 + "line": 100, + "column": 23 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -30530,80 +35281,78 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2596, - "end": 2597, + "start": 4451, + "end": 4452, "loc": { "start": { - "line": 63, - "column": 68 + "line": 100, + "column": 23 }, "end": { - "line": 63, - "column": 69 + "line": 100, + "column": 24 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2597, - "end": 2598, + "value": "prefix", + "start": 4452, + "end": 4458, "loc": { "start": { - "line": 63, - "column": 69 + "line": 100, + "column": 24 }, "end": { - "line": 63, - "column": 70 + "line": 100, + "column": 30 } } }, { "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 2620, - "end": 2624, + "start": 4458, + "end": 4459, "loc": { "start": { - "line": 64, - "column": 20 + "line": 100, + "column": 30 }, "end": { - "line": 64, - "column": 24 + "line": 100, + "column": 31 } } }, { "type": { - "label": ".", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -30612,24 +35361,25 @@ "binop": null, "updateContext": null }, - "start": 2624, - "end": 2625, + "value": "Parallax-Module", + "start": 4459, + "end": 4476, "loc": { "start": { - "line": 64, - "column": 24 + "line": 100, + "column": 31 }, "end": { - "line": 64, - "column": 25 + "line": 100, + "column": 48 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -30637,17 +35387,16 @@ "postfix": false, "binop": null }, - "value": "instances", - "start": 2625, - "end": 2634, + "start": 4476, + "end": 4477, "loc": { "start": { - "line": 64, - "column": 25 + "line": 100, + "column": 48 }, "end": { - "line": 64, - "column": 34 + "line": 100, + "column": 49 } } }, @@ -30664,16 +35413,16 @@ "binop": null, "updateContext": null }, - "start": 2634, - "end": 2635, + "start": 4477, + "end": 4478, "loc": { "start": { - "line": 64, - "column": 34 + "line": 100, + "column": 49 }, "end": { - "line": 64, - "column": 35 + "line": 100, + "column": 50 } } }, @@ -30689,17 +35438,17 @@ "postfix": false, "binop": null }, - "value": "push", - "start": 2635, - "end": 2639, + "value": "error", + "start": 4478, + "end": 4483, "loc": { "start": { - "line": 64, - "column": 35 + "line": 100, + "column": 50 }, "end": { - "line": 64, - "column": 39 + "line": 100, + "column": 55 } } }, @@ -30715,22 +35464,22 @@ "postfix": false, "binop": null }, - "start": 2639, - "end": 2640, + "start": 4483, + "end": 4484, "loc": { "start": { - "line": 64, - "column": 39 + "line": 100, + "column": 55 }, "end": { - "line": 64, - "column": 40 + "line": 100, + "column": 56 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -30738,19 +35487,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "pInstance", - "start": 2640, - "end": 2649, + "value": "VYLO not found! This module depends on the VYLO object being in the global name space.", + "start": 4484, + "end": 4572, "loc": { "start": { - "line": 64, - "column": 40 + "line": 100, + "column": 56 }, "end": { - "line": 64, - "column": 49 + "line": 100, + "column": 144 } } }, @@ -30766,16 +35516,16 @@ "postfix": false, "binop": null }, - "start": 2649, - "end": 2650, + "start": 4572, + "end": 4573, "loc": { "start": { - "line": 64, - "column": 49 + "line": 100, + "column": 144 }, "end": { - "line": 64, - "column": 50 + "line": 100, + "column": 145 } } }, @@ -30792,41 +35542,70 @@ "binop": null, "updateContext": null }, - "start": 2650, - "end": 2651, + "start": 4573, + "end": 4574, "loc": { "start": { - "line": 64, - "column": 50 + "line": 100, + "column": 145 }, "end": { - "line": 64, - "column": 51 + "line": 100, + "column": 146 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": "return", + "keyword": "return", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2669, - "end": 2670, + "value": "return", + "start": 4588, + "end": 4594, "loc": { "start": { - "line": 65, - "column": 16 + "line": 101, + "column": 12 }, "end": { - "line": 65, - "column": 17 + "line": 101, + "column": 18 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4594, + "end": 4595, + "loc": { + "start": { + "line": 101, + "column": 18 + }, + "end": { + "line": 101, + "column": 19 } } }, @@ -30842,24 +35621,40 @@ "postfix": false, "binop": null }, - "start": 2684, - "end": 2685, + "start": 4605, + "end": 4606, "loc": { "start": { - "line": 66, - "column": 12 + "line": 102, + "column": 8 }, "end": { - "line": 66, - "column": 13 + "line": 102, + "column": 9 + } + } + }, + { + "type": "CommentLine", + "value": " If this instance is set to loop, then it needs a left and right clone", + "start": 4618, + "end": 4690, + "loc": { + "start": { + "line": 104, + "column": 8 + }, + "end": { + "line": 104, + "column": 80 } } }, { "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, + "label": "if", + "keyword": "if", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -30869,23 +35664,23 @@ "binop": null, "updateContext": null }, - "value": "else", - "start": 2686, - "end": 2690, + "value": "if", + "start": 4700, + "end": 4702, "loc": { "start": { - "line": 66, - "column": 14 + "line": 105, + "column": 8 }, "end": { - "line": 66, - "column": 18 + "line": 105, + "column": 10 } } }, { "type": { - "label": "{", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -30895,23 +35690,22 @@ "postfix": false, "binop": null }, - "start": 2691, - "end": 2692, + "start": 4703, + "end": 4704, "loc": { "start": { - "line": 66, - "column": 19 + "line": 105, + "column": 11 }, "end": { - "line": 66, - "column": 20 + "line": 105, + "column": 12 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -30919,20 +35713,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 2710, - "end": 2714, + "value": "pConfig", + "start": 4704, + "end": 4711, "loc": { "start": { - "line": 67, - "column": 16 + "line": 105, + "column": 12 }, "end": { - "line": 67, - "column": 20 + "line": 105, + "column": 19 } } }, @@ -30949,16 +35742,16 @@ "binop": null, "updateContext": null }, - "start": 2714, - "end": 2715, + "start": 4711, + "end": 4712, "loc": { "start": { - "line": 67, - "column": 20 + "line": 105, + "column": 19 }, "end": { - "line": 67, - "column": 21 + "line": 105, + "column": 20 } } }, @@ -30974,23 +35767,23 @@ "postfix": false, "binop": null }, - "value": "logger", - "start": 2715, - "end": 2721, + "value": "loop", + "start": 4712, + "end": 4716, "loc": { "start": { - "line": 67, - "column": 21 + "line": 105, + "column": 20 }, "end": { - "line": 67, - "column": 27 + "line": 105, + "column": 24 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -30998,26 +35791,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2721, - "end": 2722, + "start": 4716, + "end": 4717, "loc": { "start": { - "line": 67, - "column": 27 + "line": 105, + "column": 24 }, "end": { - "line": 67, - "column": 28 + "line": 105, + "column": 25 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -31026,48 +35818,66 @@ "postfix": false, "binop": null }, - "value": "prefix", - "start": 2722, - "end": 2728, + "start": 4718, + "end": 4719, "loc": { "start": { - "line": 67, - "column": 28 + "line": 105, + "column": 26 }, "end": { - "line": 67, - "column": 34 + "line": 105, + "column": 27 + } + } + }, + { + "type": "CommentLine", + "value": " Create a left and right clone", + "start": 4733, + "end": 4765, + "loc": { + "start": { + "line": 106, + "column": 12 + }, + "end": { + "line": 106, + "column": 44 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2728, - "end": 2729, + "value": "const", + "start": 4779, + "end": 4784, "loc": { "start": { - "line": 67, - "column": 34 + "line": 107, + "column": 12 }, "end": { - "line": 67, - "column": 35 + "line": 107, + "column": 17 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -31075,28 +35885,54 @@ "isAssign": false, "prefix": false, "postfix": false, + "binop": null + }, + "value": "left", + "start": 4785, + "end": 4789, + "loc": { + "start": { + "line": 107, + "column": 18 + }, + "end": { + "line": 107, + "column": 22 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, "binop": null, "updateContext": null }, - "value": "Parallax-Module", - "start": 2729, - "end": 2746, + "value": "=", + "start": 4790, + "end": 4791, "loc": { "start": { - "line": 67, - "column": 35 + "line": 107, + "column": 23 }, "end": { - "line": 67, - "column": 52 + "line": 107, + "column": 24 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -31104,16 +35940,17 @@ "postfix": false, "binop": null }, - "start": 2746, - "end": 2747, + "value": "VYLO", + "start": 4792, + "end": 4796, "loc": { "start": { - "line": 67, - "column": 52 + "line": 107, + "column": 25 }, "end": { - "line": 67, - "column": 53 + "line": 107, + "column": 29 } } }, @@ -31130,16 +35967,16 @@ "binop": null, "updateContext": null }, - "start": 2747, - "end": 2748, + "start": 4796, + "end": 4797, "loc": { "start": { - "line": 67, - "column": 53 + "line": 107, + "column": 29 }, "end": { - "line": 67, - "column": 54 + "line": 107, + "column": 30 } } }, @@ -31155,17 +35992,17 @@ "postfix": false, "binop": null }, - "value": "error", - "start": 2748, - "end": 2753, + "value": "newDiob", + "start": 4797, + "end": 4804, "loc": { "start": { - "line": 67, - "column": 54 + "line": 107, + "column": 30 }, "end": { - "line": 67, - "column": 59 + "line": 107, + "column": 37 } } }, @@ -31181,16 +36018,16 @@ "postfix": false, "binop": null }, - "start": 2753, - "end": 2754, + "start": 4804, + "end": 4805, "loc": { "start": { - "line": 67, - "column": 59 + "line": 107, + "column": 37 }, "end": { - "line": 67, - "column": 60 + "line": 107, + "column": 38 } } }, @@ -31207,17 +36044,17 @@ "binop": null, "updateContext": null }, - "value": "No pParallaxInfo passed or invalid type found!", - "start": 2754, - "end": 2802, + "value": "MapObject", + "start": 4805, + "end": 4816, "loc": { "start": { - "line": 67, - "column": 60 + "line": 107, + "column": 38 }, "end": { - "line": 67, - "column": 108 + "line": 107, + "column": 49 } } }, @@ -31233,16 +36070,16 @@ "postfix": false, "binop": null }, - "start": 2802, - "end": 2803, + "start": 4816, + "end": 4817, "loc": { "start": { - "line": 67, - "column": 108 + "line": 107, + "column": 49 }, "end": { - "line": 67, - "column": 109 + "line": 107, + "column": 50 } } }, @@ -31259,22 +36096,23 @@ "binop": null, "updateContext": null }, - "start": 2803, - "end": 2804, + "start": 4817, + "end": 4818, "loc": { "start": { - "line": 67, - "column": 109 + "line": 107, + "column": 50 }, "end": { - "line": 67, - "column": 110 + "line": 107, + "column": 51 } } }, { "type": { - "label": "}", + "label": "const", + "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -31282,26 +36120,28 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2818, - "end": 2819, + "value": "const", + "start": 4832, + "end": 4837, "loc": { "start": { - "line": 68, + "line": 108, "column": 12 }, "end": { - "line": 68, - "column": 13 + "line": 108, + "column": 17 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -31309,51 +36149,51 @@ "postfix": false, "binop": null }, - "start": 2829, - "end": 2830, + "value": "right", + "start": 4838, + "end": 4843, "loc": { "start": { - "line": 69, - "column": 8 + "line": 108, + "column": 18 }, "end": { - "line": 69, - "column": 9 + "line": 108, + "column": 23 } } }, { "type": { - "label": "else", - "keyword": "else", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "else", - "start": 2831, - "end": 2835, + "value": "=", + "start": 4844, + "end": 4845, "loc": { "start": { - "line": 69, - "column": 10 + "line": 108, + "column": 24 }, "end": { - "line": 69, - "column": 14 + "line": 108, + "column": 25 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -31362,25 +36202,25 @@ "postfix": false, "binop": null }, - "start": 2836, - "end": 2837, + "value": "VYLO", + "start": 4846, + "end": 4850, "loc": { "start": { - "line": 69, - "column": 15 + "line": 108, + "column": 26 }, "end": { - "line": 69, - "column": 16 + "line": 108, + "column": 30 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -31389,50 +36229,49 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 2851, - "end": 2855, + "start": 4850, + "end": 4851, "loc": { "start": { - "line": 70, - "column": 12 + "line": 108, + "column": 30 }, "end": { - "line": 70, - "column": 16 + "line": 108, + "column": 31 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2855, - "end": 2856, + "value": "newDiob", + "start": 4851, + "end": 4858, "loc": { "start": { - "line": 70, - "column": 16 + "line": 108, + "column": 31 }, "end": { - "line": 70, - "column": 17 + "line": 108, + "column": 38 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -31441,25 +36280,24 @@ "postfix": false, "binop": null }, - "value": "logger", - "start": 2856, - "end": 2862, + "start": 4858, + "end": 4859, "loc": { "start": { - "line": 70, - "column": 17 + "line": 108, + "column": 38 }, "end": { - "line": 70, - "column": 23 + "line": 108, + "column": 39 } } }, { "type": { - "label": ".", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -31468,24 +36306,25 @@ "binop": null, "updateContext": null }, - "start": 2862, - "end": 2863, + "value": "MapObject", + "start": 4859, + "end": 4870, "loc": { "start": { - "line": 70, - "column": 23 + "line": 108, + "column": 39 }, "end": { - "line": 70, - "column": 24 + "line": 108, + "column": 50 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -31493,77 +36332,66 @@ "postfix": false, "binop": null }, - "value": "prefix", - "start": 2863, - "end": 2869, + "start": 4870, + "end": 4871, "loc": { "start": { - "line": 70, - "column": 24 + "line": 108, + "column": 50 }, "end": { - "line": 70, - "column": 30 + "line": 108, + "column": 51 } } }, { "type": { - "label": "(", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2869, - "end": 2870, + "start": 4871, + "end": 4872, "loc": { "start": { - "line": 70, - "column": 30 + "line": 108, + "column": 51 }, "end": { - "line": 70, - "column": 31 + "line": 108, + "column": 52 } } }, { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Parallax-Module", - "start": 2870, - "end": 2887, + "type": "CommentLine", + "value": " Make the left and right clone particle look the same as the initial instance", + "start": 4888, + "end": 4967, "loc": { "start": { - "line": 70, - "column": 31 + "line": 110, + "column": 12 }, "end": { - "line": 70, - "column": 48 + "line": 110, + "column": 91 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -31571,16 +36399,17 @@ "postfix": false, "binop": null }, - "start": 2887, - "end": 2888, + "value": "left", + "start": 4981, + "end": 4985, "loc": { "start": { - "line": 70, - "column": 48 + "line": 111, + "column": 12 }, "end": { - "line": 70, - "column": 49 + "line": 111, + "column": 16 } } }, @@ -31597,16 +36426,16 @@ "binop": null, "updateContext": null }, - "start": 2888, - "end": 2889, + "start": 4985, + "end": 4986, "loc": { "start": { - "line": 70, - "column": 49 + "line": 111, + "column": 16 }, "end": { - "line": 70, - "column": 50 + "line": 111, + "column": 17 } } }, @@ -31622,17 +36451,17 @@ "postfix": false, "binop": null }, - "value": "error", - "start": 2889, - "end": 2894, + "value": "setAppearance", + "start": 4986, + "end": 4999, "loc": { "start": { - "line": 70, - "column": 50 + "line": 111, + "column": 17 }, "end": { - "line": 70, - "column": 55 + "line": 111, + "column": 30 } } }, @@ -31648,22 +36477,22 @@ "postfix": false, "binop": null }, - "start": 2894, - "end": 2895, + "start": 4999, + "end": 5000, "loc": { "start": { - "line": 70, - "column": 55 + "line": 111, + "column": 30 }, "end": { - "line": 70, - "column": 56 + "line": 111, + "column": 31 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -31671,20 +36500,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "No pInstance passed!", - "start": 2895, - "end": 2917, + "value": "pInstance", + "start": 5000, + "end": 5009, "loc": { "start": { - "line": 70, - "column": 56 + "line": 111, + "column": 31 }, "end": { - "line": 70, - "column": 78 + "line": 111, + "column": 40 } } }, @@ -31700,16 +36528,16 @@ "postfix": false, "binop": null }, - "start": 2917, - "end": 2918, + "start": 5009, + "end": 5010, "loc": { "start": { - "line": 70, - "column": 78 + "line": 111, + "column": 40 }, "end": { - "line": 70, - "column": 79 + "line": 111, + "column": 41 } } }, @@ -31726,24 +36554,24 @@ "binop": null, "updateContext": null }, - "start": 2918, - "end": 2919, + "start": 5010, + "end": 5011, "loc": { "start": { - "line": 70, - "column": 79 + "line": 111, + "column": 41 }, "end": { - "line": 70, - "column": 80 + "line": 111, + "column": 42 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -31751,22 +36579,23 @@ "postfix": false, "binop": null }, - "start": 2929, - "end": 2930, + "value": "right", + "start": 5025, + "end": 5030, "loc": { "start": { - "line": 71, - "column": 8 + "line": 112, + "column": 12 }, "end": { - "line": 71, - "column": 9 + "line": 112, + "column": 17 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -31774,41 +36603,52 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2936, - "end": 2937, + "start": 5030, + "end": 5031, "loc": { "start": { - "line": 72, - "column": 4 + "line": 112, + "column": 17 }, "end": { - "line": 72, - "column": 5 + "line": 112, + "column": 18 } } }, { - "type": "CommentBlock", - "value": "*\r\n * Initializes this instance.\r\n * @param {Object} pInstance - The instance to initialize.\r\n * @param {Object} pParallaxInfo - The parallax info that tells this module how to control this instance.\r\n * @property {number} pParallaxInfo.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {number} pParallaxInfo.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {boolean} pParallaxInfo.loop - Whether this instance will loop endlessly.\r\n * @param {number} pX - The x position this parallax will start at.\r\n * @param {number} pY - The y position this parallax will start at.\r\n * @param {string} pMap - The map this instance will start at.\r\n * @private\r\n ", - "start": 2943, - "end": 3836, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "setAppearance", + "start": 5031, + "end": 5044, "loc": { "start": { - "line": 73, - "column": 4 + "line": 112, + "column": 18 }, "end": { - "line": 84, - "column": 7 + "line": 112, + "column": 31 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -31817,24 +36657,23 @@ "postfix": false, "binop": null }, - "value": "init", - "start": 3842, - "end": 3846, + "start": 5044, + "end": 5045, "loc": { "start": { - "line": 85, - "column": 4 + "line": 112, + "column": 31 }, "end": { - "line": 85, - "column": 8 + "line": 112, + "column": 32 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -31843,24 +36682,25 @@ "postfix": false, "binop": null }, - "start": 3846, - "end": 3847, + "value": "pInstance", + "start": 5045, + "end": 5054, "loc": { "start": { - "line": 85, - "column": 8 + "line": 112, + "column": 32 }, "end": { - "line": 85, - "column": 9 + "line": 112, + "column": 41 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -31868,23 +36708,22 @@ "postfix": false, "binop": null }, - "value": "pInstance", - "start": 3847, - "end": 3856, + "start": 5054, + "end": 5055, "loc": { "start": { - "line": 85, - "column": 9 + "line": 112, + "column": 41 }, "end": { - "line": 85, - "column": 18 + "line": 112, + "column": 42 } } }, { "type": { - "label": ",", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -31895,16 +36734,32 @@ "binop": null, "updateContext": null }, - "start": 3856, - "end": 3857, + "start": 5055, + "end": 5056, "loc": { "start": { - "line": 85, - "column": 18 + "line": 112, + "column": 42 }, "end": { - "line": 85, - "column": 19 + "line": 112, + "column": 43 + } + } + }, + { + "type": "CommentLine", + "value": " Force the renderer to render it, as if its placed offscreen its not rendered.", + "start": 5072, + "end": 5152, + "loc": { + "start": { + "line": 114, + "column": 12 + }, + "end": { + "line": 114, + "column": 92 } } }, @@ -31920,24 +36775,24 @@ "postfix": false, "binop": null }, - "value": "pParallaxInfo", - "start": 3858, - "end": 3871, + "value": "left", + "start": 5166, + "end": 5170, "loc": { "start": { - "line": 85, - "column": 20 + "line": 115, + "column": 12 }, "end": { - "line": 85, - "column": 33 + "line": 115, + "column": 16 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -31947,16 +36802,16 @@ "binop": null, "updateContext": null }, - "start": 3871, - "end": 3872, + "start": 5170, + "end": 5171, "loc": { "start": { - "line": 85, - "column": 33 + "line": 115, + "column": 16 }, "end": { - "line": 85, - "column": 34 + "line": 115, + "column": 17 } } }, @@ -31972,43 +36827,42 @@ "postfix": false, "binop": null }, - "value": "pX", - "start": 3873, - "end": 3875, + "value": "setPos", + "start": 5171, + "end": 5177, "loc": { "start": { - "line": 85, - "column": 35 + "line": 115, + "column": 17 }, "end": { - "line": 85, - "column": 37 + "line": 115, + "column": 23 } } }, { "type": { - "label": ",", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3875, - "end": 3876, + "start": 5177, + "end": 5178, "loc": { "start": { - "line": 85, - "column": 37 + "line": 115, + "column": 23 }, "end": { - "line": 85, - "column": 38 + "line": 115, + "column": 24 } } }, @@ -32024,17 +36878,17 @@ "postfix": false, "binop": null }, - "value": "pY", - "start": 3877, - "end": 3879, + "value": "pX", + "start": 5178, + "end": 5180, "loc": { "start": { - "line": 85, - "column": 39 + "line": 115, + "column": 24 }, "end": { - "line": 85, - "column": 41 + "line": 115, + "column": 26 } } }, @@ -32051,16 +36905,16 @@ "binop": null, "updateContext": null }, - "start": 3879, - "end": 3880, + "start": 5180, + "end": 5181, "loc": { "start": { - "line": 85, - "column": 41 + "line": 115, + "column": 26 }, "end": { - "line": 85, - "column": 42 + "line": 115, + "column": 27 } } }, @@ -32076,49 +36930,50 @@ "postfix": false, "binop": null }, - "value": "pMap", - "start": 3881, - "end": 3885, + "value": "pY", + "start": 5182, + "end": 5184, "loc": { "start": { - "line": 85, - "column": 43 + "line": 115, + "column": 28 }, "end": { - "line": 85, - "column": 47 + "line": 115, + "column": 30 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3885, - "end": 3886, + "start": 5184, + "end": 5185, "loc": { "start": { - "line": 85, - "column": 47 + "line": 115, + "column": 30 }, "end": { - "line": 85, - "column": 48 + "line": 115, + "column": 31 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -32127,23 +36982,23 @@ "postfix": false, "binop": null }, - "start": 3887, - "end": 3888, + "value": "pMap", + "start": 5186, + "end": 5190, "loc": { "start": { - "line": 85, - "column": 49 + "line": 115, + "column": 32 }, "end": { - "line": 85, - "column": 50 + "line": 115, + "column": 36 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -32151,45 +37006,44 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 3898, - "end": 3900, + "start": 5190, + "end": 5191, "loc": { "start": { - "line": 86, - "column": 8 + "line": 115, + "column": 36 }, "end": { - "line": 86, - "column": 10 + "line": 115, + "column": 37 } } }, { "type": { - "label": "(", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3901, - "end": 3902, + "start": 5191, + "end": 5192, "loc": { "start": { - "line": 86, - "column": 11 + "line": 115, + "column": 37 }, "end": { - "line": 86, - "column": 12 + "line": 115, + "column": 38 } } }, @@ -32205,23 +37059,23 @@ "postfix": false, "binop": null }, - "value": "VYLO", - "start": 3902, - "end": 3906, + "value": "right", + "start": 5206, + "end": 5211, "loc": { "start": { - "line": 86, + "line": 116, "column": 12 }, "end": { - "line": 86, - "column": 16 + "line": 116, + "column": 17 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -32229,25 +37083,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3906, - "end": 3907, + "start": 5211, + "end": 5212, "loc": { "start": { - "line": 86, - "column": 16 + "line": 116, + "column": 17 }, "end": { - "line": 86, - "column": 17 + "line": 116, + "column": 18 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -32256,85 +37111,94 @@ "postfix": false, "binop": null }, - "start": 3908, - "end": 3909, + "value": "setPos", + "start": 5212, + "end": 5218, "loc": { "start": { - "line": 86, + "line": 116, "column": 18 }, "end": { - "line": 86, - "column": 19 + "line": 116, + "column": 24 } } }, { - "type": "CommentLine", - "value": " If this instance is set to loop, then it needs a left and right clone", - "start": 3923, - "end": 3995, + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5218, + "end": 5219, "loc": { "start": { - "line": 87, - "column": 12 + "line": 116, + "column": 24 }, "end": { - "line": 87, - "column": 84 + "line": 116, + "column": 25 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 4009, - "end": 4011, + "value": "pX", + "start": 5219, + "end": 5221, "loc": { "start": { - "line": 88, - "column": 12 + "line": 116, + "column": 25 }, "end": { - "line": 88, - "column": 14 + "line": 116, + "column": 27 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4012, - "end": 4013, + "start": 5221, + "end": 5222, "loc": { "start": { - "line": 88, - "column": 15 + "line": 116, + "column": 27 }, "end": { - "line": 88, - "column": 16 + "line": 116, + "column": 28 } } }, @@ -32350,24 +37214,24 @@ "postfix": false, "binop": null }, - "value": "pParallaxInfo", - "start": 4013, - "end": 4026, + "value": "pY", + "start": 5223, + "end": 5225, "loc": { "start": { - "line": 88, - "column": 16 + "line": 116, + "column": 29 }, "end": { - "line": 88, - "column": 29 + "line": 116, + "column": 31 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -32377,16 +37241,16 @@ "binop": null, "updateContext": null }, - "start": 4026, - "end": 4027, + "start": 5225, + "end": 5226, "loc": { "start": { - "line": 88, - "column": 29 + "line": 116, + "column": 31 }, "end": { - "line": 88, - "column": 30 + "line": 116, + "column": 32 } } }, @@ -32402,17 +37266,17 @@ "postfix": false, "binop": null }, - "value": "loop", - "start": 4027, - "end": 4031, + "value": "pMap", + "start": 5227, + "end": 5231, "loc": { "start": { - "line": 88, - "column": 30 + "line": 116, + "column": 33 }, "end": { - "line": 88, - "column": 34 + "line": 116, + "column": 37 } } }, @@ -32428,85 +37292,58 @@ "postfix": false, "binop": null }, - "start": 4031, - "end": 4032, + "start": 5231, + "end": 5232, "loc": { "start": { - "line": 88, - "column": 34 + "line": 116, + "column": 37 }, "end": { - "line": 88, - "column": 35 + "line": 116, + "column": 38 } } }, { "type": { - "label": "{", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4033, - "end": 4034, + "start": 5232, + "end": 5233, "loc": { "start": { - "line": 88, - "column": 36 + "line": 116, + "column": 38 }, "end": { - "line": 88, - "column": 37 + "line": 116, + "column": 39 } } }, { "type": "CommentLine", - "value": " Create a left and right clone", - "start": 4052, - "end": 4084, - "loc": { - "start": { - "line": 89, - "column": 16 - }, - "end": { - "line": 89, - "column": 48 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 4102, - "end": 4107, + "value": " Position the left clone", + "start": 5249, + "end": 5275, "loc": { "start": { - "line": 90, - "column": 16 + "line": 118, + "column": 12 }, "end": { - "line": 90, - "column": 21 + "line": 118, + "column": 38 } } }, @@ -32523,43 +37360,42 @@ "binop": null }, "value": "left", - "start": 4108, - "end": 4112, + "start": 5289, + "end": 5293, "loc": { "start": { - "line": 90, - "column": 22 + "line": 119, + "column": 12 }, "end": { - "line": 90, - "column": 26 + "line": 119, + "column": 16 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 4113, - "end": 4114, + "start": 5293, + "end": 5294, "loc": { "start": { - "line": 90, - "column": 27 + "line": 119, + "column": 16 }, "end": { - "line": 90, - "column": 28 + "line": 119, + "column": 17 } } }, @@ -32575,43 +37411,44 @@ "postfix": false, "binop": null }, - "value": "VYLO", - "start": 4115, - "end": 4119, + "value": "x", + "start": 5294, + "end": 5295, "loc": { "start": { - "line": 90, - "column": 29 + "line": 119, + "column": 17 }, "end": { - "line": 90, - "column": 33 + "line": 119, + "column": 18 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 4119, - "end": 4120, + "value": "=", + "start": 5296, + "end": 5297, "loc": { "start": { - "line": 90, - "column": 33 + "line": 119, + "column": 19 }, "end": { - "line": 90, - "column": 34 + "line": 119, + "column": 20 } } }, @@ -32627,48 +37464,50 @@ "postfix": false, "binop": null }, - "value": "newDiob", - "start": 4120, - "end": 4127, + "value": "pX", + "start": 5298, + "end": 5300, "loc": { "start": { - "line": 90, - "column": 34 + "line": 119, + "column": 21 }, "end": { - "line": 90, - "column": 41 + "line": 119, + "column": 23 } } }, { "type": { - "label": "(", + "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null + "binop": 9, + "updateContext": null }, - "start": 4127, - "end": 4128, + "value": "-", + "start": 5301, + "end": 5302, "loc": { "start": { - "line": 90, - "column": 41 + "line": 119, + "column": 24 }, "end": { - "line": 90, - "column": 42 + "line": 119, + "column": 25 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -32676,26 +37515,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "Particle", - "start": 4128, - "end": 4138, + "value": "pInstance", + "start": 5303, + "end": 5312, "loc": { "start": { - "line": 90, - "column": 42 + "line": 119, + "column": 26 }, "end": { - "line": 90, - "column": 52 + "line": 119, + "column": 35 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -32703,51 +37541,51 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4138, - "end": 4139, + "start": 5312, + "end": 5313, "loc": { "start": { - "line": 90, - "column": 52 + "line": 119, + "column": 35 }, "end": { - "line": 90, - "column": 53 + "line": 119, + "column": 36 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4139, - "end": 4140, + "value": "icon", + "start": 5313, + "end": 5317, "loc": { "start": { - "line": 90, - "column": 53 + "line": 119, + "column": 36 }, "end": { - "line": 90, - "column": 54 + "line": 119, + "column": 40 } } }, { "type": { - "label": "const", - "keyword": "const", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -32758,17 +37596,16 @@ "binop": null, "updateContext": null }, - "value": "const", - "start": 4158, - "end": 4163, + "start": 5317, + "end": 5318, "loc": { "start": { - "line": 91, - "column": 16 + "line": 119, + "column": 40 }, "end": { - "line": 91, - "column": 21 + "line": 119, + "column": 41 } } }, @@ -32784,44 +37621,43 @@ "postfix": false, "binop": null }, - "value": "right", - "start": 4164, - "end": 4169, + "value": "width", + "start": 5318, + "end": 5323, "loc": { "start": { - "line": 91, - "column": 22 + "line": 119, + "column": 41 }, "end": { - "line": 91, - "column": 27 + "line": 119, + "column": 46 } } }, { "type": { - "label": "=", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 4170, - "end": 4171, + "start": 5323, + "end": 5324, "loc": { "start": { - "line": 91, - "column": 28 + "line": 119, + "column": 46 }, "end": { - "line": 91, - "column": 29 + "line": 119, + "column": 47 } } }, @@ -32837,17 +37673,17 @@ "postfix": false, "binop": null }, - "value": "VYLO", - "start": 4172, - "end": 4176, + "value": "left", + "start": 5338, + "end": 5342, "loc": { "start": { - "line": 91, - "column": 30 + "line": 120, + "column": 12 }, "end": { - "line": 91, - "column": 34 + "line": 120, + "column": 16 } } }, @@ -32861,52 +37697,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4176, - "end": 4177, - "loc": { - "start": { - "line": 91, - "column": 34 - }, - "end": { - "line": 91, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "newDiob", - "start": 4177, - "end": 4184, + "start": 5342, + "end": 5343, "loc": { "start": { - "line": 91, - "column": 35 + "line": 120, + "column": 16 }, "end": { - "line": 91, - "column": 42 + "line": 120, + "column": 17 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -32915,51 +37725,52 @@ "postfix": false, "binop": null }, - "start": 4184, - "end": 4185, + "value": "y", + "start": 5343, + "end": 5344, "loc": { "start": { - "line": 91, - "column": 42 + "line": 120, + "column": 17 }, "end": { - "line": 91, - "column": 43 + "line": 120, + "column": 18 } } }, { "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, + "label": "=", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "Particle", - "start": 4185, - "end": 4195, + "value": "=", + "start": 5345, + "end": 5346, "loc": { "start": { - "line": 91, - "column": 43 + "line": 120, + "column": 19 }, "end": { - "line": 91, - "column": 53 + "line": 120, + "column": 20 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -32967,16 +37778,17 @@ "postfix": false, "binop": null }, - "start": 4195, - "end": 4196, + "value": "pY", + "start": 5347, + "end": 5349, "loc": { "start": { - "line": 91, - "column": 53 + "line": 120, + "column": 21 }, "end": { - "line": 91, - "column": 54 + "line": 120, + "column": 23 } } }, @@ -32993,32 +37805,32 @@ "binop": null, "updateContext": null }, - "start": 4196, - "end": 4197, + "start": 5349, + "end": 5350, "loc": { "start": { - "line": 91, - "column": 54 + "line": 120, + "column": 23 }, "end": { - "line": 91, - "column": 55 + "line": 120, + "column": 24 } } }, { "type": "CommentLine", - "value": " Make the left and right clone particle look the same as the initial instance", - "start": 4215, - "end": 4294, + "value": " Position the right clone", + "start": 5364, + "end": 5391, "loc": { "start": { - "line": 92, - "column": 16 + "line": 121, + "column": 12 }, "end": { - "line": 92, - "column": 95 + "line": 121, + "column": 39 } } }, @@ -33034,17 +37846,17 @@ "postfix": false, "binop": null }, - "value": "left", - "start": 4312, - "end": 4316, + "value": "right", + "start": 5405, + "end": 5410, "loc": { "start": { - "line": 93, - "column": 16 + "line": 122, + "column": 12 }, "end": { - "line": 93, - "column": 20 + "line": 122, + "column": 17 } } }, @@ -33061,16 +37873,16 @@ "binop": null, "updateContext": null }, - "start": 4316, - "end": 4317, + "start": 5410, + "end": 5411, "loc": { "start": { - "line": 93, - "column": 20 + "line": 122, + "column": 17 }, "end": { - "line": 93, - "column": 21 + "line": 122, + "column": 18 } } }, @@ -33086,42 +37898,44 @@ "postfix": false, "binop": null }, - "value": "setAppearance", - "start": 4317, - "end": 4330, + "value": "x", + "start": 5411, + "end": 5412, "loc": { "start": { - "line": 93, - "column": 21 + "line": 122, + "column": 18 }, "end": { - "line": 93, - "column": 34 + "line": 122, + "column": 19 } } }, { "type": { - "label": "(", + "label": "=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4330, - "end": 4331, + "value": "=", + "start": 5413, + "end": 5414, "loc": { "start": { - "line": 93, - "column": 34 + "line": 122, + "column": 20 }, "end": { - "line": 93, - "column": 35 + "line": 122, + "column": 21 } } }, @@ -33137,68 +37951,44 @@ "postfix": false, "binop": null }, - "value": "pInstance", - "start": 4331, - "end": 4340, - "loc": { - "start": { - "line": 93, - "column": 35 - }, - "end": { - "line": 93, - "column": 44 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4340, - "end": 4341, + "value": "pX", + "start": 5415, + "end": 5417, "loc": { "start": { - "line": 93, - "column": 44 + "line": 122, + "column": 22 }, "end": { - "line": 93, - "column": 45 + "line": 122, + "column": 24 } } }, { "type": { - "label": ";", + "label": "+/-", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null, + "binop": 9, "updateContext": null }, - "start": 4341, - "end": 4342, + "value": "+", + "start": 5418, + "end": 5419, "loc": { "start": { - "line": 93, - "column": 45 + "line": 122, + "column": 25 }, "end": { - "line": 93, - "column": 46 + "line": 122, + "column": 26 } } }, @@ -33214,17 +38004,17 @@ "postfix": false, "binop": null }, - "value": "right", - "start": 4360, - "end": 4365, + "value": "pInstance", + "start": 5420, + "end": 5429, "loc": { "start": { - "line": 94, - "column": 16 + "line": 122, + "column": 27 }, "end": { - "line": 94, - "column": 21 + "line": 122, + "column": 36 } } }, @@ -33241,16 +38031,16 @@ "binop": null, "updateContext": null }, - "start": 4365, - "end": 4366, + "start": 5429, + "end": 5430, "loc": { "start": { - "line": 94, - "column": 21 + "line": 122, + "column": 36 }, "end": { - "line": 94, - "column": 22 + "line": 122, + "column": 37 } } }, @@ -33266,42 +38056,43 @@ "postfix": false, "binop": null }, - "value": "setAppearance", - "start": 4366, - "end": 4379, + "value": "icon", + "start": 5430, + "end": 5434, "loc": { "start": { - "line": 94, - "column": 22 + "line": 122, + "column": 37 }, "end": { - "line": 94, - "column": 35 + "line": 122, + "column": 41 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4379, - "end": 4380, + "start": 5434, + "end": 5435, "loc": { "start": { - "line": 94, - "column": 35 + "line": 122, + "column": 41 }, "end": { - "line": 94, - "column": 36 + "line": 122, + "column": 42 } } }, @@ -33317,42 +38108,17 @@ "postfix": false, "binop": null }, - "value": "pInstance", - "start": 4380, - "end": 4389, - "loc": { - "start": { - "line": 94, - "column": 36 - }, - "end": { - "line": 94, - "column": 45 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4389, - "end": 4390, + "value": "width", + "start": 5435, + "end": 5440, "loc": { "start": { - "line": 94, - "column": 45 + "line": 122, + "column": 42 }, "end": { - "line": 94, - "column": 46 + "line": 122, + "column": 47 } } }, @@ -33369,32 +38135,16 @@ "binop": null, "updateContext": null }, - "start": 4390, - "end": 4391, + "start": 5440, + "end": 5441, "loc": { "start": { - "line": 94, - "column": 46 - }, - "end": { - "line": 94, + "line": 122, "column": 47 - } - } - }, - { - "type": "CommentLine", - "value": " Position the left clone", - "start": 4409, - "end": 4435, - "loc": { - "start": { - "line": 95, - "column": 16 }, "end": { - "line": 95, - "column": 42 + "line": 122, + "column": 48 } } }, @@ -33410,17 +38160,17 @@ "postfix": false, "binop": null }, - "value": "left", - "start": 4453, - "end": 4457, + "value": "right", + "start": 5455, + "end": 5460, "loc": { "start": { - "line": 96, - "column": 16 + "line": 123, + "column": 12 }, "end": { - "line": 96, - "column": 20 + "line": 123, + "column": 17 } } }, @@ -33437,16 +38187,16 @@ "binop": null, "updateContext": null }, - "start": 4457, - "end": 4458, + "start": 5460, + "end": 5461, "loc": { "start": { - "line": 96, - "column": 20 + "line": 123, + "column": 17 }, "end": { - "line": 96, - "column": 21 + "line": 123, + "column": 18 } } }, @@ -33462,17 +38212,17 @@ "postfix": false, "binop": null }, - "value": "x", - "start": 4458, - "end": 4459, + "value": "y", + "start": 5461, + "end": 5462, "loc": { "start": { - "line": 96, - "column": 21 + "line": 123, + "column": 18 }, "end": { - "line": 96, - "column": 22 + "line": 123, + "column": 19 } } }, @@ -33490,16 +38240,16 @@ "updateContext": null }, "value": "=", - "start": 4460, - "end": 4461, + "start": 5463, + "end": 5464, "loc": { "start": { - "line": 96, - "column": 23 + "line": 123, + "column": 20 }, "end": { - "line": 96, - "column": 24 + "line": 123, + "column": 21 } } }, @@ -33515,76 +38265,66 @@ "postfix": false, "binop": null }, - "value": "pX", - "start": 4462, - "end": 4464, + "value": "pY", + "start": 5465, + "end": 5467, "loc": { "start": { - "line": 96, - "column": 25 + "line": 123, + "column": 22 }, "end": { - "line": 96, - "column": 27 + "line": 123, + "column": 24 } } }, { "type": { - "label": "+/-", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, + "binop": null, "updateContext": null }, - "value": "-", - "start": 4465, - "end": 4466, + "start": 5467, + "end": 5468, "loc": { "start": { - "line": 96, - "column": 28 + "line": 123, + "column": 24 }, "end": { - "line": 96, - "column": 29 + "line": 123, + "column": 25 } } }, { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 4467, - "end": 4476, + "type": "CommentLine", + "value": " Store the clones in a temporary array", + "start": 5482, + "end": 5522, "loc": { "start": { - "line": 96, - "column": 30 + "line": 124, + "column": 12 }, "end": { - "line": 96, - "column": 39 + "line": 124, + "column": 52 } } }, { "type": { - "label": ".", + "label": "const", + "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -33595,16 +38335,17 @@ "binop": null, "updateContext": null }, - "start": 4476, - "end": 4477, + "value": "const", + "start": 5536, + "end": 5541, "loc": { "start": { - "line": 96, - "column": 39 + "line": 125, + "column": 12 }, "end": { - "line": 96, - "column": 40 + "line": 125, + "column": 17 } } }, @@ -33620,77 +38361,52 @@ "postfix": false, "binop": null }, - "value": "icon", - "start": 4477, - "end": 4481, + "value": "children", + "start": 5542, + "end": 5550, "loc": { "start": { - "line": 96, - "column": 40 + "line": 125, + "column": 18 }, "end": { - "line": 96, - "column": 44 + "line": 125, + "column": 26 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 4481, - "end": 4482, - "loc": { - "start": { - "line": 96, - "column": 44 - }, - "end": { - "line": 96, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "width", - "start": 4482, - "end": 4487, + "value": "=", + "start": 5551, + "end": 5552, "loc": { "start": { - "line": 96, - "column": 45 + "line": 125, + "column": 27 }, "end": { - "line": 96, - "column": 50 + "line": 125, + "column": 28 } } }, { "type": { - "label": ";", + "label": "[", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -33699,16 +38415,16 @@ "binop": null, "updateContext": null }, - "start": 4487, - "end": 4488, + "start": 5553, + "end": 5554, "loc": { "start": { - "line": 96, - "column": 50 + "line": 125, + "column": 29 }, "end": { - "line": 96, - "column": 51 + "line": 125, + "column": 30 } } }, @@ -33725,23 +38441,23 @@ "binop": null }, "value": "left", - "start": 4506, - "end": 4510, + "start": 5554, + "end": 5558, "loc": { "start": { - "line": 97, - "column": 16 + "line": 125, + "column": 30 }, "end": { - "line": 97, - "column": 20 + "line": 125, + "column": 34 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -33751,16 +38467,16 @@ "binop": null, "updateContext": null }, - "start": 4510, - "end": 4511, + "start": 5558, + "end": 5559, "loc": { "start": { - "line": 97, - "column": 20 + "line": 125, + "column": 34 }, "end": { - "line": 97, - "column": 21 + "line": 125, + "column": 35 } } }, @@ -33776,70 +38492,43 @@ "postfix": false, "binop": null }, - "value": "y", - "start": 4511, - "end": 4512, + "value": "right", + "start": 5560, + "end": 5565, "loc": { "start": { - "line": 97, - "column": 21 + "line": 125, + "column": 36 }, "end": { - "line": 97, - "column": 22 + "line": 125, + "column": 41 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": "]", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 4513, - "end": 4514, - "loc": { - "start": { - "line": 97, - "column": 23 - }, - "end": { - "line": 97, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pY", - "start": 4515, - "end": 4517, + "start": 5565, + "end": 5566, "loc": { "start": { - "line": 97, - "column": 25 + "line": 125, + "column": 41 }, "end": { - "line": 97, - "column": 27 + "line": 125, + "column": 42 } } }, @@ -33856,32 +38545,32 @@ "binop": null, "updateContext": null }, - "start": 4517, - "end": 4518, + "start": 5566, + "end": 5567, "loc": { "start": { - "line": 97, - "column": 27 + "line": 125, + "column": 42 }, "end": { - "line": 97, - "column": 28 + "line": 125, + "column": 43 } } }, { "type": "CommentLine", - "value": " Position the right clone", - "start": 4536, - "end": 4563, + "value": " Loop the clones and store their relative positions to the main instance", + "start": 5581, + "end": 5655, "loc": { "start": { - "line": 98, - "column": 16 + "line": 126, + "column": 12 }, "end": { - "line": 98, - "column": 43 + "line": 126, + "column": 86 } } }, @@ -33897,17 +38586,17 @@ "postfix": false, "binop": null }, - "value": "right", - "start": 4581, - "end": 4586, + "value": "children", + "start": 5669, + "end": 5677, "loc": { "start": { - "line": 99, - "column": 16 + "line": 127, + "column": 12 }, "end": { - "line": 99, - "column": 21 + "line": 127, + "column": 20 } } }, @@ -33924,16 +38613,16 @@ "binop": null, "updateContext": null }, - "start": 4586, - "end": 4587, + "start": 5677, + "end": 5678, "loc": { "start": { - "line": 99, - "column": 21 + "line": 127, + "column": 20 }, "end": { - "line": 99, - "column": 22 + "line": 127, + "column": 21 } } }, @@ -33949,44 +38638,67 @@ "postfix": false, "binop": null }, - "value": "x", - "start": 4587, - "end": 4588, + "value": "forEach", + "start": 5678, + "end": 5685, "loc": { "start": { - "line": 99, - "column": 22 + "line": 127, + "column": 21 + }, + "end": { + "line": 127, + "column": 28 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5685, + "end": 5686, + "loc": { + "start": { + "line": 127, + "column": 28 }, "end": { - "line": 99, - "column": 23 + "line": 127, + "column": 29 } } }, { "type": { - "label": "=", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 4589, - "end": 4590, + "start": 5686, + "end": 5687, "loc": { "start": { - "line": 99, - "column": 24 + "line": 127, + "column": 29 }, "end": { - "line": 99, - "column": 25 + "line": 127, + "column": 30 } } }, @@ -34002,96 +38714,93 @@ "postfix": false, "binop": null }, - "value": "pX", - "start": 4591, - "end": 4593, + "value": "pChild", + "start": 5687, + "end": 5693, "loc": { "start": { - "line": 99, - "column": 26 + "line": 127, + "column": 30 }, "end": { - "line": 99, - "column": 28 + "line": 127, + "column": 36 } } }, { "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, - "updateContext": null + "binop": null }, - "value": "+", - "start": 4594, - "end": 4595, + "start": 5693, + "end": 5694, "loc": { "start": { - "line": 99, - "column": 29 + "line": 127, + "column": 36 }, "end": { - "line": 99, - "column": 30 + "line": 127, + "column": 37 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "=>", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "pInstance", - "start": 4596, - "end": 4605, + "start": 5695, + "end": 5697, "loc": { "start": { - "line": 99, - "column": 31 + "line": 127, + "column": 38 }, "end": { - "line": 99, + "line": 127, "column": 40 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4605, - "end": 4606, + "start": 5698, + "end": 5699, "loc": { "start": { - "line": 99, - "column": 40 + "line": 127, + "column": 41 }, "end": { - "line": 99, - "column": 41 + "line": 127, + "column": 42 } } }, @@ -34107,17 +38816,17 @@ "postfix": false, "binop": null }, - "value": "icon", - "start": 4606, - "end": 4610, + "value": "pChild", + "start": 5717, + "end": 5723, "loc": { "start": { - "line": 99, - "column": 41 + "line": 128, + "column": 16 }, "end": { - "line": 99, - "column": 45 + "line": 128, + "column": 22 } } }, @@ -34134,16 +38843,16 @@ "binop": null, "updateContext": null }, - "start": 4610, - "end": 4611, + "start": 5723, + "end": 5724, "loc": { "start": { - "line": 99, - "column": 45 + "line": 128, + "column": 22 }, "end": { - "line": 99, - "column": 46 + "line": 128, + "column": 23 } } }, @@ -34159,43 +38868,44 @@ "postfix": false, "binop": null }, - "value": "width", - "start": 4611, - "end": 4616, + "value": "relativeX", + "start": 5724, + "end": 5733, "loc": { "start": { - "line": 99, - "column": 46 + "line": 128, + "column": 23 }, "end": { - "line": 99, - "column": 51 + "line": 128, + "column": 32 } } }, { "type": { - "label": ";", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 4616, - "end": 4617, + "value": "=", + "start": 5734, + "end": 5735, "loc": { "start": { - "line": 99, - "column": 51 + "line": 128, + "column": 33 }, "end": { - "line": 99, - "column": 52 + "line": 128, + "column": 34 } } }, @@ -34211,17 +38921,17 @@ "postfix": false, "binop": null }, - "value": "right", - "start": 4635, - "end": 4640, + "value": "pChild", + "start": 5736, + "end": 5742, "loc": { "start": { - "line": 100, - "column": 16 + "line": 128, + "column": 35 }, "end": { - "line": 100, - "column": 21 + "line": 128, + "column": 41 } } }, @@ -34238,16 +38948,16 @@ "binop": null, "updateContext": null }, - "start": 4640, - "end": 4641, + "start": 5742, + "end": 5743, "loc": { "start": { - "line": 100, - "column": 21 + "line": 128, + "column": 41 }, "end": { - "line": 100, - "column": 22 + "line": 128, + "column": 42 } } }, @@ -34263,44 +38973,44 @@ "postfix": false, "binop": null }, - "value": "y", - "start": 4641, - "end": 4642, + "value": "x", + "start": 5743, + "end": 5744, "loc": { "start": { - "line": 100, - "column": 22 + "line": 128, + "column": 42 }, "end": { - "line": 100, - "column": 23 + "line": 128, + "column": 43 } } }, { "type": { - "label": "=", + "label": "+/-", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, - "prefix": false, + "isAssign": false, + "prefix": true, "postfix": false, - "binop": null, + "binop": 9, "updateContext": null }, - "value": "=", - "start": 4643, - "end": 4644, + "value": "-", + "start": 5745, + "end": 5746, "loc": { "start": { - "line": 100, - "column": 24 + "line": 128, + "column": 44 }, "end": { - "line": 100, - "column": 25 + "line": 128, + "column": 45 } } }, @@ -34316,17 +39026,17 @@ "postfix": false, "binop": null }, - "value": "pY", - "start": 4645, - "end": 4647, + "value": "pX", + "start": 5747, + "end": 5749, "loc": { "start": { - "line": 100, - "column": 26 + "line": 128, + "column": 46 }, "end": { - "line": 100, - "column": 28 + "line": 128, + "column": 48 } } }, @@ -34343,39 +39053,48 @@ "binop": null, "updateContext": null }, - "start": 4647, - "end": 4648, + "start": 5749, + "end": 5750, "loc": { "start": { - "line": 100, - "column": 28 + "line": 128, + "column": 48 }, "end": { - "line": 100, - "column": 29 + "line": 128, + "column": 49 } } }, { - "type": "CommentLine", - "value": " Store the clones in a temporary array", - "start": 4666, - "end": 4706, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pChild", + "start": 5768, + "end": 5774, "loc": { "start": { - "line": 101, + "line": 129, "column": 16 }, "end": { - "line": 101, - "column": 56 + "line": 129, + "column": 22 } } }, { "type": { - "label": "const", - "keyword": "const", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -34386,17 +39105,16 @@ "binop": null, "updateContext": null }, - "value": "const", - "start": 4724, - "end": 4729, + "start": 5774, + "end": 5775, "loc": { "start": { - "line": 102, - "column": 16 + "line": 129, + "column": 22 }, "end": { - "line": 102, - "column": 21 + "line": 129, + "column": 23 } } }, @@ -34412,17 +39130,17 @@ "postfix": false, "binop": null }, - "value": "children", - "start": 4730, - "end": 4738, + "value": "relativeY", + "start": 5775, + "end": 5784, "loc": { "start": { - "line": 102, - "column": 22 + "line": 129, + "column": 23 }, "end": { - "line": 102, - "column": 30 + "line": 129, + "column": 32 } } }, @@ -34440,146 +39158,147 @@ "updateContext": null }, "value": "=", - "start": 4739, - "end": 4740, + "start": 5785, + "end": 5786, "loc": { "start": { - "line": 102, - "column": 31 + "line": 129, + "column": 33 }, "end": { - "line": 102, - "column": 32 + "line": 129, + "column": 34 } } }, { "type": { - "label": "[", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4741, - "end": 4742, + "value": "pChild", + "start": 5787, + "end": 5793, "loc": { "start": { - "line": 102, - "column": 33 + "line": 129, + "column": 35 }, "end": { - "line": 102, - "column": 34 + "line": 129, + "column": 41 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "left", - "start": 4742, - "end": 4746, + "start": 5793, + "end": 5794, "loc": { "start": { - "line": 102, - "column": 34 + "line": 129, + "column": 41 }, "end": { - "line": 102, - "column": 38 + "line": 129, + "column": 42 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4746, - "end": 4747, + "value": "y", + "start": 5794, + "end": 5795, "loc": { "start": { - "line": 102, - "column": 38 + "line": 129, + "column": 42 }, "end": { - "line": 102, - "column": 39 + "line": 129, + "column": 43 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "+/-", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null + "binop": 9, + "updateContext": null }, - "value": "right", - "start": 4748, - "end": 4753, + "value": "-", + "start": 5796, + "end": 5797, "loc": { "start": { - "line": 102, - "column": 40 + "line": 129, + "column": 44 }, "end": { - "line": 102, + "line": 129, "column": 45 } } }, { "type": { - "label": "]", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4753, - "end": 4754, + "value": "pY", + "start": 5798, + "end": 5800, "loc": { "start": { - "line": 102, - "column": 45 + "line": 129, + "column": 46 }, "end": { - "line": 102, - "column": 46 + "line": 129, + "column": 48 } } }, @@ -34596,40 +39315,49 @@ "binop": null, "updateContext": null }, - "start": 4754, - "end": 4755, + "start": 5800, + "end": 5801, "loc": { "start": { - "line": 102, - "column": 46 + "line": 129, + "column": 48 }, "end": { - "line": 102, - "column": 47 + "line": 129, + "column": 49 } } }, { - "type": "CommentLine", - "value": " Loop the clones and store their relative positions to the main instance", - "start": 4773, - "end": 4847, + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5815, + "end": 5816, "loc": { "start": { - "line": 103, - "column": 16 + "line": 130, + "column": 12 }, "end": { - "line": 103, - "column": 90 + "line": 130, + "column": 13 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -34637,24 +39365,23 @@ "postfix": false, "binop": null }, - "value": "children", - "start": 4865, - "end": 4873, + "start": 5816, + "end": 5817, "loc": { "start": { - "line": 104, - "column": 16 + "line": 130, + "column": 13 }, "end": { - "line": 104, - "column": 24 + "line": 130, + "column": 14 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -34664,74 +39391,67 @@ "binop": null, "updateContext": null }, - "start": 4873, - "end": 4874, + "start": 5817, + "end": 5818, "loc": { "start": { - "line": 104, - "column": 24 + "line": 130, + "column": 14 }, "end": { - "line": 104, - "column": 25 + "line": 130, + "column": 15 } } }, { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "forEach", - "start": 4874, - "end": 4881, + "type": "CommentLine", + "value": " Do not mutate event if one is found. Call alongside it.", + "start": 5834, + "end": 5892, "loc": { "start": { - "line": 104, - "column": 25 + "line": 132, + "column": 12 }, "end": { - "line": 104, - "column": 32 + "line": 132, + "column": 70 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 4881, - "end": 4882, + "value": "const", + "start": 5906, + "end": 5911, "loc": { "start": { - "line": 104, - "column": 32 + "line": 133, + "column": 12 }, "end": { - "line": 104, - "column": 33 + "line": 133, + "column": 17 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -34740,50 +39460,52 @@ "postfix": false, "binop": null }, - "start": 4882, - "end": 4883, + "value": "oldRelocatedEvent", + "start": 5912, + "end": 5929, "loc": { "start": { - "line": 104, - "column": 33 + "line": 133, + "column": 18 }, "end": { - "line": 104, - "column": 34 + "line": 133, + "column": 35 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "=", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "pChild", - "start": 4883, - "end": 4889, + "value": "=", + "start": 5930, + "end": 5931, "loc": { "start": { - "line": 104, - "column": 34 + "line": 133, + "column": 36 }, "end": { - "line": 104, - "column": 40 + "line": 133, + "column": 37 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -34791,23 +39513,24 @@ "postfix": false, "binop": null }, - "start": 4889, - "end": 4890, + "value": "pInstance", + "start": 5932, + "end": 5941, "loc": { "start": { - "line": 104, - "column": 40 + "line": 133, + "column": 38 }, "end": { - "line": 104, - "column": 41 + "line": 133, + "column": 47 } } }, { "type": { - "label": "=>", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -34817,23 +39540,23 @@ "binop": null, "updateContext": null }, - "start": 4891, - "end": 4893, + "start": 5941, + "end": 5942, "loc": { "start": { - "line": 104, - "column": 42 + "line": 133, + "column": 47 }, "end": { - "line": 104, - "column": 44 + "line": 133, + "column": 48 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -34842,48 +39565,66 @@ "postfix": false, "binop": null }, - "start": 4894, - "end": 4895, + "value": "onRelocated", + "start": 5942, + "end": 5953, "loc": { "start": { - "line": 104, - "column": 45 + "line": 133, + "column": 48 }, "end": { - "line": 104, - "column": 46 + "line": 133, + "column": 59 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "pChild", - "start": 4917, - "end": 4923, + "start": 5953, + "end": 5954, + "loc": { + "start": { + "line": 133, + "column": 59 + }, + "end": { + "line": 133, + "column": 60 + } + } + }, + { + "type": "CommentLine", + "value": " When the main instance moves, move the clones with their relative position to it.", + "start": 5968, + "end": 6052, "loc": { "start": { - "line": 105, - "column": 20 + "line": 134, + "column": 12 }, "end": { - "line": 105, - "column": 26 + "line": 134, + "column": 96 } } }, { "type": { - "label": ".", + "label": "if", + "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -34894,23 +39635,24 @@ "binop": null, "updateContext": null }, - "start": 4923, - "end": 4924, + "value": "if", + "start": 6066, + "end": 6068, "loc": { "start": { - "line": 105, - "column": 26 + "line": 135, + "column": 12 }, "end": { - "line": 105, - "column": 27 + "line": 135, + "column": 14 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -34919,44 +39661,44 @@ "postfix": false, "binop": null }, - "value": "relativeX", - "start": 4924, - "end": 4933, + "start": 6069, + "end": 6070, "loc": { "start": { - "line": 105, - "column": 27 + "line": 135, + "column": 15 }, "end": { - "line": 105, - "column": 36 + "line": 135, + "column": 16 } } }, { "type": { - "label": "=", + "label": "typeof", + "keyword": "typeof", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, - "prefix": false, + "isAssign": false, + "prefix": true, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 4934, - "end": 4935, + "value": "typeof", + "start": 6070, + "end": 6076, "loc": { "start": { - "line": 105, - "column": 37 + "line": 135, + "column": 16 }, "end": { - "line": 105, - "column": 38 + "line": 135, + "column": 22 } } }, @@ -34972,49 +39714,50 @@ "postfix": false, "binop": null }, - "value": "pChild", - "start": 4936, - "end": 4942, + "value": "oldRelocatedEvent", + "start": 6077, + "end": 6094, "loc": { "start": { - "line": 105, - "column": 39 + "line": 135, + "column": 23 }, "end": { - "line": 105, - "column": 45 + "line": 135, + "column": 40 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "==/!=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 6, "updateContext": null }, - "start": 4942, - "end": 4943, + "value": "===", + "start": 6095, + "end": 6098, "loc": { "start": { - "line": 105, - "column": 45 + "line": 135, + "column": 41 }, "end": { - "line": 105, - "column": 46 + "line": 135, + "column": 44 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -35022,54 +39765,28 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null - }, - "value": "x", - "start": 4943, - "end": 4944, - "loc": { - "start": { - "line": 105, - "column": 46 - }, - "end": { - "line": 105, - "column": 47 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, + "binop": null, "updateContext": null }, - "value": "-", - "start": 4945, - "end": 4946, + "value": "function", + "start": 6099, + "end": 6109, "loc": { "start": { - "line": 105, - "column": 48 + "line": 135, + "column": 45 }, "end": { - "line": 105, - "column": 49 + "line": 135, + "column": 55 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -35077,43 +39794,41 @@ "postfix": false, "binop": null }, - "value": "pX", - "start": 4947, - "end": 4949, + "start": 6109, + "end": 6110, "loc": { "start": { - "line": 105, - "column": 50 + "line": 135, + "column": 55 }, "end": { - "line": 105, - "column": 52 + "line": 135, + "column": 56 } } }, { "type": { - "label": ";", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4949, - "end": 4950, + "start": 6111, + "end": 6112, "loc": { "start": { - "line": 105, - "column": 52 + "line": 135, + "column": 57 }, "end": { - "line": 105, - "column": 53 + "line": 135, + "column": 58 } } }, @@ -35129,17 +39844,17 @@ "postfix": false, "binop": null }, - "value": "pChild", - "start": 4972, - "end": 4978, + "value": "pInstance", + "start": 6130, + "end": 6139, "loc": { "start": { - "line": 106, - "column": 20 + "line": 136, + "column": 16 }, "end": { - "line": 106, - "column": 26 + "line": 136, + "column": 25 } } }, @@ -35156,16 +39871,16 @@ "binop": null, "updateContext": null }, - "start": 4978, - "end": 4979, + "start": 6139, + "end": 6140, "loc": { "start": { - "line": 106, - "column": 26 + "line": 136, + "column": 25 }, "end": { - "line": 106, - "column": 27 + "line": 136, + "column": 26 } } }, @@ -35181,17 +39896,17 @@ "postfix": false, "binop": null }, - "value": "relativeY", - "start": 4979, - "end": 4988, + "value": "onRelocated", + "start": 6140, + "end": 6151, "loc": { "start": { - "line": 106, - "column": 27 + "line": 136, + "column": 26 }, "end": { - "line": 106, - "column": 36 + "line": 136, + "column": 37 } } }, @@ -35209,16 +39924,41 @@ "updateContext": null }, "value": "=", - "start": 4989, - "end": 4990, + "start": 6152, + "end": 6153, "loc": { "start": { - "line": 106, - "column": 37 + "line": 136, + "column": 38 }, "end": { - "line": 106, - "column": 38 + "line": 136, + "column": 39 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6154, + "end": 6155, + "loc": { + "start": { + "line": 136, + "column": 40 + }, + "end": { + "line": 136, + "column": 41 } } }, @@ -35234,24 +39974,24 @@ "postfix": false, "binop": null }, - "value": "pChild", - "start": 4991, - "end": 4997, + "value": "pX", + "start": 6155, + "end": 6157, "loc": { "start": { - "line": 106, - "column": 39 + "line": 136, + "column": 41 }, "end": { - "line": 106, - "column": 45 + "line": 136, + "column": 43 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -35261,16 +40001,16 @@ "binop": null, "updateContext": null }, - "start": 4997, - "end": 4998, + "start": 6157, + "end": 6158, "loc": { "start": { - "line": 106, - "column": 45 + "line": 136, + "column": 43 }, "end": { - "line": 106, - "column": 46 + "line": 136, + "column": 44 } } }, @@ -35286,104 +40026,101 @@ "postfix": false, "binop": null }, - "value": "y", - "start": 4998, - "end": 4999, + "value": "pY", + "start": 6159, + "end": 6161, "loc": { "start": { - "line": 106, - "column": 46 + "line": 136, + "column": 45 }, "end": { - "line": 106, + "line": 136, "column": 47 } } }, { "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, - "updateContext": null + "binop": null }, - "value": "-", - "start": 5000, - "end": 5001, + "start": 6161, + "end": 6162, "loc": { "start": { - "line": 106, - "column": 48 + "line": 136, + "column": 47 }, "end": { - "line": 106, - "column": 49 + "line": 136, + "column": 48 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "=>", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "pY", - "start": 5002, - "end": 5004, + "start": 6163, + "end": 6165, "loc": { "start": { - "line": 106, - "column": 50 + "line": 136, + "column": 49 }, "end": { - "line": 106, - "column": 52 + "line": 136, + "column": 51 } } }, { "type": { - "label": ";", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 5004, - "end": 5005, + "start": 6166, + "end": 6167, "loc": { "start": { - "line": 106, + "line": 136, "column": 52 }, "end": { - "line": 106, + "line": 136, "column": 53 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -35391,22 +40128,23 @@ "postfix": false, "binop": null }, - "start": 5023, - "end": 5024, + "value": "oldRelocatedEvent", + "start": 6189, + "end": 6206, "loc": { "start": { - "line": 107, - "column": 16 + "line": 137, + "column": 20 }, "end": { - "line": 107, - "column": 17 + "line": 137, + "column": 37 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -35414,60 +40152,70 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5024, - "end": 5025, + "start": 6206, + "end": 6207, "loc": { "start": { - "line": 107, - "column": 17 + "line": 137, + "column": 37 }, "end": { - "line": 107, - "column": 18 + "line": 137, + "column": 38 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 5025, - "end": 5026, + "value": "call", + "start": 6207, + "end": 6211, "loc": { "start": { - "line": 107, - "column": 18 + "line": 137, + "column": 38 }, "end": { - "line": 107, - "column": 19 + "line": 137, + "column": 42 } } }, { - "type": "CommentLine", - "value": " When the main instance moves, move the clones with their relative position to it.", - "start": 5044, - "end": 5128, + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6211, + "end": 6212, "loc": { "start": { - "line": 108, - "column": 16 + "line": 137, + "column": 42 }, "end": { - "line": 108, - "column": 100 + "line": 137, + "column": 43 } } }, @@ -35484,23 +40232,23 @@ "binop": null }, "value": "pInstance", - "start": 5146, - "end": 5155, + "start": 6212, + "end": 6221, "loc": { "start": { - "line": 109, - "column": 16 + "line": 137, + "column": 43 }, "end": { - "line": 109, - "column": 25 + "line": 137, + "column": 52 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -35510,16 +40258,16 @@ "binop": null, "updateContext": null }, - "start": 5155, - "end": 5156, + "start": 6221, + "end": 6222, "loc": { "start": { - "line": 109, - "column": 25 + "line": 137, + "column": 52 }, "end": { - "line": 109, - "column": 26 + "line": 137, + "column": 53 } } }, @@ -35535,51 +40283,49 @@ "postfix": false, "binop": null }, - "value": "onRelocated", - "start": 5156, - "end": 5167, + "value": "pX", + "start": 6223, + "end": 6225, "loc": { "start": { - "line": 109, - "column": 26 + "line": 137, + "column": 54 }, "end": { - "line": 109, - "column": 37 + "line": 137, + "column": 56 } } }, { "type": { - "label": "=", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 5168, - "end": 5169, + "start": 6225, + "end": 6226, "loc": { "start": { - "line": 109, - "column": 38 + "line": 137, + "column": 56 }, "end": { - "line": 109, - "column": 39 + "line": 137, + "column": 57 } } }, { "type": { - "label": "function", - "keyword": "function", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -35589,25 +40335,25 @@ "postfix": false, "binop": null }, - "value": "function", - "start": 5170, - "end": 5178, + "value": "pY", + "start": 6227, + "end": 6229, "loc": { "start": { - "line": 109, - "column": 40 + "line": 137, + "column": 58 }, "end": { - "line": 109, - "column": 48 + "line": 137, + "column": 60 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -35615,50 +40361,51 @@ "postfix": false, "binop": null }, - "start": 5178, - "end": 5179, + "start": 6229, + "end": 6230, "loc": { "start": { - "line": 109, - "column": 48 + "line": 137, + "column": 60 }, "end": { - "line": 109, - "column": 49 + "line": 137, + "column": 61 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "pX", - "start": 5179, - "end": 5181, + "start": 6230, + "end": 6231, "loc": { "start": { - "line": 109, - "column": 49 + "line": 137, + "column": 61 }, "end": { - "line": 109, - "column": 51 + "line": 137, + "column": 62 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -35667,50 +40414,51 @@ "binop": null, "updateContext": null }, - "start": 5181, - "end": 5182, + "value": "this", + "start": 6253, + "end": 6257, "loc": { "start": { - "line": 109, - "column": 51 + "line": 138, + "column": 20 }, "end": { - "line": 109, - "column": 52 + "line": 138, + "column": 24 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "pY", - "start": 5183, - "end": 5185, + "start": 6257, + "end": 6258, "loc": { "start": { - "line": 109, - "column": 53 + "line": 138, + "column": 24 }, "end": { - "line": 109, - "column": 55 + "line": 138, + "column": 25 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -35718,22 +40466,23 @@ "postfix": false, "binop": null }, - "start": 5185, - "end": 5186, + "value": "handleOnRelocated", + "start": 6258, + "end": 6275, "loc": { "start": { - "line": 109, - "column": 55 + "line": 138, + "column": 25 }, "end": { - "line": 109, - "column": 56 + "line": 138, + "column": 42 } } }, { "type": { - "label": "{", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -35743,32 +40492,16 @@ "postfix": false, "binop": null }, - "start": 5187, - "end": 5188, - "loc": { - "start": { - "line": 109, - "column": 57 - }, - "end": { - "line": 109, - "column": 58 - } - } - }, - { - "type": "CommentLine", - "value": " Update the children's position when the parent moves", - "start": 5210, - "end": 5265, + "start": 6275, + "end": 6276, "loc": { "start": { - "line": 110, - "column": 20 + "line": 138, + "column": 42 }, "end": { - "line": 110, - "column": 75 + "line": 138, + "column": 43 } } }, @@ -35784,24 +40517,24 @@ "postfix": false, "binop": null }, - "value": "children", - "start": 5287, - "end": 5295, + "value": "pInstance", + "start": 6276, + "end": 6285, "loc": { "start": { - "line": 111, - "column": 20 + "line": 138, + "column": 43 }, "end": { - "line": 111, - "column": 28 + "line": 138, + "column": 52 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -35811,16 +40544,16 @@ "binop": null, "updateContext": null }, - "start": 5295, - "end": 5296, + "start": 6285, + "end": 6286, "loc": { "start": { - "line": 111, - "column": 28 + "line": 138, + "column": 52 }, "end": { - "line": 111, - "column": 29 + "line": 138, + "column": 53 } } }, @@ -35836,25 +40569,25 @@ "postfix": false, "binop": null }, - "value": "forEach", - "start": 5296, - "end": 5303, + "value": "children", + "start": 6287, + "end": 6295, "loc": { "start": { - "line": 111, - "column": 29 + "line": 138, + "column": 54 }, "end": { - "line": 111, - "column": 36 + "line": 138, + "column": 62 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -35862,49 +40595,50 @@ "postfix": false, "binop": null }, - "start": 5303, - "end": 5304, + "start": 6295, + "end": 6296, "loc": { "start": { - "line": 111, - "column": 36 + "line": 138, + "column": 62 }, "end": { - "line": 111, - "column": 37 + "line": 138, + "column": 63 } } }, { "type": { - "label": "(", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5304, - "end": 5305, + "start": 6296, + "end": 6297, "loc": { "start": { - "line": 111, - "column": 37 + "line": 138, + "column": 63 }, "end": { - "line": 111, - "column": 38 + "line": 138, + "column": 64 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -35912,23 +40646,22 @@ "postfix": false, "binop": null }, - "value": "pChild", - "start": 5305, - "end": 5311, + "start": 6315, + "end": 6316, "loc": { "start": { - "line": 111, - "column": 38 + "line": 139, + "column": 16 }, "end": { - "line": 111, - "column": 44 + "line": 139, + "column": 17 } } }, { "type": { - "label": ")", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -35938,22 +40671,23 @@ "postfix": false, "binop": null }, - "start": 5311, - "end": 5312, + "start": 6330, + "end": 6331, "loc": { "start": { - "line": 111, - "column": 44 + "line": 140, + "column": 12 }, "end": { - "line": 111, - "column": 45 + "line": 140, + "column": 13 } } }, { "type": { - "label": "=>", + "label": "else", + "keyword": "else", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -35964,16 +40698,17 @@ "binop": null, "updateContext": null }, - "start": 5313, - "end": 5315, + "value": "else", + "start": 6332, + "end": 6336, "loc": { "start": { - "line": 111, - "column": 46 + "line": 140, + "column": 14 }, "end": { - "line": 111, - "column": 48 + "line": 140, + "column": 18 } } }, @@ -35989,16 +40724,16 @@ "postfix": false, "binop": null }, - "start": 5316, - "end": 5317, + "start": 6337, + "end": 6338, "loc": { "start": { - "line": 111, - "column": 49 + "line": 140, + "column": 19 }, "end": { - "line": 111, - "column": 50 + "line": 140, + "column": 20 } } }, @@ -36014,17 +40749,17 @@ "postfix": false, "binop": null }, - "value": "pChild", - "start": 5343, - "end": 5349, + "value": "pInstance", + "start": 6356, + "end": 6365, "loc": { "start": { - "line": 112, - "column": 24 + "line": 141, + "column": 16 }, "end": { - "line": 112, - "column": 30 + "line": 141, + "column": 25 } } }, @@ -36041,16 +40776,16 @@ "binop": null, "updateContext": null }, - "start": 5349, - "end": 5350, + "start": 6365, + "end": 6366, "loc": { "start": { - "line": 112, - "column": 30 + "line": 141, + "column": 25 }, "end": { - "line": 112, - "column": 31 + "line": 141, + "column": 26 } } }, @@ -36066,17 +40801,17 @@ "postfix": false, "binop": null }, - "value": "x", - "start": 5350, - "end": 5351, + "value": "onRelocated", + "start": 6366, + "end": 6377, "loc": { "start": { - "line": 112, - "column": 31 + "line": 141, + "column": 26 }, "end": { - "line": 112, - "column": 32 + "line": 141, + "column": 37 } } }, @@ -36094,131 +40829,127 @@ "updateContext": null }, "value": "=", - "start": 5352, - "end": 5353, + "start": 6378, + "end": 6379, "loc": { "start": { - "line": 112, - "column": 33 + "line": 141, + "column": 38 }, "end": { - "line": 112, - "column": 34 + "line": 141, + "column": 39 } } }, { "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 5354, - "end": 5358, + "start": 6380, + "end": 6381, "loc": { "start": { - "line": 112, - "column": 35 + "line": 141, + "column": 40 }, "end": { - "line": 112, - "column": 39 + "line": 141, + "column": 41 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 5358, - "end": 5359, + "value": "pX", + "start": 6381, + "end": 6383, "loc": { "start": { - "line": 112, - "column": 39 + "line": 141, + "column": 41 }, "end": { - "line": 112, - "column": 40 + "line": 141, + "column": 43 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "x", - "start": 5359, - "end": 5360, + "start": 6383, + "end": 6384, "loc": { "start": { - "line": 112, - "column": 40 + "line": 141, + "column": 43 }, "end": { - "line": 112, - "column": 41 + "line": 141, + "column": 44 } } }, { "type": { - "label": "+/-", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, - "updateContext": null + "binop": null }, - "value": "+", - "start": 5361, - "end": 5362, + "value": "pY", + "start": 6385, + "end": 6387, "loc": { "start": { - "line": 112, - "column": 42 + "line": 141, + "column": 45 }, "end": { - "line": 112, - "column": 43 + "line": 141, + "column": 47 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -36226,24 +40957,23 @@ "postfix": false, "binop": null }, - "value": "pChild", - "start": 5363, - "end": 5369, + "start": 6387, + "end": 6388, "loc": { "start": { - "line": 112, - "column": 44 + "line": 141, + "column": 47 }, "end": { - "line": 112, - "column": 50 + "line": 141, + "column": 48 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=>", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -36253,23 +40983,23 @@ "binop": null, "updateContext": null }, - "start": 5369, - "end": 5370, + "start": 6389, + "end": 6391, "loc": { "start": { - "line": 112, - "column": 50 + "line": 141, + "column": 49 }, "end": { - "line": 112, + "line": 141, "column": 51 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -36278,24 +41008,51 @@ "postfix": false, "binop": null }, - "value": "relativeX", - "start": 5370, - "end": 5379, + "start": 6392, + "end": 6393, "loc": { "start": { - "line": 112, - "column": 51 + "line": 141, + "column": 52 }, "end": { - "line": 112, - "column": 60 + "line": 141, + "column": 53 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 6415, + "end": 6419, + "loc": { + "start": { + "line": 142, + "column": 20 + }, + "end": { + "line": 142, + "column": 24 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -36305,16 +41062,16 @@ "binop": null, "updateContext": null }, - "start": 5379, - "end": 5380, + "start": 6419, + "end": 6420, "loc": { "start": { - "line": 112, - "column": 60 + "line": 142, + "column": 24 }, "end": { - "line": 112, - "column": 61 + "line": 142, + "column": 25 } } }, @@ -36330,43 +41087,42 @@ "postfix": false, "binop": null }, - "value": "pChild", - "start": 5406, - "end": 5412, + "value": "handleOnRelocated", + "start": 6420, + "end": 6437, "loc": { "start": { - "line": 113, - "column": 24 + "line": 142, + "column": 25 }, "end": { - "line": 113, - "column": 30 + "line": 142, + "column": 42 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 5412, - "end": 5413, + "start": 6437, + "end": 6438, "loc": { "start": { - "line": 113, - "column": 30 + "line": 142, + "column": 42 }, "end": { - "line": 113, - "column": 31 + "line": 142, + "column": 43 } } }, @@ -36382,51 +41138,49 @@ "postfix": false, "binop": null }, - "value": "y", - "start": 5413, - "end": 5414, + "value": "pInstance", + "start": 6438, + "end": 6447, "loc": { "start": { - "line": 113, - "column": 31 + "line": 142, + "column": 43 }, "end": { - "line": 113, - "column": 32 + "line": 142, + "column": 52 } } }, { "type": { - "label": "=", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 5415, - "end": 5416, + "start": 6447, + "end": 6448, "loc": { "start": { - "line": 113, - "column": 33 + "line": 142, + "column": 52 }, "end": { - "line": 113, - "column": 34 + "line": 142, + "column": 53 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -36434,26 +41188,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 5417, - "end": 5421, + "value": "children", + "start": 6449, + "end": 6457, "loc": { "start": { - "line": 113, - "column": 35 + "line": 142, + "column": 54 }, "end": { - "line": 113, - "column": 39 + "line": 142, + "column": 62 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -36461,27 +41214,52 @@ "isAssign": false, "prefix": false, "postfix": false, + "binop": null + }, + "start": 6457, + "end": 6458, + "loc": { + "start": { + "line": 142, + "column": 62 + }, + "end": { + "line": 142, + "column": 63 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, "binop": null, "updateContext": null }, - "start": 5421, - "end": 5422, + "start": 6458, + "end": 6459, "loc": { "start": { - "line": 113, - "column": 39 + "line": 142, + "column": 63 }, "end": { - "line": 113, - "column": 40 + "line": 142, + "column": 64 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -36489,52 +41267,49 @@ "postfix": false, "binop": null }, - "value": "y", - "start": 5422, - "end": 5423, + "start": 6477, + "end": 6478, "loc": { "start": { - "line": 113, - "column": 40 + "line": 143, + "column": 16 }, "end": { - "line": 113, - "column": 41 + "line": 143, + "column": 17 } } }, { "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, + "label": "}", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, - "updateContext": null + "binop": null }, - "value": "+", - "start": 5424, - "end": 5425, + "start": 6492, + "end": 6493, "loc": { "start": { - "line": 113, - "column": 42 + "line": 144, + "column": 12 }, "end": { - "line": 113, - "column": 43 + "line": 144, + "column": 13 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -36542,23 +41317,23 @@ "postfix": false, "binop": null }, - "value": "pChild", - "start": 5426, - "end": 5432, + "start": 6503, + "end": 6504, "loc": { "start": { - "line": 113, - "column": 44 + "line": 145, + "column": 8 }, "end": { - "line": 113, - "column": 50 + "line": 145, + "column": 9 } } }, { "type": { - "label": ".", + "label": "const", + "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -36569,16 +41344,17 @@ "binop": null, "updateContext": null }, - "start": 5432, - "end": 5433, + "value": "const", + "start": 6514, + "end": 6519, "loc": { "start": { - "line": 113, - "column": 50 + "line": 146, + "column": 8 }, "end": { - "line": 113, - "column": 51 + "line": 146, + "column": 13 } } }, @@ -36594,43 +41370,44 @@ "postfix": false, "binop": null }, - "value": "relativeY", - "start": 5433, - "end": 5442, + "value": "viewEye", + "start": 6520, + "end": 6527, "loc": { "start": { - "line": 113, - "column": 51 + "line": 146, + "column": 14 }, "end": { - "line": 113, - "column": 60 + "line": 146, + "column": 21 } } }, { "type": { - "label": ";", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 5442, - "end": 5443, + "value": "=", + "start": 6528, + "end": 6529, "loc": { "start": { - "line": 113, - "column": 60 + "line": 146, + "column": 22 }, "end": { - "line": 113, - "column": 61 + "line": 146, + "column": 23 } } }, @@ -36646,17 +41423,17 @@ "postfix": false, "binop": null }, - "value": "pChild", - "start": 5469, - "end": 5475, + "value": "VYLO", + "start": 6530, + "end": 6534, "loc": { "start": { - "line": 114, + "line": 146, "column": 24 }, "end": { - "line": 114, - "column": 30 + "line": 146, + "column": 28 } } }, @@ -36673,16 +41450,16 @@ "binop": null, "updateContext": null }, - "start": 5475, - "end": 5476, + "start": 6534, + "end": 6535, "loc": { "start": { - "line": 114, - "column": 30 + "line": 146, + "column": 28 }, "end": { - "line": 114, - "column": 31 + "line": 146, + "column": 29 } } }, @@ -36698,51 +41475,49 @@ "postfix": false, "binop": null }, - "value": "mapName", - "start": 5476, - "end": 5483, + "value": "Client", + "start": 6535, + "end": 6541, "loc": { "start": { - "line": 114, - "column": 31 + "line": 146, + "column": 29 }, "end": { - "line": 114, - "column": 38 + "line": 146, + "column": 35 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 5484, - "end": 5485, + "start": 6541, + "end": 6542, "loc": { "start": { - "line": 114, - "column": 39 + "line": 146, + "column": 35 }, "end": { - "line": 114, - "column": 40 + "line": 146, + "column": 36 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -36750,54 +41525,52 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 5486, - "end": 5490, + "value": "getViewEye", + "start": 6542, + "end": 6552, "loc": { "start": { - "line": 114, - "column": 41 + "line": 146, + "column": 36 }, "end": { - "line": 114, - "column": 45 + "line": 146, + "column": 46 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 5490, - "end": 5491, + "start": 6552, + "end": 6553, "loc": { "start": { - "line": 114, - "column": 45 + "line": 146, + "column": 46 }, "end": { - "line": 114, - "column": 46 + "line": 146, + "column": 47 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -36805,17 +41578,16 @@ "postfix": false, "binop": null }, - "value": "mapName", - "start": 5491, - "end": 5498, + "start": 6553, + "end": 6554, "loc": { "start": { - "line": 114, - "column": 46 + "line": 146, + "column": 47 }, "end": { - "line": 114, - "column": 53 + "line": 146, + "column": 48 } } }, @@ -36832,22 +41604,23 @@ "binop": null, "updateContext": null }, - "start": 5498, - "end": 5499, + "start": 6554, + "end": 6555, "loc": { "start": { - "line": 114, - "column": 53 + "line": 146, + "column": 48 }, "end": { - "line": 114, - "column": 54 + "line": 146, + "column": 49 } } }, { "type": { - "label": "}", + "label": "let", + "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -36855,26 +41628,28 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5521, - "end": 5522, + "value": "let", + "start": 6565, + "end": 6568, "loc": { "start": { - "line": 115, - "column": 20 + "line": 147, + "column": 8 }, "end": { - "line": 115, - "column": 21 + "line": 147, + "column": 11 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -36882,99 +41657,104 @@ "postfix": false, "binop": null }, - "start": 5522, - "end": 5523, + "value": "lastCamX", + "start": 6569, + "end": 6577, "loc": { "start": { - "line": 115, - "column": 21 + "line": 147, + "column": 12 }, "end": { - "line": 115, - "column": 22 + "line": 147, + "column": 20 } } }, { "type": { - "label": ";", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 5523, - "end": 5524, + "value": "=", + "start": 6578, + "end": 6579, "loc": { "start": { - "line": 115, - "column": 22 + "line": 147, + "column": 21 }, "end": { - "line": 115, - "column": 23 + "line": 147, + "column": 22 } } }, { "type": { - "label": "}", + "label": "num", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5542, - "end": 5543, + "value": 0, + "start": 6580, + "end": 6581, "loc": { "start": { - "line": 116, - "column": 16 + "line": 147, + "column": 23 }, "end": { - "line": 116, - "column": 17 + "line": 147, + "column": 24 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5557, - "end": 5558, + "start": 6581, + "end": 6582, "loc": { "start": { - "line": 117, - "column": 12 + "line": 147, + "column": 24 }, "end": { - "line": 117, - "column": 13 + "line": 147, + "column": 25 } } }, { "type": { - "label": "const", - "keyword": "const", + "label": "let", + "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -36985,17 +41765,17 @@ "binop": null, "updateContext": null }, - "value": "const", - "start": 5572, - "end": 5577, + "value": "let", + "start": 6592, + "end": 6595, "loc": { "start": { - "line": 118, - "column": 12 + "line": 148, + "column": 8 }, "end": { - "line": 118, - "column": 17 + "line": 148, + "column": 11 } } }, @@ -37011,17 +41791,17 @@ "postfix": false, "binop": null }, - "value": "viewEye", - "start": 5578, - "end": 5585, + "value": "lastCamY", + "start": 6596, + "end": 6604, "loc": { "start": { - "line": 118, - "column": 18 + "line": 148, + "column": 12 }, "end": { - "line": 118, - "column": 25 + "line": 148, + "column": 20 } } }, @@ -37039,22 +41819,22 @@ "updateContext": null }, "value": "=", - "start": 5586, - "end": 5587, + "start": 6605, + "end": 6606, "loc": { "start": { - "line": 118, - "column": 26 + "line": 148, + "column": 21 }, "end": { - "line": 118, - "column": 27 + "line": 148, + "column": 22 } } }, { "type": { - "label": "name", + "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -37062,26 +41842,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "VYLO", - "start": 5588, - "end": 5592, + "value": 0, + "start": 6607, + "end": 6608, "loc": { "start": { - "line": 118, - "column": 28 + "line": 148, + "column": 23 }, "end": { - "line": 118, - "column": 32 + "line": 148, + "column": 24 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -37091,68 +41872,69 @@ "binop": null, "updateContext": null }, - "start": 5592, - "end": 5593, + "start": 6608, + "end": 6609, "loc": { "start": { - "line": 118, - "column": 32 + "line": 148, + "column": 24 }, "end": { - "line": 118, - "column": 33 + "line": 148, + "column": 25 } } }, { "type": { - "label": "name", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "Client", - "start": 5593, - "end": 5599, + "value": "if", + "start": 6619, + "end": 6621, "loc": { "start": { - "line": 118, - "column": 33 + "line": 149, + "column": 8 }, "end": { - "line": 118, - "column": 39 + "line": 149, + "column": 10 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 5599, - "end": 5600, + "start": 6622, + "end": 6623, "loc": { "start": { - "line": 118, - "column": 39 + "line": 149, + "column": 11 }, "end": { - "line": 118, - "column": 40 + "line": 149, + "column": 12 } } }, @@ -37168,25 +41950,25 @@ "postfix": false, "binop": null }, - "value": "getViewEye", - "start": 5600, - "end": 5610, + "value": "viewEye", + "start": 6623, + "end": 6630, "loc": { "start": { - "line": 118, - "column": 40 + "line": 149, + "column": 12 }, "end": { - "line": 118, - "column": 50 + "line": 149, + "column": 19 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -37194,24 +41976,24 @@ "postfix": false, "binop": null }, - "start": 5610, - "end": 5611, + "start": 6630, + "end": 6631, "loc": { "start": { - "line": 118, - "column": 50 + "line": 149, + "column": 19 }, "end": { - "line": 118, - "column": 51 + "line": 149, + "column": 20 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -37219,70 +42001,69 @@ "postfix": false, "binop": null }, - "start": 5611, - "end": 5612, + "start": 6632, + "end": 6633, "loc": { "start": { - "line": 118, - "column": 51 + "line": 149, + "column": 21 }, "end": { - "line": 118, - "column": 52 + "line": 149, + "column": 22 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 5612, - "end": 5613, + "value": "lastCamX", + "start": 6647, + "end": 6655, "loc": { "start": { - "line": 118, - "column": 52 + "line": 150, + "column": 12 }, "end": { - "line": 118, - "column": 53 + "line": 150, + "column": 20 } } }, { "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "let", - "start": 5627, - "end": 5630, + "value": "=", + "start": 6656, + "end": 6657, "loc": { "start": { - "line": 119, - "column": 12 + "line": 150, + "column": 21 }, "end": { - "line": 119, - "column": 15 + "line": 150, + "column": 22 } } }, @@ -37298,50 +42079,49 @@ "postfix": false, "binop": null }, - "value": "lastCamX", - "start": 5631, - "end": 5639, + "value": "viewEye", + "start": 6658, + "end": 6665, "loc": { "start": { - "line": 119, - "column": 16 + "line": 150, + "column": 23 }, "end": { - "line": 119, - "column": 24 + "line": 150, + "column": 30 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 5640, - "end": 5641, + "start": 6665, + "end": 6666, "loc": { "start": { - "line": 119, - "column": 25 + "line": 150, + "column": 30 }, "end": { - "line": 119, - "column": 26 + "line": 150, + "column": 31 } } }, { "type": { - "label": "num", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -37349,20 +42129,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 0, - "start": 5642, - "end": 5643, + "value": "x", + "start": 6666, + "end": 6667, "loc": { "start": { - "line": 119, - "column": 27 + "line": 150, + "column": 31 }, "end": { - "line": 119, - "column": 28 + "line": 150, + "column": 32 } } }, @@ -37379,44 +42158,69 @@ "binop": null, "updateContext": null }, - "start": 5643, - "end": 5644, + "start": 6667, + "end": 6668, "loc": { "start": { - "line": 119, - "column": 28 + "line": 150, + "column": 32 }, "end": { - "line": 119, - "column": 29 + "line": 150, + "column": 33 } } }, { "type": { - "label": "let", - "keyword": "let", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, + "binop": null + }, + "value": "lastCamY", + "start": 6682, + "end": 6690, + "loc": { + "start": { + "line": 151, + "column": 12 + }, + "end": { + "line": 151, + "column": 20 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, "binop": null, "updateContext": null }, - "value": "let", - "start": 5658, - "end": 5661, + "value": "=", + "start": 6691, + "end": 6692, "loc": { "start": { - "line": 120, - "column": 12 + "line": 151, + "column": 21 }, "end": { - "line": 120, - "column": 15 + "line": 151, + "column": 22 } } }, @@ -37432,50 +42236,49 @@ "postfix": false, "binop": null }, - "value": "lastCamY", - "start": 5662, - "end": 5670, + "value": "viewEye", + "start": 6693, + "end": 6700, "loc": { "start": { - "line": 120, - "column": 16 + "line": 151, + "column": 23 }, "end": { - "line": 120, - "column": 24 + "line": 151, + "column": 30 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 5671, - "end": 5672, + "start": 6700, + "end": 6701, "loc": { "start": { - "line": 120, - "column": 25 + "line": 151, + "column": 30 }, "end": { - "line": 120, - "column": 26 + "line": 151, + "column": 31 } } }, { "type": { - "label": "num", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -37483,20 +42286,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 0, - "start": 5673, - "end": 5674, + "value": "y", + "start": 6701, + "end": 6702, "loc": { "start": { - "line": 120, - "column": 27 + "line": 151, + "column": 31 }, "end": { - "line": 120, - "column": 28 + "line": 151, + "column": 32 } } }, @@ -37513,23 +42315,22 @@ "binop": null, "updateContext": null }, - "start": 5674, - "end": 5675, + "start": 6702, + "end": 6703, "loc": { "start": { - "line": 120, - "column": 28 + "line": 151, + "column": 32 }, "end": { - "line": 120, - "column": 29 + "line": 151, + "column": 33 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -37537,79 +42338,80 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 5689, - "end": 5691, + "start": 6713, + "end": 6714, "loc": { "start": { - "line": 121, - "column": 12 + "line": 152, + "column": 8 }, "end": { - "line": 121, - "column": 14 + "line": 152, + "column": 9 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "this", + "keyword": "this", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5692, - "end": 5693, + "value": "this", + "start": 6724, + "end": 6728, "loc": { "start": { - "line": 121, - "column": 15 + "line": 153, + "column": 8 }, "end": { - "line": 121, - "column": 16 + "line": 153, + "column": 12 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "viewEye", - "start": 5693, - "end": 5700, + "start": 6728, + "end": 6729, "loc": { "start": { - "line": 121, - "column": 16 + "line": 153, + "column": 12 }, "end": { - "line": 121, - "column": 23 + "line": 153, + "column": 13 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -37617,41 +42419,43 @@ "postfix": false, "binop": null }, - "start": 5700, - "end": 5701, + "value": "lastCamPos", + "start": 6729, + "end": 6739, "loc": { "start": { - "line": 121, - "column": 23 + "line": 153, + "column": 13 }, "end": { - "line": 121, - "column": 24 + "line": 153, + "column": 23 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5702, - "end": 5703, + "start": 6739, + "end": 6740, "loc": { "start": { - "line": 121, - "column": 25 + "line": 153, + "column": 23 }, "end": { - "line": 121, - "column": 26 + "line": 153, + "column": 24 } } }, @@ -37667,17 +42471,17 @@ "postfix": false, "binop": null }, - "value": "lastCamX", - "start": 5721, - "end": 5729, + "value": "x", + "start": 6740, + "end": 6741, "loc": { "start": { - "line": 122, - "column": 16 + "line": 153, + "column": 24 }, "end": { - "line": 122, - "column": 24 + "line": 153, + "column": 25 } } }, @@ -37695,16 +42499,16 @@ "updateContext": null }, "value": "=", - "start": 5730, - "end": 5731, + "start": 6742, + "end": 6743, "loc": { "start": { - "line": 122, - "column": 25 + "line": 153, + "column": 26 }, "end": { - "line": 122, - "column": 26 + "line": 153, + "column": 27 } } }, @@ -37720,24 +42524,24 @@ "postfix": false, "binop": null }, - "value": "viewEye", - "start": 5732, - "end": 5739, + "value": "lastCamX", + "start": 6744, + "end": 6752, "loc": { "start": { - "line": 122, - "column": 27 + "line": 153, + "column": 28 }, "end": { - "line": 122, - "column": 34 + "line": 153, + "column": 36 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -37747,22 +42551,23 @@ "binop": null, "updateContext": null }, - "start": 5739, - "end": 5740, + "start": 6752, + "end": 6753, "loc": { "start": { - "line": 122, - "column": 34 + "line": 153, + "column": 36 }, "end": { - "line": 122, - "column": 35 + "line": 153, + "column": 37 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -37770,26 +42575,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "x", - "start": 5740, - "end": 5741, + "value": "this", + "start": 6763, + "end": 6767, "loc": { "start": { - "line": 122, - "column": 35 + "line": 154, + "column": 8 }, "end": { - "line": 122, - "column": 36 + "line": 154, + "column": 12 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -37799,16 +42605,16 @@ "binop": null, "updateContext": null }, - "start": 5741, - "end": 5742, + "start": 6767, + "end": 6768, "loc": { "start": { - "line": 122, - "column": 36 + "line": 154, + "column": 12 }, "end": { - "line": 122, - "column": 37 + "line": 154, + "column": 13 } } }, @@ -37824,44 +42630,43 @@ "postfix": false, "binop": null }, - "value": "lastCamY", - "start": 5760, - "end": 5768, + "value": "lastCamPos", + "start": 6768, + "end": 6778, "loc": { "start": { - "line": 123, - "column": 16 + "line": 154, + "column": 13 }, "end": { - "line": 123, - "column": 24 + "line": 154, + "column": 23 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 5769, - "end": 5770, + "start": 6778, + "end": 6779, "loc": { "start": { - "line": 123, - "column": 25 + "line": 154, + "column": 23 }, "end": { - "line": 123, - "column": 26 + "line": 154, + "column": 24 } } }, @@ -37877,43 +42682,44 @@ "postfix": false, "binop": null }, - "value": "viewEye", - "start": 5771, - "end": 5778, + "value": "y", + "start": 6779, + "end": 6780, "loc": { "start": { - "line": 123, - "column": 27 + "line": 154, + "column": 24 }, "end": { - "line": 123, - "column": 34 + "line": 154, + "column": 25 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 5778, - "end": 5779, + "value": "=", + "start": 6781, + "end": 6782, "loc": { "start": { - "line": 123, - "column": 34 + "line": 154, + "column": 26 }, "end": { - "line": 123, - "column": 35 + "line": 154, + "column": 27 } } }, @@ -37929,16 +42735,16 @@ "postfix": false, "binop": null }, - "value": "y", - "start": 5779, - "end": 5780, + "value": "lastCamY", + "start": 6783, + "end": 6791, "loc": { "start": { - "line": 123, - "column": 35 + "line": 154, + "column": 28 }, "end": { - "line": 123, + "line": 154, "column": 36 } } @@ -37956,48 +42762,22 @@ "binop": null, "updateContext": null }, - "start": 5780, - "end": 5781, + "start": 6791, + "end": 6792, "loc": { "start": { - "line": 123, + "line": 154, "column": 36 }, "end": { - "line": 123, + "line": 154, "column": 37 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5795, - "end": 5796, - "loc": { - "start": { - "line": 124, - "column": 12 - }, - "end": { - "line": 124, - "column": 13 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -38005,20 +42785,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 5810, - "end": 5814, + "value": "pInstance", + "start": 6802, + "end": 6811, "loc": { "start": { - "line": 125, - "column": 12 + "line": 155, + "column": 8 }, "end": { - "line": 125, - "column": 16 + "line": 155, + "column": 17 } } }, @@ -38035,16 +42814,16 @@ "binop": null, "updateContext": null }, - "start": 5814, - "end": 5815, + "start": 6811, + "end": 6812, "loc": { "start": { - "line": 125, - "column": 16 + "line": 155, + "column": 17 }, "end": { - "line": 125, - "column": 17 + "line": 155, + "column": 18 } } }, @@ -38060,43 +42839,42 @@ "postfix": false, "binop": null }, - "value": "lastCamPos", - "start": 5815, - "end": 5825, + "value": "setPos", + "start": 6812, + "end": 6818, "loc": { "start": { - "line": 125, - "column": 17 + "line": 155, + "column": 18 }, "end": { - "line": 125, - "column": 27 + "line": 155, + "column": 24 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 5825, - "end": 5826, + "start": 6818, + "end": 6819, "loc": { "start": { - "line": 125, - "column": 27 + "line": 155, + "column": 24 }, "end": { - "line": 125, - "column": 28 + "line": 155, + "column": 25 } } }, @@ -38112,44 +42890,43 @@ "postfix": false, "binop": null }, - "value": "x", - "start": 5826, - "end": 5827, + "value": "pX", + "start": 6819, + "end": 6821, "loc": { "start": { - "line": 125, - "column": 28 + "line": 155, + "column": 25 }, "end": { - "line": 125, - "column": 29 + "line": 155, + "column": 27 } } }, { "type": { - "label": "=", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 5828, - "end": 5829, + "start": 6821, + "end": 6822, "loc": { "start": { - "line": 125, - "column": 30 + "line": 155, + "column": 27 }, "end": { - "line": 125, - "column": 31 + "line": 155, + "column": 28 } } }, @@ -38165,23 +42942,23 @@ "postfix": false, "binop": null }, - "value": "lastCamX", - "start": 5830, - "end": 5838, + "value": "pY", + "start": 6823, + "end": 6825, "loc": { "start": { - "line": 125, - "column": 32 + "line": 155, + "column": 29 }, "end": { - "line": 125, - "column": 40 + "line": 155, + "column": 31 } } }, { "type": { - "label": ";", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -38192,23 +42969,22 @@ "binop": null, "updateContext": null }, - "start": 5838, - "end": 5839, + "start": 6825, + "end": 6826, "loc": { "start": { - "line": 125, - "column": 40 + "line": 155, + "column": 31 }, "end": { - "line": 125, - "column": 41 + "line": 155, + "column": 32 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -38216,26 +42992,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 5853, - "end": 5857, + "value": "pMap", + "start": 6827, + "end": 6831, "loc": { "start": { - "line": 126, - "column": 12 + "line": 155, + "column": 33 }, "end": { - "line": 126, - "column": 16 + "line": 155, + "column": 37 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -38243,51 +43018,50 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 5857, - "end": 5858, + "start": 6831, + "end": 6832, "loc": { "start": { - "line": 126, - "column": 16 + "line": 155, + "column": 37 }, "end": { - "line": 126, - "column": 17 + "line": 155, + "column": 38 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "lastCamPos", - "start": 5858, - "end": 5868, + "start": 6832, + "end": 6833, "loc": { "start": { - "line": 126, - "column": 17 + "line": 155, + "column": 38 }, "end": { - "line": 126, - "column": 27 + "line": 155, + "column": 39 } } }, { "type": { - "label": ".", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -38295,19 +43069,34 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 5868, - "end": 5869, + "start": 6839, + "end": 6840, "loc": { "start": { - "line": 126, - "column": 27 + "line": 156, + "column": 4 }, "end": { - "line": 126, - "column": 28 + "line": 156, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Removes an instance to the parallax system.\r\n * @param {Object} pInstance - The instance to remove to the parallax system.\r\n ", + "start": 6846, + "end": 6993, + "loc": { + "start": { + "line": 157, + "column": 4 + }, + "end": { + "line": 160, + "column": 7 } } }, @@ -38323,44 +43112,42 @@ "postfix": false, "binop": null }, - "value": "y", - "start": 5869, - "end": 5870, + "value": "remove", + "start": 6999, + "end": 7005, "loc": { "start": { - "line": 126, - "column": 28 + "line": 161, + "column": 4 }, "end": { - "line": 126, - "column": 29 + "line": 161, + "column": 10 } } }, { "type": { - "label": "=", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 5871, - "end": 5872, + "start": 7005, + "end": 7006, "loc": { "start": { - "line": 126, - "column": 30 + "line": 161, + "column": 10 }, "end": { - "line": 126, - "column": 31 + "line": 161, + "column": 11 } } }, @@ -38376,50 +43163,49 @@ "postfix": false, "binop": null }, - "value": "lastCamY", - "start": 5873, - "end": 5881, + "value": "pInstance", + "start": 7006, + "end": 7015, "loc": { "start": { - "line": 126, - "column": 32 + "line": 161, + "column": 11 }, "end": { - "line": 126, - "column": 40 + "line": 161, + "column": 20 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 5881, - "end": 5882, + "start": 7015, + "end": 7016, "loc": { "start": { - "line": 126, - "column": 40 + "line": 161, + "column": 20 }, "end": { - "line": 126, - "column": 41 + "line": 161, + "column": 21 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -38428,23 +43214,23 @@ "postfix": false, "binop": null }, - "value": "pInstance", - "start": 5896, - "end": 5905, + "start": 7017, + "end": 7018, "loc": { "start": { - "line": 127, - "column": 12 + "line": 161, + "column": 22 }, "end": { - "line": 127, - "column": 21 + "line": 161, + "column": 23 } } }, { "type": { - "label": ".", + "label": "if", + "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -38455,23 +43241,24 @@ "binop": null, "updateContext": null }, - "start": 5905, - "end": 5906, + "value": "if", + "start": 7028, + "end": 7030, "loc": { "start": { - "line": 127, - "column": 21 + "line": 162, + "column": 8 }, "end": { - "line": 127, - "column": 22 + "line": 162, + "column": 10 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -38480,101 +43267,126 @@ "postfix": false, "binop": null }, - "value": "setPos", - "start": 5906, - "end": 5912, + "start": 7031, + "end": 7032, "loc": { "start": { - "line": 127, - "column": 22 + "line": 162, + "column": 11 }, "end": { - "line": 127, - "column": 28 + "line": 162, + "column": 12 } } }, { "type": { - "label": "(", + "label": "prefix", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "!", + "start": 7032, + "end": 7033, + "loc": { + "start": { + "line": 162, + "column": 12 + }, + "end": { + "line": 162, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, "prefix": false, "postfix": false, "binop": null }, - "start": 5912, - "end": 5913, + "value": "pInstance", + "start": 7033, + "end": 7042, "loc": { "start": { - "line": 127, - "column": 28 + "line": 162, + "column": 13 }, "end": { - "line": 127, - "column": 29 + "line": 162, + "column": 22 } } }, { "type": { - "label": "num", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 0, - "start": 5913, - "end": 5914, + "start": 7042, + "end": 7043, "loc": { "start": { - "line": 127, - "column": 29 + "line": 162, + "column": 22 }, "end": { - "line": 127, - "column": 30 + "line": 162, + "column": 23 } } }, { "type": { - "label": ",", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 5914, - "end": 5915, + "start": 7044, + "end": 7045, "loc": { "start": { - "line": 127, - "column": 30 + "line": 162, + "column": 24 }, "end": { - "line": 127, - "column": 31 + "line": 162, + "column": 25 } } }, { "type": { - "label": "num", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -38585,24 +43397,24 @@ "binop": null, "updateContext": null }, - "value": 0, - "start": 5916, - "end": 5917, + "value": "this", + "start": 7059, + "end": 7063, "loc": { "start": { - "line": 127, - "column": 32 + "line": 163, + "column": 12 }, "end": { - "line": 127, - "column": 33 + "line": 163, + "column": 16 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -38612,16 +43424,16 @@ "binop": null, "updateContext": null }, - "start": 5917, - "end": 5918, + "start": 7063, + "end": 7064, "loc": { "start": { - "line": 127, - "column": 33 + "line": 163, + "column": 16 }, "end": { - "line": 127, - "column": 34 + "line": 163, + "column": 17 } } }, @@ -38637,23 +43449,23 @@ "postfix": false, "binop": null }, - "value": "pMap", - "start": 5919, - "end": 5923, + "value": "logger", + "start": 7064, + "end": 7070, "loc": { "start": { - "line": 127, - "column": 35 + "line": 163, + "column": 17 }, "end": { - "line": 127, - "column": 39 + "line": 163, + "column": 23 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -38661,51 +43473,52 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5923, - "end": 5924, + "start": 7070, + "end": 7071, "loc": { "start": { - "line": 127, - "column": 39 + "line": 163, + "column": 23 }, "end": { - "line": 127, - "column": 40 + "line": 163, + "column": 24 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 5924, - "end": 5925, + "value": "prefix", + "start": 7071, + "end": 7077, "loc": { "start": { - "line": 127, - "column": 40 + "line": 163, + "column": 24 }, "end": { - "line": 127, - "column": 41 + "line": 163, + "column": 30 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -38714,25 +43527,24 @@ "postfix": false, "binop": null }, - "value": "pInstance", - "start": 5939, - "end": 5948, + "start": 7077, + "end": 7078, "loc": { "start": { - "line": 128, - "column": 12 + "line": 163, + "column": 30 }, "end": { - "line": 128, - "column": 21 + "line": 163, + "column": 31 } } }, { "type": { - "label": ".", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -38741,24 +43553,25 @@ "binop": null, "updateContext": null }, - "start": 5948, - "end": 5949, + "value": "Parallax-Module", + "start": 7078, + "end": 7095, "loc": { "start": { - "line": 128, - "column": 21 + "line": 163, + "column": 31 }, "end": { - "line": 128, - "column": 22 + "line": 163, + "column": 48 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -38766,42 +43579,42 @@ "postfix": false, "binop": null }, - "value": "setPos", - "start": 5949, - "end": 5955, + "start": 7095, + "end": 7096, "loc": { "start": { - "line": 128, - "column": 22 + "line": 163, + "column": 48 }, "end": { - "line": 128, - "column": 28 + "line": 163, + "column": 49 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5955, - "end": 5956, + "start": 7096, + "end": 7097, "loc": { "start": { - "line": 128, - "column": 28 + "line": 163, + "column": 49 }, "end": { - "line": 128, - "column": 29 + "line": 163, + "column": 50 } } }, @@ -38817,49 +43630,48 @@ "postfix": false, "binop": null }, - "value": "pX", - "start": 5956, - "end": 5958, + "value": "error", + "start": 7097, + "end": 7102, "loc": { "start": { - "line": 128, - "column": 29 + "line": 163, + "column": 50 }, "end": { - "line": 128, - "column": 31 + "line": 163, + "column": 55 } } }, { "type": { - "label": ",", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 5958, - "end": 5959, + "start": 7102, + "end": 7103, "loc": { "start": { - "line": 128, - "column": 31 + "line": 163, + "column": 55 }, "end": { - "line": 128, - "column": 32 + "line": 163, + "column": 56 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -38867,96 +43679,99 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "pY", - "start": 5960, - "end": 5962, + "value": "No pInstance passed!", + "start": 7103, + "end": 7125, "loc": { "start": { - "line": 128, - "column": 33 + "line": 163, + "column": 56 }, "end": { - "line": 128, - "column": 35 + "line": 163, + "column": 78 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 5962, - "end": 5963, + "start": 7125, + "end": 7126, "loc": { "start": { - "line": 128, - "column": 35 + "line": 163, + "column": 78 }, "end": { - "line": 128, - "column": 36 + "line": 163, + "column": 79 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "pMap", - "start": 5964, - "end": 5968, + "start": 7126, + "end": 7127, "loc": { "start": { - "line": 128, - "column": 37 + "line": 163, + "column": 79 }, "end": { - "line": 128, - "column": 41 + "line": 163, + "column": 80 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "return", + "keyword": "return", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5968, - "end": 5969, + "value": "return", + "start": 7141, + "end": 7147, "loc": { "start": { - "line": 128, - "column": 41 + "line": 164, + "column": 12 }, "end": { - "line": 128, - "column": 42 + "line": 164, + "column": 18 } } }, @@ -38973,16 +43788,16 @@ "binop": null, "updateContext": null }, - "start": 5969, - "end": 5970, + "start": 7147, + "end": 7148, "loc": { "start": { - "line": 128, - "column": 42 + "line": 164, + "column": 18 }, "end": { - "line": 128, - "column": 43 + "line": 164, + "column": 19 } } }, @@ -38998,24 +43813,24 @@ "postfix": false, "binop": null }, - "start": 5980, - "end": 5981, + "start": 7158, + "end": 7159, "loc": { "start": { - "line": 129, + "line": 165, "column": 8 }, "end": { - "line": 129, + "line": 165, "column": 9 } } }, { "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, + "label": "if", + "keyword": "if", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -39025,23 +43840,23 @@ "binop": null, "updateContext": null }, - "value": "else", - "start": 5982, - "end": 5986, + "value": "if", + "start": 7171, + "end": 7173, "loc": { "start": { - "line": 129, - "column": 10 + "line": 167, + "column": 8 }, "end": { - "line": 129, - "column": 14 + "line": 167, + "column": 10 } } }, { "type": { - "label": "{", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -39051,16 +43866,16 @@ "postfix": false, "binop": null }, - "start": 5987, - "end": 5988, + "start": 7174, + "end": 7175, "loc": { "start": { - "line": 129, - "column": 15 + "line": 167, + "column": 11 }, "end": { - "line": 129, - "column": 16 + "line": 167, + "column": 12 } } }, @@ -39079,15 +43894,15 @@ "updateContext": null }, "value": "this", - "start": 6002, - "end": 6006, + "start": 7175, + "end": 7179, "loc": { "start": { - "line": 130, + "line": 167, "column": 12 }, "end": { - "line": 130, + "line": 167, "column": 16 } } @@ -39105,15 +43920,15 @@ "binop": null, "updateContext": null }, - "start": 6006, - "end": 6007, + "start": 7179, + "end": 7180, "loc": { "start": { - "line": 130, + "line": 167, "column": 16 }, "end": { - "line": 130, + "line": 167, "column": 17 } } @@ -39130,17 +43945,17 @@ "postfix": false, "binop": null }, - "value": "logger", - "start": 6007, - "end": 6013, + "value": "instances", + "start": 7180, + "end": 7189, "loc": { "start": { - "line": 130, + "line": 167, "column": 17 }, "end": { - "line": 130, - "column": 23 + "line": 167, + "column": 26 } } }, @@ -39157,16 +43972,16 @@ "binop": null, "updateContext": null }, - "start": 6013, - "end": 6014, + "start": 7189, + "end": 7190, "loc": { "start": { - "line": 130, - "column": 23 + "line": 167, + "column": 26 }, "end": { - "line": 130, - "column": 24 + "line": 167, + "column": 27 } } }, @@ -39182,16 +43997,16 @@ "postfix": false, "binop": null }, - "value": "prefix", - "start": 6014, - "end": 6020, + "value": "has", + "start": 7190, + "end": 7193, "loc": { "start": { - "line": 130, - "column": 24 + "line": 167, + "column": 27 }, "end": { - "line": 130, + "line": 167, "column": 30 } } @@ -39208,22 +44023,22 @@ "postfix": false, "binop": null }, - "start": 6020, - "end": 6021, + "start": 7193, + "end": 7194, "loc": { "start": { - "line": 130, + "line": 167, "column": 30 }, "end": { - "line": 130, + "line": 167, "column": 31 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -39231,20 +44046,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "Parallax-Module", - "start": 6021, - "end": 6038, + "value": "pInstance", + "start": 7194, + "end": 7203, "loc": { "start": { - "line": 130, + "line": 167, "column": 31 }, "end": { - "line": 130, - "column": 48 + "line": 167, + "column": 40 } } }, @@ -39260,22 +44074,22 @@ "postfix": false, "binop": null }, - "start": 6038, - "end": 6039, + "start": 7203, + "end": 7204, "loc": { "start": { - "line": 130, - "column": 48 + "line": 167, + "column": 40 }, "end": { - "line": 130, - "column": 49 + "line": 167, + "column": 41 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -39283,51 +44097,24 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6039, - "end": 6040, - "loc": { - "start": { - "line": 130, - "column": 49 - }, - "end": { - "line": 130, - "column": 50 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, "binop": null }, - "value": "error", - "start": 6040, - "end": 6045, + "start": 7204, + "end": 7205, "loc": { "start": { - "line": 130, - "column": 50 + "line": 167, + "column": 41 }, "end": { - "line": 130, - "column": 55 + "line": 167, + "column": 42 } } }, { "type": { - "label": "(", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -39337,22 +44124,23 @@ "postfix": false, "binop": null }, - "start": 6045, - "end": 6046, + "start": 7206, + "end": 7207, "loc": { "start": { - "line": 130, - "column": 55 + "line": 167, + "column": 43 }, "end": { - "line": 130, - "column": 56 + "line": 167, + "column": 44 } } }, { "type": { - "label": "string", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -39363,23 +44151,23 @@ "binop": null, "updateContext": null }, - "value": "VYLO not found! This module depends on the VYLO object being in the global name space.", - "start": 6046, - "end": 6134, + "value": "this", + "start": 7221, + "end": 7225, "loc": { "start": { - "line": 130, - "column": 56 + "line": 168, + "column": 12 }, "end": { - "line": 130, - "column": 144 + "line": 168, + "column": 16 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -39387,52 +44175,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null - }, - "start": 6134, - "end": 6135, - "loc": { - "start": { - "line": 130, - "column": 144 - }, - "end": { - "line": 130, - "column": 145 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, "binop": null, "updateContext": null }, - "start": 6135, - "end": 6136, + "start": 7225, + "end": 7226, "loc": { "start": { - "line": 130, - "column": 145 + "line": 168, + "column": 16 }, "end": { - "line": 130, - "column": 146 + "line": 168, + "column": 17 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -39440,22 +44203,23 @@ "postfix": false, "binop": null }, - "start": 6146, - "end": 6147, + "value": "instances", + "start": 7226, + "end": 7235, "loc": { "start": { - "line": 131, - "column": 8 + "line": 168, + "column": 17 }, "end": { - "line": 131, - "column": 9 + "line": 168, + "column": 26 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -39463,60 +44227,47 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 6153, - "end": 6154, - "loc": { - "start": { - "line": 132, - "column": 4 - }, - "end": { - "line": 132, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n * Removes an instance to the parallax system.\r\n * @param {Object} pInstance - The instance to remove to the parallax system.\r\n ", - "start": 6160, - "end": 6307, + "start": 7235, + "end": 7236, "loc": { "start": { - "line": 133, - "column": 4 + "line": 168, + "column": 26 }, "end": { - "line": 136, - "column": 7 + "line": 168, + "column": 27 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "delete", + "keyword": "delete", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "remove", - "start": 6313, - "end": 6319, + "value": "delete", + "start": 7236, + "end": 7242, "loc": { "start": { - "line": 137, - "column": 4 + "line": 168, + "column": 27 }, "end": { - "line": 137, - "column": 10 + "line": 168, + "column": 33 } } }, @@ -39532,16 +44283,16 @@ "postfix": false, "binop": null }, - "start": 6319, - "end": 6320, + "start": 7242, + "end": 7243, "loc": { "start": { - "line": 137, - "column": 10 + "line": 168, + "column": 33 }, "end": { - "line": 137, - "column": 11 + "line": 168, + "column": 34 } } }, @@ -39558,16 +44309,16 @@ "binop": null }, "value": "pInstance", - "start": 6320, - "end": 6329, + "start": 7243, + "end": 7252, "loc": { "start": { - "line": 137, - "column": 11 + "line": 168, + "column": 34 }, "end": { - "line": 137, - "column": 20 + "line": 168, + "column": 43 } } }, @@ -39583,50 +44334,51 @@ "postfix": false, "binop": null }, - "start": 6329, - "end": 6330, + "start": 7252, + "end": 7253, "loc": { "start": { - "line": 137, - "column": 20 + "line": 168, + "column": 43 }, "end": { - "line": 137, - "column": 21 + "line": 168, + "column": 44 } } }, { "type": { - "label": "{", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 6331, - "end": 6332, + "start": 7253, + "end": 7254, "loc": { "start": { - "line": 137, - "column": 22 + "line": 168, + "column": 44 }, "end": { - "line": 137, - "column": 23 + "line": 168, + "column": 45 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "this", + "keyword": "this", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -39635,42 +44387,43 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 6342, - "end": 6344, + "value": "this", + "start": 7268, + "end": 7272, "loc": { "start": { - "line": 138, - "column": 8 + "line": 169, + "column": 12 }, "end": { - "line": 138, - "column": 10 + "line": 169, + "column": 16 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 6345, - "end": 6346, + "start": 7272, + "end": 7273, "loc": { "start": { - "line": 138, - "column": 11 + "line": 169, + "column": 16 }, "end": { - "line": 138, - "column": 12 + "line": 169, + "column": 17 } } }, @@ -39686,23 +44439,23 @@ "postfix": false, "binop": null }, - "value": "pInstance", - "start": 6346, - "end": 6355, + "value": "instanceWeakMap", + "start": 7273, + "end": 7288, "loc": { "start": { - "line": 138, - "column": 12 + "line": 169, + "column": 17 }, "end": { - "line": 138, - "column": 21 + "line": 169, + "column": 32 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -39710,78 +44463,79 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 6355, - "end": 6356, + "start": 7288, + "end": 7289, "loc": { "start": { - "line": 138, - "column": 21 + "line": 169, + "column": 32 }, "end": { - "line": 138, - "column": 22 + "line": 169, + "column": 33 } } }, { "type": { - "label": "{", + "label": "delete", + "keyword": "delete", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 6357, - "end": 6358, + "value": "delete", + "start": 7289, + "end": 7295, "loc": { "start": { - "line": 138, - "column": 23 + "line": 169, + "column": 33 }, "end": { - "line": 138, - "column": 24 + "line": 169, + "column": 39 } } }, { "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 6372, - "end": 6374, + "start": 7295, + "end": 7296, "loc": { "start": { - "line": 139, - "column": 12 + "line": 169, + "column": 39 }, "end": { - "line": 139, - "column": 14 + "line": 169, + "column": 40 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -39790,51 +44544,49 @@ "postfix": false, "binop": null }, - "start": 6375, - "end": 6376, + "value": "pInstance", + "start": 7296, + "end": 7305, "loc": { "start": { - "line": 139, - "column": 15 + "line": 169, + "column": 40 }, "end": { - "line": 139, - "column": 16 + "line": 169, + "column": 49 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 6376, - "end": 6380, + "start": 7305, + "end": 7306, "loc": { "start": { - "line": 139, - "column": 16 + "line": 169, + "column": 49 }, "end": { - "line": 139, - "column": 20 + "line": 169, + "column": 50 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -39844,24 +44596,24 @@ "binop": null, "updateContext": null }, - "start": 6380, - "end": 6381, + "start": 7306, + "end": 7307, "loc": { "start": { - "line": 139, - "column": 20 + "line": 169, + "column": 50 }, "end": { - "line": 139, - "column": 21 + "line": 169, + "column": 51 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -39869,23 +44621,22 @@ "postfix": false, "binop": null }, - "value": "instances", - "start": 6381, - "end": 6390, + "start": 7317, + "end": 7318, "loc": { "start": { - "line": 139, - "column": 21 + "line": 170, + "column": 8 }, "end": { - "line": 139, - "column": 30 + "line": 170, + "column": 9 } } }, { "type": { - "label": ".", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -39893,19 +44644,34 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 6390, - "end": 6391, + "start": 7324, + "end": 7325, + "loc": { + "start": { + "line": 171, + "column": 4 + }, + "end": { + "line": 171, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Updates the parallax system.\r\n * @param {number} pCameraX - The x position of the camera.\r\n * @param {number} pCameraY - The y position of the camera.\r\n ", + "start": 7331, + "end": 7510, "loc": { "start": { - "line": 139, - "column": 30 + "line": 172, + "column": 4 }, "end": { - "line": 139, - "column": 31 + "line": 176, + "column": 7 } } }, @@ -39921,17 +44687,17 @@ "postfix": false, "binop": null }, - "value": "includes", - "start": 6391, - "end": 6399, + "value": "update", + "start": 7516, + "end": 7522, "loc": { "start": { - "line": 139, - "column": 31 + "line": 177, + "column": 4 }, "end": { - "line": 139, - "column": 39 + "line": 177, + "column": 10 } } }, @@ -39947,16 +44713,16 @@ "postfix": false, "binop": null }, - "start": 6399, - "end": 6400, + "start": 7522, + "end": 7523, "loc": { "start": { - "line": 139, - "column": 39 + "line": 177, + "column": 10 }, "end": { - "line": 139, - "column": 40 + "line": 177, + "column": 11 } } }, @@ -39972,99 +44738,103 @@ "postfix": false, "binop": null }, - "value": "pInstance", - "start": 6400, - "end": 6409, + "value": "pCameraX", + "start": 7523, + "end": 7531, "loc": { "start": { - "line": 139, - "column": 40 + "line": 177, + "column": 11 }, "end": { - "line": 139, - "column": 49 + "line": 177, + "column": 19 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 6409, - "end": 6410, + "value": "=", + "start": 7532, + "end": 7533, "loc": { "start": { - "line": 139, - "column": 49 + "line": 177, + "column": 20 }, "end": { - "line": 139, - "column": 50 + "line": 177, + "column": 21 } } }, { "type": { - "label": ")", + "label": "num", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 6410, - "end": 6411, + "value": 0, + "start": 7534, + "end": 7535, "loc": { "start": { - "line": 139, - "column": 50 + "line": 177, + "column": 22 }, "end": { - "line": 139, - "column": 51 + "line": 177, + "column": 23 } } }, { "type": { - "label": "{", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 6412, - "end": 6413, + "start": 7535, + "end": 7536, "loc": { "start": { - "line": 139, - "column": 52 + "line": 177, + "column": 23 }, "end": { - "line": 139, - "column": 53 + "line": 177, + "column": 24 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -40072,52 +44842,52 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 6431, - "end": 6435, + "value": "pCameraY", + "start": 7537, + "end": 7545, "loc": { "start": { - "line": 140, - "column": 16 + "line": 177, + "column": 25 }, "end": { - "line": 140, - "column": 20 + "line": 177, + "column": 33 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 6435, - "end": 6436, + "value": "=", + "start": 7546, + "end": 7547, "loc": { "start": { - "line": 140, - "column": 20 + "line": 177, + "column": 34 }, "end": { - "line": 140, - "column": 21 + "line": 177, + "column": 35 } } }, { "type": { - "label": "name", + "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -40125,25 +44895,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "instances", - "start": 6436, - "end": 6445, + "value": 0, + "start": 7548, + "end": 7549, "loc": { "start": { - "line": 140, - "column": 21 + "line": 177, + "column": 36 }, "end": { - "line": 140, - "column": 30 + "line": 177, + "column": 37 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -40151,26 +44922,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 6445, - "end": 6446, + "start": 7549, + "end": 7550, "loc": { "start": { - "line": 140, - "column": 30 + "line": 177, + "column": 37 }, "end": { - "line": 140, - "column": 31 + "line": 177, + "column": 38 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -40179,49 +44949,66 @@ "postfix": false, "binop": null }, - "value": "splice", - "start": 6446, - "end": 6452, + "start": 7551, + "end": 7552, "loc": { "start": { - "line": 140, - "column": 31 + "line": 177, + "column": 39 }, "end": { - "line": 140, - "column": 37 + "line": 177, + "column": 40 + } + } + }, + { + "type": "CommentLine", + "value": " The camera's x position.", + "start": 7562, + "end": 7589, + "loc": { + "start": { + "line": 178, + "column": 8 + }, + "end": { + "line": 178, + "column": 35 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 6452, - "end": 6453, + "value": "let", + "start": 7599, + "end": 7602, "loc": { "start": { - "line": 140, - "column": 37 + "line": 179, + "column": 8 }, "end": { - "line": 140, - "column": 38 + "line": 179, + "column": 11 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -40229,46 +45016,46 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 6453, - "end": 6457, + "value": "cameraX", + "start": 7603, + "end": 7610, "loc": { "start": { - "line": 140, - "column": 38 + "line": 179, + "column": 12 }, "end": { - "line": 140, - "column": 42 + "line": 179, + "column": 19 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 6457, - "end": 6458, + "value": "=", + "start": 7611, + "end": 7612, "loc": { "start": { - "line": 140, - "column": 42 + "line": 179, + "column": 20 }, "end": { - "line": 140, - "column": 43 + "line": 179, + "column": 21 } } }, @@ -40284,24 +45071,24 @@ "postfix": false, "binop": null }, - "value": "instances", - "start": 6458, - "end": 6467, + "value": "pCameraX", + "start": 7613, + "end": 7621, "loc": { "start": { - "line": 140, - "column": 43 + "line": 179, + "column": 22 }, "end": { - "line": 140, - "column": 52 + "line": 179, + "column": 30 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -40311,49 +45098,67 @@ "binop": null, "updateContext": null }, - "start": 6467, - "end": 6468, + "start": 7621, + "end": 7622, "loc": { "start": { - "line": 140, - "column": 52 + "line": 179, + "column": 30 }, "end": { - "line": 140, - "column": 53 + "line": 179, + "column": 31 + } + } + }, + { + "type": "CommentLine", + "value": " The camera's x position.", + "start": 7632, + "end": 7659, + "loc": { + "start": { + "line": 180, + "column": 8 + }, + "end": { + "line": 180, + "column": 35 } } }, { "type": { - "label": "name", + "label": "let", + "keyword": "let", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "indexOf", - "start": 6468, - "end": 6475, + "value": "let", + "start": 7669, + "end": 7672, "loc": { "start": { - "line": 140, - "column": 53 + "line": 181, + "column": 8 }, "end": { - "line": 140, - "column": 60 + "line": 181, + "column": 11 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -40362,50 +45167,52 @@ "postfix": false, "binop": null }, - "start": 6475, - "end": 6476, + "value": "cameraY", + "start": 7673, + "end": 7680, "loc": { "start": { - "line": 140, - "column": 60 + "line": 181, + "column": 12 }, "end": { - "line": 140, - "column": 61 + "line": 181, + "column": 19 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "=", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "pInstance", - "start": 6476, - "end": 6485, + "value": "=", + "start": 7681, + "end": 7682, "loc": { "start": { - "line": 140, - "column": 61 + "line": 181, + "column": 20 }, "end": { - "line": 140, - "column": 70 + "line": 181, + "column": 21 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -40413,22 +45220,23 @@ "postfix": false, "binop": null }, - "start": 6485, - "end": 6486, + "value": "pCameraY", + "start": 7683, + "end": 7691, "loc": { "start": { - "line": 140, - "column": 70 + "line": 181, + "column": 22 }, "end": { - "line": 140, - "column": 71 + "line": 181, + "column": 30 } } }, { "type": { - "label": ",", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -40439,22 +45247,23 @@ "binop": null, "updateContext": null }, - "start": 6486, - "end": 6487, + "start": 7691, + "end": 7692, "loc": { "start": { - "line": 140, - "column": 71 + "line": 181, + "column": 30 }, "end": { - "line": 140, - "column": 72 + "line": 181, + "column": 31 } } }, { "type": { - "label": "num", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -40465,23 +45274,23 @@ "binop": null, "updateContext": null }, - "value": 1, - "start": 6488, - "end": 6489, + "value": "this", + "start": 7702, + "end": 7706, "loc": { "start": { - "line": 140, - "column": 73 + "line": 182, + "column": 8 }, "end": { - "line": 140, - "column": 74 + "line": 182, + "column": 12 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -40489,50 +45298,51 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 6489, - "end": 6490, + "start": 7706, + "end": 7707, "loc": { "start": { - "line": 140, - "column": 74 + "line": 182, + "column": 12 }, "end": { - "line": 140, - "column": 75 + "line": 182, + "column": 13 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 6490, - "end": 6491, + "value": "instances", + "start": 7707, + "end": 7716, "loc": { "start": { - "line": 140, - "column": 75 + "line": 182, + "column": 13 }, "end": { - "line": 140, - "column": 76 + "line": 182, + "column": 22 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -40540,26 +45350,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 6505, - "end": 6506, + "start": 7716, + "end": 7717, "loc": { "start": { - "line": 141, - "column": 12 + "line": 182, + "column": 22 }, "end": { - "line": 141, - "column": 13 + "line": 182, + "column": 23 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -40567,50 +45378,48 @@ "postfix": false, "binop": null }, - "start": 6516, - "end": 6517, + "value": "forEach", + "start": 7717, + "end": 7724, "loc": { "start": { - "line": 142, - "column": 8 + "line": 182, + "column": 23 }, "end": { - "line": 142, - "column": 9 + "line": 182, + "column": 30 } } }, { "type": { - "label": "else", - "keyword": "else", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "else", - "start": 6518, - "end": 6522, + "start": 7724, + "end": 7725, "loc": { "start": { - "line": 142, - "column": 10 + "line": 182, + "column": 30 }, "end": { - "line": 142, - "column": 14 + "line": 182, + "column": 31 } } }, { "type": { - "label": "{", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -40620,23 +45429,22 @@ "postfix": false, "binop": null }, - "start": 6523, - "end": 6524, + "start": 7725, + "end": 7726, "loc": { "start": { - "line": 142, - "column": 15 + "line": 182, + "column": 31 }, "end": { - "line": 142, - "column": 16 + "line": 182, + "column": 32 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -40644,26 +45452,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 6538, - "end": 6542, + "value": "pInstance", + "start": 7726, + "end": 7735, "loc": { "start": { - "line": 143, - "column": 12 + "line": 182, + "column": 32 }, "end": { - "line": 143, - "column": 16 + "line": 182, + "column": 41 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -40671,104 +45478,104 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 6542, - "end": 6543, + "start": 7735, + "end": 7736, "loc": { "start": { - "line": 143, - "column": 16 + "line": 182, + "column": 41 }, "end": { - "line": 143, - "column": 17 + "line": 182, + "column": 42 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "=>", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "logger", - "start": 6543, - "end": 6549, + "start": 7737, + "end": 7739, "loc": { "start": { - "line": 143, - "column": 17 + "line": 182, + "column": 43 }, "end": { - "line": 143, - "column": 23 + "line": 182, + "column": 45 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 6549, - "end": 6550, + "start": 7740, + "end": 7741, "loc": { "start": { - "line": 143, - "column": 23 + "line": 182, + "column": 46 }, "end": { - "line": 143, - "column": 24 + "line": 182, + "column": 47 } } }, { "type": { - "label": "name", + "label": "const", + "keyword": "const", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "prefix", - "start": 6550, - "end": 6556, + "value": "const", + "start": 7755, + "end": 7760, "loc": { "start": { - "line": 143, - "column": 24 + "line": 183, + "column": 12 }, "end": { - "line": 143, - "column": 30 + "line": 183, + "column": 17 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -40777,68 +45584,72 @@ "postfix": false, "binop": null }, - "start": 6556, - "end": 6557, + "value": "parallaxInfo", + "start": 7761, + "end": 7773, "loc": { "start": { - "line": 143, - "column": 30 + "line": 183, + "column": 18 }, "end": { - "line": 143, - "column": 31 + "line": 183, + "column": 30 } } }, { "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, + "label": "=", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "Parallax-Module", - "start": 6557, - "end": 6574, + "value": "=", + "start": 7774, + "end": 7775, "loc": { "start": { - "line": 143, + "line": 183, "column": 31 }, "end": { - "line": 143, - "column": 48 + "line": 183, + "column": 32 } } }, { "type": { - "label": ")", + "label": "this", + "keyword": "this", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 6574, - "end": 6575, + "value": "this", + "start": 7776, + "end": 7780, "loc": { "start": { - "line": 143, - "column": 48 + "line": 183, + "column": 33 }, "end": { - "line": 143, - "column": 49 + "line": 183, + "column": 37 } } }, @@ -40855,16 +45666,16 @@ "binop": null, "updateContext": null }, - "start": 6575, - "end": 6576, + "start": 7780, + "end": 7781, "loc": { "start": { - "line": 143, - "column": 49 + "line": 183, + "column": 37 }, "end": { - "line": 143, - "column": 50 + "line": 183, + "column": 38 } } }, @@ -40880,48 +45691,49 @@ "postfix": false, "binop": null }, - "value": "error", - "start": 6576, - "end": 6581, + "value": "instanceWeakMap", + "start": 7781, + "end": 7796, "loc": { "start": { - "line": 143, - "column": 50 + "line": 183, + "column": 38 }, "end": { - "line": 143, - "column": 55 + "line": 183, + "column": 53 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 6581, - "end": 6582, + "start": 7796, + "end": 7797, "loc": { "start": { - "line": 143, - "column": 55 + "line": 183, + "column": 53 }, "end": { - "line": 143, - "column": 56 + "line": 183, + "column": 54 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -40929,28 +45741,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "No pInstance passed!", - "start": 6582, - "end": 6604, + "value": "get", + "start": 7797, + "end": 7800, "loc": { "start": { - "line": 143, - "column": 56 + "line": 183, + "column": 54 }, "end": { - "line": 143, - "column": 78 + "line": 183, + "column": 57 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -40958,48 +45769,48 @@ "postfix": false, "binop": null }, - "start": 6604, - "end": 6605, + "start": 7800, + "end": 7801, "loc": { "start": { - "line": 143, - "column": 78 + "line": 183, + "column": 57 }, "end": { - "line": 143, - "column": 79 + "line": 183, + "column": 58 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 6605, - "end": 6606, + "value": "pInstance", + "start": 7801, + "end": 7810, "loc": { "start": { - "line": 143, - "column": 79 + "line": 183, + "column": 58 }, "end": { - "line": 143, - "column": 80 + "line": 183, + "column": 67 } } }, { "type": { - "label": "}", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -41009,108 +45820,86 @@ "postfix": false, "binop": null }, - "start": 6616, - "end": 6617, + "start": 7810, + "end": 7811, "loc": { "start": { - "line": 144, - "column": 8 + "line": 183, + "column": 67 }, "end": { - "line": 144, - "column": 9 + "line": 183, + "column": 68 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 6623, - "end": 6624, + "start": 7811, + "end": 7812, "loc": { "start": { - "line": 145, - "column": 4 + "line": 183, + "column": 68 }, "end": { - "line": 145, - "column": 5 + "line": 183, + "column": 69 } } }, { - "type": "CommentBlock", - "value": "*\r\n * Updates the parallax system.\r\n * @param {number} pCameraX - The x position of the camera.\r\n * @param {number} pCameraY - The y position of the camera.\r\n * @param {number} pSimulatedPosition - The simulated position. This is used to simulate a position larger than possible, but internally it treats it as its downscaled position.\r\n * One such reason for using this paramater would be to simulate a map larger than you actually have, to convince the parallax that it is infinite.\r\n ", - "start": 6630, - "end": 7145, + "type": "CommentLine", + "value": " Move the instance with the camera if the parallax is set to 0", + "start": 7828, + "end": 7892, "loc": { "start": { - "line": 146, - "column": 4 + "line": 185, + "column": 12 }, "end": { - "line": 152, - "column": 7 + "line": 185, + "column": 76 } } }, { "type": { - "label": "name", + "label": "const", + "keyword": "const", "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "update", - "start": 7151, - "end": 7157, - "loc": { - "start": { - "line": 153, - "column": 4 - }, - "end": { - "line": 153, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 7157, - "end": 7158, + "value": "const", + "start": 7906, + "end": 7911, "loc": { "start": { - "line": 153, - "column": 10 + "line": 186, + "column": 12 }, "end": { - "line": 153, - "column": 11 + "line": 186, + "column": 17 } } }, @@ -41126,17 +45915,17 @@ "postfix": false, "binop": null }, - "value": "pCameraX", - "start": 7158, - "end": 7166, + "value": "isBackgroundX", + "start": 7912, + "end": 7925, "loc": { "start": { - "line": 153, - "column": 11 + "line": 186, + "column": 18 }, "end": { - "line": 153, - "column": 19 + "line": 186, + "column": 31 } } }, @@ -41154,22 +45943,22 @@ "updateContext": null }, "value": "=", - "start": 7167, - "end": 7168, + "start": 7926, + "end": 7927, "loc": { "start": { - "line": 153, - "column": 20 + "line": 186, + "column": 32 }, "end": { - "line": 153, - "column": 21 + "line": 186, + "column": 33 } } }, { "type": { - "label": "num", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -41177,27 +45966,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 0, - "start": 7169, - "end": 7170, + "value": "parallaxInfo", + "start": 7928, + "end": 7940, "loc": { "start": { - "line": 153, - "column": 22 + "line": 186, + "column": 34 }, "end": { - "line": 153, - "column": 23 + "line": 186, + "column": 46 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -41207,16 +45995,16 @@ "binop": null, "updateContext": null }, - "start": 7170, - "end": 7171, + "start": 7940, + "end": 7941, "loc": { "start": { - "line": 153, - "column": 23 + "line": 186, + "column": 46 }, "end": { - "line": 153, - "column": 24 + "line": 186, + "column": 47 } } }, @@ -41232,44 +46020,44 @@ "postfix": false, "binop": null }, - "value": "pCameraY", - "start": 7172, - "end": 7180, + "value": "x", + "start": 7941, + "end": 7942, "loc": { "start": { - "line": 153, - "column": 25 + "line": 186, + "column": 47 }, "end": { - "line": 153, - "column": 33 + "line": 186, + "column": 48 } } }, { "type": { - "label": "=", + "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 6, "updateContext": null }, - "value": "=", - "start": 7181, - "end": 7182, + "value": "===", + "start": 7943, + "end": 7946, "loc": { "start": { - "line": 153, - "column": 34 + "line": 186, + "column": 49 }, "end": { - "line": 153, - "column": 35 + "line": 186, + "column": 52 } } }, @@ -41287,22 +46075,22 @@ "updateContext": null }, "value": 0, - "start": 7183, - "end": 7184, + "start": 7947, + "end": 7948, "loc": { "start": { - "line": 153, - "column": 36 + "line": 186, + "column": 53 }, "end": { - "line": 153, - "column": 37 + "line": 186, + "column": 54 } } }, { "type": { - "label": ",", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -41313,50 +46101,52 @@ "binop": null, "updateContext": null }, - "start": 7184, - "end": 7185, + "start": 7948, + "end": 7949, "loc": { "start": { - "line": 153, - "column": 37 + "line": 186, + "column": 54 }, "end": { - "line": 153, - "column": 38 + "line": 186, + "column": 55 } } }, { "type": { - "label": "name", + "label": "const", + "keyword": "const", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "pSimulatedPosition", - "start": 7186, - "end": 7204, + "value": "const", + "start": 7963, + "end": 7968, "loc": { "start": { - "line": 153, - "column": 39 + "line": 187, + "column": 12 }, "end": { - "line": 153, - "column": 57 + "line": 187, + "column": 17 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -41364,64 +46154,76 @@ "postfix": false, "binop": null }, - "start": 7204, - "end": 7205, + "value": "isBackgroundY", + "start": 7969, + "end": 7982, "loc": { "start": { - "line": 153, - "column": 57 + "line": 187, + "column": 18 }, "end": { - "line": 153, - "column": 58 + "line": 187, + "column": 31 } } }, { "type": { - "label": "{", + "label": "=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 7206, - "end": 7207, + "value": "=", + "start": 7983, + "end": 7984, "loc": { "start": { - "line": 153, - "column": 59 + "line": 187, + "column": 32 }, "end": { - "line": 153, - "column": 60 + "line": 187, + "column": 33 } } }, { - "type": "CommentLine", - "value": " The camera's x position. May be adjusted if pSimulatedPosition is used.", - "start": 7217, - "end": 7291, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parallaxInfo", + "start": 7985, + "end": 7997, "loc": { "start": { - "line": 154, - "column": 8 + "line": 187, + "column": 34 }, "end": { - "line": 154, - "column": 82 + "line": 187, + "column": 46 } } }, { "type": { - "label": "let", - "keyword": "let", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -41432,17 +46234,16 @@ "binop": null, "updateContext": null }, - "value": "let", - "start": 7301, - "end": 7304, + "start": 7997, + "end": 7998, "loc": { "start": { - "line": 155, - "column": 8 + "line": 187, + "column": 46 }, "end": { - "line": 155, - "column": 11 + "line": 187, + "column": 47 } } }, @@ -41458,50 +46259,50 @@ "postfix": false, "binop": null }, - "value": "cameraX", - "start": 7305, - "end": 7312, + "value": "y", + "start": 7998, + "end": 7999, "loc": { "start": { - "line": 155, - "column": 12 + "line": 187, + "column": 47 }, "end": { - "line": 155, - "column": 19 + "line": 187, + "column": 48 } } }, { "type": { - "label": "=", + "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 6, "updateContext": null }, - "value": "=", - "start": 7313, - "end": 7314, + "value": "===", + "start": 8000, + "end": 8003, "loc": { "start": { - "line": 155, - "column": 20 + "line": 187, + "column": 49 }, "end": { - "line": 155, - "column": 21 + "line": 187, + "column": 52 } } }, { "type": { - "label": "name", + "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -41509,19 +46310,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "pCameraX", - "start": 7315, - "end": 7323, + "value": 0, + "start": 8004, + "end": 8005, "loc": { "start": { - "line": 155, - "column": 22 + "line": 187, + "column": 53 }, "end": { - "line": 155, - "column": 30 + "line": 187, + "column": 54 } } }, @@ -41538,32 +46340,32 @@ "binop": null, "updateContext": null }, - "start": 7323, - "end": 7324, + "start": 8005, + "end": 8006, "loc": { "start": { - "line": 155, - "column": 30 + "line": 187, + "column": 54 }, "end": { - "line": 155, - "column": 31 + "line": 187, + "column": 55 } } }, { "type": "CommentLine", - "value": " The camera's x position. May be adjusted if pSimulatedPosition is used.", - "start": 7334, - "end": 7408, + "value": " Position to set the instance to.", + "start": 8022, + "end": 8057, "loc": { "start": { - "line": 156, - "column": 8 + "line": 189, + "column": 12 }, "end": { - "line": 156, - "column": 82 + "line": 189, + "column": 47 } } }, @@ -41582,16 +46384,16 @@ "updateContext": null }, "value": "let", - "start": 7418, - "end": 7421, + "start": 8071, + "end": 8074, "loc": { "start": { - "line": 157, - "column": 8 + "line": 190, + "column": 12 }, "end": { - "line": 157, - "column": 11 + "line": 190, + "column": 15 } } }, @@ -41607,44 +46409,71 @@ "postfix": false, "binop": null }, - "value": "cameraY", - "start": 7422, - "end": 7429, + "value": "x", + "start": 8075, + "end": 8076, "loc": { "start": { - "line": 157, - "column": 12 + "line": 190, + "column": 16 }, "end": { - "line": 157, - "column": 19 + "line": 190, + "column": 17 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8076, + "end": 8077, + "loc": { + "start": { + "line": 190, + "column": 17 + }, + "end": { + "line": 190, + "column": 18 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": "let", + "keyword": "let", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 7430, - "end": 7431, + "value": "let", + "start": 8091, + "end": 8094, "loc": { "start": { - "line": 157, - "column": 20 + "line": 191, + "column": 12 }, "end": { - "line": 157, - "column": 21 + "line": 191, + "column": 15 } } }, @@ -41660,17 +46489,17 @@ "postfix": false, "binop": null }, - "value": "pCameraY", - "start": 7432, - "end": 7440, + "value": "y", + "start": 8095, + "end": 8096, "loc": { "start": { - "line": 157, - "column": 22 + "line": 191, + "column": 16 }, "end": { - "line": 157, - "column": 30 + "line": 191, + "column": 17 } } }, @@ -41687,44 +46516,44 @@ "binop": null, "updateContext": null }, - "start": 7440, - "end": 7441, + "start": 8096, + "end": 8097, "loc": { "start": { - "line": 157, - "column": 30 + "line": 191, + "column": 17 }, "end": { - "line": 157, - "column": 31 + "line": 191, + "column": 18 } } }, { "type": { - "label": "for", - "keyword": "for", + "label": "if", + "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, - "isLoop": true, + "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "for", - "start": 7451, - "end": 7454, + "value": "if", + "start": 8113, + "end": 8115, "loc": { "start": { - "line": 158, - "column": 8 + "line": 193, + "column": 12 }, "end": { - "line": 158, - "column": 11 + "line": 193, + "column": 14 } } }, @@ -41740,52 +46569,50 @@ "postfix": false, "binop": null }, - "start": 7455, - "end": 7456, + "start": 8116, + "end": 8117, "loc": { "start": { - "line": 158, - "column": 12 + "line": 193, + "column": 15 }, "end": { - "line": 158, - "column": 13 + "line": 193, + "column": 16 } } }, { "type": { - "label": "const", - "keyword": "const", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "const", - "start": 7456, - "end": 7461, + "value": "isBackgroundX", + "start": 8117, + "end": 8130, "loc": { "start": { - "line": 158, - "column": 13 + "line": 193, + "column": 16 }, "end": { - "line": 158, - "column": 18 + "line": 193, + "column": 29 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -41793,24 +46620,23 @@ "postfix": false, "binop": null }, - "value": "instance", - "start": 7462, - "end": 7470, + "start": 8130, + "end": 8131, "loc": { "start": { - "line": 158, - "column": 19 + "line": 193, + "column": 29 }, "end": { - "line": 158, - "column": 27 + "line": 193, + "column": 30 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -41819,24 +46645,22 @@ "postfix": false, "binop": null }, - "value": "of", - "start": 7471, - "end": 7473, + "start": 8132, + "end": 8133, "loc": { "start": { - "line": 158, - "column": 28 + "line": 193, + "column": 31 }, "end": { - "line": 158, - "column": 30 + "line": 193, + "column": 32 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -41844,46 +46668,46 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 7474, - "end": 7478, + "value": "x", + "start": 8151, + "end": 8152, "loc": { "start": { - "line": 158, - "column": 31 + "line": 194, + "column": 16 }, "end": { - "line": 158, - "column": 35 + "line": 194, + "column": 17 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 7478, - "end": 7479, + "value": "=", + "start": 8153, + "end": 8154, "loc": { "start": { - "line": 158, - "column": 35 + "line": 194, + "column": 18 }, "end": { - "line": 158, - "column": 36 + "line": 194, + "column": 19 } } }, @@ -41899,49 +46723,51 @@ "postfix": false, "binop": null }, - "value": "instances", - "start": 7479, - "end": 7488, + "value": "cameraX", + "start": 8155, + "end": 8162, "loc": { "start": { - "line": 158, - "column": 36 + "line": 194, + "column": 20 }, "end": { - "line": 158, - "column": 45 + "line": 194, + "column": 27 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null + "binop": 9, + "updateContext": null }, - "start": 7488, - "end": 7489, + "value": "-", + "start": 8163, + "end": 8164, "loc": { "start": { - "line": 158, - "column": 45 + "line": 194, + "column": 28 }, "end": { - "line": 158, - "column": 46 + "line": 194, + "column": 29 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -41950,23 +46776,23 @@ "postfix": false, "binop": null }, - "start": 7490, - "end": 7491, + "value": "pInstance", + "start": 8165, + "end": 8174, "loc": { "start": { - "line": 158, - "column": 47 + "line": 194, + "column": 30 }, "end": { - "line": 158, - "column": 48 + "line": 194, + "column": 39 } } }, { "type": { - "label": "const", - "keyword": "const", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -41977,17 +46803,16 @@ "binop": null, "updateContext": null }, - "value": "const", - "start": 7505, - "end": 7510, + "start": 8174, + "end": 8175, "loc": { "start": { - "line": 159, - "column": 12 + "line": 194, + "column": 39 }, "end": { - "line": 159, - "column": 17 + "line": 194, + "column": 40 } } }, @@ -42003,51 +46828,49 @@ "postfix": false, "binop": null }, - "value": "parallaxInfo", - "start": 7511, - "end": 7523, + "value": "icon", + "start": 8175, + "end": 8179, "loc": { "start": { - "line": 159, - "column": 18 + "line": 194, + "column": 40 }, "end": { - "line": 159, - "column": 30 + "line": 194, + "column": 44 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 7524, - "end": 7525, + "start": 8179, + "end": 8180, "loc": { "start": { - "line": 159, - "column": 31 + "line": 194, + "column": 44 }, "end": { - "line": 159, - "column": 32 + "line": 194, + "column": 45 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -42055,52 +46878,52 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 7526, - "end": 7530, + "value": "width", + "start": 8180, + "end": 8185, "loc": { "start": { - "line": 159, - "column": 33 + "line": 194, + "column": 45 }, "end": { - "line": 159, - "column": 37 + "line": 194, + "column": 50 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "/", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 10, "updateContext": null }, - "start": 7530, - "end": 7531, + "value": "/", + "start": 8186, + "end": 8187, "loc": { "start": { - "line": 159, - "column": 37 + "line": 194, + "column": 51 }, "end": { - "line": 159, - "column": 38 + "line": 194, + "column": 52 } } }, { "type": { - "label": "name", + "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -42108,26 +46931,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "instanceWeakMap", - "start": 7531, - "end": 7546, + "value": 2, + "start": 8188, + "end": 8189, "loc": { "start": { - "line": 159, - "column": 38 + "line": 194, + "column": 53 }, "end": { - "line": 159, - "column": 53 + "line": 194, + "column": 54 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -42137,24 +46961,24 @@ "binop": null, "updateContext": null }, - "start": 7546, - "end": 7547, + "start": 8189, + "end": 8190, "loc": { "start": { - "line": 159, - "column": 53 + "line": 194, + "column": 54 }, "end": { - "line": 159, - "column": 54 + "line": 194, + "column": 55 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -42162,49 +46986,51 @@ "postfix": false, "binop": null }, - "value": "get", - "start": 7547, - "end": 7550, + "start": 8204, + "end": 8205, "loc": { "start": { - "line": 159, - "column": 54 + "line": 195, + "column": 12 }, "end": { - "line": 159, - "column": 57 + "line": 195, + "column": 13 } } }, { "type": { - "label": "(", + "label": "else", + "keyword": "else", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 7550, - "end": 7551, + "value": "else", + "start": 8206, + "end": 8210, "loc": { "start": { - "line": 159, - "column": 57 + "line": 195, + "column": 14 }, "end": { - "line": 159, - "column": 58 + "line": 195, + "column": 18 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -42213,23 +47039,23 @@ "postfix": false, "binop": null }, - "value": "instance", - "start": 7551, - "end": 7559, + "start": 8211, + "end": 8212, "loc": { "start": { - "line": 159, - "column": 58 + "line": 195, + "column": 19 }, "end": { - "line": 159, - "column": 66 + "line": 195, + "column": 20 } } }, { "type": { - "label": ")", + "label": "let", + "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -42237,94 +47063,133 @@ "isAssign": false, "prefix": false, "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 8230, + "end": 8233, + "loc": { + "start": { + "line": 196, + "column": 16 + }, + "end": { + "line": 196, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, "binop": null }, - "start": 7559, - "end": 7560, + "value": "deltaX", + "start": 8234, + "end": 8240, "loc": { "start": { - "line": 159, - "column": 66 + "line": 196, + "column": 20 }, "end": { - "line": 159, - "column": 67 + "line": 196, + "column": 26 } } }, { "type": { - "label": ";", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 7560, - "end": 7561, + "value": "=", + "start": 8241, + "end": 8242, "loc": { "start": { - "line": 159, - "column": 67 + "line": 196, + "column": 27 }, "end": { - "line": 159, - "column": 68 + "line": 196, + "column": 28 } } }, { - "type": "CommentLine", - "value": " Move the instance with the camera if the parallax is set to 0", - "start": 7577, - "end": 7641, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "cameraX", + "start": 8243, + "end": 8250, "loc": { "start": { - "line": 161, - "column": 12 + "line": 196, + "column": 29 }, "end": { - "line": 161, - "column": 76 + "line": 196, + "column": 36 } } }, { "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null, + "binop": 9, "updateContext": null }, - "value": "const", - "start": 7655, - "end": 7660, + "value": "-", + "start": 8251, + "end": 8252, "loc": { "start": { - "line": 162, - "column": 12 + "line": 196, + "column": 37 }, "end": { - "line": 162, - "column": 17 + "line": 196, + "column": 38 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -42332,46 +47197,46 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "isBackgroundX", - "start": 7661, - "end": 7674, + "value": "this", + "start": 8253, + "end": 8257, "loc": { "start": { - "line": 162, - "column": 18 + "line": 196, + "column": 39 }, "end": { - "line": 162, - "column": 31 + "line": 196, + "column": 43 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 7675, - "end": 7676, + "start": 8257, + "end": 8258, "loc": { "start": { - "line": 162, - "column": 32 + "line": 196, + "column": 43 }, "end": { - "line": 162, - "column": 33 + "line": 196, + "column": 44 } } }, @@ -42387,17 +47252,17 @@ "postfix": false, "binop": null }, - "value": "parallaxInfo", - "start": 7677, - "end": 7689, + "value": "lastCamPos", + "start": 8258, + "end": 8268, "loc": { "start": { - "line": 162, - "column": 34 + "line": 196, + "column": 44 }, "end": { - "line": 162, - "column": 46 + "line": 196, + "column": 54 } } }, @@ -42414,16 +47279,16 @@ "binop": null, "updateContext": null }, - "start": 7689, - "end": 7690, + "start": 8268, + "end": 8269, "loc": { "start": { - "line": 162, - "column": 46 + "line": 196, + "column": 54 }, "end": { - "line": 162, - "column": 47 + "line": 196, + "column": 55 } } }, @@ -42440,22 +47305,22 @@ "binop": null }, "value": "x", - "start": 7690, - "end": 7691, + "start": 8269, + "end": 8270, "loc": { "start": { - "line": 162, - "column": 47 + "line": 196, + "column": 55 }, "end": { - "line": 162, - "column": 48 + "line": 196, + "column": 56 } } }, { "type": { - "label": "==/!=", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -42463,28 +47328,28 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, + "binop": null, "updateContext": null }, - "value": "===", - "start": 7692, - "end": 7695, + "start": 8270, + "end": 8271, "loc": { "start": { - "line": 162, - "column": 49 + "line": 196, + "column": 56 }, "end": { - "line": 162, - "column": 52 + "line": 196, + "column": 57 } } }, { "type": { - "label": "num", + "label": "let", + "keyword": "let", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -42493,71 +47358,70 @@ "binop": null, "updateContext": null }, - "value": 0, - "start": 7696, - "end": 7697, + "value": "let", + "start": 8289, + "end": 8292, "loc": { "start": { - "line": 162, - "column": 53 + "line": 197, + "column": 16 }, "end": { - "line": 162, - "column": 54 + "line": 197, + "column": 19 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 7697, - "end": 7698, + "value": "distX", + "start": 8293, + "end": 8298, "loc": { "start": { - "line": 162, - "column": 54 + "line": 197, + "column": 20 }, "end": { - "line": 162, - "column": 55 + "line": 197, + "column": 25 } } }, { "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "const", - "start": 7712, - "end": 7717, + "value": "=", + "start": 8299, + "end": 8300, "loc": { "start": { - "line": 163, - "column": 12 + "line": 197, + "column": 26 }, "end": { - "line": 163, - "column": 17 + "line": 197, + "column": 27 } } }, @@ -42573,44 +47437,44 @@ "postfix": false, "binop": null }, - "value": "isBackgroundY", - "start": 7718, - "end": 7731, + "value": "deltaX", + "start": 8301, + "end": 8307, "loc": { "start": { - "line": 163, - "column": 18 + "line": 197, + "column": 28 }, "end": { - "line": 163, - "column": 31 + "line": 197, + "column": 34 } } }, { "type": { - "label": "=", + "label": "*", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 10, "updateContext": null }, - "value": "=", - "start": 7732, - "end": 7733, + "value": "*", + "start": 8308, + "end": 8309, "loc": { "start": { - "line": 163, - "column": 32 + "line": 197, + "column": 35 }, "end": { - "line": 163, - "column": 33 + "line": 197, + "column": 36 } } }, @@ -42627,16 +47491,16 @@ "binop": null }, "value": "parallaxInfo", - "start": 7734, - "end": 7746, + "start": 8310, + "end": 8322, "loc": { "start": { - "line": 163, - "column": 34 + "line": 197, + "column": 37 }, "end": { - "line": 163, - "column": 46 + "line": 197, + "column": 49 } } }, @@ -42653,16 +47517,16 @@ "binop": null, "updateContext": null }, - "start": 7746, - "end": 7747, + "start": 8322, + "end": 8323, "loc": { "start": { - "line": 163, - "column": 46 + "line": 197, + "column": 49 }, "end": { - "line": 163, - "column": 47 + "line": 197, + "column": 50 } } }, @@ -42678,23 +47542,23 @@ "postfix": false, "binop": null }, - "value": "y", - "start": 7747, - "end": 7748, + "value": "x", + "start": 8323, + "end": 8324, "loc": { "start": { - "line": 163, - "column": 47 + "line": 197, + "column": 50 }, "end": { - "line": 163, - "column": 48 + "line": 197, + "column": 51 } } }, { "type": { - "label": "==/!=", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -42702,26 +47566,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, + "binop": null, "updateContext": null }, - "value": "===", - "start": 7749, - "end": 7752, + "start": 8324, + "end": 8325, "loc": { "start": { - "line": 163, - "column": 49 + "line": 197, + "column": 51 }, "end": { - "line": 163, + "line": 197, "column": 52 } } }, { "type": { - "label": "num", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -42729,69 +47592,78 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 0, - "start": 7753, - "end": 7754, + "value": "x", + "start": 8343, + "end": 8344, "loc": { "start": { - "line": 163, - "column": 53 + "line": 198, + "column": 16 }, "end": { - "line": 163, - "column": 54 + "line": 198, + "column": 17 } } }, { "type": { - "label": ";", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 7754, - "end": 7755, + "value": "=", + "start": 8345, + "end": 8346, "loc": { "start": { - "line": 163, - "column": 54 + "line": 198, + "column": 18 }, "end": { - "line": 163, - "column": 55 + "line": 198, + "column": 19 } } }, { - "type": "CommentLine", - "value": " Position to set the instance to.", - "start": 7771, - "end": 7806, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pInstance", + "start": 8347, + "end": 8356, "loc": { "start": { - "line": 165, - "column": 12 + "line": 198, + "column": 20 }, "end": { - "line": 165, - "column": 47 + "line": 198, + "column": 29 } } }, { "type": { - "label": "let", - "keyword": "let", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -42802,17 +47674,16 @@ "binop": null, "updateContext": null }, - "value": "let", - "start": 7820, - "end": 7823, + "start": 8356, + "end": 8357, "loc": { "start": { - "line": 166, - "column": 12 + "line": 198, + "column": 29 }, "end": { - "line": 166, - "column": 15 + "line": 198, + "column": 30 } } }, @@ -42829,122 +47700,120 @@ "binop": null }, "value": "x", - "start": 7824, - "end": 7825, + "start": 8357, + "end": 8358, "loc": { "start": { - "line": 166, - "column": 16 + "line": 198, + "column": 30 }, "end": { - "line": 166, - "column": 17 + "line": 198, + "column": 31 } } }, { "type": { - "label": ";", + "label": "+/-", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null, + "binop": 9, "updateContext": null }, - "start": 7825, - "end": 7826, + "value": "+", + "start": 8359, + "end": 8360, "loc": { "start": { - "line": 166, - "column": 17 + "line": 198, + "column": 32 }, "end": { - "line": 166, - "column": 18 + "line": 198, + "column": 33 } } }, { "type": { - "label": "let", - "keyword": "let", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "let", - "start": 7840, - "end": 7843, + "value": "distX", + "start": 8361, + "end": 8366, "loc": { "start": { - "line": 167, - "column": 12 + "line": 198, + "column": 34 }, "end": { - "line": 167, - "column": 15 + "line": 198, + "column": 39 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "y", - "start": 7844, - "end": 7845, + "start": 8366, + "end": 8367, "loc": { "start": { - "line": 167, - "column": 16 + "line": 198, + "column": 39 }, "end": { - "line": 167, - "column": 17 + "line": 198, + "column": 40 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": "}", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 7845, - "end": 7846, + "start": 8381, + "end": 8382, "loc": { "start": { - "line": 167, - "column": 17 + "line": 199, + "column": 12 }, "end": { - "line": 167, - "column": 18 + "line": 199, + "column": 13 } } }, @@ -42963,15 +47832,15 @@ "updateContext": null }, "value": "if", - "start": 7862, - "end": 7864, + "start": 8398, + "end": 8400, "loc": { "start": { - "line": 169, + "line": 201, "column": 12 }, "end": { - "line": 169, + "line": 201, "column": 14 } } @@ -42988,15 +47857,15 @@ "postfix": false, "binop": null }, - "start": 7865, - "end": 7866, + "start": 8401, + "end": 8402, "loc": { "start": { - "line": 169, + "line": 201, "column": 15 }, "end": { - "line": 169, + "line": 201, "column": 16 } } @@ -43013,16 +47882,16 @@ "postfix": false, "binop": null }, - "value": "isBackgroundX", - "start": 7866, - "end": 7879, + "value": "isBackgroundY", + "start": 8402, + "end": 8415, "loc": { "start": { - "line": 169, + "line": 201, "column": 16 }, "end": { - "line": 169, + "line": 201, "column": 29 } } @@ -43039,15 +47908,15 @@ "postfix": false, "binop": null }, - "start": 7879, - "end": 7880, + "start": 8415, + "end": 8416, "loc": { "start": { - "line": 169, + "line": 201, "column": 29 }, "end": { - "line": 169, + "line": 201, "column": 30 } } @@ -43064,15 +47933,15 @@ "postfix": false, "binop": null }, - "start": 7881, - "end": 7882, + "start": 8417, + "end": 8418, "loc": { "start": { - "line": 169, + "line": 201, "column": 31 }, "end": { - "line": 169, + "line": 201, "column": 32 } } @@ -43089,16 +47958,16 @@ "postfix": false, "binop": null }, - "value": "x", - "start": 7900, - "end": 7901, + "value": "y", + "start": 8436, + "end": 8437, "loc": { "start": { - "line": 170, + "line": 202, "column": 16 }, "end": { - "line": 170, + "line": 202, "column": 17 } } @@ -43117,15 +47986,15 @@ "updateContext": null }, "value": "=", - "start": 7902, - "end": 7903, + "start": 8438, + "end": 8439, "loc": { "start": { - "line": 170, + "line": 202, "column": 18 }, "end": { - "line": 170, + "line": 202, "column": 19 } } @@ -43142,16 +48011,16 @@ "postfix": false, "binop": null }, - "value": "cameraX", - "start": 7904, - "end": 7911, + "value": "cameraY", + "start": 8440, + "end": 8447, "loc": { "start": { - "line": 170, + "line": 202, "column": 20 }, "end": { - "line": 170, + "line": 202, "column": 27 } } @@ -43170,15 +48039,15 @@ "updateContext": null }, "value": "-", - "start": 7912, - "end": 7913, + "start": 8448, + "end": 8449, "loc": { "start": { - "line": 170, + "line": 202, "column": 28 }, "end": { - "line": 170, + "line": 202, "column": 29 } } @@ -43195,17 +48064,17 @@ "postfix": false, "binop": null }, - "value": "instance", - "start": 7914, - "end": 7922, + "value": "pInstance", + "start": 8450, + "end": 8459, "loc": { "start": { - "line": 170, + "line": 202, "column": 30 }, "end": { - "line": 170, - "column": 38 + "line": 202, + "column": 39 } } }, @@ -43222,16 +48091,16 @@ "binop": null, "updateContext": null }, - "start": 7922, - "end": 7923, + "start": 8459, + "end": 8460, "loc": { "start": { - "line": 170, - "column": 38 + "line": 202, + "column": 39 }, "end": { - "line": 170, - "column": 39 + "line": 202, + "column": 40 } } }, @@ -43248,16 +48117,16 @@ "binop": null }, "value": "icon", - "start": 7923, - "end": 7927, + "start": 8460, + "end": 8464, "loc": { "start": { - "line": 170, - "column": 39 + "line": 202, + "column": 40 }, "end": { - "line": 170, - "column": 43 + "line": 202, + "column": 44 } } }, @@ -43274,16 +48143,16 @@ "binop": null, "updateContext": null }, - "start": 7927, - "end": 7928, + "start": 8464, + "end": 8465, "loc": { "start": { - "line": 170, - "column": 43 + "line": 202, + "column": 44 }, "end": { - "line": 170, - "column": 44 + "line": 202, + "column": 45 } } }, @@ -43299,17 +48168,17 @@ "postfix": false, "binop": null }, - "value": "width", - "start": 7928, - "end": 7933, + "value": "height", + "start": 8465, + "end": 8471, "loc": { "start": { - "line": 170, - "column": 44 + "line": 202, + "column": 45 }, "end": { - "line": 170, - "column": 49 + "line": 202, + "column": 51 } } }, @@ -43327,16 +48196,16 @@ "updateContext": null }, "value": "/", - "start": 7934, - "end": 7935, + "start": 8472, + "end": 8473, "loc": { "start": { - "line": 170, - "column": 50 + "line": 202, + "column": 52 }, "end": { - "line": 170, - "column": 51 + "line": 202, + "column": 53 } } }, @@ -43354,16 +48223,16 @@ "updateContext": null }, "value": 2, - "start": 7936, - "end": 7937, + "start": 8474, + "end": 8475, "loc": { "start": { - "line": 170, - "column": 52 + "line": 202, + "column": 54 }, "end": { - "line": 170, - "column": 53 + "line": 202, + "column": 55 } } }, @@ -43380,16 +48249,16 @@ "binop": null, "updateContext": null }, - "start": 7937, - "end": 7938, + "start": 8475, + "end": 8476, "loc": { "start": { - "line": 170, - "column": 53 + "line": 202, + "column": 55 }, "end": { - "line": 170, - "column": 54 + "line": 202, + "column": 56 } } }, @@ -43405,15 +48274,15 @@ "postfix": false, "binop": null }, - "start": 7952, - "end": 7953, + "start": 8490, + "end": 8491, "loc": { "start": { - "line": 171, + "line": 203, "column": 12 }, "end": { - "line": 171, + "line": 203, "column": 13 } } @@ -43433,15 +48302,15 @@ "updateContext": null }, "value": "else", - "start": 7954, - "end": 7958, + "start": 8492, + "end": 8496, "loc": { "start": { - "line": 171, + "line": 203, "column": 14 }, "end": { - "line": 171, + "line": 203, "column": 18 } } @@ -43458,15 +48327,15 @@ "postfix": false, "binop": null }, - "start": 7959, - "end": 7960, + "start": 8497, + "end": 8498, "loc": { "start": { - "line": 171, + "line": 203, "column": 19 }, "end": { - "line": 171, + "line": 203, "column": 20 } } @@ -43486,15 +48355,15 @@ "updateContext": null }, "value": "let", - "start": 7978, - "end": 7981, + "start": 8516, + "end": 8519, "loc": { "start": { - "line": 172, + "line": 204, "column": 16 }, "end": { - "line": 172, + "line": 204, "column": 19 } } @@ -43511,16 +48380,16 @@ "postfix": false, "binop": null }, - "value": "deltaX", - "start": 7982, - "end": 7988, + "value": "deltaY", + "start": 8520, + "end": 8526, "loc": { "start": { - "line": 172, + "line": 204, "column": 20 }, "end": { - "line": 172, + "line": 204, "column": 26 } } @@ -43539,15 +48408,15 @@ "updateContext": null }, "value": "=", - "start": 7989, - "end": 7990, + "start": 8527, + "end": 8528, "loc": { "start": { - "line": 172, + "line": 204, "column": 27 }, "end": { - "line": 172, + "line": 204, "column": 28 } } @@ -43564,16 +48433,16 @@ "postfix": false, "binop": null }, - "value": "cameraX", - "start": 7991, - "end": 7998, + "value": "cameraY", + "start": 8529, + "end": 8536, "loc": { "start": { - "line": 172, + "line": 204, "column": 29 }, "end": { - "line": 172, + "line": 204, "column": 36 } } @@ -43592,15 +48461,15 @@ "updateContext": null }, "value": "-", - "start": 7999, - "end": 8000, + "start": 8537, + "end": 8538, "loc": { "start": { - "line": 172, + "line": 204, "column": 37 }, "end": { - "line": 172, + "line": 204, "column": 38 } } @@ -43620,15 +48489,15 @@ "updateContext": null }, "value": "this", - "start": 8001, - "end": 8005, + "start": 8539, + "end": 8543, "loc": { "start": { - "line": 172, + "line": 204, "column": 39 }, "end": { - "line": 172, + "line": 204, "column": 43 } } @@ -43646,15 +48515,15 @@ "binop": null, "updateContext": null }, - "start": 8005, - "end": 8006, + "start": 8543, + "end": 8544, "loc": { "start": { - "line": 172, + "line": 204, "column": 43 }, "end": { - "line": 172, + "line": 204, "column": 44 } } @@ -43672,15 +48541,15 @@ "binop": null }, "value": "lastCamPos", - "start": 8006, - "end": 8016, + "start": 8544, + "end": 8554, "loc": { "start": { - "line": 172, + "line": 204, "column": 44 }, "end": { - "line": 172, + "line": 204, "column": 54 } } @@ -43698,15 +48567,15 @@ "binop": null, "updateContext": null }, - "start": 8016, - "end": 8017, + "start": 8554, + "end": 8555, "loc": { "start": { - "line": 172, + "line": 204, "column": 54 }, "end": { - "line": 172, + "line": 204, "column": 55 } } @@ -43723,16 +48592,16 @@ "postfix": false, "binop": null }, - "value": "x", - "start": 8017, - "end": 8018, + "value": "y", + "start": 8555, + "end": 8556, "loc": { "start": { - "line": 172, + "line": 204, "column": 55 }, "end": { - "line": 172, + "line": 204, "column": 56 } } @@ -43750,15 +48619,15 @@ "binop": null, "updateContext": null }, - "start": 8018, - "end": 8019, + "start": 8556, + "end": 8557, "loc": { "start": { - "line": 172, + "line": 204, "column": 56 }, "end": { - "line": 172, + "line": 204, "column": 57 } } @@ -43778,15 +48647,15 @@ "updateContext": null }, "value": "let", - "start": 8037, - "end": 8040, + "start": 8575, + "end": 8578, "loc": { "start": { - "line": 173, + "line": 205, "column": 16 }, "end": { - "line": 173, + "line": 205, "column": 19 } } @@ -43803,16 +48672,16 @@ "postfix": false, "binop": null }, - "value": "distX", - "start": 8041, - "end": 8046, + "value": "distY", + "start": 8579, + "end": 8584, "loc": { "start": { - "line": 173, + "line": 205, "column": 20 }, "end": { - "line": 173, + "line": 205, "column": 25 } } @@ -43831,15 +48700,15 @@ "updateContext": null }, "value": "=", - "start": 8047, - "end": 8048, + "start": 8585, + "end": 8586, "loc": { "start": { - "line": 173, + "line": 205, "column": 26 }, "end": { - "line": 173, + "line": 205, "column": 27 } } @@ -43856,16 +48725,16 @@ "postfix": false, "binop": null }, - "value": "deltaX", - "start": 8049, - "end": 8055, + "value": "deltaY", + "start": 8587, + "end": 8593, "loc": { "start": { - "line": 173, + "line": 205, "column": 28 }, "end": { - "line": 173, + "line": 205, "column": 34 } } @@ -43884,15 +48753,15 @@ "updateContext": null }, "value": "*", - "start": 8056, - "end": 8057, + "start": 8594, + "end": 8595, "loc": { "start": { - "line": 173, + "line": 205, "column": 35 }, "end": { - "line": 173, + "line": 205, "column": 36 } } @@ -43910,15 +48779,15 @@ "binop": null }, "value": "parallaxInfo", - "start": 8058, - "end": 8070, + "start": 8596, + "end": 8608, "loc": { "start": { - "line": 173, + "line": 205, "column": 37 }, "end": { - "line": 173, + "line": 205, "column": 49 } } @@ -43936,15 +48805,15 @@ "binop": null, "updateContext": null }, - "start": 8070, - "end": 8071, + "start": 8608, + "end": 8609, "loc": { "start": { - "line": 173, + "line": 205, "column": 49 }, "end": { - "line": 173, + "line": 205, "column": 50 } } @@ -43961,16 +48830,16 @@ "postfix": false, "binop": null }, - "value": "x", - "start": 8071, - "end": 8072, + "value": "y", + "start": 8609, + "end": 8610, "loc": { "start": { - "line": 173, + "line": 205, "column": 50 }, "end": { - "line": 173, + "line": 205, "column": 51 } } @@ -43988,15 +48857,15 @@ "binop": null, "updateContext": null }, - "start": 8072, - "end": 8073, + "start": 8610, + "end": 8611, "loc": { "start": { - "line": 173, + "line": 205, "column": 51 }, "end": { - "line": 173, + "line": 205, "column": 52 } } @@ -44013,16 +48882,16 @@ "postfix": false, "binop": null }, - "value": "x", - "start": 8091, - "end": 8092, + "value": "y", + "start": 8629, + "end": 8630, "loc": { "start": { - "line": 174, + "line": 206, "column": 16 }, "end": { - "line": 174, + "line": 206, "column": 17 } } @@ -44041,15 +48910,15 @@ "updateContext": null }, "value": "=", - "start": 8093, - "end": 8094, + "start": 8631, + "end": 8632, "loc": { "start": { - "line": 174, + "line": 206, "column": 18 }, "end": { - "line": 174, + "line": 206, "column": 19 } } @@ -44066,17 +48935,17 @@ "postfix": false, "binop": null }, - "value": "instance", - "start": 8095, - "end": 8103, + "value": "pInstance", + "start": 8633, + "end": 8642, "loc": { "start": { - "line": 174, + "line": 206, "column": 20 }, "end": { - "line": 174, - "column": 28 + "line": 206, + "column": 29 } } }, @@ -44093,16 +48962,16 @@ "binop": null, "updateContext": null }, - "start": 8103, - "end": 8104, + "start": 8642, + "end": 8643, "loc": { "start": { - "line": 174, - "column": 28 + "line": 206, + "column": 29 }, "end": { - "line": 174, - "column": 29 + "line": 206, + "column": 30 } } }, @@ -44118,44 +48987,137 @@ "postfix": false, "binop": null }, - "value": "x", - "start": 8104, - "end": 8105, + "value": "y", + "start": 8643, + "end": 8644, + "loc": { + "start": { + "line": 206, + "column": 30 + }, + "end": { + "line": 206, + "column": 31 + } + } + }, + { + "type": { + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "+", + "start": 8645, + "end": 8646, + "loc": { + "start": { + "line": 206, + "column": 32 + }, + "end": { + "line": 206, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "distY", + "start": 8647, + "end": 8652, + "loc": { + "start": { + "line": 206, + "column": 34 + }, + "end": { + "line": 206, + "column": 39 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8652, + "end": 8653, + "loc": { + "start": { + "line": 206, + "column": 39 + }, + "end": { + "line": 206, + "column": 40 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8667, + "end": 8668, "loc": { "start": { - "line": 174, - "column": 29 + "line": 207, + "column": 12 }, "end": { - "line": 174, - "column": 30 + "line": 207, + "column": 13 } } }, { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 8106, - "end": 8107, + "type": "CommentLine", + "value": " Set the position", + "start": 8684, + "end": 8703, "loc": { "start": { - "line": 174, - "column": 31 + "line": 209, + "column": 12 }, "end": { - "line": 174, - "column": 32 + "line": 209, + "column": 31 } } }, @@ -44171,24 +49133,24 @@ "postfix": false, "binop": null }, - "value": "distX", - "start": 8108, - "end": 8113, + "value": "pInstance", + "start": 8717, + "end": 8726, "loc": { "start": { - "line": 174, - "column": 33 + "line": 210, + "column": 12 }, "end": { - "line": 174, - "column": 38 + "line": 210, + "column": 21 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -44198,24 +49160,24 @@ "binop": null, "updateContext": null }, - "start": 8113, - "end": 8114, + "start": 8726, + "end": 8727, "loc": { "start": { - "line": 174, - "column": 38 + "line": 210, + "column": 21 }, "end": { - "line": 174, - "column": 39 + "line": 210, + "column": 22 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -44223,51 +49185,51 @@ "postfix": false, "binop": null }, - "start": 8128, - "end": 8129, + "value": "x", + "start": 8727, + "end": 8728, "loc": { "start": { - "line": 175, - "column": 12 + "line": 210, + "column": 22 }, "end": { - "line": 175, - "column": 13 + "line": 210, + "column": 23 } } }, { "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "if", - "start": 8145, - "end": 8147, + "value": "=", + "start": 8729, + "end": 8730, "loc": { "start": { - "line": 177, - "column": 12 + "line": 210, + "column": 24 }, "end": { - "line": 177, - "column": 14 + "line": 210, + "column": 25 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -44276,50 +49238,51 @@ "postfix": false, "binop": null }, - "start": 8148, - "end": 8149, + "value": "x", + "start": 8731, + "end": 8732, "loc": { "start": { - "line": 177, - "column": 15 + "line": 210, + "column": 26 }, "end": { - "line": 177, - "column": 16 + "line": 210, + "column": 27 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "isBackgroundY", - "start": 8149, - "end": 8162, + "start": 8732, + "end": 8733, "loc": { "start": { - "line": 177, - "column": 16 + "line": 210, + "column": 27 }, "end": { - "line": 177, - "column": 29 + "line": 210, + "column": 28 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -44327,41 +49290,43 @@ "postfix": false, "binop": null }, - "start": 8162, - "end": 8163, + "value": "pInstance", + "start": 8747, + "end": 8756, "loc": { "start": { - "line": 177, - "column": 29 + "line": 211, + "column": 12 }, "end": { - "line": 177, - "column": 30 + "line": 211, + "column": 21 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 8164, - "end": 8165, + "start": 8756, + "end": 8757, "loc": { "start": { - "line": 177, - "column": 31 + "line": 211, + "column": 21 }, "end": { - "line": 177, - "column": 32 + "line": 211, + "column": 22 } } }, @@ -44378,16 +49343,16 @@ "binop": null }, "value": "y", - "start": 8183, - "end": 8184, + "start": 8757, + "end": 8758, "loc": { "start": { - "line": 178, - "column": 16 + "line": 211, + "column": 22 }, "end": { - "line": 178, - "column": 17 + "line": 211, + "column": 23 } } }, @@ -44405,16 +49370,16 @@ "updateContext": null }, "value": "=", - "start": 8185, - "end": 8186, + "start": 8759, + "end": 8760, "loc": { "start": { - "line": 178, - "column": 18 + "line": 211, + "column": 24 }, "end": { - "line": 178, - "column": 19 + "line": 211, + "column": 25 } } }, @@ -44430,76 +49395,66 @@ "postfix": false, "binop": null }, - "value": "cameraY", - "start": 8187, - "end": 8194, + "value": "y", + "start": 8761, + "end": 8762, "loc": { "start": { - "line": 178, - "column": 20 + "line": 211, + "column": 26 }, "end": { - "line": 178, + "line": 211, "column": 27 } } }, { "type": { - "label": "+/-", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, + "binop": null, "updateContext": null }, - "value": "-", - "start": 8195, - "end": 8196, + "start": 8762, + "end": 8763, "loc": { "start": { - "line": 178, - "column": 28 + "line": 211, + "column": 27 }, "end": { - "line": 178, - "column": 29 + "line": 211, + "column": 28 } } }, { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "instance", - "start": 8197, - "end": 8205, + "type": "CommentLine", + "value": " Logic cannot be ran on background instances as they should not loop", + "start": 8791, + "end": 8861, "loc": { "start": { - "line": 178, - "column": 30 + "line": 213, + "column": 12 }, "end": { - "line": 178, - "column": 38 + "line": 213, + "column": 82 } } }, { "type": { - "label": ".", + "label": "if", + "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -44510,23 +49465,24 @@ "binop": null, "updateContext": null }, - "start": 8205, - "end": 8206, + "value": "if", + "start": 8875, + "end": 8877, "loc": { "start": { - "line": 178, - "column": 38 + "line": 214, + "column": 12 }, "end": { - "line": 178, - "column": 39 + "line": 214, + "column": 14 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -44535,43 +49491,43 @@ "postfix": false, "binop": null }, - "value": "icon", - "start": 8206, - "end": 8210, + "start": 8878, + "end": 8879, "loc": { "start": { - "line": 178, - "column": 39 + "line": 214, + "column": 15 }, "end": { - "line": 178, - "column": 43 + "line": 214, + "column": 16 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "prefix", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, "binop": null, "updateContext": null }, - "start": 8210, - "end": 8211, + "value": "!", + "start": 8879, + "end": 8880, "loc": { "start": { - "line": 178, - "column": 43 + "line": 214, + "column": 16 }, "end": { - "line": 178, - "column": 44 + "line": 214, + "column": 17 } } }, @@ -44587,23 +49543,23 @@ "postfix": false, "binop": null }, - "value": "height", - "start": 8211, - "end": 8217, + "value": "isBackgroundX", + "start": 8880, + "end": 8893, "loc": { "start": { - "line": 178, - "column": 44 + "line": 214, + "column": 17 }, "end": { - "line": 178, - "column": 50 + "line": 214, + "column": 30 } } }, { "type": { - "label": "/", + "label": "&&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -44611,79 +49567,79 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 10, + "binop": 2, "updateContext": null }, - "value": "/", - "start": 8218, - "end": 8219, + "value": "&&", + "start": 8894, + "end": 8896, "loc": { "start": { - "line": 178, - "column": 51 + "line": 214, + "column": 31 }, "end": { - "line": 178, - "column": 52 + "line": 214, + "column": 33 } } }, { "type": { - "label": "num", - "beforeExpr": false, + "label": "prefix", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, "binop": null, "updateContext": null }, - "value": 2, - "start": 8220, - "end": 8221, + "value": "!", + "start": 8897, + "end": 8898, "loc": { "start": { - "line": 178, - "column": 53 + "line": 214, + "column": 34 }, "end": { - "line": 178, - "column": 54 + "line": 214, + "column": 35 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8221, - "end": 8222, + "value": "isBackgroundY", + "start": 8898, + "end": 8911, "loc": { "start": { - "line": 178, - "column": 54 + "line": 214, + "column": 35 }, "end": { - "line": 178, - "column": 55 + "line": 214, + "column": 48 } } }, { "type": { - "label": "}", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -44693,97 +49649,94 @@ "postfix": false, "binop": null }, - "start": 8236, - "end": 8237, + "start": 8911, + "end": 8912, "loc": { "start": { - "line": 179, - "column": 12 + "line": 214, + "column": 48 }, "end": { - "line": 179, - "column": 13 + "line": 214, + "column": 49 } } }, { "type": { - "label": "else", - "keyword": "else", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "else", - "start": 8238, - "end": 8242, + "start": 8913, + "end": 8914, "loc": { "start": { - "line": 179, - "column": 14 + "line": 214, + "column": 50 }, "end": { - "line": 179, - "column": 18 + "line": 214, + "column": 51 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 8243, - "end": 8244, + "value": "if", + "start": 8932, + "end": 8934, "loc": { "start": { - "line": 179, - "column": 19 + "line": 215, + "column": 16 }, "end": { - "line": 179, - "column": 20 + "line": 215, + "column": 18 } } }, { "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "let", - "start": 8262, - "end": 8265, + "start": 8935, + "end": 8936, "loc": { "start": { - "line": 180, - "column": 16 + "line": 215, + "column": 19 }, "end": { - "line": 180, - "column": 19 + "line": 215, + "column": 20 } } }, @@ -44799,44 +49752,43 @@ "postfix": false, "binop": null }, - "value": "deltaY", - "start": 8266, - "end": 8272, + "value": "parallaxInfo", + "start": 8936, + "end": 8948, "loc": { "start": { - "line": 180, + "line": 215, "column": 20 }, "end": { - "line": 180, - "column": 26 + "line": 215, + "column": 32 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 8273, - "end": 8274, + "start": 8948, + "end": 8949, "loc": { "start": { - "line": 180, - "column": 27 + "line": 215, + "column": 32 }, "end": { - "line": 180, - "column": 28 + "line": 215, + "column": 33 } } }, @@ -44852,78 +49804,90 @@ "postfix": false, "binop": null }, - "value": "cameraY", - "start": 8275, - "end": 8282, + "value": "loop", + "start": 8949, + "end": 8953, "loc": { "start": { - "line": 180, - "column": 29 + "line": 215, + "column": 33 }, "end": { - "line": 180, - "column": 36 + "line": 215, + "column": 37 } } }, { "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, - "updateContext": null + "binop": null }, - "value": "-", - "start": 8283, - "end": 8284, + "start": 8953, + "end": 8954, "loc": { "start": { - "line": 180, + "line": 215, "column": 37 }, "end": { - "line": 180, + "line": 215, "column": 38 } } }, { "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 8285, - "end": 8289, + "start": 8955, + "end": 8956, "loc": { "start": { - "line": 180, + "line": 215, "column": 39 }, "end": { - "line": 180, - "column": 43 + "line": 215, + "column": 40 + } + } + }, + { + "type": "CommentLine", + "value": " The start pos + total width", + "start": 8978, + "end": 9008, + "loc": { + "start": { + "line": 216, + "column": 20 + }, + "end": { + "line": 216, + "column": 50 } } }, { "type": { - "label": ".", + "label": "const", + "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -44934,16 +49898,17 @@ "binop": null, "updateContext": null }, - "start": 8289, - "end": 8290, + "value": "const", + "start": 9030, + "end": 9035, "loc": { "start": { - "line": 180, - "column": 43 + "line": 217, + "column": 20 }, "end": { - "line": 180, - "column": 44 + "line": 217, + "column": 25 } } }, @@ -44959,43 +49924,44 @@ "postfix": false, "binop": null }, - "value": "lastCamPos", - "start": 8290, - "end": 8300, + "value": "rightEnd", + "start": 9036, + "end": 9044, "loc": { "start": { - "line": 180, - "column": 44 + "line": 217, + "column": 26 }, "end": { - "line": 180, - "column": 54 + "line": 217, + "column": 34 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 8300, - "end": 8301, + "value": "=", + "start": 9045, + "end": 9046, "loc": { "start": { - "line": 180, - "column": 54 + "line": 217, + "column": 35 }, "end": { - "line": 180, - "column": 55 + "line": 217, + "column": 36 } } }, @@ -45011,24 +49977,24 @@ "postfix": false, "binop": null }, - "value": "y", - "start": 8301, - "end": 8302, + "value": "pInstance", + "start": 9047, + "end": 9056, "loc": { "start": { - "line": 180, - "column": 55 + "line": 217, + "column": 37 }, "end": { - "line": 180, - "column": 56 + "line": 217, + "column": 46 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -45038,44 +50004,69 @@ "binop": null, "updateContext": null }, - "start": 8302, - "end": 8303, + "start": 9056, + "end": 9057, "loc": { "start": { - "line": 180, - "column": 56 + "line": 217, + "column": 46 }, "end": { - "line": 180, - "column": 57 + "line": 217, + "column": 47 } } }, { "type": { - "label": "let", - "keyword": "let", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": null + }, + "value": "x", + "start": 9057, + "end": 9058, + "loc": { + "start": { + "line": 217, + "column": 47 + }, + "end": { + "line": 217, + "column": 48 + } + } + }, + { + "type": { + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, "updateContext": null }, - "value": "let", - "start": 8321, - "end": 8324, + "value": "+", + "start": 9059, + "end": 9060, "loc": { "start": { - "line": 181, - "column": 16 + "line": 217, + "column": 49 }, "end": { - "line": 181, - "column": 19 + "line": 217, + "column": 50 } } }, @@ -45091,44 +50082,43 @@ "postfix": false, "binop": null }, - "value": "distY", - "start": 8325, - "end": 8330, + "value": "pInstance", + "start": 9061, + "end": 9070, "loc": { "start": { - "line": 181, - "column": 20 + "line": 217, + "column": 51 }, "end": { - "line": 181, - "column": 25 + "line": 217, + "column": 60 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 8331, - "end": 8332, + "start": 9070, + "end": 9071, "loc": { "start": { - "line": 181, - "column": 26 + "line": 217, + "column": 60 }, "end": { - "line": 181, - "column": 27 + "line": 217, + "column": 61 } } }, @@ -45144,44 +50134,43 @@ "postfix": false, "binop": null }, - "value": "deltaY", - "start": 8333, - "end": 8339, + "value": "icon", + "start": 9071, + "end": 9075, "loc": { "start": { - "line": 181, - "column": 28 + "line": 217, + "column": 61 }, "end": { - "line": 181, - "column": 34 + "line": 217, + "column": 65 } } }, { "type": { - "label": "*", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 10, + "binop": null, "updateContext": null }, - "value": "*", - "start": 8340, - "end": 8341, + "start": 9075, + "end": 9076, "loc": { "start": { - "line": 181, - "column": 35 + "line": 217, + "column": 65 }, "end": { - "line": 181, - "column": 36 + "line": 217, + "column": 66 } } }, @@ -45197,24 +50186,24 @@ "postfix": false, "binop": null }, - "value": "parallaxInfo", - "start": 8342, - "end": 8354, + "value": "width", + "start": 9076, + "end": 9081, "loc": { "start": { - "line": 181, - "column": 37 + "line": 217, + "column": 66 }, "end": { - "line": 181, - "column": 49 + "line": 217, + "column": 71 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -45224,49 +50213,40 @@ "binop": null, "updateContext": null }, - "start": 8354, - "end": 8355, + "start": 9081, + "end": 9082, "loc": { "start": { - "line": 181, - "column": 49 + "line": 217, + "column": 71 }, "end": { - "line": 181, - "column": 50 + "line": 217, + "column": 72 } } }, { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 8355, - "end": 8356, + "type": "CommentLine", + "value": " The start pos - total width / 2", + "start": 9104, + "end": 9138, "loc": { "start": { - "line": 181, - "column": 50 + "line": 218, + "column": 20 }, "end": { - "line": 181, - "column": 51 + "line": 218, + "column": 54 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": "const", + "keyword": "const", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -45276,16 +50256,17 @@ "binop": null, "updateContext": null }, - "start": 8356, - "end": 8357, + "value": "const", + "start": 9160, + "end": 9165, "loc": { "start": { - "line": 181, - "column": 51 + "line": 219, + "column": 20 }, "end": { - "line": 181, - "column": 52 + "line": 219, + "column": 25 } } }, @@ -45301,17 +50282,17 @@ "postfix": false, "binop": null }, - "value": "y", - "start": 8375, - "end": 8376, + "value": "leftEnd", + "start": 9166, + "end": 9173, "loc": { "start": { - "line": 182, - "column": 16 + "line": 219, + "column": 26 }, "end": { - "line": 182, - "column": 17 + "line": 219, + "column": 33 } } }, @@ -45329,16 +50310,16 @@ "updateContext": null }, "value": "=", - "start": 8377, - "end": 8378, + "start": 9174, + "end": 9175, "loc": { "start": { - "line": 182, - "column": 18 + "line": 219, + "column": 34 }, "end": { - "line": 182, - "column": 19 + "line": 219, + "column": 35 } } }, @@ -45354,17 +50335,17 @@ "postfix": false, "binop": null }, - "value": "instance", - "start": 8379, - "end": 8387, + "value": "pInstance", + "start": 9176, + "end": 9185, "loc": { "start": { - "line": 182, - "column": 20 + "line": 219, + "column": 36 }, "end": { - "line": 182, - "column": 28 + "line": 219, + "column": 45 } } }, @@ -45381,16 +50362,16 @@ "binop": null, "updateContext": null }, - "start": 8387, - "end": 8388, + "start": 9185, + "end": 9186, "loc": { "start": { - "line": 182, - "column": 28 + "line": 219, + "column": 45 }, "end": { - "line": 182, - "column": 29 + "line": 219, + "column": 46 } } }, @@ -45406,17 +50387,17 @@ "postfix": false, "binop": null }, - "value": "y", - "start": 8388, - "end": 8389, + "value": "x", + "start": 9186, + "end": 9187, "loc": { "start": { - "line": 182, - "column": 29 + "line": 219, + "column": 46 }, "end": { - "line": 182, - "column": 30 + "line": 219, + "column": 47 } } }, @@ -45433,17 +50414,17 @@ "binop": 9, "updateContext": null }, - "value": "+", - "start": 8390, - "end": 8391, + "value": "-", + "start": 9188, + "end": 9189, "loc": { "start": { - "line": 182, - "column": 31 + "line": 219, + "column": 48 }, "end": { - "line": 182, - "column": 32 + "line": 219, + "column": 49 } } }, @@ -45459,24 +50440,24 @@ "postfix": false, "binop": null }, - "value": "distY", - "start": 8392, - "end": 8397, + "value": "pInstance", + "start": 9190, + "end": 9199, "loc": { "start": { - "line": 182, - "column": 33 + "line": 219, + "column": 50 }, "end": { - "line": 182, - "column": 38 + "line": 219, + "column": 59 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -45486,24 +50467,24 @@ "binop": null, "updateContext": null }, - "start": 8397, - "end": 8398, + "start": 9199, + "end": 9200, "loc": { "start": { - "line": 182, - "column": 38 + "line": 219, + "column": 59 }, "end": { - "line": 182, - "column": 39 + "line": 219, + "column": 60 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -45511,32 +50492,43 @@ "postfix": false, "binop": null }, - "start": 8412, - "end": 8413, + "value": "icon", + "start": 9200, + "end": 9204, "loc": { "start": { - "line": 183, - "column": 12 + "line": 219, + "column": 60 }, "end": { - "line": 183, - "column": 13 + "line": 219, + "column": 64 } } }, { - "type": "CommentLine", - "value": " Set the position", - "start": 8429, - "end": 8448, + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9204, + "end": 9205, "loc": { "start": { - "line": 185, - "column": 12 + "line": 219, + "column": 64 }, "end": { - "line": 185, - "column": 31 + "line": 219, + "column": 65 } } }, @@ -45552,49 +50544,50 @@ "postfix": false, "binop": null }, - "value": "instance", - "start": 8462, - "end": 8470, + "value": "width", + "start": 9205, + "end": 9210, "loc": { "start": { - "line": 186, - "column": 12 + "line": 219, + "column": 65 }, "end": { - "line": 186, - "column": 20 + "line": 219, + "column": 70 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "/", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 10, "updateContext": null }, - "start": 8470, - "end": 8471, + "value": "/", + "start": 9211, + "end": 9212, "loc": { "start": { - "line": 186, - "column": 20 + "line": 219, + "column": 71 }, "end": { - "line": 186, - "column": 21 + "line": 219, + "column": 72 } } }, { "type": { - "label": "name", + "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -45602,98 +50595,99 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "x", - "start": 8471, - "end": 8472, + "value": 6, + "start": 9213, + "end": 9214, "loc": { "start": { - "line": 186, - "column": 21 + "line": 219, + "column": 73 }, "end": { - "line": 186, - "column": 22 + "line": 219, + "column": 74 } } }, { "type": { - "label": "=", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 8473, - "end": 8474, + "start": 9214, + "end": 9215, "loc": { "start": { - "line": 186, - "column": 23 + "line": 219, + "column": 74 }, "end": { - "line": 186, - "column": 24 + "line": 219, + "column": 75 } } }, { "type": { - "label": "name", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "x", - "start": 8475, - "end": 8476, + "value": "if", + "start": 9237, + "end": 9239, "loc": { "start": { - "line": 186, - "column": 25 + "line": 220, + "column": 20 }, "end": { - "line": 186, - "column": 26 + "line": 220, + "column": 22 } } }, { "type": { - "label": ";", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8476, - "end": 8477, + "start": 9240, + "end": 9241, "loc": { "start": { - "line": 186, - "column": 26 + "line": 220, + "column": 23 }, "end": { - "line": 186, - "column": 27 + "line": 220, + "column": 24 } } }, @@ -45709,43 +50703,44 @@ "postfix": false, "binop": null }, - "value": "instance", - "start": 8491, - "end": 8499, + "value": "cameraX", + "start": 9241, + "end": 9248, "loc": { "start": { - "line": 187, - "column": 12 + "line": 220, + "column": 24 }, "end": { - "line": 187, - "column": 20 + "line": 220, + "column": 31 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 7, "updateContext": null }, - "start": 8499, - "end": 8500, + "value": ">", + "start": 9249, + "end": 9250, "loc": { "start": { - "line": 187, - "column": 20 + "line": 220, + "column": 32 }, "end": { - "line": 187, - "column": 21 + "line": 220, + "column": 33 } } }, @@ -45761,51 +50756,49 @@ "postfix": false, "binop": null }, - "value": "y", - "start": 8500, - "end": 8501, + "value": "rightEnd", + "start": 9251, + "end": 9259, "loc": { "start": { - "line": 187, - "column": 21 + "line": 220, + "column": 34 }, "end": { - "line": 187, - "column": 22 + "line": 220, + "column": 42 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 8502, - "end": 8503, + "start": 9259, + "end": 9260, "loc": { "start": { - "line": 187, - "column": 23 + "line": 220, + "column": 42 }, "end": { - "line": 187, - "column": 24 + "line": 220, + "column": 43 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -45814,66 +50807,48 @@ "postfix": false, "binop": null }, - "value": "y", - "start": 8504, - "end": 8505, + "start": 9261, + "end": 9262, "loc": { "start": { - "line": 187, - "column": 25 + "line": 220, + "column": 44 }, "end": { - "line": 187, - "column": 26 + "line": 220, + "column": 45 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8505, - "end": 8506, - "loc": { - "start": { - "line": 187, - "column": 26 - }, - "end": { - "line": 187, - "column": 27 - } - } - }, - { - "type": "CommentLine", - "value": " Logic cannot be ran on background instances as they should not loop", - "start": 8534, - "end": 8604, + "value": "pInstance", + "start": 9288, + "end": 9297, "loc": { "start": { - "line": 189, - "column": 12 + "line": 221, + "column": 24 }, "end": { - "line": 189, - "column": 82 + "line": 221, + "column": 33 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -45884,24 +50859,23 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 8618, - "end": 8620, + "start": 9297, + "end": 9298, "loc": { "start": { - "line": 190, - "column": 12 + "line": 221, + "column": 33 }, "end": { - "line": 190, - "column": 14 + "line": 221, + "column": 34 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -45910,43 +50884,44 @@ "postfix": false, "binop": null }, - "start": 8621, - "end": 8622, + "value": "x", + "start": 9298, + "end": 9299, "loc": { "start": { - "line": 190, - "column": 15 + "line": 221, + "column": 34 }, "end": { - "line": 190, - "column": 16 + "line": 221, + "column": 35 } } }, { "type": { - "label": "prefix", + "label": "_=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, - "prefix": true, + "isAssign": true, + "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "!", - "start": 8622, - "end": 8623, + "value": "+=", + "start": 9300, + "end": 9302, "loc": { "start": { - "line": 190, - "column": 16 + "line": 221, + "column": 36 }, "end": { - "line": 190, - "column": 17 + "line": 221, + "column": 38 } } }, @@ -45962,71 +50937,43 @@ "postfix": false, "binop": null }, - "value": "isBackgroundX", - "start": 8623, - "end": 8636, + "value": "pInstance", + "start": 9303, + "end": 9312, "loc": { "start": { - "line": 190, - "column": 17 + "line": 221, + "column": 39 }, "end": { - "line": 190, - "column": 30 + "line": 221, + "column": 48 } } }, { "type": { - "label": "&&", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 8637, - "end": 8639, - "loc": { - "start": { - "line": 190, - "column": 31 - }, - "end": { - "line": 190, - "column": 33 - } - } - }, - { - "type": { - "label": "prefix", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, "binop": null, "updateContext": null }, - "value": "!", - "start": 8640, - "end": 8641, + "start": 9312, + "end": 9313, "loc": { "start": { - "line": 190, - "column": 34 + "line": 221, + "column": 48 }, "end": { - "line": 190, - "column": 35 + "line": 221, + "column": 49 } } }, @@ -46042,23 +50989,23 @@ "postfix": false, "binop": null }, - "value": "isBackgroundY", - "start": 8641, - "end": 8654, + "value": "icon", + "start": 9313, + "end": 9317, "loc": { "start": { - "line": 190, - "column": 35 + "line": 221, + "column": 49 }, "end": { - "line": 190, - "column": 48 + "line": 221, + "column": 53 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -46066,25 +51013,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 8654, - "end": 8655, + "start": 9317, + "end": 9318, "loc": { "start": { - "line": 190, - "column": 48 + "line": 221, + "column": 53 }, "end": { - "line": 190, - "column": 49 + "line": 221, + "column": 54 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -46093,24 +51041,24 @@ "postfix": false, "binop": null }, - "start": 8656, - "end": 8657, + "value": "width", + "start": 9318, + "end": 9323, "loc": { "start": { - "line": 190, - "column": 50 + "line": 221, + "column": 54 }, "end": { - "line": 190, - "column": 51 + "line": 221, + "column": 59 } } }, { "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -46120,25 +51068,24 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 8675, - "end": 8677, + "start": 9323, + "end": 9324, "loc": { "start": { - "line": 191, - "column": 16 + "line": 221, + "column": 59 }, "end": { - "line": 191, - "column": 18 + "line": 221, + "column": 60 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": "}", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -46146,48 +51093,51 @@ "postfix": false, "binop": null }, - "start": 8678, - "end": 8679, + "start": 9346, + "end": 9347, "loc": { "start": { - "line": 191, - "column": 19 + "line": 222, + "column": 20 }, "end": { - "line": 191, - "column": 20 + "line": 222, + "column": 21 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "parallaxInfo", - "start": 8679, - "end": 8691, + "value": "else", + "start": 9348, + "end": 9352, "loc": { "start": { - "line": 191, - "column": 20 + "line": 222, + "column": 22 }, "end": { - "line": 191, - "column": 32 + "line": 222, + "column": 26 } } }, { "type": { - "label": ".", + "label": "if", + "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -46198,23 +51148,24 @@ "binop": null, "updateContext": null }, - "start": 8691, - "end": 8692, + "value": "if", + "start": 9353, + "end": 9355, "loc": { "start": { - "line": 191, - "column": 32 + "line": 222, + "column": 27 }, "end": { - "line": 191, - "column": 33 + "line": 222, + "column": 29 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -46223,25 +51174,24 @@ "postfix": false, "binop": null }, - "value": "loop", - "start": 8692, - "end": 8696, + "start": 9356, + "end": 9357, "loc": { "start": { - "line": 191, - "column": 33 + "line": 222, + "column": 30 }, "end": { - "line": 191, - "column": 37 + "line": 222, + "column": 31 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -46249,93 +51199,78 @@ "postfix": false, "binop": null }, - "start": 8696, - "end": 8697, + "value": "cameraX", + "start": 9357, + "end": 9364, "loc": { "start": { - "line": 191, - "column": 37 + "line": 222, + "column": 31 }, "end": { - "line": 191, + "line": 222, "column": 38 } } }, { "type": { - "label": "{", + "label": "", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 7, + "updateContext": null }, - "start": 8698, - "end": 8699, + "value": "<", + "start": 9365, + "end": 9366, "loc": { "start": { - "line": 191, + "line": 222, "column": 39 }, "end": { - "line": 191, + "line": 222, "column": 40 } } }, - { - "type": "CommentLine", - "value": " The start pos + total width", - "start": 8721, - "end": 8751, - "loc": { - "start": { - "line": 192, - "column": 20 - }, - "end": { - "line": 192, - "column": 50 - } - } - }, { "type": { - "label": "const", - "keyword": "const", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "const", - "start": 8773, - "end": 8778, + "value": "leftEnd", + "start": 9367, + "end": 9374, "loc": { "start": { - "line": 193, - "column": 20 + "line": 222, + "column": 41 }, "end": { - "line": 193, - "column": 25 + "line": 222, + "column": 48 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -46343,44 +51278,41 @@ "postfix": false, "binop": null }, - "value": "rightEnd", - "start": 8779, - "end": 8787, + "start": 9374, + "end": 9375, "loc": { "start": { - "line": 193, - "column": 26 + "line": 222, + "column": 48 }, "end": { - "line": 193, - "column": 34 + "line": 222, + "column": 49 } } }, { "type": { - "label": "=", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 8788, - "end": 8789, + "start": 9376, + "end": 9377, "loc": { "start": { - "line": 193, - "column": 35 + "line": 222, + "column": 50 }, "end": { - "line": 193, - "column": 36 + "line": 222, + "column": 51 } } }, @@ -46396,17 +51328,17 @@ "postfix": false, "binop": null }, - "value": "instance", - "start": 8790, - "end": 8798, + "value": "pInstance", + "start": 9403, + "end": 9412, "loc": { "start": { - "line": 193, - "column": 37 + "line": 223, + "column": 24 }, "end": { - "line": 193, - "column": 45 + "line": 223, + "column": 33 } } }, @@ -46423,16 +51355,16 @@ "binop": null, "updateContext": null }, - "start": 8798, - "end": 8799, + "start": 9412, + "end": 9413, "loc": { "start": { - "line": 193, - "column": 45 + "line": 223, + "column": 33 }, "end": { - "line": 193, - "column": 46 + "line": 223, + "column": 34 } } }, @@ -46449,43 +51381,43 @@ "binop": null }, "value": "x", - "start": 8799, - "end": 8800, + "start": 9413, + "end": 9414, "loc": { "start": { - "line": 193, - "column": 46 + "line": 223, + "column": 34 }, "end": { - "line": 193, - "column": 47 + "line": 223, + "column": 35 } } }, { "type": { - "label": "+/-", + "label": "_=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, - "prefix": true, + "isAssign": true, + "prefix": false, "postfix": false, - "binop": 9, + "binop": null, "updateContext": null }, - "value": "+", - "start": 8801, - "end": 8802, + "value": "-=", + "start": 9415, + "end": 9417, "loc": { "start": { - "line": 193, - "column": 48 + "line": 223, + "column": 36 }, "end": { - "line": 193, - "column": 49 + "line": 223, + "column": 38 } } }, @@ -46501,17 +51433,17 @@ "postfix": false, "binop": null }, - "value": "instance", - "start": 8803, - "end": 8811, + "value": "pInstance", + "start": 9418, + "end": 9427, "loc": { "start": { - "line": 193, - "column": 50 + "line": 223, + "column": 39 }, "end": { - "line": 193, - "column": 58 + "line": 223, + "column": 48 } } }, @@ -46528,16 +51460,16 @@ "binop": null, "updateContext": null }, - "start": 8811, - "end": 8812, + "start": 9427, + "end": 9428, "loc": { "start": { - "line": 193, - "column": 58 + "line": 223, + "column": 48 }, "end": { - "line": 193, - "column": 59 + "line": 223, + "column": 49 } } }, @@ -46554,16 +51486,16 @@ "binop": null }, "value": "icon", - "start": 8812, - "end": 8816, + "start": 9428, + "end": 9432, "loc": { "start": { - "line": 193, - "column": 59 + "line": 223, + "column": 49 }, "end": { - "line": 193, - "column": 63 + "line": 223, + "column": 53 } } }, @@ -46580,16 +51512,16 @@ "binop": null, "updateContext": null }, - "start": 8816, - "end": 8817, + "start": 9432, + "end": 9433, "loc": { "start": { - "line": 193, - "column": 63 + "line": 223, + "column": 53 }, "end": { - "line": 193, - "column": 64 + "line": 223, + "column": 54 } } }, @@ -46606,16 +51538,16 @@ "binop": null }, "value": "width", - "start": 8817, - "end": 8822, + "start": 9433, + "end": 9438, "loc": { "start": { - "line": 193, - "column": 64 + "line": 223, + "column": 54 }, "end": { - "line": 193, - "column": 69 + "line": 223, + "column": 59 } } }, @@ -46632,39 +51564,47 @@ "binop": null, "updateContext": null }, - "start": 8822, - "end": 8823, + "start": 9438, + "end": 9439, "loc": { "start": { - "line": 193, - "column": 69 + "line": 223, + "column": 59 }, "end": { - "line": 193, - "column": 70 + "line": 223, + "column": 60 } } }, { - "type": "CommentLine", - "value": " The start pos - total width / 2", - "start": 8845, - "end": 8879, + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9461, + "end": 9462, "loc": { "start": { - "line": 194, + "line": 224, "column": 20 }, "end": { - "line": 194, - "column": 54 + "line": 224, + "column": 21 } } }, { "type": { - "label": "const", - "keyword": "const", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -46672,28 +51612,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "const", - "start": 8901, - "end": 8906, + "start": 9480, + "end": 9481, "loc": { "start": { - "line": 195, - "column": 20 + "line": 225, + "column": 16 }, "end": { - "line": 195, - "column": 25 + "line": 225, + "column": 17 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -46701,52 +51639,49 @@ "postfix": false, "binop": null }, - "value": "leftEnd", - "start": 8907, - "end": 8914, + "start": 9495, + "end": 9496, "loc": { "start": { - "line": 195, - "column": 26 + "line": 226, + "column": 12 }, "end": { - "line": 195, - "column": 33 + "line": 226, + "column": 13 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": "}", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 8915, - "end": 8916, + "start": 9506, + "end": 9507, "loc": { "start": { - "line": 195, - "column": 34 + "line": 227, + "column": 8 }, "end": { - "line": 195, - "column": 35 + "line": 227, + "column": 9 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -46754,24 +51689,23 @@ "postfix": false, "binop": null }, - "value": "instance", - "start": 8917, - "end": 8925, + "start": 9507, + "end": 9508, "loc": { "start": { - "line": 195, - "column": 36 + "line": 227, + "column": 9 }, "end": { - "line": 195, - "column": 44 + "line": 227, + "column": 10 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -46781,22 +51715,23 @@ "binop": null, "updateContext": null }, - "start": 8925, - "end": 8926, + "start": 9508, + "end": 9509, "loc": { "start": { - "line": 195, - "column": 44 + "line": 227, + "column": 10 }, "end": { - "line": 195, - "column": 45 + "line": 227, + "column": 11 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -46804,46 +51739,46 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "x", - "start": 8926, - "end": 8927, + "value": "this", + "start": 9519, + "end": 9523, "loc": { "start": { - "line": 195, - "column": 45 + "line": 228, + "column": 8 }, "end": { - "line": 195, - "column": 46 + "line": 228, + "column": 12 } } }, { "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, + "binop": null, "updateContext": null }, - "value": "-", - "start": 8928, - "end": 8929, + "start": 9523, + "end": 9524, "loc": { "start": { - "line": 195, - "column": 47 + "line": 228, + "column": 12 }, "end": { - "line": 195, - "column": 48 + "line": 228, + "column": 13 } } }, @@ -46859,17 +51794,17 @@ "postfix": false, "binop": null }, - "value": "instance", - "start": 8930, - "end": 8938, + "value": "lastCamPos", + "start": 9524, + "end": 9534, "loc": { "start": { - "line": 195, - "column": 49 + "line": 228, + "column": 13 }, "end": { - "line": 195, - "column": 57 + "line": 228, + "column": 23 } } }, @@ -46886,16 +51821,16 @@ "binop": null, "updateContext": null }, - "start": 8938, - "end": 8939, + "start": 9534, + "end": 9535, "loc": { "start": { - "line": 195, - "column": 57 + "line": 228, + "column": 23 }, "end": { - "line": 195, - "column": 58 + "line": 228, + "column": 24 } } }, @@ -46911,43 +51846,44 @@ "postfix": false, "binop": null }, - "value": "icon", - "start": 8939, - "end": 8943, + "value": "x", + "start": 9535, + "end": 9536, "loc": { "start": { - "line": 195, - "column": 58 + "line": 228, + "column": 24 }, "end": { - "line": 195, - "column": 62 + "line": 228, + "column": 25 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 8943, - "end": 8944, + "value": "=", + "start": 9537, + "end": 9538, "loc": { "start": { - "line": 195, - "column": 62 + "line": 228, + "column": 26 }, "end": { - "line": 195, - "column": 63 + "line": 228, + "column": 27 } } }, @@ -46963,23 +51899,23 @@ "postfix": false, "binop": null }, - "value": "width", - "start": 8944, - "end": 8949, + "value": "cameraX", + "start": 9539, + "end": 9546, "loc": { "start": { - "line": 195, - "column": 63 + "line": 228, + "column": 28 }, "end": { - "line": 195, - "column": 68 + "line": 228, + "column": 35 } } }, { "type": { - "label": "/", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -46987,26 +51923,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 10, + "binop": null, "updateContext": null }, - "value": "/", - "start": 8950, - "end": 8951, + "start": 9546, + "end": 9547, "loc": { "start": { - "line": 195, - "column": 69 + "line": 228, + "column": 35 }, "end": { - "line": 195, - "column": 70 + "line": 228, + "column": 36 } } }, { "type": { - "label": "num", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -47017,24 +51953,24 @@ "binop": null, "updateContext": null }, - "value": 6, - "start": 8952, - "end": 8953, + "value": "this", + "start": 9557, + "end": 9561, "loc": { "start": { - "line": 195, - "column": 71 + "line": 229, + "column": 8 }, "end": { - "line": 195, - "column": 72 + "line": 229, + "column": 12 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -47044,68 +51980,67 @@ "binop": null, "updateContext": null }, - "start": 8953, - "end": 8954, + "start": 9561, + "end": 9562, "loc": { "start": { - "line": 195, - "column": 72 + "line": 229, + "column": 12 }, "end": { - "line": 195, - "column": 73 + "line": 229, + "column": 13 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 8976, - "end": 8978, + "value": "lastCamPos", + "start": 9562, + "end": 9572, "loc": { "start": { - "line": 196, - "column": 20 + "line": 229, + "column": 13 }, "end": { - "line": 196, - "column": 22 + "line": 229, + "column": 23 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 8979, - "end": 8980, + "start": 9572, + "end": 9573, "loc": { "start": { - "line": 196, + "line": 229, "column": 23 }, "end": { - "line": 196, + "line": 229, "column": 24 } } @@ -47122,44 +52057,44 @@ "postfix": false, "binop": null }, - "value": "cameraX", - "start": 8980, - "end": 8987, + "value": "y", + "start": 9573, + "end": 9574, "loc": { "start": { - "line": 196, + "line": 229, "column": 24 }, "end": { - "line": 196, - "column": 31 + "line": 229, + "column": 25 } } }, { "type": { - "label": "", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": 7, + "binop": null, "updateContext": null }, - "value": ">", - "start": 8988, - "end": 8989, + "value": "=", + "start": 9575, + "end": 9576, "loc": { "start": { - "line": 196, - "column": 32 + "line": 229, + "column": 26 }, "end": { - "line": 196, - "column": 33 + "line": 229, + "column": 27 } } }, @@ -47175,50 +52110,51 @@ "postfix": false, "binop": null }, - "value": "rightEnd", - "start": 8990, - "end": 8998, + "value": "cameraY", + "start": 9577, + "end": 9584, "loc": { "start": { - "line": 196, - "column": 34 + "line": 229, + "column": 28 }, "end": { - "line": 196, - "column": 42 + "line": 229, + "column": 35 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 8998, - "end": 8999, + "start": 9584, + "end": 9585, "loc": { "start": { - "line": 196, - "column": 42 + "line": 229, + "column": 35 }, "end": { - "line": 196, - "column": 43 + "line": 229, + "column": 36 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": "}", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -47226,16 +52162,32 @@ "postfix": false, "binop": null }, - "start": 9000, - "end": 9001, + "start": 9591, + "end": 9592, "loc": { "start": { - "line": 196, - "column": 44 + "line": 230, + "column": 4 }, "end": { - "line": 196, - "column": 45 + "line": 230, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Handles the onRelocated event for instances. Moves their children in relativity to their position.\r\n * @param {Diob | MapObject} pInstance - The instance to handle the event for.\r\n * @param {MapObject[]} pChildren - An array of children belonging to the instance.\r\n ", + "start": 9598, + "end": 9890, + "loc": { + "start": { + "line": 231, + "column": 4 + }, + "end": { + "line": 235, + "column": 7 } } }, @@ -47251,43 +52203,42 @@ "postfix": false, "binop": null }, - "value": "instance", - "start": 9027, - "end": 9035, + "value": "handleOnRelocated", + "start": 9896, + "end": 9913, "loc": { "start": { - "line": 197, - "column": 24 + "line": 236, + "column": 4 }, "end": { - "line": 197, - "column": 32 + "line": 236, + "column": 21 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 9035, - "end": 9036, + "start": 9913, + "end": 9914, "loc": { "start": { - "line": 197, - "column": 32 + "line": 236, + "column": 21 }, "end": { - "line": 197, - "column": 33 + "line": 236, + "column": 22 } } }, @@ -47303,44 +52254,43 @@ "postfix": false, "binop": null }, - "value": "x", - "start": 9036, - "end": 9037, + "value": "pInstance", + "start": 9914, + "end": 9923, "loc": { "start": { - "line": 197, - "column": 33 + "line": 236, + "column": 22 }, "end": { - "line": 197, - "column": 34 + "line": 236, + "column": 31 } } }, { "type": { - "label": "_=", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "+=", - "start": 9038, - "end": 9040, + "start": 9923, + "end": 9924, "loc": { "start": { - "line": 197, - "column": 35 + "line": 236, + "column": 31 }, "end": { - "line": 197, - "column": 37 + "line": 236, + "column": 32 } } }, @@ -47356,23 +52306,23 @@ "postfix": false, "binop": null }, - "value": "instance", - "start": 9041, - "end": 9049, + "value": "pChildren", + "start": 9925, + "end": 9934, "loc": { "start": { - "line": 197, - "column": 38 + "line": 236, + "column": 33 }, "end": { - "line": 197, - "column": 46 + "line": 236, + "column": 42 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -47380,19 +52330,59 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null + }, + "start": 9934, + "end": 9935, + "loc": { + "start": { + "line": 236, + "column": 42 + }, + "end": { + "line": 236, + "column": 43 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null }, - "start": 9049, - "end": 9050, + "start": 9936, + "end": 9937, + "loc": { + "start": { + "line": 236, + "column": 44 + }, + "end": { + "line": 236, + "column": 45 + } + } + }, + { + "type": "CommentLine", + "value": " Update the children's position when the parent moves", + "start": 9947, + "end": 10002, "loc": { "start": { - "line": 197, - "column": 46 + "line": 237, + "column": 8 }, "end": { - "line": 197, - "column": 47 + "line": 237, + "column": 63 } } }, @@ -47408,17 +52398,17 @@ "postfix": false, "binop": null }, - "value": "icon", - "start": 9050, - "end": 9054, + "value": "pChildren", + "start": 10012, + "end": 10021, "loc": { "start": { - "line": 197, - "column": 47 + "line": 238, + "column": 8 }, "end": { - "line": 197, - "column": 51 + "line": 238, + "column": 17 } } }, @@ -47435,16 +52425,16 @@ "binop": null, "updateContext": null }, - "start": 9054, - "end": 9055, + "start": 10021, + "end": 10022, "loc": { "start": { - "line": 197, - "column": 51 + "line": 238, + "column": 17 }, "end": { - "line": 197, - "column": 52 + "line": 238, + "column": 18 } } }, @@ -47460,51 +52450,50 @@ "postfix": false, "binop": null }, - "value": "width", - "start": 9055, - "end": 9060, + "value": "forEach", + "start": 10022, + "end": 10029, "loc": { "start": { - "line": 197, - "column": 52 + "line": 238, + "column": 18 }, "end": { - "line": 197, - "column": 57 + "line": 238, + "column": 25 } } }, { "type": { - "label": ";", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 9060, - "end": 9061, + "start": 10029, + "end": 10030, "loc": { "start": { - "line": 197, - "column": 57 + "line": 238, + "column": 25 }, "end": { - "line": 197, - "column": 58 + "line": 238, + "column": 26 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -47512,51 +52501,48 @@ "postfix": false, "binop": null }, - "start": 9083, - "end": 9084, + "start": 10030, + "end": 10031, "loc": { "start": { - "line": 198, - "column": 20 + "line": 238, + "column": 26 }, "end": { - "line": 198, - "column": 21 + "line": 238, + "column": 27 } } }, { "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "else", - "start": 9085, - "end": 9089, + "value": "pChild", + "start": 10031, + "end": 10037, "loc": { "start": { - "line": 198, - "column": 22 + "line": 238, + "column": 27 }, "end": { - "line": 198, - "column": 26 + "line": 238, + "column": 33 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -47564,52 +52550,51 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 9090, - "end": 9092, + "start": 10037, + "end": 10038, "loc": { "start": { - "line": 198, - "column": 27 + "line": 238, + "column": 33 }, "end": { - "line": 198, - "column": 29 + "line": 238, + "column": 34 } } }, { "type": { - "label": "(", + "label": "=>", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 9093, - "end": 9094, + "start": 10039, + "end": 10041, "loc": { "start": { - "line": 198, - "column": 30 + "line": 238, + "column": 35 }, "end": { - "line": 198, - "column": 31 + "line": 238, + "column": 37 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -47618,78 +52603,76 @@ "postfix": false, "binop": null }, - "value": "cameraX", - "start": 9094, - "end": 9101, + "start": 10042, + "end": 10043, "loc": { "start": { - "line": 198, - "column": 31 + "line": 238, + "column": 38 }, "end": { - "line": 198, - "column": 38 + "line": 238, + "column": 39 } } }, { "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 7, - "updateContext": null + "binop": null }, - "value": "<", - "start": 9102, - "end": 9103, + "value": "pChild", + "start": 10057, + "end": 10063, "loc": { "start": { - "line": 198, - "column": 39 + "line": 239, + "column": 12 }, "end": { - "line": 198, - "column": 40 + "line": 239, + "column": 18 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "leftEnd", - "start": 9104, - "end": 9111, + "start": 10063, + "end": 10064, "loc": { "start": { - "line": 198, - "column": 41 + "line": 239, + "column": 18 }, "end": { - "line": 198, - "column": 48 + "line": 239, + "column": 19 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -47697,41 +52680,44 @@ "postfix": false, "binop": null }, - "start": 9111, - "end": 9112, + "value": "x", + "start": 10064, + "end": 10065, "loc": { "start": { - "line": 198, - "column": 48 + "line": 239, + "column": 19 }, "end": { - "line": 198, - "column": 49 + "line": 239, + "column": 20 } } }, { "type": { - "label": "{", + "label": "=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 9113, - "end": 9114, + "value": "=", + "start": 10066, + "end": 10067, "loc": { "start": { - "line": 198, - "column": 50 + "line": 239, + "column": 21 }, "end": { - "line": 198, - "column": 51 + "line": 239, + "column": 22 } } }, @@ -47747,16 +52733,16 @@ "postfix": false, "binop": null }, - "value": "instance", - "start": 9140, - "end": 9148, + "value": "pInstance", + "start": 10068, + "end": 10077, "loc": { "start": { - "line": 199, - "column": 24 + "line": 239, + "column": 23 }, "end": { - "line": 199, + "line": 239, "column": 32 } } @@ -47774,15 +52760,15 @@ "binop": null, "updateContext": null }, - "start": 9148, - "end": 9149, + "start": 10077, + "end": 10078, "loc": { "start": { - "line": 199, + "line": 239, "column": 32 }, "end": { - "line": 199, + "line": 239, "column": 33 } } @@ -47800,43 +52786,43 @@ "binop": null }, "value": "x", - "start": 9149, - "end": 9150, + "start": 10078, + "end": 10079, "loc": { "start": { - "line": 199, + "line": 239, "column": 33 }, "end": { - "line": 199, + "line": 239, "column": 34 } } }, { "type": { - "label": "_=", + "label": "+/-", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, - "prefix": false, + "isAssign": false, + "prefix": true, "postfix": false, - "binop": null, + "binop": 9, "updateContext": null }, - "value": "-=", - "start": 9151, - "end": 9153, + "value": "+", + "start": 10080, + "end": 10081, "loc": { "start": { - "line": 199, + "line": 239, "column": 35 }, "end": { - "line": 199, - "column": 37 + "line": 239, + "column": 36 } } }, @@ -47852,17 +52838,17 @@ "postfix": false, "binop": null }, - "value": "instance", - "start": 9154, - "end": 9162, + "value": "pChild", + "start": 10082, + "end": 10088, "loc": { "start": { - "line": 199, - "column": 38 + "line": 239, + "column": 37 }, "end": { - "line": 199, - "column": 46 + "line": 239, + "column": 43 } } }, @@ -47879,16 +52865,16 @@ "binop": null, "updateContext": null }, - "start": 9162, - "end": 9163, + "start": 10088, + "end": 10089, "loc": { "start": { - "line": 199, - "column": 46 + "line": 239, + "column": 43 }, "end": { - "line": 199, - "column": 47 + "line": 239, + "column": 44 } } }, @@ -47904,24 +52890,24 @@ "postfix": false, "binop": null }, - "value": "icon", - "start": 9163, - "end": 9167, + "value": "relativeX", + "start": 10089, + "end": 10098, "loc": { "start": { - "line": 199, - "column": 47 + "line": 239, + "column": 44 }, "end": { - "line": 199, - "column": 51 + "line": 239, + "column": 53 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -47931,16 +52917,16 @@ "binop": null, "updateContext": null }, - "start": 9167, - "end": 9168, + "start": 10098, + "end": 10099, "loc": { "start": { - "line": 199, - "column": 51 + "line": 239, + "column": 53 }, "end": { - "line": 199, - "column": 52 + "line": 239, + "column": 54 } } }, @@ -47956,24 +52942,24 @@ "postfix": false, "binop": null }, - "value": "width", - "start": 9168, - "end": 9173, + "value": "pChild", + "start": 10113, + "end": 10119, "loc": { "start": { - "line": 199, - "column": 52 + "line": 240, + "column": 12 }, "end": { - "line": 199, - "column": 57 + "line": 240, + "column": 18 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -47983,24 +52969,24 @@ "binop": null, "updateContext": null }, - "start": 9173, - "end": 9174, + "start": 10119, + "end": 10120, "loc": { "start": { - "line": 199, - "column": 57 + "line": 240, + "column": 18 }, "end": { - "line": 199, - "column": 58 + "line": 240, + "column": 19 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -48008,49 +52994,52 @@ "postfix": false, "binop": null }, - "start": 9196, - "end": 9197, + "value": "y", + "start": 10120, + "end": 10121, "loc": { "start": { - "line": 200, - "column": 20 + "line": 240, + "column": 19 }, "end": { - "line": 200, - "column": 21 + "line": 240, + "column": 20 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 9215, - "end": 9216, + "value": "=", + "start": 10122, + "end": 10123, "loc": { "start": { - "line": 201, - "column": 16 + "line": 240, + "column": 21 }, "end": { - "line": 201, - "column": 17 + "line": 240, + "column": 22 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -48058,22 +53047,23 @@ "postfix": false, "binop": null }, - "start": 9230, - "end": 9231, + "value": "pInstance", + "start": 10124, + "end": 10133, "loc": { "start": { - "line": 202, - "column": 12 + "line": 240, + "column": 23 }, "end": { - "line": 202, - "column": 13 + "line": 240, + "column": 32 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -48081,25 +53071,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 9241, - "end": 9242, + "start": 10133, + "end": 10134, "loc": { "start": { - "line": 203, - "column": 8 + "line": 240, + "column": 32 }, "end": { - "line": 203, - "column": 9 + "line": 240, + "column": 33 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -48107,46 +53097,46 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 9252, - "end": 9256, + "value": "y", + "start": 10134, + "end": 10135, "loc": { "start": { - "line": 204, - "column": 8 + "line": 240, + "column": 33 }, "end": { - "line": 204, - "column": 12 + "line": 240, + "column": 34 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null, + "binop": 9, "updateContext": null }, - "start": 9256, - "end": 9257, + "value": "+", + "start": 10136, + "end": 10137, "loc": { "start": { - "line": 204, - "column": 12 + "line": 240, + "column": 35 }, "end": { - "line": 204, - "column": 13 + "line": 240, + "column": 36 } } }, @@ -48162,17 +53152,17 @@ "postfix": false, "binop": null }, - "value": "lastCamPos", - "start": 9257, - "end": 9267, + "value": "pChild", + "start": 10138, + "end": 10144, "loc": { "start": { - "line": 204, - "column": 13 + "line": 240, + "column": 37 }, "end": { - "line": 204, - "column": 23 + "line": 240, + "column": 43 } } }, @@ -48189,16 +53179,16 @@ "binop": null, "updateContext": null }, - "start": 9267, - "end": 9268, + "start": 10144, + "end": 10145, "loc": { "start": { - "line": 204, - "column": 23 + "line": 240, + "column": 43 }, "end": { - "line": 204, - "column": 24 + "line": 240, + "column": 44 } } }, @@ -48214,44 +53204,43 @@ "postfix": false, "binop": null }, - "value": "x", - "start": 9268, - "end": 9269, + "value": "relativeY", + "start": 10145, + "end": 10154, "loc": { "start": { - "line": 204, - "column": 24 + "line": 240, + "column": 44 }, "end": { - "line": 204, - "column": 25 + "line": 240, + "column": 53 } } }, { "type": { - "label": "=", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 9270, - "end": 9271, + "start": 10154, + "end": 10155, "loc": { "start": { - "line": 204, - "column": 26 + "line": 240, + "column": 53 }, "end": { - "line": 204, - "column": 27 + "line": 240, + "column": 54 } } }, @@ -48267,24 +53256,24 @@ "postfix": false, "binop": null }, - "value": "cameraX", - "start": 9272, - "end": 9279, + "value": "pChild", + "start": 10169, + "end": 10175, "loc": { "start": { - "line": 204, - "column": 28 + "line": 241, + "column": 12 }, "end": { - "line": 204, - "column": 35 + "line": 241, + "column": 18 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -48294,23 +53283,22 @@ "binop": null, "updateContext": null }, - "start": 9279, - "end": 9280, + "start": 10175, + "end": 10176, "loc": { "start": { - "line": 204, - "column": 35 + "line": 241, + "column": 18 }, "end": { - "line": 204, - "column": 36 + "line": 241, + "column": 19 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -48318,46 +53306,46 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 9290, - "end": 9294, + "value": "mapName", + "start": 10176, + "end": 10183, "loc": { "start": { - "line": 205, - "column": 8 + "line": 241, + "column": 19 }, "end": { - "line": 205, - "column": 12 + "line": 241, + "column": 26 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 9294, - "end": 9295, + "value": "=", + "start": 10184, + "end": 10185, "loc": { "start": { - "line": 205, - "column": 12 + "line": 241, + "column": 27 }, "end": { - "line": 205, - "column": 13 + "line": 241, + "column": 28 } } }, @@ -48373,17 +53361,17 @@ "postfix": false, "binop": null }, - "value": "lastCamPos", - "start": 9295, - "end": 9305, + "value": "pInstance", + "start": 10186, + "end": 10195, "loc": { "start": { - "line": 205, - "column": 13 + "line": 241, + "column": 29 }, "end": { - "line": 205, - "column": 23 + "line": 241, + "column": 38 } } }, @@ -48400,16 +53388,16 @@ "binop": null, "updateContext": null }, - "start": 9305, - "end": 9306, + "start": 10195, + "end": 10196, "loc": { "start": { - "line": 205, - "column": 23 + "line": 241, + "column": 38 }, "end": { - "line": 205, - "column": 24 + "line": 241, + "column": 39 } } }, @@ -48425,52 +53413,51 @@ "postfix": false, "binop": null }, - "value": "y", - "start": 9306, - "end": 9307, + "value": "mapName", + "start": 10196, + "end": 10203, "loc": { "start": { - "line": 205, - "column": 24 + "line": 241, + "column": 39 }, "end": { - "line": 205, - "column": 25 + "line": 241, + "column": 46 } } }, { "type": { - "label": "=", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 9308, - "end": 9309, + "start": 10203, + "end": 10204, "loc": { "start": { - "line": 205, - "column": 26 + "line": 241, + "column": 46 }, "end": { - "line": 205, - "column": 27 + "line": 241, + "column": 47 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -48478,17 +53465,41 @@ "postfix": false, "binop": null }, - "value": "cameraY", - "start": 9310, - "end": 9317, + "start": 10214, + "end": 10215, "loc": { "start": { - "line": 205, - "column": 28 + "line": 242, + "column": 8 }, "end": { - "line": 205, - "column": 35 + "line": 242, + "column": 9 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10215, + "end": 10216, + "loc": { + "start": { + "line": 242, + "column": 9 + }, + "end": { + "line": 242, + "column": 10 } } }, @@ -48505,16 +53516,16 @@ "binop": null, "updateContext": null }, - "start": 9317, - "end": 9318, + "start": 10216, + "end": 10217, "loc": { "start": { - "line": 205, - "column": 35 + "line": 242, + "column": 10 }, "end": { - "line": 205, - "column": 36 + "line": 242, + "column": 11 } } }, @@ -48530,15 +53541,15 @@ "postfix": false, "binop": null }, - "start": 9324, - "end": 9325, + "start": 10223, + "end": 10224, "loc": { "start": { - "line": 206, + "line": 243, "column": 4 }, "end": { - "line": 206, + "line": 243, "column": 5 } } @@ -48555,15 +53566,15 @@ "postfix": false, "binop": null }, - "start": 9327, - "end": 9328, + "start": 10226, + "end": 10227, "loc": { "start": { - "line": 207, + "line": 244, "column": 0 }, "end": { - "line": 207, + "line": 244, "column": 1 } } @@ -48583,15 +53594,15 @@ "updateContext": null }, "value": "const", - "start": 9332, - "end": 9337, + "start": 10231, + "end": 10236, "loc": { "start": { - "line": 209, + "line": 246, "column": 0 }, "end": { - "line": 209, + "line": 246, "column": 5 } } @@ -48609,15 +53620,15 @@ "binop": null }, "value": "Parallax", - "start": 9338, - "end": 9346, + "start": 10237, + "end": 10245, "loc": { "start": { - "line": 209, + "line": 246, "column": 6 }, "end": { - "line": 209, + "line": 246, "column": 14 } } @@ -48636,15 +53647,15 @@ "updateContext": null }, "value": "=", - "start": 9347, - "end": 9348, + "start": 10246, + "end": 10247, "loc": { "start": { - "line": 209, + "line": 246, "column": 15 }, "end": { - "line": 209, + "line": 246, "column": 16 } } @@ -48664,15 +53675,15 @@ "updateContext": null }, "value": "new", - "start": 9349, - "end": 9352, + "start": 10248, + "end": 10251, "loc": { "start": { - "line": 209, + "line": 246, "column": 17 }, "end": { - "line": 209, + "line": 246, "column": 20 } } @@ -48690,15 +53701,15 @@ "binop": null }, "value": "ParallaxSingleton", - "start": 9353, - "end": 9370, + "start": 10252, + "end": 10269, "loc": { "start": { - "line": 209, + "line": 246, "column": 21 }, "end": { - "line": 209, + "line": 246, "column": 38 } } @@ -48715,15 +53726,15 @@ "postfix": false, "binop": null }, - "start": 9370, - "end": 9371, + "start": 10269, + "end": 10270, "loc": { "start": { - "line": 209, + "line": 246, "column": 38 }, "end": { - "line": 209, + "line": 246, "column": 39 } } @@ -48740,15 +53751,15 @@ "postfix": false, "binop": null }, - "start": 9371, - "end": 9372, + "start": 10270, + "end": 10271, "loc": { "start": { - "line": 209, + "line": 246, "column": 39 }, "end": { - "line": 209, + "line": 246, "column": 40 } } @@ -48766,15 +53777,15 @@ "binop": null, "updateContext": null }, - "start": 9372, - "end": 9373, + "start": 10271, + "end": 10272, "loc": { "start": { - "line": 209, + "line": 246, "column": 40 }, "end": { - "line": 209, + "line": 246, "column": 41 } } @@ -48794,15 +53805,15 @@ "updateContext": null }, "value": "export", - "start": 9375, - "end": 9381, + "start": 10274, + "end": 10280, "loc": { "start": { - "line": 210, + "line": 247, "column": 0 }, "end": { - "line": 210, + "line": 247, "column": 6 } } @@ -48819,15 +53830,15 @@ "postfix": false, "binop": null }, - "start": 9382, - "end": 9383, + "start": 10281, + "end": 10282, "loc": { "start": { - "line": 210, + "line": 247, "column": 7 }, "end": { - "line": 210, + "line": 247, "column": 8 } } @@ -48845,15 +53856,15 @@ "binop": null }, "value": "Parallax", - "start": 9384, - "end": 9392, + "start": 10283, + "end": 10291, "loc": { "start": { - "line": 210, + "line": 247, "column": 9 }, "end": { - "line": 210, + "line": 247, "column": 17 } } @@ -48870,15 +53881,15 @@ "postfix": false, "binop": null }, - "start": 9393, - "end": 9394, + "start": 10292, + "end": 10293, "loc": { "start": { - "line": 210, + "line": 247, "column": 18 }, "end": { - "line": 210, + "line": 247, "column": 19 } } @@ -48896,15 +53907,15 @@ "binop": null, "updateContext": null }, - "start": 9394, - "end": 9395, + "start": 10293, + "end": 10294, "loc": { "start": { - "line": 210, + "line": 247, "column": 19 }, "end": { - "line": 210, + "line": 247, "column": 20 } } @@ -48922,15 +53933,15 @@ "binop": null, "updateContext": null }, - "start": 9395, - "end": 9395, + "start": 10294, + "end": 10294, "loc": { "start": { - "line": 210, + "line": 247, "column": 20 }, "end": { - "line": 210, + "line": 247, "column": 20 } } diff --git a/docs/class/src/layer.mjs~Layer.html b/docs/class/src/layer.mjs~Layer.html new file mode 100644 index 0000000..bd2435d --- /dev/null +++ b/docs/class/src/layer.mjs~Layer.html @@ -0,0 +1,752 @@ + + + + + + Layer | Parallax + + + + + + + +
+ + + Reference + Source + + +
+ + + +
+
import {Layer} from 'parallax/src/layer.mjs'
+ public + class + + + + | source +
+ +
+

Layer

+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +

Constructor Summary

+ + + + + + + + + +
Public Constructor
+ public + + + + + +
+

+ + + + constructor() +

+
+
+ + + +
+
+ + +
+
+

Member Summary

+ + + + + + + + + +
Private Members
+ private + + + + + +
+

+ + + + config(horizontalSpeed: number, verticalSpeed: number, plane: number, backgrounds: Diob[] | MapObject[], instances: Set): Object +

+
+
+ + +

The configuration object of this layer.

+
+
+
+ + +
+
+

Method Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Methods
+ public + + + + + +
+

+ + + + add(pInstance: Diob, pConfig: Object) +

+
+
+ + +

Adds the instance to the parallax layer.

+
+
+
+ + +
+ public + + + + + +
+

+ + + + remove(pInstance: Diob) +

+
+
+ + +

Removes the instance from the parallax layer.

+
+
+
+ + +
+ public + + + + + +
+

+ + + + updateConfigSpeed(pConfig: Object, pUpdateLayerConfigOnly: boolean) +

+
+
+ + +

Updates the configuration speed of the layer.

+
+
+
+ + +
+ public + + + + + +
+

+ + + + updateHorizontalSpeed(pHorizontalSpeed: number, pUpdateLayerConfigOnly: boolean) +

+
+
+ + +

Updates the horizontal speed of this layer.

+
+
+
+ + +
+ public + + + + + +
+

+ + + + updateVerticalSpeed(pVerticalSpeed: number, pUpdateLayerConfigOnly: boolean) +

+
+
+ + +

Updates the vertical speed of the layer.

+
+
+
+ + +
+
+ + + + + +

Public Constructors

+ +
+

+ public + + + + + + constructor() + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

Private Members

+ +
+

+ private + + + + + + config(horizontalSpeed: number, verticalSpeed: number, plane: number, backgrounds: Diob[] | MapObject[], instances: Set): Object + + + + source + +

+ + + + +

The configuration object of this layer.

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

Public Methods

+ +
+

+ public + + + + + + add(pInstance: Diob, pConfig: Object) + + + + source + +

+ + + + +

Adds the instance to the parallax layer. +When using this API the instance should already be on the map.

+
+ + + +
+

Params:

+ + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
pInstanceDiob

The instance to add to the layer.

+
pConfigObject

The personal config of this instance. Akin to the parallax info passed via the Parallax.add API.

+
+
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + remove(pInstance: Diob) + + + + source + +

+ + + + +

Removes the instance from the parallax layer.

+
+ + + +
+

Params:

+ + + + + + + + + + + + + +
NameTypeAttributeDescription
pInstanceDiob

The instance to remove from the layer.

+
+
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + updateConfigSpeed(pConfig: Object, pUpdateLayerConfigOnly: boolean) + + + + source + +

+ + + + +

Updates the configuration speed of the layer.

+
+ + + +
+

Params:

+ + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
pConfigObject

The speed configuration of the parallax layer.

+
pUpdateLayerConfigOnlyboolean

If only to update the layer config and not the instance config.

+
+
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + updateHorizontalSpeed(pHorizontalSpeed: number, pUpdateLayerConfigOnly: boolean) + + + + source + +

+ + + + +

Updates the horizontal speed of this layer.

+
+ + + +
+

Params:

+ + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
pHorizontalSpeednumber

The new horizontal speed.

+
pUpdateLayerConfigOnlyboolean

If only to update the layer config and not the instance config.

+
+
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + updateVerticalSpeed(pVerticalSpeed: number, pUpdateLayerConfigOnly: boolean) + + + + source + +

+ + + + +

Updates the vertical speed of the layer.

+
+ + + +
+

Params:

+ + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
pVerticalSpeednumber

The new vertical speed.

+
pUpdateLayerConfigOnlyboolean

If only to update the layer config and not the instance config.

+
+
+
+ + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + diff --git a/docs/class/src/parallax.mjs~ParallaxSingleton.html b/docs/class/src/parallax.mjs~ParallaxSingleton.html index e108d58..046b208 100644 --- a/docs/class/src/parallax.mjs~ParallaxSingleton.html +++ b/docs/class/src/parallax.mjs~ParallaxSingleton.html @@ -29,7 +29,8 @@