diff --git a/docs/ast/source/layer.mjs.json b/docs/ast/source/layer.mjs.json index de4e49d..3f749bb 100644 --- a/docs/ast/source/layer.mjs.json +++ b/docs/ast/source/layer.mjs.json @@ -1,28 +1,28 @@ { "type": "File", "start": 0, - "end": 6998, + "end": 7022, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 159, + "line": 164, "column": 1 } }, "program": { "type": "Program", "start": 0, - "end": 6998, + "end": 7022, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 159, + "line": 164, "column": 1 } }, @@ -116,15 +116,15 @@ }, { "type": "ExportNamedDeclaration", - "start": 46, - "end": 6998, + "start": 44, + "end": 7022, "loc": { "start": { "line": 3, "column": 0 }, "end": { - "line": 159, + "line": 164, "column": 1 } }, @@ -132,22 +132,22 @@ "source": null, "declaration": { "type": "ClassDeclaration", - "start": 53, - "end": 6998, + "start": 51, + "end": 7022, "loc": { "start": { "line": 3, "column": 7 }, "end": { - "line": 159, + "line": 164, "column": 1 } }, "id": { "type": "Identifier", - "start": 59, - "end": 64, + "start": 57, + "end": 62, "loc": { "start": { "line": 3, @@ -164,23 +164,23 @@ "superClass": null, "body": { "type": "ClassBody", - "start": 65, - "end": 6998, + "start": 63, + "end": 7022, "loc": { "start": { "line": 3, "column": 19 }, "end": { - "line": 159, + "line": 164, "column": 1 } }, "body": [ { "type": "ClassProperty", - "start": 631, - "end": 860, + "start": 618, + "end": 840, "loc": { "start": { "line": 14, @@ -195,8 +195,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 631, - "end": 637, + "start": 618, + "end": 624, "loc": { "start": { "line": 14, @@ -213,8 +213,8 @@ }, "value": { "type": "ObjectExpression", - "start": 640, - "end": 860, + "start": 627, + "end": 840, "loc": { "start": { "line": 14, @@ -228,8 +228,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 725, - "end": 743, + "start": 710, + "end": 728, "loc": { "start": { "line": 16, @@ -245,8 +245,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 725, - "end": 740, + "start": 710, + "end": 725, "loc": { "start": { "line": 16, @@ -263,8 +263,8 @@ }, "value": { "type": "NumericLiteral", - "start": 742, - "end": 743, + "start": 727, + "end": 728, "loc": { "start": { "line": 16, @@ -285,8 +285,8 @@ { "type": "CommentLine", "value": " Move the instance with the camera if the parallax is set to 0", - "start": 651, - "end": 715, + "start": 637, + "end": 701, "loc": { "start": { "line": 15, @@ -302,8 +302,8 @@ }, { "type": "ObjectProperty", - "start": 754, - "end": 770, + "start": 738, + "end": 754, "loc": { "start": { "line": 17, @@ -319,8 +319,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 754, - "end": 767, + "start": 738, + "end": 751, "loc": { "start": { "line": 17, @@ -336,8 +336,8 @@ }, "value": { "type": "NumericLiteral", - "start": 769, - "end": 770, + "start": 753, + "end": 754, "loc": { "start": { "line": 17, @@ -357,8 +357,8 @@ }, { "type": "ObjectProperty", - "start": 781, - "end": 789, + "start": 764, + "end": 772, "loc": { "start": { "line": 18, @@ -374,8 +374,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 781, - "end": 786, + "start": 764, + "end": 769, "loc": { "start": { "line": 18, @@ -391,8 +391,8 @@ }, "value": { "type": "NumericLiteral", - "start": 788, - "end": 789, + "start": 771, + "end": 772, "loc": { "start": { "line": 18, @@ -412,8 +412,8 @@ }, { "type": "ObjectProperty", - "start": 800, - "end": 822, + "start": 782, + "end": 804, "loc": { "start": { "line": 19, @@ -429,8 +429,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 800, - "end": 811, + "start": 782, + "end": 793, "loc": { "start": { "line": 19, @@ -446,8 +446,8 @@ }, "value": { "type": "NewExpression", - "start": 813, - "end": 822, + "start": 795, + "end": 804, "loc": { "start": { "line": 19, @@ -460,8 +460,8 @@ }, "callee": { "type": "Identifier", - "start": 817, - "end": 820, + "start": 799, + "end": 802, "loc": { "start": { "line": 19, @@ -480,8 +480,8 @@ }, { "type": "ObjectProperty", - "start": 833, - "end": 853, + "start": 814, + "end": 834, "loc": { "start": { "line": 20, @@ -497,8 +497,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 833, - "end": 842, + "start": 814, + "end": 823, "loc": { "start": { "line": 20, @@ -514,8 +514,8 @@ }, "value": { "type": "NewExpression", - "start": 844, - "end": 853, + "start": 825, + "end": 834, "loc": { "start": { "line": 20, @@ -528,8 +528,8 @@ }, "callee": { "type": "Identifier", - "start": 848, - "end": 851, + "start": 829, + "end": 832, "loc": { "start": { "line": 20, @@ -548,9 +548,9 @@ "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, + "value": "*\n * Creates a new Parallax layer with the supplied configuration.\n * When creating a layer, all instances and backgrounds should already be on the map.\n * @param {Object} pConfig - The configuration of the parallax layer.\n * @prop {number} pConfig.horizontalSpeed - The horizontal speed of the layer.\n * @prop {number} pConfig.verticalSpeed - The vertical speed of the layer. \n * @prop {number} pConfig.plane - The plane this layer will occupy.\n * @param {Diob[] | MapObject[]} pConfig.backgrounds - An array of instances that will serve as the background. These are automatically toggled to repeat.\n * @prop {Diob[] | MapObject[]} pConfig.instances - The instances that will be added to the layer. \n ", + "start": 845, + "end": 1587, "loc": { "start": { "line": 22, @@ -570,9 +570,9 @@ "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, + "value": "*\n * The configuration object of this layer.\n * @private\n * @type {Object}\n * @param {number} horizontalSpeed - The horizontal speed of the layer.\n * @param {number} verticalSpeed - The vertical speed of the layer.\n * @param {number} plane - The plane this parallax layer will occupy.\n * @param {Diob[] | MapObject[]} backgrounds - An array of instances that will serve as the background. These are automatically toggled to repeat.\n * @param {Set} instances - A set of instances currently on the layer.\n ", + "start": 69, + "end": 613, "loc": { "start": { "line": 4, @@ -588,9 +588,9 @@ "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, + "value": "*\n * Creates a new Parallax layer with the supplied configuration.\n * When creating a layer, all instances and backgrounds should already be on the map.\n * @param {Object} pConfig - The configuration of the parallax layer.\n * @prop {number} pConfig.horizontalSpeed - The horizontal speed of the layer.\n * @prop {number} pConfig.verticalSpeed - The vertical speed of the layer. \n * @prop {number} pConfig.plane - The plane this layer will occupy.\n * @param {Diob[] | MapObject[]} pConfig.backgrounds - An array of instances that will serve as the background. These are automatically toggled to repeat.\n * @prop {Diob[] | MapObject[]} pConfig.instances - The instances that will be added to the layer. \n ", + "start": 845, + "end": 1587, "loc": { "start": { "line": 22, @@ -606,8 +606,8 @@ }, { "type": "ClassMethod", - "start": 1623, - "end": 2708, + "start": 1592, + "end": 2648, "loc": { "start": { "line": 32, @@ -622,8 +622,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1623, - "end": 1634, + "start": 1592, + "end": 1603, "loc": { "start": { "line": 32, @@ -645,8 +645,8 @@ "params": [ { "type": "Identifier", - "start": 1635, - "end": 1642, + "start": 1604, + "end": 1611, "loc": { "start": { "line": 32, @@ -663,8 +663,8 @@ ], "body": { "type": "BlockStatement", - "start": 1644, - "end": 2708, + "start": 1613, + "end": 2648, "loc": { "start": { "line": 32, @@ -678,8 +678,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 1655, - "end": 1693, + "start": 1623, + "end": 1661, "loc": { "start": { "line": 33, @@ -692,8 +692,8 @@ }, "expression": { "type": "CallExpression", - "start": 1655, - "end": 1692, + "start": 1623, + "end": 1660, "loc": { "start": { "line": 33, @@ -706,8 +706,8 @@ }, "callee": { "type": "MemberExpression", - "start": 1655, - "end": 1677, + "start": 1623, + "end": 1645, "loc": { "start": { "line": 33, @@ -720,8 +720,8 @@ }, "object": { "type": "ThisExpression", - "start": 1655, - "end": 1659, + "start": 1623, + "end": 1627, "loc": { "start": { "line": 33, @@ -735,8 +735,8 @@ }, "property": { "type": "Identifier", - "start": 1660, - "end": 1677, + "start": 1628, + "end": 1645, "loc": { "start": { "line": 33, @@ -755,8 +755,8 @@ "arguments": [ { "type": "Identifier", - "start": 1678, - "end": 1685, + "start": 1646, + "end": 1653, "loc": { "start": { "line": 33, @@ -772,8 +772,8 @@ }, { "type": "BooleanLiteral", - "start": 1687, - "end": 1691, + "start": 1655, + "end": 1659, "loc": { "start": { "line": 33, @@ -791,8 +791,8 @@ }, { "type": "IfStatement", - "start": 1705, - "end": 1995, + "start": 1671, + "end": 1957, "loc": { "start": { "line": 35, @@ -805,8 +805,8 @@ }, "test": { "type": "BinaryExpression", - "start": 1709, - "end": 1743, + "start": 1675, + "end": 1709, "loc": { "start": { "line": 35, @@ -819,8 +819,8 @@ }, "left": { "type": "UnaryExpression", - "start": 1709, - "end": 1730, + "start": 1675, + "end": 1696, "loc": { "start": { "line": 35, @@ -835,8 +835,8 @@ "prefix": true, "argument": { "type": "UnaryExpression", - "start": 1710, - "end": 1730, + "start": 1676, + "end": 1696, "loc": { "start": { "line": 35, @@ -851,8 +851,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 1717, - "end": 1730, + "start": 1683, + "end": 1696, "loc": { "start": { "line": 35, @@ -865,8 +865,8 @@ }, "object": { "type": "Identifier", - "start": 1717, - "end": 1724, + "start": 1683, + "end": 1690, "loc": { "start": { "line": 35, @@ -882,8 +882,8 @@ }, "property": { "type": "Identifier", - "start": 1725, - "end": 1730, + "start": 1691, + "end": 1696, "loc": { "start": { "line": 35, @@ -910,8 +910,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 1735, - "end": 1743, + "start": 1701, + "end": 1709, "loc": { "start": { "line": 35, @@ -931,8 +931,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 1745, - "end": 1929, + "start": 1711, + "end": 1893, "loc": { "start": { "line": 35, @@ -946,8 +946,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 1760, - "end": 1918, + "start": 1725, + "end": 1883, "loc": { "start": { "line": 36, @@ -960,8 +960,8 @@ }, "expression": { "type": "CallExpression", - "start": 1760, - "end": 1917, + "start": 1725, + "end": 1882, "loc": { "start": { "line": 36, @@ -974,8 +974,8 @@ }, "callee": { "type": "MemberExpression", - "start": 1760, - "end": 1806, + "start": 1725, + "end": 1771, "loc": { "start": { "line": 36, @@ -988,8 +988,8 @@ }, "object": { "type": "CallExpression", - "start": 1760, - "end": 1801, + "start": 1725, + "end": 1766, "loc": { "start": { "line": 36, @@ -1002,8 +1002,8 @@ }, "callee": { "type": "MemberExpression", - "start": 1760, - "end": 1782, + "start": 1725, + "end": 1747, "loc": { "start": { "line": 36, @@ -1016,8 +1016,8 @@ }, "object": { "type": "MemberExpression", - "start": 1760, - "end": 1775, + "start": 1725, + "end": 1740, "loc": { "start": { "line": 36, @@ -1030,8 +1030,8 @@ }, "object": { "type": "Identifier", - "start": 1760, - "end": 1768, + "start": 1725, + "end": 1733, "loc": { "start": { "line": 36, @@ -1047,8 +1047,8 @@ }, "property": { "type": "Identifier", - "start": 1769, - "end": 1775, + "start": 1734, + "end": 1740, "loc": { "start": { "line": 36, @@ -1066,8 +1066,8 @@ }, "property": { "type": "Identifier", - "start": 1776, - "end": 1782, + "start": 1741, + "end": 1747, "loc": { "start": { "line": 36, @@ -1086,8 +1086,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 1783, - "end": 1800, + "start": 1748, + "end": 1765, "loc": { "start": { "line": 36, @@ -1108,8 +1108,8 @@ }, "property": { "type": "Identifier", - "start": 1802, - "end": 1806, + "start": 1767, + "end": 1771, "loc": { "start": { "line": 36, @@ -1128,8 +1128,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 1807, - "end": 1861, + "start": 1772, + "end": 1826, "loc": { "start": { "line": 36, @@ -1148,8 +1148,8 @@ }, { "type": "UnaryExpression", - "start": 1863, - "end": 1883, + "start": 1828, + "end": 1848, "loc": { "start": { "line": 36, @@ -1164,8 +1164,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 1870, - "end": 1883, + "start": 1835, + "end": 1848, "loc": { "start": { "line": 36, @@ -1178,8 +1178,8 @@ }, "object": { "type": "Identifier", - "start": 1870, - "end": 1877, + "start": 1835, + "end": 1842, "loc": { "start": { "line": 36, @@ -1195,8 +1195,8 @@ }, "property": { "type": "Identifier", - "start": 1878, - "end": 1883, + "start": 1843, + "end": 1848, "loc": { "start": { "line": 36, @@ -1218,8 +1218,8 @@ }, { "type": "StringLiteral", - "start": 1885, - "end": 1916, + "start": 1850, + "end": 1881, "loc": { "start": { "line": 36, @@ -1244,8 +1244,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 1935, - "end": 1995, + "start": 1899, + "end": 1957, "loc": { "start": { "line": 37, @@ -1259,8 +1259,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 1950, - "end": 1984, + "start": 1913, + "end": 1947, "loc": { "start": { "line": 38, @@ -1273,8 +1273,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 1950, - "end": 1983, + "start": 1913, + "end": 1946, "loc": { "start": { "line": 38, @@ -1288,8 +1288,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 1950, - "end": 1967, + "start": 1913, + "end": 1930, "loc": { "start": { "line": 38, @@ -1302,8 +1302,8 @@ }, "object": { "type": "MemberExpression", - "start": 1950, - "end": 1961, + "start": 1913, + "end": 1924, "loc": { "start": { "line": 38, @@ -1316,8 +1316,8 @@ }, "object": { "type": "ThisExpression", - "start": 1950, - "end": 1954, + "start": 1913, + "end": 1917, "loc": { "start": { "line": 38, @@ -1331,8 +1331,8 @@ }, "property": { "type": "Identifier", - "start": 1955, - "end": 1961, + "start": 1918, + "end": 1924, "loc": { "start": { "line": 38, @@ -1350,8 +1350,8 @@ }, "property": { "type": "Identifier", - "start": 1962, - "end": 1967, + "start": 1925, + "end": 1930, "loc": { "start": { "line": 38, @@ -1369,8 +1369,8 @@ }, "right": { "type": "MemberExpression", - "start": 1970, - "end": 1983, + "start": 1933, + "end": 1946, "loc": { "start": { "line": 38, @@ -1383,8 +1383,8 @@ }, "object": { "type": "Identifier", - "start": 1970, - "end": 1977, + "start": 1933, + "end": 1940, "loc": { "start": { "line": 38, @@ -1400,8 +1400,8 @@ }, "property": { "type": "Identifier", - "start": 1978, - "end": 1983, + "start": 1941, + "end": 1946, "loc": { "start": { "line": 38, @@ -1425,8 +1425,8 @@ }, { "type": "VariableDeclaration", - "start": 2007, - "end": 2129, + "start": 1967, + "end": 2086, "loc": { "start": { "line": 41, @@ -1440,8 +1440,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 2013, - "end": 2129, + "start": 1973, + "end": 2086, "loc": { "start": { "line": 41, @@ -1454,8 +1454,8 @@ }, "id": { "type": "Identifier", - "start": 2013, - "end": 2027, + "start": 1973, + "end": 1987, "loc": { "start": { "line": 41, @@ -1471,8 +1471,8 @@ }, "init": { "type": "ObjectExpression", - "start": 2030, - "end": 2129, + "start": 1990, + "end": 2086, "loc": { "start": { "line": 41, @@ -1486,8 +1486,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 2045, - "end": 2075, + "start": 2004, + "end": 2034, "loc": { "start": { "line": 42, @@ -1503,8 +1503,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2045, - "end": 2046, + "start": 2004, + "end": 2005, "loc": { "start": { "line": 42, @@ -1520,8 +1520,8 @@ }, "value": { "type": "MemberExpression", - "start": 2048, - "end": 2075, + "start": 2007, + "end": 2034, "loc": { "start": { "line": 42, @@ -1534,8 +1534,8 @@ }, "object": { "type": "MemberExpression", - "start": 2048, - "end": 2059, + "start": 2007, + "end": 2018, "loc": { "start": { "line": 42, @@ -1548,8 +1548,8 @@ }, "object": { "type": "ThisExpression", - "start": 2048, - "end": 2052, + "start": 2007, + "end": 2011, "loc": { "start": { "line": 42, @@ -1563,8 +1563,8 @@ }, "property": { "type": "Identifier", - "start": 2053, - "end": 2059, + "start": 2012, + "end": 2018, "loc": { "start": { "line": 42, @@ -1582,8 +1582,8 @@ }, "property": { "type": "Identifier", - "start": 2060, - "end": 2075, + "start": 2019, + "end": 2034, "loc": { "start": { "line": 42, @@ -1602,8 +1602,8 @@ }, { "type": "ObjectProperty", - "start": 2090, - "end": 2118, + "start": 2048, + "end": 2076, "loc": { "start": { "line": 43, @@ -1619,8 +1619,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2090, - "end": 2091, + "start": 2048, + "end": 2049, "loc": { "start": { "line": 43, @@ -1636,8 +1636,8 @@ }, "value": { "type": "MemberExpression", - "start": 2093, - "end": 2118, + "start": 2051, + "end": 2076, "loc": { "start": { "line": 43, @@ -1650,8 +1650,8 @@ }, "object": { "type": "MemberExpression", - "start": 2093, - "end": 2104, + "start": 2051, + "end": 2062, "loc": { "start": { "line": 43, @@ -1664,8 +1664,8 @@ }, "object": { "type": "ThisExpression", - "start": 2093, - "end": 2097, + "start": 2051, + "end": 2055, "loc": { "start": { "line": 43, @@ -1679,8 +1679,8 @@ }, "property": { "type": "Identifier", - "start": 2098, - "end": 2104, + "start": 2056, + "end": 2062, "loc": { "start": { "line": 43, @@ -1698,8 +1698,8 @@ }, "property": { "type": "Identifier", - "start": 2105, - "end": 2118, + "start": 2063, + "end": 2076, "loc": { "start": { "line": 43, @@ -1724,8 +1724,8 @@ }, { "type": "IfStatement", - "start": 2141, - "end": 2369, + "start": 2096, + "end": 2319, "loc": { "start": { "line": 46, @@ -1738,8 +1738,8 @@ }, "test": { "type": "CallExpression", - "start": 2145, - "end": 2177, + "start": 2100, + "end": 2132, "loc": { "start": { "line": 46, @@ -1752,8 +1752,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2145, - "end": 2158, + "start": 2100, + "end": 2113, "loc": { "start": { "line": 46, @@ -1766,8 +1766,8 @@ }, "object": { "type": "Identifier", - "start": 2145, - "end": 2150, + "start": 2100, + "end": 2105, "loc": { "start": { "line": 46, @@ -1783,8 +1783,8 @@ }, "property": { "type": "Identifier", - "start": 2151, - "end": 2158, + "start": 2106, + "end": 2113, "loc": { "start": { "line": 46, @@ -1803,8 +1803,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 2159, - "end": 2176, + "start": 2114, + "end": 2131, "loc": { "start": { "line": 46, @@ -1817,8 +1817,8 @@ }, "object": { "type": "Identifier", - "start": 2159, - "end": 2166, + "start": 2114, + "end": 2121, "loc": { "start": { "line": 46, @@ -1834,8 +1834,8 @@ }, "property": { "type": "Identifier", - "start": 2167, - "end": 2176, + "start": 2122, + "end": 2131, "loc": { "start": { "line": 46, @@ -1855,8 +1855,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 2179, - "end": 2369, + "start": 2134, + "end": 2319, "loc": { "start": { "line": 46, @@ -1870,8 +1870,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 2194, - "end": 2358, + "start": 2148, + "end": 2309, "loc": { "start": { "line": 47, @@ -1884,8 +1884,8 @@ }, "expression": { "type": "CallExpression", - "start": 2194, - "end": 2357, + "start": 2148, + "end": 2308, "loc": { "start": { "line": 47, @@ -1898,8 +1898,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2194, - "end": 2219, + "start": 2148, + "end": 2173, "loc": { "start": { "line": 47, @@ -1912,8 +1912,8 @@ }, "object": { "type": "MemberExpression", - "start": 2194, - "end": 2211, + "start": 2148, + "end": 2165, "loc": { "start": { "line": 47, @@ -1926,8 +1926,8 @@ }, "object": { "type": "Identifier", - "start": 2194, - "end": 2201, + "start": 2148, + "end": 2155, "loc": { "start": { "line": 47, @@ -1943,8 +1943,8 @@ }, "property": { "type": "Identifier", - "start": 2202, - "end": 2211, + "start": 2156, + "end": 2165, "loc": { "start": { "line": 47, @@ -1962,8 +1962,8 @@ }, "property": { "type": "Identifier", - "start": 2212, - "end": 2219, + "start": 2166, + "end": 2173, "loc": { "start": { "line": 47, @@ -1982,8 +1982,8 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 2220, - "end": 2356, + "start": 2174, + "end": 2307, "loc": { "start": { "line": 47, @@ -2001,8 +2001,8 @@ "params": [ { "type": "Identifier", - "start": 2220, - "end": 2229, + "start": 2174, + "end": 2183, "loc": { "start": { "line": 47, @@ -2019,8 +2019,8 @@ ], "body": { "type": "BlockStatement", - "start": 2233, - "end": 2356, + "start": 2187, + "end": 2307, "loc": { "start": { "line": 47, @@ -2034,8 +2034,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 2252, - "end": 2288, + "start": 2205, + "end": 2241, "loc": { "start": { "line": 48, @@ -2048,8 +2048,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 2252, - "end": 2287, + "start": 2205, + "end": 2240, "loc": { "start": { "line": 48, @@ -2063,8 +2063,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 2252, - "end": 2267, + "start": 2205, + "end": 2220, "loc": { "start": { "line": 48, @@ -2077,8 +2077,8 @@ }, "object": { "type": "Identifier", - "start": 2252, - "end": 2261, + "start": 2205, + "end": 2214, "loc": { "start": { "line": 48, @@ -2094,8 +2094,8 @@ }, "property": { "type": "Identifier", - "start": 2262, - "end": 2267, + "start": 2215, + "end": 2220, "loc": { "start": { "line": 48, @@ -2113,8 +2113,8 @@ }, "right": { "type": "MemberExpression", - "start": 2270, - "end": 2287, + "start": 2223, + "end": 2240, "loc": { "start": { "line": 48, @@ -2127,8 +2127,8 @@ }, "object": { "type": "MemberExpression", - "start": 2270, - "end": 2281, + "start": 2223, + "end": 2234, "loc": { "start": { "line": 48, @@ -2141,8 +2141,8 @@ }, "object": { "type": "ThisExpression", - "start": 2270, - "end": 2274, + "start": 2223, + "end": 2227, "loc": { "start": { "line": 48, @@ -2156,8 +2156,8 @@ }, "property": { "type": "Identifier", - "start": 2275, - "end": 2281, + "start": 2228, + "end": 2234, "loc": { "start": { "line": 48, @@ -2175,8 +2175,8 @@ }, "property": { "type": "Identifier", - "start": 2282, - "end": 2287, + "start": 2235, + "end": 2240, "loc": { "start": { "line": 48, @@ -2196,8 +2196,8 @@ }, { "type": "ExpressionStatement", - "start": 2306, - "end": 2341, + "start": 2258, + "end": 2293, "loc": { "start": { "line": 49, @@ -2210,8 +2210,8 @@ }, "expression": { "type": "CallExpression", - "start": 2306, - "end": 2341, + "start": 2258, + "end": 2293, "loc": { "start": { "line": 49, @@ -2224,8 +2224,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2306, - "end": 2314, + "start": 2258, + "end": 2266, "loc": { "start": { "line": 49, @@ -2238,8 +2238,8 @@ }, "object": { "type": "ThisExpression", - "start": 2306, - "end": 2310, + "start": 2258, + "end": 2262, "loc": { "start": { "line": 49, @@ -2253,8 +2253,8 @@ }, "property": { "type": "Identifier", - "start": 2311, - "end": 2314, + "start": 2263, + "end": 2266, "loc": { "start": { "line": 49, @@ -2273,8 +2273,8 @@ "arguments": [ { "type": "Identifier", - "start": 2315, - "end": 2324, + "start": 2267, + "end": 2276, "loc": { "start": { "line": 49, @@ -2290,8 +2290,8 @@ }, { "type": "Identifier", - "start": 2326, - "end": 2340, + "start": 2278, + "end": 2292, "loc": { "start": { "line": 49, @@ -2322,8 +2322,8 @@ }, { "type": "IfStatement", - "start": 2381, - "end": 2701, + "start": 2329, + "end": 2642, "loc": { "start": { "line": 53, @@ -2336,8 +2336,8 @@ }, "test": { "type": "CallExpression", - "start": 2385, - "end": 2419, + "start": 2333, + "end": 2367, "loc": { "start": { "line": 53, @@ -2350,8 +2350,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2385, - "end": 2398, + "start": 2333, + "end": 2346, "loc": { "start": { "line": 53, @@ -2364,8 +2364,8 @@ }, "object": { "type": "Identifier", - "start": 2385, - "end": 2390, + "start": 2333, + "end": 2338, "loc": { "start": { "line": 53, @@ -2381,8 +2381,8 @@ }, "property": { "type": "Identifier", - "start": 2391, - "end": 2398, + "start": 2339, + "end": 2346, "loc": { "start": { "line": 53, @@ -2401,8 +2401,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 2399, - "end": 2418, + "start": 2347, + "end": 2366, "loc": { "start": { "line": 53, @@ -2415,8 +2415,8 @@ }, "object": { "type": "Identifier", - "start": 2399, - "end": 2406, + "start": 2347, + "end": 2354, "loc": { "start": { "line": 53, @@ -2432,8 +2432,8 @@ }, "property": { "type": "Identifier", - "start": 2407, - "end": 2418, + "start": 2355, + "end": 2366, "loc": { "start": { "line": 53, @@ -2453,8 +2453,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 2421, - "end": 2701, + "start": 2369, + "end": 2642, "loc": { "start": { "line": 53, @@ -2468,8 +2468,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 2483, - "end": 2510, + "start": 2429, + "end": 2456, "loc": { "start": { "line": 55, @@ -2482,8 +2482,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 2483, - "end": 2509, + "start": 2429, + "end": 2455, "loc": { "start": { "line": 55, @@ -2497,8 +2497,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 2483, - "end": 2502, + "start": 2429, + "end": 2448, "loc": { "start": { "line": 55, @@ -2511,8 +2511,8 @@ }, "object": { "type": "Identifier", - "start": 2483, - "end": 2497, + "start": 2429, + "end": 2443, "loc": { "start": { "line": 55, @@ -2529,8 +2529,8 @@ }, "property": { "type": "Identifier", - "start": 2498, - "end": 2502, + "start": 2444, + "end": 2448, "loc": { "start": { "line": 55, @@ -2549,8 +2549,8 @@ }, "right": { "type": "BooleanLiteral", - "start": 2505, - "end": 2509, + "start": 2451, + "end": 2455, "loc": { "start": { "line": 55, @@ -2569,8 +2569,8 @@ { "type": "CommentLine", "value": " Backgrounds automatically loop", - "start": 2436, - "end": 2469, + "start": 2383, + "end": 2416, "loc": { "start": { "line": 54, @@ -2586,8 +2586,8 @@ }, { "type": "ExpressionStatement", - "start": 2524, - "end": 2690, + "start": 2469, + "end": 2632, "loc": { "start": { "line": 56, @@ -2600,8 +2600,8 @@ }, "expression": { "type": "CallExpression", - "start": 2524, - "end": 2689, + "start": 2469, + "end": 2631, "loc": { "start": { "line": 56, @@ -2614,8 +2614,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2524, - "end": 2551, + "start": 2469, + "end": 2496, "loc": { "start": { "line": 56, @@ -2628,8 +2628,8 @@ }, "object": { "type": "MemberExpression", - "start": 2524, - "end": 2543, + "start": 2469, + "end": 2488, "loc": { "start": { "line": 56, @@ -2642,8 +2642,8 @@ }, "object": { "type": "Identifier", - "start": 2524, - "end": 2531, + "start": 2469, + "end": 2476, "loc": { "start": { "line": 56, @@ -2659,8 +2659,8 @@ }, "property": { "type": "Identifier", - "start": 2532, - "end": 2543, + "start": 2477, + "end": 2488, "loc": { "start": { "line": 56, @@ -2678,8 +2678,8 @@ }, "property": { "type": "Identifier", - "start": 2544, - "end": 2551, + "start": 2489, + "end": 2496, "loc": { "start": { "line": 56, @@ -2698,8 +2698,8 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 2552, - "end": 2688, + "start": 2497, + "end": 2630, "loc": { "start": { "line": 56, @@ -2717,8 +2717,8 @@ "params": [ { "type": "Identifier", - "start": 2552, - "end": 2561, + "start": 2497, + "end": 2506, "loc": { "start": { "line": 56, @@ -2735,8 +2735,8 @@ ], "body": { "type": "BlockStatement", - "start": 2565, - "end": 2688, + "start": 2510, + "end": 2630, "loc": { "start": { "line": 56, @@ -2750,8 +2750,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 2584, - "end": 2620, + "start": 2528, + "end": 2564, "loc": { "start": { "line": 57, @@ -2764,8 +2764,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 2584, - "end": 2619, + "start": 2528, + "end": 2563, "loc": { "start": { "line": 57, @@ -2779,8 +2779,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 2584, - "end": 2599, + "start": 2528, + "end": 2543, "loc": { "start": { "line": 57, @@ -2793,8 +2793,8 @@ }, "object": { "type": "Identifier", - "start": 2584, - "end": 2593, + "start": 2528, + "end": 2537, "loc": { "start": { "line": 57, @@ -2810,8 +2810,8 @@ }, "property": { "type": "Identifier", - "start": 2594, - "end": 2599, + "start": 2538, + "end": 2543, "loc": { "start": { "line": 57, @@ -2829,8 +2829,8 @@ }, "right": { "type": "MemberExpression", - "start": 2602, - "end": 2619, + "start": 2546, + "end": 2563, "loc": { "start": { "line": 57, @@ -2843,8 +2843,8 @@ }, "object": { "type": "MemberExpression", - "start": 2602, - "end": 2613, + "start": 2546, + "end": 2557, "loc": { "start": { "line": 57, @@ -2857,8 +2857,8 @@ }, "object": { "type": "ThisExpression", - "start": 2602, - "end": 2606, + "start": 2546, + "end": 2550, "loc": { "start": { "line": 57, @@ -2872,8 +2872,8 @@ }, "property": { "type": "Identifier", - "start": 2607, - "end": 2613, + "start": 2551, + "end": 2557, "loc": { "start": { "line": 57, @@ -2891,8 +2891,8 @@ }, "property": { "type": "Identifier", - "start": 2614, - "end": 2619, + "start": 2558, + "end": 2563, "loc": { "start": { "line": 57, @@ -2912,8 +2912,8 @@ }, { "type": "ExpressionStatement", - "start": 2638, - "end": 2673, + "start": 2581, + "end": 2616, "loc": { "start": { "line": 58, @@ -2926,8 +2926,8 @@ }, "expression": { "type": "CallExpression", - "start": 2638, - "end": 2673, + "start": 2581, + "end": 2616, "loc": { "start": { "line": 58, @@ -2940,8 +2940,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2638, - "end": 2646, + "start": 2581, + "end": 2589, "loc": { "start": { "line": 58, @@ -2954,8 +2954,8 @@ }, "object": { "type": "ThisExpression", - "start": 2638, - "end": 2642, + "start": 2581, + "end": 2585, "loc": { "start": { "line": 58, @@ -2969,8 +2969,8 @@ }, "property": { "type": "Identifier", - "start": 2643, - "end": 2646, + "start": 2586, + "end": 2589, "loc": { "start": { "line": 58, @@ -2989,8 +2989,8 @@ "arguments": [ { "type": "Identifier", - "start": 2647, - "end": 2656, + "start": 2590, + "end": 2599, "loc": { "start": { "line": 58, @@ -3006,8 +3006,8 @@ }, { "type": "Identifier", - "start": 2658, - "end": 2672, + "start": 2601, + "end": 2615, "loc": { "start": { "line": 58, @@ -3043,9 +3043,9 @@ "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, + "value": "*\n * Updates the configuration speed of the layer.\n * @param {Object} pConfig - The speed configuration of the parallax layer.\n * @prop {number} pConfig.horizontalSpeed - The horizontal speed of the layer.\n * @prop {number} pConfig.verticalSpeed - The vertical speed of the layer. \n * @param {boolean} pUpdateLayerConfigOnly - If only to update the layer config and not the instance config.\n ", + "start": 2653, + "end": 3073, "loc": { "start": { "line": 62, @@ -3061,8 +3061,8 @@ }, { "type": "ClassMethod", - "start": 3146, - "end": 3373, + "start": 3078, + "end": 3302, "loc": { "start": { "line": 69, @@ -3077,8 +3077,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3146, - "end": 3163, + "start": 3078, + "end": 3095, "loc": { "start": { "line": 69, @@ -3101,8 +3101,8 @@ "params": [ { "type": "Identifier", - "start": 3164, - "end": 3171, + "start": 3096, + "end": 3103, "loc": { "start": { "line": 69, @@ -3118,8 +3118,8 @@ }, { "type": "Identifier", - "start": 3173, - "end": 3195, + "start": 3105, + "end": 3127, "loc": { "start": { "line": 69, @@ -3136,8 +3136,8 @@ ], "body": { "type": "BlockStatement", - "start": 3197, - "end": 3373, + "start": 3129, + "end": 3302, "loc": { "start": { "line": 69, @@ -3151,8 +3151,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 3208, - "end": 3284, + "start": 3139, + "end": 3215, "loc": { "start": { "line": 70, @@ -3165,8 +3165,8 @@ }, "expression": { "type": "CallExpression", - "start": 3208, - "end": 3283, + "start": 3139, + "end": 3214, "loc": { "start": { "line": 70, @@ -3179,8 +3179,8 @@ }, "callee": { "type": "MemberExpression", - "start": 3208, - "end": 3234, + "start": 3139, + "end": 3165, "loc": { "start": { "line": 70, @@ -3193,8 +3193,8 @@ }, "object": { "type": "ThisExpression", - "start": 3208, - "end": 3212, + "start": 3139, + "end": 3143, "loc": { "start": { "line": 70, @@ -3208,8 +3208,8 @@ }, "property": { "type": "Identifier", - "start": 3213, - "end": 3234, + "start": 3144, + "end": 3165, "loc": { "start": { "line": 70, @@ -3228,8 +3228,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 3235, - "end": 3258, + "start": 3166, + "end": 3189, "loc": { "start": { "line": 70, @@ -3242,8 +3242,8 @@ }, "object": { "type": "Identifier", - "start": 3235, - "end": 3242, + "start": 3166, + "end": 3173, "loc": { "start": { "line": 70, @@ -3259,8 +3259,8 @@ }, "property": { "type": "Identifier", - "start": 3243, - "end": 3258, + "start": 3174, + "end": 3189, "loc": { "start": { "line": 70, @@ -3278,8 +3278,8 @@ }, { "type": "Identifier", - "start": 3260, - "end": 3282, + "start": 3191, + "end": 3213, "loc": { "start": { "line": 70, @@ -3298,8 +3298,8 @@ }, { "type": "ExpressionStatement", - "start": 3294, - "end": 3366, + "start": 3224, + "end": 3296, "loc": { "start": { "line": 71, @@ -3312,8 +3312,8 @@ }, "expression": { "type": "CallExpression", - "start": 3294, - "end": 3365, + "start": 3224, + "end": 3295, "loc": { "start": { "line": 71, @@ -3326,8 +3326,8 @@ }, "callee": { "type": "MemberExpression", - "start": 3294, - "end": 3318, + "start": 3224, + "end": 3248, "loc": { "start": { "line": 71, @@ -3340,8 +3340,8 @@ }, "object": { "type": "ThisExpression", - "start": 3294, - "end": 3298, + "start": 3224, + "end": 3228, "loc": { "start": { "line": 71, @@ -3355,8 +3355,8 @@ }, "property": { "type": "Identifier", - "start": 3299, - "end": 3318, + "start": 3229, + "end": 3248, "loc": { "start": { "line": 71, @@ -3375,8 +3375,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 3319, - "end": 3340, + "start": 3249, + "end": 3270, "loc": { "start": { "line": 71, @@ -3389,8 +3389,8 @@ }, "object": { "type": "Identifier", - "start": 3319, - "end": 3326, + "start": 3249, + "end": 3256, "loc": { "start": { "line": 71, @@ -3406,8 +3406,8 @@ }, "property": { "type": "Identifier", - "start": 3327, - "end": 3340, + "start": 3257, + "end": 3270, "loc": { "start": { "line": 71, @@ -3425,8 +3425,8 @@ }, { "type": "Identifier", - "start": 3342, - "end": 3364, + "start": 3272, + "end": 3294, "loc": { "start": { "line": 71, @@ -3450,9 +3450,9 @@ "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, + "value": "*\n * Updates the configuration speed of the layer.\n * @param {Object} pConfig - The speed configuration of the parallax layer.\n * @prop {number} pConfig.horizontalSpeed - The horizontal speed of the layer.\n * @prop {number} pConfig.verticalSpeed - The vertical speed of the layer. \n * @param {boolean} pUpdateLayerConfigOnly - If only to update the layer config and not the instance config.\n ", + "start": 2653, + "end": 3073, "loc": { "start": { "line": 62, @@ -3468,9 +3468,9 @@ "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, + "value": "*\n * Updates the horizontal speed of this layer.\n * @param {number} pHorizontalSpeed - The new horizontal speed.\n * @param {boolean} pUpdateLayerConfigOnly - If only to update the layer config and not the instance config.\n ", + "start": 3307, + "end": 3550, "loc": { "start": { "line": 73, @@ -3486,8 +3486,8 @@ }, { "type": "ClassMethod", - "start": 3632, - "end": 4522, + "start": 3555, + "end": 4422, "loc": { "start": { "line": 78, @@ -3502,8 +3502,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3632, - "end": 3653, + "start": 3555, + "end": 3576, "loc": { "start": { "line": 78, @@ -3526,8 +3526,8 @@ "params": [ { "type": "Identifier", - "start": 3654, - "end": 3670, + "start": 3577, + "end": 3593, "loc": { "start": { "line": 78, @@ -3543,8 +3543,8 @@ }, { "type": "Identifier", - "start": 3672, - "end": 3694, + "start": 3595, + "end": 3617, "loc": { "start": { "line": 78, @@ -3561,8 +3561,8 @@ ], "body": { "type": "BlockStatement", - "start": 3696, - "end": 4522, + "start": 3619, + "end": 4422, "loc": { "start": { "line": 78, @@ -3576,8 +3576,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 3707, - "end": 3790, + "start": 3629, + "end": 3712, "loc": { "start": { "line": 79, @@ -3591,8 +3591,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 3713, - "end": 3789, + "start": 3635, + "end": 3711, "loc": { "start": { "line": 79, @@ -3605,8 +3605,8 @@ }, "id": { "type": "Identifier", - "start": 3713, - "end": 3730, + "start": 3635, + "end": 3652, "loc": { "start": { "line": 79, @@ -3622,8 +3622,8 @@ }, "init": { "type": "LogicalExpression", - "start": 3733, - "end": 3789, + "start": 3655, + "end": 3711, "loc": { "start": { "line": 79, @@ -3636,8 +3636,8 @@ }, "left": { "type": "Identifier", - "start": 3733, - "end": 3749, + "start": 3655, + "end": 3671, "loc": { "start": { "line": 79, @@ -3654,8 +3654,8 @@ "operator": "&&", "right": { "type": "BinaryExpression", - "start": 3753, - "end": 3789, + "start": 3675, + "end": 3711, "loc": { "start": { "line": 79, @@ -3668,8 +3668,8 @@ }, "left": { "type": "UnaryExpression", - "start": 3753, - "end": 3776, + "start": 3675, + "end": 3698, "loc": { "start": { "line": 79, @@ -3684,8 +3684,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 3760, - "end": 3776, + "start": 3682, + "end": 3698, "loc": { "start": { "line": 79, @@ -3706,8 +3706,8 @@ "operator": "!==", "right": { "type": "StringLiteral", - "start": 3781, - "end": 3789, + "start": 3703, + "end": 3711, "loc": { "start": { "line": 79, @@ -3732,8 +3732,8 @@ }, { "type": "IfStatement", - "start": 3802, - "end": 4002, + "start": 3722, + "end": 3919, "loc": { "start": { "line": 81, @@ -3746,8 +3746,8 @@ }, "test": { "type": "Identifier", - "start": 3806, - "end": 3823, + "start": 3726, + "end": 3743, "loc": { "start": { "line": 81, @@ -3763,8 +3763,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 3825, - "end": 4002, + "start": 3745, + "end": 3919, "loc": { "start": { "line": 81, @@ -3778,8 +3778,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 3840, - "end": 3971, + "start": 3759, + "end": 3890, "loc": { "start": { "line": 82, @@ -3792,8 +3792,8 @@ }, "expression": { "type": "CallExpression", - "start": 3840, - "end": 3970, + "start": 3759, + "end": 3889, "loc": { "start": { "line": 82, @@ -3806,8 +3806,8 @@ }, "callee": { "type": "MemberExpression", - "start": 3840, - "end": 3886, + "start": 3759, + "end": 3805, "loc": { "start": { "line": 82, @@ -3820,8 +3820,8 @@ }, "object": { "type": "CallExpression", - "start": 3840, - "end": 3881, + "start": 3759, + "end": 3800, "loc": { "start": { "line": 82, @@ -3834,8 +3834,8 @@ }, "callee": { "type": "MemberExpression", - "start": 3840, - "end": 3862, + "start": 3759, + "end": 3781, "loc": { "start": { "line": 82, @@ -3848,8 +3848,8 @@ }, "object": { "type": "MemberExpression", - "start": 3840, - "end": 3855, + "start": 3759, + "end": 3774, "loc": { "start": { "line": 82, @@ -3862,8 +3862,8 @@ }, "object": { "type": "Identifier", - "start": 3840, - "end": 3848, + "start": 3759, + "end": 3767, "loc": { "start": { "line": 82, @@ -3879,8 +3879,8 @@ }, "property": { "type": "Identifier", - "start": 3849, - "end": 3855, + "start": 3768, + "end": 3774, "loc": { "start": { "line": 82, @@ -3898,8 +3898,8 @@ }, "property": { "type": "Identifier", - "start": 3856, - "end": 3862, + "start": 3775, + "end": 3781, "loc": { "start": { "line": 82, @@ -3918,8 +3918,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 3863, - "end": 3880, + "start": 3782, + "end": 3799, "loc": { "start": { "line": 82, @@ -3940,8 +3940,8 @@ }, "property": { "type": "Identifier", - "start": 3882, - "end": 3886, + "start": 3801, + "end": 3805, "loc": { "start": { "line": 82, @@ -3960,8 +3960,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 3887, - "end": 3944, + "start": 3806, + "end": 3863, "loc": { "start": { "line": 82, @@ -3980,8 +3980,8 @@ }, { "type": "UnaryExpression", - "start": 3946, - "end": 3969, + "start": 3865, + "end": 3888, "loc": { "start": { "line": 82, @@ -3996,8 +3996,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 3953, - "end": 3969, + "start": 3872, + "end": 3888, "loc": { "start": { "line": 82, @@ -4020,8 +4020,8 @@ }, { "type": "ReturnStatement", - "start": 3985, - "end": 3991, + "start": 3903, + "end": 3909, "loc": { "start": { "line": 83, @@ -4041,8 +4041,8 @@ }, { "type": "ExpressionStatement", - "start": 4014, - "end": 4061, + "start": 3929, + "end": 3976, "loc": { "start": { "line": 86, @@ -4055,8 +4055,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 4014, - "end": 4060, + "start": 3929, + "end": 3975, "loc": { "start": { "line": 86, @@ -4070,8 +4070,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 4014, - "end": 4041, + "start": 3929, + "end": 3956, "loc": { "start": { "line": 86, @@ -4084,8 +4084,8 @@ }, "object": { "type": "MemberExpression", - "start": 4014, - "end": 4025, + "start": 3929, + "end": 3940, "loc": { "start": { "line": 86, @@ -4098,8 +4098,8 @@ }, "object": { "type": "ThisExpression", - "start": 4014, - "end": 4018, + "start": 3929, + "end": 3933, "loc": { "start": { "line": 86, @@ -4113,8 +4113,8 @@ }, "property": { "type": "Identifier", - "start": 4019, - "end": 4025, + "start": 3934, + "end": 3940, "loc": { "start": { "line": 86, @@ -4132,8 +4132,8 @@ }, "property": { "type": "Identifier", - "start": 4026, - "end": 4041, + "start": 3941, + "end": 3956, "loc": { "start": { "line": 86, @@ -4151,8 +4151,8 @@ }, "right": { "type": "Identifier", - "start": 4044, - "end": 4060, + "start": 3959, + "end": 3975, "loc": { "start": { "line": 86, @@ -4170,8 +4170,8 @@ }, { "type": "IfStatement", - "start": 4073, - "end": 4515, + "start": 3986, + "end": 4416, "loc": { "start": { "line": 88, @@ -4184,8 +4184,8 @@ }, "test": { "type": "UnaryExpression", - "start": 4077, - "end": 4100, + "start": 3990, + "end": 4013, "loc": { "start": { "line": 88, @@ -4200,8 +4200,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 4078, - "end": 4100, + "start": 3991, + "end": 4013, "loc": { "start": { "line": 88, @@ -4221,8 +4221,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 4102, - "end": 4515, + "start": 4015, + "end": 4416, "loc": { "start": { "line": 88, @@ -4236,8 +4236,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 4117, - "end": 4292, + "start": 4029, + "end": 4201, "loc": { "start": { "line": 89, @@ -4251,8 +4251,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 4123, - "end": 4292, + "start": 4035, + "end": 4201, "loc": { "start": { "line": 89, @@ -4265,8 +4265,8 @@ }, "id": { "type": "Identifier", - "start": 4123, - "end": 4129, + "start": 4035, + "end": 4041, "loc": { "start": { "line": 89, @@ -4282,8 +4282,8 @@ }, "init": { "type": "ArrowFunctionExpression", - "start": 4132, - "end": 4292, + "start": 4044, + "end": 4201, "loc": { "start": { "line": 89, @@ -4301,8 +4301,8 @@ "params": [ { "type": "Identifier", - "start": 4133, - "end": 4142, + "start": 4045, + "end": 4054, "loc": { "start": { "line": 89, @@ -4319,8 +4319,8 @@ ], "body": { "type": "BlockStatement", - "start": 4147, - "end": 4292, + "start": 4059, + "end": 4201, "loc": { "start": { "line": 89, @@ -4334,8 +4334,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 4166, - "end": 4227, + "start": 4077, + "end": 4138, "loc": { "start": { "line": 90, @@ -4349,8 +4349,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 4172, - "end": 4226, + "start": 4083, + "end": 4137, "loc": { "start": { "line": 90, @@ -4363,8 +4363,8 @@ }, "id": { "type": "Identifier", - "start": 4172, - "end": 4184, + "start": 4083, + "end": 4095, "loc": { "start": { "line": 90, @@ -4380,8 +4380,8 @@ }, "init": { "type": "CallExpression", - "start": 4187, - "end": 4226, + "start": 4098, + "end": 4137, "loc": { "start": { "line": 90, @@ -4394,8 +4394,8 @@ }, "callee": { "type": "MemberExpression", - "start": 4187, - "end": 4215, + "start": 4098, + "end": 4126, "loc": { "start": { "line": 90, @@ -4408,8 +4408,8 @@ }, "object": { "type": "MemberExpression", - "start": 4187, - "end": 4211, + "start": 4098, + "end": 4122, "loc": { "start": { "line": 90, @@ -4422,8 +4422,8 @@ }, "object": { "type": "Identifier", - "start": 4187, - "end": 4195, + "start": 4098, + "end": 4106, "loc": { "start": { "line": 90, @@ -4439,8 +4439,8 @@ }, "property": { "type": "Identifier", - "start": 4196, - "end": 4211, + "start": 4107, + "end": 4122, "loc": { "start": { "line": 90, @@ -4458,8 +4458,8 @@ }, "property": { "type": "Identifier", - "start": 4212, - "end": 4215, + "start": 4123, + "end": 4126, "loc": { "start": { "line": 90, @@ -4478,8 +4478,8 @@ "arguments": [ { "type": "Identifier", - "start": 4216, - "end": 4225, + "start": 4127, + "end": 4136, "loc": { "start": { "line": 90, @@ -4501,8 +4501,8 @@ }, { "type": "ExpressionStatement", - "start": 4245, - "end": 4277, + "start": 4155, + "end": 4187, "loc": { "start": { "line": 91, @@ -4515,8 +4515,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 4245, - "end": 4276, + "start": 4155, + "end": 4186, "loc": { "start": { "line": 91, @@ -4530,8 +4530,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 4245, - "end": 4259, + "start": 4155, + "end": 4169, "loc": { "start": { "line": 91, @@ -4544,8 +4544,8 @@ }, "object": { "type": "Identifier", - "start": 4245, - "end": 4257, + "start": 4155, + "end": 4167, "loc": { "start": { "line": 91, @@ -4561,8 +4561,8 @@ }, "property": { "type": "Identifier", - "start": 4258, - "end": 4259, + "start": 4168, + "end": 4169, "loc": { "start": { "line": 91, @@ -4580,8 +4580,8 @@ }, "right": { "type": "Identifier", - "start": 4262, - "end": 4276, + "start": 4172, + "end": 4186, "loc": { "start": { "line": 91, @@ -4607,8 +4607,8 @@ }, { "type": "ExpressionStatement", - "start": 4308, - "end": 4398, + "start": 4215, + "end": 4303, "loc": { "start": { "line": 94, @@ -4621,8 +4621,8 @@ }, "expression": { "type": "CallExpression", - "start": 4308, - "end": 4397, + "start": 4215, + "end": 4302, "loc": { "start": { "line": 94, @@ -4635,8 +4635,8 @@ }, "callee": { "type": "MemberExpression", - "start": 4308, - "end": 4330, + "start": 4215, + "end": 4237, "loc": { "start": { "line": 94, @@ -4649,8 +4649,8 @@ }, "object": { "type": "MemberExpression", - "start": 4308, - "end": 4322, + "start": 4215, + "end": 4229, "loc": { "start": { "line": 94, @@ -4663,8 +4663,8 @@ }, "object": { "type": "ThisExpression", - "start": 4308, - "end": 4312, + "start": 4215, + "end": 4219, "loc": { "start": { "line": 94, @@ -4678,8 +4678,8 @@ }, "property": { "type": "Identifier", - "start": 4313, - "end": 4322, + "start": 4220, + "end": 4229, "loc": { "start": { "line": 94, @@ -4697,8 +4697,8 @@ }, "property": { "type": "Identifier", - "start": 4323, - "end": 4330, + "start": 4230, + "end": 4237, "loc": { "start": { "line": 94, @@ -4717,8 +4717,8 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 4331, - "end": 4396, + "start": 4238, + "end": 4301, "loc": { "start": { "line": 94, @@ -4736,8 +4736,8 @@ "params": [ { "type": "Identifier", - "start": 4331, - "end": 4340, + "start": 4238, + "end": 4247, "loc": { "start": { "line": 94, @@ -4754,8 +4754,8 @@ ], "body": { "type": "BlockStatement", - "start": 4344, - "end": 4396, + "start": 4251, + "end": 4301, "loc": { "start": { "line": 94, @@ -4769,8 +4769,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 4363, - "end": 4381, + "start": 4269, + "end": 4287, "loc": { "start": { "line": 95, @@ -4783,8 +4783,8 @@ }, "expression": { "type": "CallExpression", - "start": 4363, - "end": 4380, + "start": 4269, + "end": 4286, "loc": { "start": { "line": 95, @@ -4797,8 +4797,8 @@ }, "callee": { "type": "Identifier", - "start": 4363, - "end": 4369, + "start": 4269, + "end": 4275, "loc": { "start": { "line": 95, @@ -4815,8 +4815,8 @@ "arguments": [ { "type": "Identifier", - "start": 4370, - "end": 4379, + "start": 4276, + "end": 4285, "loc": { "start": { "line": 95, @@ -4842,8 +4842,8 @@ }, { "type": "ExpressionStatement", - "start": 4412, - "end": 4504, + "start": 4316, + "end": 4406, "loc": { "start": { "line": 97, @@ -4856,8 +4856,8 @@ }, "expression": { "type": "CallExpression", - "start": 4412, - "end": 4503, + "start": 4316, + "end": 4405, "loc": { "start": { "line": 97, @@ -4870,8 +4870,8 @@ }, "callee": { "type": "MemberExpression", - "start": 4412, - "end": 4436, + "start": 4316, + "end": 4340, "loc": { "start": { "line": 97, @@ -4884,8 +4884,8 @@ }, "object": { "type": "MemberExpression", - "start": 4412, - "end": 4428, + "start": 4316, + "end": 4332, "loc": { "start": { "line": 97, @@ -4898,8 +4898,8 @@ }, "object": { "type": "ThisExpression", - "start": 4412, - "end": 4416, + "start": 4316, + "end": 4320, "loc": { "start": { "line": 97, @@ -4913,8 +4913,8 @@ }, "property": { "type": "Identifier", - "start": 4417, - "end": 4428, + "start": 4321, + "end": 4332, "loc": { "start": { "line": 97, @@ -4932,8 +4932,8 @@ }, "property": { "type": "Identifier", - "start": 4429, - "end": 4436, + "start": 4333, + "end": 4340, "loc": { "start": { "line": 97, @@ -4952,8 +4952,8 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 4437, - "end": 4502, + "start": 4341, + "end": 4404, "loc": { "start": { "line": 97, @@ -4971,8 +4971,8 @@ "params": [ { "type": "Identifier", - "start": 4437, - "end": 4446, + "start": 4341, + "end": 4350, "loc": { "start": { "line": 97, @@ -4989,8 +4989,8 @@ ], "body": { "type": "BlockStatement", - "start": 4450, - "end": 4502, + "start": 4354, + "end": 4404, "loc": { "start": { "line": 97, @@ -5004,8 +5004,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 4469, - "end": 4487, + "start": 4372, + "end": 4390, "loc": { "start": { "line": 98, @@ -5018,8 +5018,8 @@ }, "expression": { "type": "CallExpression", - "start": 4469, - "end": 4486, + "start": 4372, + "end": 4389, "loc": { "start": { "line": 98, @@ -5032,8 +5032,8 @@ }, "callee": { "type": "Identifier", - "start": 4469, - "end": 4475, + "start": 4372, + "end": 4378, "loc": { "start": { "line": 98, @@ -5050,8 +5050,8 @@ "arguments": [ { "type": "Identifier", - "start": 4476, - "end": 4485, + "start": 4379, + "end": 4388, "loc": { "start": { "line": 98, @@ -5087,9 +5087,9 @@ "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, + "value": "*\n * Updates the horizontal speed of this layer.\n * @param {number} pHorizontalSpeed - The new horizontal speed.\n * @param {boolean} pUpdateLayerConfigOnly - If only to update the layer config and not the instance config.\n ", + "start": 3307, + "end": 3550, "loc": { "start": { "line": 73, @@ -5105,9 +5105,9 @@ "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, + "value": "*\n * Updates the vertical speed of the layer.\n * @param {number} pVerticalSpeed - The new vertical speed. \n * @param {boolean} pUpdateLayerConfigOnly - If only to update the layer config and not the instance config.\n ", + "start": 4427, + "end": 4664, "loc": { "start": { "line": 102, @@ -5123,8 +5123,8 @@ }, { "type": "ClassMethod", - "start": 4775, - "end": 5645, + "start": 4669, + "end": 5516, "loc": { "start": { "line": 107, @@ -5139,8 +5139,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 4775, - "end": 4794, + "start": 4669, + "end": 4688, "loc": { "start": { "line": 107, @@ -5163,8 +5163,8 @@ "params": [ { "type": "Identifier", - "start": 4795, - "end": 4809, + "start": 4689, + "end": 4703, "loc": { "start": { "line": 107, @@ -5180,8 +5180,8 @@ }, { "type": "Identifier", - "start": 4811, - "end": 4833, + "start": 4705, + "end": 4727, "loc": { "start": { "line": 107, @@ -5198,8 +5198,8 @@ ], "body": { "type": "BlockStatement", - "start": 4835, - "end": 5645, + "start": 4729, + "end": 5516, "loc": { "start": { "line": 107, @@ -5213,8 +5213,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 4846, - "end": 4923, + "start": 4739, + "end": 4816, "loc": { "start": { "line": 108, @@ -5228,8 +5228,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 4852, - "end": 4922, + "start": 4745, + "end": 4815, "loc": { "start": { "line": 108, @@ -5242,8 +5242,8 @@ }, "id": { "type": "Identifier", - "start": 4852, - "end": 4867, + "start": 4745, + "end": 4760, "loc": { "start": { "line": 108, @@ -5259,8 +5259,8 @@ }, "init": { "type": "LogicalExpression", - "start": 4870, - "end": 4922, + "start": 4763, + "end": 4815, "loc": { "start": { "line": 108, @@ -5273,8 +5273,8 @@ }, "left": { "type": "Identifier", - "start": 4870, - "end": 4884, + "start": 4763, + "end": 4777, "loc": { "start": { "line": 108, @@ -5291,8 +5291,8 @@ "operator": "&&", "right": { "type": "BinaryExpression", - "start": 4888, - "end": 4922, + "start": 4781, + "end": 4815, "loc": { "start": { "line": 108, @@ -5305,8 +5305,8 @@ }, "left": { "type": "UnaryExpression", - "start": 4888, - "end": 4909, + "start": 4781, + "end": 4802, "loc": { "start": { "line": 108, @@ -5321,8 +5321,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 4895, - "end": 4909, + "start": 4788, + "end": 4802, "loc": { "start": { "line": 108, @@ -5343,8 +5343,8 @@ "operator": "!==", "right": { "type": "StringLiteral", - "start": 4914, - "end": 4922, + "start": 4807, + "end": 4815, "loc": { "start": { "line": 108, @@ -5369,8 +5369,8 @@ }, { "type": "IfStatement", - "start": 4935, - "end": 5129, + "start": 4826, + "end": 5017, "loc": { "start": { "line": 110, @@ -5383,8 +5383,8 @@ }, "test": { "type": "Identifier", - "start": 4939, - "end": 4954, + "start": 4830, + "end": 4845, "loc": { "start": { "line": 110, @@ -5400,8 +5400,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 4956, - "end": 5129, + "start": 4847, + "end": 5017, "loc": { "start": { "line": 110, @@ -5415,8 +5415,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 4971, - "end": 5098, + "start": 4861, + "end": 4988, "loc": { "start": { "line": 111, @@ -5429,8 +5429,8 @@ }, "expression": { "type": "CallExpression", - "start": 4971, - "end": 5097, + "start": 4861, + "end": 4987, "loc": { "start": { "line": 111, @@ -5443,8 +5443,8 @@ }, "callee": { "type": "MemberExpression", - "start": 4971, - "end": 5017, + "start": 4861, + "end": 4907, "loc": { "start": { "line": 111, @@ -5457,8 +5457,8 @@ }, "object": { "type": "CallExpression", - "start": 4971, - "end": 5012, + "start": 4861, + "end": 4902, "loc": { "start": { "line": 111, @@ -5471,8 +5471,8 @@ }, "callee": { "type": "MemberExpression", - "start": 4971, - "end": 4993, + "start": 4861, + "end": 4883, "loc": { "start": { "line": 111, @@ -5485,8 +5485,8 @@ }, "object": { "type": "MemberExpression", - "start": 4971, - "end": 4986, + "start": 4861, + "end": 4876, "loc": { "start": { "line": 111, @@ -5499,8 +5499,8 @@ }, "object": { "type": "Identifier", - "start": 4971, - "end": 4979, + "start": 4861, + "end": 4869, "loc": { "start": { "line": 111, @@ -5516,8 +5516,8 @@ }, "property": { "type": "Identifier", - "start": 4980, - "end": 4986, + "start": 4870, + "end": 4876, "loc": { "start": { "line": 111, @@ -5535,8 +5535,8 @@ }, "property": { "type": "Identifier", - "start": 4987, - "end": 4993, + "start": 4877, + "end": 4883, "loc": { "start": { "line": 111, @@ -5555,8 +5555,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 4994, - "end": 5011, + "start": 4884, + "end": 4901, "loc": { "start": { "line": 111, @@ -5577,8 +5577,8 @@ }, "property": { "type": "Identifier", - "start": 5013, - "end": 5017, + "start": 4903, + "end": 4907, "loc": { "start": { "line": 111, @@ -5597,8 +5597,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 5018, - "end": 5073, + "start": 4908, + "end": 4963, "loc": { "start": { "line": 111, @@ -5617,8 +5617,8 @@ }, { "type": "UnaryExpression", - "start": 5075, - "end": 5096, + "start": 4965, + "end": 4986, "loc": { "start": { "line": 111, @@ -5633,8 +5633,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 5082, - "end": 5096, + "start": 4972, + "end": 4986, "loc": { "start": { "line": 111, @@ -5657,8 +5657,8 @@ }, { "type": "ReturnStatement", - "start": 5112, - "end": 5118, + "start": 5001, + "end": 5007, "loc": { "start": { "line": 112, @@ -5678,8 +5678,8 @@ }, { "type": "ExpressionStatement", - "start": 5141, - "end": 5184, + "start": 5027, + "end": 5070, "loc": { "start": { "line": 115, @@ -5692,8 +5692,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 5141, - "end": 5183, + "start": 5027, + "end": 5069, "loc": { "start": { "line": 115, @@ -5707,8 +5707,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 5141, - "end": 5166, + "start": 5027, + "end": 5052, "loc": { "start": { "line": 115, @@ -5721,8 +5721,8 @@ }, "object": { "type": "MemberExpression", - "start": 5141, - "end": 5152, + "start": 5027, + "end": 5038, "loc": { "start": { "line": 115, @@ -5735,8 +5735,8 @@ }, "object": { "type": "ThisExpression", - "start": 5141, - "end": 5145, + "start": 5027, + "end": 5031, "loc": { "start": { "line": 115, @@ -5750,8 +5750,8 @@ }, "property": { "type": "Identifier", - "start": 5146, - "end": 5152, + "start": 5032, + "end": 5038, "loc": { "start": { "line": 115, @@ -5769,8 +5769,8 @@ }, "property": { "type": "Identifier", - "start": 5153, - "end": 5166, + "start": 5039, + "end": 5052, "loc": { "start": { "line": 115, @@ -5788,8 +5788,8 @@ }, "right": { "type": "Identifier", - "start": 5169, - "end": 5183, + "start": 5055, + "end": 5069, "loc": { "start": { "line": 115, @@ -5807,8 +5807,8 @@ }, { "type": "IfStatement", - "start": 5196, - "end": 5638, + "start": 5080, + "end": 5510, "loc": { "start": { "line": 117, @@ -5821,8 +5821,8 @@ }, "test": { "type": "UnaryExpression", - "start": 5200, - "end": 5223, + "start": 5084, + "end": 5107, "loc": { "start": { "line": 117, @@ -5837,8 +5837,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 5201, - "end": 5223, + "start": 5085, + "end": 5107, "loc": { "start": { "line": 117, @@ -5858,8 +5858,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 5225, - "end": 5638, + "start": 5109, + "end": 5510, "loc": { "start": { "line": 117, @@ -5873,8 +5873,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 5240, - "end": 5415, + "start": 5123, + "end": 5295, "loc": { "start": { "line": 118, @@ -5888,8 +5888,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 5246, - "end": 5415, + "start": 5129, + "end": 5295, "loc": { "start": { "line": 118, @@ -5902,8 +5902,8 @@ }, "id": { "type": "Identifier", - "start": 5246, - "end": 5252, + "start": 5129, + "end": 5135, "loc": { "start": { "line": 118, @@ -5919,8 +5919,8 @@ }, "init": { "type": "ArrowFunctionExpression", - "start": 5255, - "end": 5415, + "start": 5138, + "end": 5295, "loc": { "start": { "line": 118, @@ -5938,8 +5938,8 @@ "params": [ { "type": "Identifier", - "start": 5256, - "end": 5265, + "start": 5139, + "end": 5148, "loc": { "start": { "line": 118, @@ -5956,8 +5956,8 @@ ], "body": { "type": "BlockStatement", - "start": 5270, - "end": 5415, + "start": 5153, + "end": 5295, "loc": { "start": { "line": 118, @@ -5971,8 +5971,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 5289, - "end": 5350, + "start": 5171, + "end": 5232, "loc": { "start": { "line": 119, @@ -5986,8 +5986,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 5295, - "end": 5349, + "start": 5177, + "end": 5231, "loc": { "start": { "line": 119, @@ -6000,8 +6000,8 @@ }, "id": { "type": "Identifier", - "start": 5295, - "end": 5307, + "start": 5177, + "end": 5189, "loc": { "start": { "line": 119, @@ -6017,8 +6017,8 @@ }, "init": { "type": "CallExpression", - "start": 5310, - "end": 5349, + "start": 5192, + "end": 5231, "loc": { "start": { "line": 119, @@ -6031,8 +6031,8 @@ }, "callee": { "type": "MemberExpression", - "start": 5310, - "end": 5338, + "start": 5192, + "end": 5220, "loc": { "start": { "line": 119, @@ -6045,8 +6045,8 @@ }, "object": { "type": "MemberExpression", - "start": 5310, - "end": 5334, + "start": 5192, + "end": 5216, "loc": { "start": { "line": 119, @@ -6059,8 +6059,8 @@ }, "object": { "type": "Identifier", - "start": 5310, - "end": 5318, + "start": 5192, + "end": 5200, "loc": { "start": { "line": 119, @@ -6076,8 +6076,8 @@ }, "property": { "type": "Identifier", - "start": 5319, - "end": 5334, + "start": 5201, + "end": 5216, "loc": { "start": { "line": 119, @@ -6095,8 +6095,8 @@ }, "property": { "type": "Identifier", - "start": 5335, - "end": 5338, + "start": 5217, + "end": 5220, "loc": { "start": { "line": 119, @@ -6115,8 +6115,8 @@ "arguments": [ { "type": "Identifier", - "start": 5339, - "end": 5348, + "start": 5221, + "end": 5230, "loc": { "start": { "line": 119, @@ -6138,8 +6138,8 @@ }, { "type": "ExpressionStatement", - "start": 5368, - "end": 5400, + "start": 5249, + "end": 5281, "loc": { "start": { "line": 120, @@ -6152,8 +6152,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 5368, - "end": 5399, + "start": 5249, + "end": 5280, "loc": { "start": { "line": 120, @@ -6167,8 +6167,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 5368, - "end": 5382, + "start": 5249, + "end": 5263, "loc": { "start": { "line": 120, @@ -6181,8 +6181,8 @@ }, "object": { "type": "Identifier", - "start": 5368, - "end": 5380, + "start": 5249, + "end": 5261, "loc": { "start": { "line": 120, @@ -6198,8 +6198,8 @@ }, "property": { "type": "Identifier", - "start": 5381, - "end": 5382, + "start": 5262, + "end": 5263, "loc": { "start": { "line": 120, @@ -6217,8 +6217,8 @@ }, "right": { "type": "Identifier", - "start": 5385, - "end": 5399, + "start": 5266, + "end": 5280, "loc": { "start": { "line": 120, @@ -6244,8 +6244,8 @@ }, { "type": "ExpressionStatement", - "start": 5431, - "end": 5521, + "start": 5309, + "end": 5397, "loc": { "start": { "line": 123, @@ -6258,8 +6258,8 @@ }, "expression": { "type": "CallExpression", - "start": 5431, - "end": 5520, + "start": 5309, + "end": 5396, "loc": { "start": { "line": 123, @@ -6272,8 +6272,8 @@ }, "callee": { "type": "MemberExpression", - "start": 5431, - "end": 5453, + "start": 5309, + "end": 5331, "loc": { "start": { "line": 123, @@ -6286,8 +6286,8 @@ }, "object": { "type": "MemberExpression", - "start": 5431, - "end": 5445, + "start": 5309, + "end": 5323, "loc": { "start": { "line": 123, @@ -6300,8 +6300,8 @@ }, "object": { "type": "ThisExpression", - "start": 5431, - "end": 5435, + "start": 5309, + "end": 5313, "loc": { "start": { "line": 123, @@ -6315,8 +6315,8 @@ }, "property": { "type": "Identifier", - "start": 5436, - "end": 5445, + "start": 5314, + "end": 5323, "loc": { "start": { "line": 123, @@ -6334,8 +6334,8 @@ }, "property": { "type": "Identifier", - "start": 5446, - "end": 5453, + "start": 5324, + "end": 5331, "loc": { "start": { "line": 123, @@ -6354,8 +6354,8 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 5454, - "end": 5519, + "start": 5332, + "end": 5395, "loc": { "start": { "line": 123, @@ -6373,8 +6373,8 @@ "params": [ { "type": "Identifier", - "start": 5454, - "end": 5463, + "start": 5332, + "end": 5341, "loc": { "start": { "line": 123, @@ -6391,8 +6391,8 @@ ], "body": { "type": "BlockStatement", - "start": 5467, - "end": 5519, + "start": 5345, + "end": 5395, "loc": { "start": { "line": 123, @@ -6406,8 +6406,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 5486, - "end": 5504, + "start": 5363, + "end": 5381, "loc": { "start": { "line": 124, @@ -6420,8 +6420,8 @@ }, "expression": { "type": "CallExpression", - "start": 5486, - "end": 5503, + "start": 5363, + "end": 5380, "loc": { "start": { "line": 124, @@ -6434,8 +6434,8 @@ }, "callee": { "type": "Identifier", - "start": 5486, - "end": 5492, + "start": 5363, + "end": 5369, "loc": { "start": { "line": 124, @@ -6452,8 +6452,8 @@ "arguments": [ { "type": "Identifier", - "start": 5493, - "end": 5502, + "start": 5370, + "end": 5379, "loc": { "start": { "line": 124, @@ -6479,8 +6479,8 @@ }, { "type": "ExpressionStatement", - "start": 5535, - "end": 5627, + "start": 5410, + "end": 5500, "loc": { "start": { "line": 126, @@ -6493,8 +6493,8 @@ }, "expression": { "type": "CallExpression", - "start": 5535, - "end": 5626, + "start": 5410, + "end": 5499, "loc": { "start": { "line": 126, @@ -6507,8 +6507,8 @@ }, "callee": { "type": "MemberExpression", - "start": 5535, - "end": 5559, + "start": 5410, + "end": 5434, "loc": { "start": { "line": 126, @@ -6521,8 +6521,8 @@ }, "object": { "type": "MemberExpression", - "start": 5535, - "end": 5551, + "start": 5410, + "end": 5426, "loc": { "start": { "line": 126, @@ -6535,8 +6535,8 @@ }, "object": { "type": "ThisExpression", - "start": 5535, - "end": 5539, + "start": 5410, + "end": 5414, "loc": { "start": { "line": 126, @@ -6550,8 +6550,8 @@ }, "property": { "type": "Identifier", - "start": 5540, - "end": 5551, + "start": 5415, + "end": 5426, "loc": { "start": { "line": 126, @@ -6569,8 +6569,8 @@ }, "property": { "type": "Identifier", - "start": 5552, - "end": 5559, + "start": 5427, + "end": 5434, "loc": { "start": { "line": 126, @@ -6589,8 +6589,8 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 5560, - "end": 5625, + "start": 5435, + "end": 5498, "loc": { "start": { "line": 126, @@ -6608,8 +6608,8 @@ "params": [ { "type": "Identifier", - "start": 5560, - "end": 5569, + "start": 5435, + "end": 5444, "loc": { "start": { "line": 126, @@ -6626,8 +6626,8 @@ ], "body": { "type": "BlockStatement", - "start": 5573, - "end": 5625, + "start": 5448, + "end": 5498, "loc": { "start": { "line": 126, @@ -6641,8 +6641,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 5592, - "end": 5610, + "start": 5466, + "end": 5484, "loc": { "start": { "line": 127, @@ -6655,8 +6655,8 @@ }, "expression": { "type": "CallExpression", - "start": 5592, - "end": 5609, + "start": 5466, + "end": 5483, "loc": { "start": { "line": 127, @@ -6669,8 +6669,8 @@ }, "callee": { "type": "Identifier", - "start": 5592, - "end": 5598, + "start": 5466, + "end": 5472, "loc": { "start": { "line": 127, @@ -6687,8 +6687,8 @@ "arguments": [ { "type": "Identifier", - "start": 5599, - "end": 5608, + "start": 5473, + "end": 5482, "loc": { "start": { "line": 127, @@ -6724,9 +6724,9 @@ "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, + "value": "*\n * Updates the vertical speed of the layer.\n * @param {number} pVerticalSpeed - The new vertical speed. \n * @param {boolean} pUpdateLayerConfigOnly - If only to update the layer config and not the instance config.\n ", + "start": 4427, + "end": 4664, "loc": { "start": { "line": 102, @@ -6742,9 +6742,9 @@ "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, + "value": "*\n * Adds the instance to the parallax layer.\n * When using this API the instance should already be on the map.\n * @param {Diob} pInstance - The instance to add to the layer.\n * @param {Object} pConfig - The personal config of this instance. Akin to the parallax info passed via the `Parallax.add` API.\n * @prop {number} pConfig.x - The horizontal speed of this instance. (This will be ignored and the layer's speed will be used.)\n * @prop {number} pConfig.y - The vertical speed of this instance. (This will be ignored and the layer's speed will be used.)\n * @prop {boolean} pConfig.loop - Whether this instance will be treated as a background and loop seamlessly.\n ", + "start": 5521, + "end": 6224, "loc": { "start": { "line": 131, @@ -6760,15 +6760,15 @@ }, { "type": "ClassMethod", - "start": 6368, - "end": 6731, + "start": 6229, + "end": 6764, "loc": { "start": { "line": 140, "column": 4 }, "end": { - "line": 150, + "line": 155, "column": 5 } }, @@ -6776,8 +6776,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 6368, - "end": 6371, + "start": 6229, + "end": 6232, "loc": { "start": { "line": 140, @@ -6800,8 +6800,8 @@ "params": [ { "type": "Identifier", - "start": 6372, - "end": 6381, + "start": 6233, + "end": 6242, "loc": { "start": { "line": 140, @@ -6817,8 +6817,8 @@ }, { "type": "Identifier", - "start": 6383, - "end": 6390, + "start": 6244, + "end": 6251, "loc": { "start": { "line": 140, @@ -6835,23 +6835,23 @@ ], "body": { "type": "BlockStatement", - "start": 6392, - "end": 6731, + "start": 6253, + "end": 6764, "loc": { "start": { "line": 140, "column": 28 }, "end": { - "line": 150, + "line": 155, "column": 5 } }, "body": [ { "type": "IfStatement", - "start": 6403, - "end": 6452, + "start": 6263, + "end": 6312, "loc": { "start": { "line": 141, @@ -6864,8 +6864,8 @@ }, "test": { "type": "CallExpression", - "start": 6407, - "end": 6443, + "start": 6267, + "end": 6303, "loc": { "start": { "line": 141, @@ -6878,8 +6878,8 @@ }, "callee": { "type": "MemberExpression", - "start": 6407, - "end": 6432, + "start": 6267, + "end": 6292, "loc": { "start": { "line": 141, @@ -6892,8 +6892,8 @@ }, "object": { "type": "MemberExpression", - "start": 6407, - "end": 6428, + "start": 6267, + "end": 6288, "loc": { "start": { "line": 141, @@ -6906,8 +6906,8 @@ }, "object": { "type": "MemberExpression", - "start": 6407, - "end": 6418, + "start": 6267, + "end": 6278, "loc": { "start": { "line": 141, @@ -6920,8 +6920,8 @@ }, "object": { "type": "ThisExpression", - "start": 6407, - "end": 6411, + "start": 6267, + "end": 6271, "loc": { "start": { "line": 141, @@ -6935,8 +6935,8 @@ }, "property": { "type": "Identifier", - "start": 6412, - "end": 6418, + "start": 6272, + "end": 6278, "loc": { "start": { "line": 141, @@ -6954,8 +6954,8 @@ }, "property": { "type": "Identifier", - "start": 6419, - "end": 6428, + "start": 6279, + "end": 6288, "loc": { "start": { "line": 141, @@ -6973,8 +6973,8 @@ }, "property": { "type": "Identifier", - "start": 6429, - "end": 6432, + "start": 6289, + "end": 6292, "loc": { "start": { "line": 141, @@ -6993,8 +6993,8 @@ "arguments": [ { "type": "Identifier", - "start": 6433, - "end": 6442, + "start": 6293, + "end": 6302, "loc": { "start": { "line": 141, @@ -7012,8 +7012,8 @@ }, "consequent": { "type": "ReturnStatement", - "start": 6445, - "end": 6452, + "start": 6305, + "end": 6312, "loc": { "start": { "line": 141, @@ -7030,8 +7030,8 @@ }, { "type": "ExpressionStatement", - "start": 6462, - "end": 6499, + "start": 6321, + "end": 6358, "loc": { "start": { "line": 142, @@ -7044,8 +7044,8 @@ }, "expression": { "type": "CallExpression", - "start": 6462, - "end": 6498, + "start": 6321, + "end": 6357, "loc": { "start": { "line": 142, @@ -7058,8 +7058,8 @@ }, "callee": { "type": "MemberExpression", - "start": 6462, - "end": 6487, + "start": 6321, + "end": 6346, "loc": { "start": { "line": 142, @@ -7072,8 +7072,8 @@ }, "object": { "type": "MemberExpression", - "start": 6462, - "end": 6483, + "start": 6321, + "end": 6342, "loc": { "start": { "line": 142, @@ -7086,8 +7086,8 @@ }, "object": { "type": "MemberExpression", - "start": 6462, - "end": 6473, + "start": 6321, + "end": 6332, "loc": { "start": { "line": 142, @@ -7100,8 +7100,8 @@ }, "object": { "type": "ThisExpression", - "start": 6462, - "end": 6466, + "start": 6321, + "end": 6325, "loc": { "start": { "line": 142, @@ -7115,8 +7115,8 @@ }, "property": { "type": "Identifier", - "start": 6467, - "end": 6473, + "start": 6326, + "end": 6332, "loc": { "start": { "line": 142, @@ -7134,8 +7134,8 @@ }, "property": { "type": "Identifier", - "start": 6474, - "end": 6483, + "start": 6333, + "end": 6342, "loc": { "start": { "line": 142, @@ -7153,8 +7153,8 @@ }, "property": { "type": "Identifier", - "start": 6484, - "end": 6487, + "start": 6343, + "end": 6346, "loc": { "start": { "line": 142, @@ -7173,8 +7173,8 @@ "arguments": [ { "type": "Identifier", - "start": 6488, - "end": 6497, + "start": 6347, + "end": 6356, "loc": { "start": { "line": 142, @@ -7193,37 +7193,37 @@ }, { "type": "VariableDeclaration", - "start": 6509, - "end": 6682, + "start": 6367, + "end": 6672, "loc": { "start": { "line": 143, "column": 8 }, "end": { - "line": 148, + "line": 152, "column": 13 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 6515, - "end": 6682, + "start": 6373, + "end": 6672, "loc": { "start": { "line": 143, "column": 14 }, "end": { - "line": 148, + "line": 152, "column": 13 } }, "id": { "type": "Identifier", - "start": 6515, - "end": 6521, + "start": 6373, + "end": 6379, "loc": { "start": { "line": 143, @@ -7239,22 +7239,22 @@ }, "init": { "type": "ConditionalExpression", - "start": 6524, - "end": 6682, + "start": 6382, + "end": 6672, "loc": { "start": { "line": 143, "column": 23 }, "end": { - "line": 148, + "line": 152, "column": 13 } }, "test": { "type": "Identifier", - "start": 6524, - "end": 6531, + "start": 6382, + "end": 6389, "loc": { "start": { "line": 143, @@ -7269,29 +7269,12 @@ "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, + "start": 6405, + "end": 6549, "loc": { "start": { - "line": 145, + "line": 144, "column": 14 }, "end": { @@ -7302,15 +7285,15 @@ "properties": [ { "type": "ObjectProperty", - "start": 6590, - "end": 6620, + "start": 6423, + "end": 6453, "loc": { "start": { - "line": 146, + "line": 145, "column": 16 }, "end": { - "line": 146, + "line": 145, "column": 46 } }, @@ -7319,15 +7302,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 6590, - "end": 6591, + "start": 6423, + "end": 6424, "loc": { "start": { - "line": 146, + "line": 145, "column": 16 }, "end": { - "line": 146, + "line": 145, "column": 17 }, "identifierName": "x" @@ -7336,58 +7319,58 @@ }, "value": { "type": "MemberExpression", - "start": 6593, - "end": 6620, + "start": 6426, + "end": 6453, "loc": { "start": { - "line": 146, + "line": 145, "column": 19 }, "end": { - "line": 146, + "line": 145, "column": 46 } }, "object": { "type": "MemberExpression", - "start": 6593, - "end": 6604, + "start": 6426, + "end": 6437, "loc": { "start": { - "line": 146, + "line": 145, "column": 19 }, "end": { - "line": 146, + "line": 145, "column": 30 } }, "object": { "type": "ThisExpression", - "start": 6593, - "end": 6597, + "start": 6426, + "end": 6430, "loc": { "start": { - "line": 146, + "line": 145, "column": 19 }, "end": { - "line": 146, + "line": 145, "column": 23 } } }, "property": { "type": "Identifier", - "start": 6598, - "end": 6604, + "start": 6431, + "end": 6437, "loc": { "start": { - "line": 146, + "line": 145, "column": 24 }, "end": { - "line": 146, + "line": 145, "column": 30 }, "identifierName": "config" @@ -7398,15 +7381,15 @@ }, "property": { "type": "Identifier", - "start": 6605, - "end": 6620, + "start": 6438, + "end": 6453, "loc": { "start": { - "line": 146, + "line": 145, "column": 31 }, "end": { - "line": 146, + "line": 145, "column": 46 }, "identifierName": "horizontalSpeed" @@ -7418,15 +7401,15 @@ }, { "type": "ObjectProperty", - "start": 6639, - "end": 6667, + "start": 6471, + "end": 6499, "loc": { "start": { - "line": 147, + "line": 146, "column": 16 }, "end": { - "line": 147, + "line": 146, "column": 44 } }, @@ -7435,15 +7418,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 6639, - "end": 6640, + "start": 6471, + "end": 6472, "loc": { "start": { - "line": 147, + "line": 146, "column": 16 }, "end": { - "line": 147, + "line": 146, "column": 17 }, "identifierName": "y" @@ -7452,58 +7435,58 @@ }, "value": { "type": "MemberExpression", - "start": 6642, - "end": 6667, + "start": 6474, + "end": 6499, "loc": { "start": { - "line": 147, + "line": 146, "column": 19 }, "end": { - "line": 147, + "line": 146, "column": 44 } }, "object": { "type": "MemberExpression", - "start": 6642, - "end": 6653, + "start": 6474, + "end": 6485, "loc": { "start": { - "line": 147, + "line": 146, "column": 19 }, "end": { - "line": 147, + "line": 146, "column": 30 } }, "object": { "type": "ThisExpression", - "start": 6642, - "end": 6646, + "start": 6474, + "end": 6478, "loc": { "start": { - "line": 147, + "line": 146, "column": 19 }, "end": { - "line": 147, + "line": 146, "column": 23 } } }, "property": { "type": "Identifier", - "start": 6647, - "end": 6653, + "start": 6479, + "end": 6485, "loc": { "start": { - "line": 147, + "line": 146, "column": 24 }, "end": { - "line": 147, + "line": 146, "column": 30 }, "identifierName": "config" @@ -7514,15 +7497,15 @@ }, "property": { "type": "Identifier", - "start": 6654, - "end": 6667, + "start": 6486, + "end": 6499, "loc": { "start": { - "line": 147, + "line": 146, "column": 31 }, "end": { - "line": 147, + "line": 146, "column": 44 }, "identifierName": "verticalSpeed" @@ -7531,460 +7514,563 @@ }, "computed": false } + }, + { + "type": "ObjectProperty", + "start": 6517, + "end": 6535, + "loc": { + "start": { + "line": 147, + "column": 16 + }, + "end": { + "line": 147, + "column": 34 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 6517, + "end": 6521, + "loc": { + "start": { + "line": 147, + "column": 16 + }, + "end": { + "line": 147, + "column": 20 + }, + "identifierName": "loop" + }, + "name": "loop" + }, + "value": { + "type": "MemberExpression", + "start": 6523, + "end": 6535, + "loc": { + "start": { + "line": 147, + "column": 22 + }, + "end": { + "line": 147, + "column": 34 + } + }, + "object": { + "type": "Identifier", + "start": 6523, + "end": 6530, + "loc": { + "start": { + "line": 147, + "column": 22 + }, + "end": { + "line": 147, + "column": 29 + }, + "identifierName": "pConfig" + }, + "name": "pConfig" + }, + "property": { + "type": "Identifier", + "start": 6531, + "end": 6535, + "loc": { + "start": { + "line": 147, + "column": 30 + }, + "end": { + "line": 147, + "column": 34 + }, + "identifierName": "loop" + }, + "name": "loop" + }, + "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 + "alternate": { + "type": "ObjectExpression", + "start": 6564, + "end": 6672, + "loc": { + "start": { + "line": 149, + "column": 14 + }, + "end": { + "line": 152, + "column": 13 + } }, - "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 + "properties": [ + { + "type": "ObjectProperty", + "start": 6582, + "end": 6612, + "loc": { + "start": { + "line": 150, + "column": 16 + }, + "end": { + "line": 150, + "column": 46 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 6582, + "end": 6583, + "loc": { + "start": { + "line": 150, + "column": 16 + }, + "end": { + "line": 150, + "column": 17 + }, + "identifierName": "x" + }, + "name": "x" + }, + "value": { + "type": "MemberExpression", + "start": 6585, + "end": 6612, + "loc": { + "start": { + "line": 150, + "column": 19 + }, + "end": { + "line": 150, + "column": 46 + } + }, + "object": { + "type": "MemberExpression", + "start": 6585, + "end": 6596, + "loc": { + "start": { + "line": 150, + "column": 19 + }, + "end": { + "line": 150, + "column": 30 + } + }, + "object": { + "type": "ThisExpression", + "start": 6585, + "end": 6589, + "loc": { + "start": { + "line": 150, + "column": 19 + }, + "end": { + "line": 150, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "start": 6590, + "end": 6596, + "loc": { + "start": { + "line": 150, + "column": 24 + }, + "end": { + "line": 150, + "column": 30 + }, + "identifierName": "config" + }, + "name": "config" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6597, + "end": 6612, + "loc": { + "start": { + "line": 150, + "column": 31 + }, + "end": { + "line": 150, + "column": 46 + }, + "identifierName": "horizontalSpeed" + }, + "name": "horizontalSpeed" + }, + "computed": false + } + }, + { + "type": "ObjectProperty", + "start": 6630, + "end": 6658, + "loc": { + "start": { + "line": 151, + "column": 16 + }, + "end": { + "line": 151, + "column": 44 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 6630, + "end": 6631, + "loc": { + "start": { + "line": 151, + "column": 16 + }, + "end": { + "line": 151, + "column": 17 + }, + "identifierName": "y" + }, + "name": "y" + }, + "value": { + "type": "MemberExpression", + "start": 6633, + "end": 6658, + "loc": { + "start": { + "line": 151, + "column": 19 + }, + "end": { + "line": 151, + "column": 44 + } + }, + "object": { + "type": "MemberExpression", + "start": 6633, + "end": 6644, + "loc": { + "start": { + "line": 151, + "column": 19 + }, + "end": { + "line": 151, + "column": 30 + } + }, + "object": { + "type": "ThisExpression", + "start": 6633, + "end": 6637, + "loc": { + "start": { + "line": 151, + "column": 19 + }, + "end": { + "line": 151, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "start": 6638, + "end": 6644, + "loc": { + "start": { + "line": 151, + "column": 24 + }, + "end": { + "line": 151, + "column": 30 + }, + "identifierName": "config" + }, + "name": "config" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6645, + "end": 6658, + "loc": { + "start": { + "line": 151, + "column": 31 + }, + "end": { + "line": 151, + "column": 44 + }, + "identifierName": "verticalSpeed" + }, + "name": "verticalSpeed" + }, + "computed": false + } + } + ] + } + } + } + ], + "kind": "const" }, - "end": { - "line": 158, - "column": 5 - } - }, - "body": [ { "type": "ExpressionStatement", - "start": 6911, - "end": 6951, + "start": 6681, + "end": 6717, "loc": { "start": { - "line": 156, + "line": 153, "column": 8 }, "end": { - "line": 156, - "column": 48 + "line": 153, + "column": 44 } }, "expression": { - "type": "CallExpression", - "start": 6911, - "end": 6950, + "type": "AssignmentExpression", + "start": 6681, + "end": 6716, "loc": { "start": { - "line": 156, + "line": 153, "column": 8 }, "end": { - "line": 156, - "column": 47 + "line": 153, + "column": 43 } }, - "callee": { + "operator": "=", + "left": { "type": "MemberExpression", - "start": 6911, - "end": 6939, + "start": 6681, + "end": 6696, "loc": { "start": { - "line": 156, + "line": 153, "column": 8 }, "end": { - "line": 156, - "column": 36 + "line": 153, + "column": 23 } }, "object": { - "type": "MemberExpression", - "start": 6911, - "end": 6932, + "type": "Identifier", + "start": 6681, + "end": 6690, "loc": { "start": { - "line": 156, + "line": 153, "column": 8 }, "end": { - "line": 156, - "column": 29 + "line": 153, + "column": 17 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + }, + "property": { + "type": "Identifier", + "start": 6691, + "end": 6696, + "loc": { + "start": { + "line": 153, + "column": 18 + }, + "end": { + "line": 153, + "column": 23 + }, + "identifierName": "plane" + }, + "name": "plane" + }, + "computed": false + }, + "right": { + "type": "MemberExpression", + "start": 6699, + "end": 6716, + "loc": { + "start": { + "line": 153, + "column": 26 + }, + "end": { + "line": 153, + "column": 43 + } + }, + "object": { + "type": "MemberExpression", + "start": 6699, + "end": 6710, + "loc": { + "start": { + "line": 153, + "column": 26 + }, + "end": { + "line": 153, + "column": 37 } }, "object": { - "type": "MemberExpression", - "start": 6911, - "end": 6922, + "type": "ThisExpression", + "start": 6699, + "end": 6703, "loc": { "start": { - "line": 156, - "column": 8 + "line": 153, + "column": 26 }, "end": { - "line": 156, - "column": 19 - } - }, - "object": { - "type": "ThisExpression", - "start": 6911, - "end": 6915, - "loc": { - "start": { - "line": 156, - "column": 8 - }, - "end": { - "line": 156, - "column": 12 - } + "line": 153, + "column": 30 } - }, - "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, + "start": 6704, + "end": 6710, "loc": { "start": { - "line": 156, - "column": 20 + "line": 153, + "column": 31 }, "end": { - "line": 156, - "column": 29 + "line": 153, + "column": 37 }, - "identifierName": "instances" + "identifierName": "config" }, - "name": "instances" + "name": "config" }, "computed": false }, "property": { "type": "Identifier", - "start": 6933, - "end": 6939, + "start": 6711, + "end": 6716, "loc": { "start": { - "line": 156, - "column": 30 + "line": 153, + "column": 38 }, "end": { - "line": 156, - "column": 36 + "line": 153, + "column": 43 }, - "identifierName": "delete" + "identifierName": "plane" }, - "name": "delete" + "name": "plane" }, "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, + "start": 6726, + "end": 6758, "loc": { "start": { - "line": 157, + "line": 154, "column": 8 }, "end": { - "line": 157, - "column": 35 + "line": 154, + "column": 40 } }, "expression": { "type": "CallExpression", - "start": 6961, - "end": 6987, + "start": 6726, + "end": 6757, "loc": { "start": { - "line": 157, + "line": 154, "column": 8 }, "end": { - "line": 157, - "column": 34 + "line": 154, + "column": 39 } }, "callee": { "type": "MemberExpression", - "start": 6961, - "end": 6976, + "start": 6726, + "end": 6738, "loc": { "start": { - "line": 157, + "line": 154, "column": 8 }, "end": { - "line": 157, - "column": 23 + "line": 154, + "column": 20 } }, "object": { "type": "Identifier", - "start": 6961, - "end": 6969, + "start": 6726, + "end": 6734, "loc": { "start": { - "line": 157, + "line": 154, "column": 8 }, "end": { - "line": 157, + "line": 154, "column": 16 }, "identifierName": "Parallax" @@ -7993,272 +8079,1509 @@ }, "property": { "type": "Identifier", - "start": 6970, - "end": 6976, + "start": 6735, + "end": 6738, "loc": { "start": { - "line": 157, + "line": 154, "column": 17 }, "end": { - "line": 157, - "column": 23 + "line": 154, + "column": 20 }, - "identifierName": "remove" + "identifierName": "add" }, - "name": "remove" + "name": "add" }, "computed": false }, "arguments": [ { "type": "Identifier", - "start": 6977, - "end": 6986, + "start": 6739, + "end": 6748, "loc": { "start": { - "line": 157, - "column": 24 + "line": 154, + "column": 21 }, "end": { - "line": 157, - "column": 33 + "line": 154, + "column": 30 }, "identifierName": "pInstance" }, "name": "pInstance" + }, + { + "type": "Identifier", + "start": 6750, + "end": 6756, + "loc": { + "start": { + "line": 154, + "column": 32 + }, + "end": { + "line": 154, + "column": 38 + }, + "identifierName": "config" + }, + "name": "config" } ] } } ], - "directives": [] + "directives": [], + "trailingComments": null }, "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, + "value": "*\n * Adds the instance to the parallax layer.\n * When using this API the instance should already be on the map.\n * @param {Diob} pInstance - The instance to add to the layer.\n * @param {Object} pConfig - The personal config of this instance. Akin to the parallax info passed via the `Parallax.add` API.\n * @prop {number} pConfig.x - The horizontal speed of this instance. (This will be ignored and the layer's speed will be used.)\n * @prop {number} pConfig.y - The vertical speed of this instance. (This will be ignored and the layer's speed will be used.)\n * @prop {boolean} pConfig.loop - Whether this instance will be treated as a background and loop seamlessly.\n ", + "start": 5521, + "end": 6224, + "loc": { + "start": { + "line": 131, + "column": 4 + }, + "end": { + "line": 139, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Removes the instance from the parallax layer.\n * @param {Diob} pInstance - The instance to remove from the layer.\n ", + "start": 6769, + "end": 6905, "loc": { "start": { - "line": 151, + "line": 156, "column": 4 }, "end": { - "line": 154, + "line": 159, "column": 7 } } } ] - } - ] - }, - "leadingComments": [], - "trailingComments": [] + }, + { + "type": "ClassMethod", + "start": 6910, + "end": 7020, + "loc": { + "start": { + "line": 160, + "column": 4 + }, + "end": { + "line": 163, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 6910, + "end": 6916, + "loc": { + "start": { + "line": 160, + "column": 4 + }, + "end": { + "line": 160, + "column": 10 + }, + "identifierName": "remove" + }, + "name": "remove", + "leadingComments": null + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 6917, + "end": 6926, + "loc": { + "start": { + "line": 160, + "column": 11 + }, + "end": { + "line": 160, + "column": 20 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + } + ], + "body": { + "type": "BlockStatement", + "start": 6928, + "end": 7020, + "loc": { + "start": { + "line": 160, + "column": 22 + }, + "end": { + "line": 163, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 6938, + "end": 6978, + "loc": { + "start": { + "line": 161, + "column": 8 + }, + "end": { + "line": 161, + "column": 48 + } + }, + "expression": { + "type": "CallExpression", + "start": 6938, + "end": 6977, + "loc": { + "start": { + "line": 161, + "column": 8 + }, + "end": { + "line": 161, + "column": 47 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6938, + "end": 6966, + "loc": { + "start": { + "line": 161, + "column": 8 + }, + "end": { + "line": 161, + "column": 36 + } + }, + "object": { + "type": "MemberExpression", + "start": 6938, + "end": 6959, + "loc": { + "start": { + "line": 161, + "column": 8 + }, + "end": { + "line": 161, + "column": 29 + } + }, + "object": { + "type": "MemberExpression", + "start": 6938, + "end": 6949, + "loc": { + "start": { + "line": 161, + "column": 8 + }, + "end": { + "line": 161, + "column": 19 + } + }, + "object": { + "type": "ThisExpression", + "start": 6938, + "end": 6942, + "loc": { + "start": { + "line": 161, + "column": 8 + }, + "end": { + "line": 161, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 6943, + "end": 6949, + "loc": { + "start": { + "line": 161, + "column": 13 + }, + "end": { + "line": 161, + "column": 19 + }, + "identifierName": "config" + }, + "name": "config" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6950, + "end": 6959, + "loc": { + "start": { + "line": 161, + "column": 20 + }, + "end": { + "line": 161, + "column": 29 + }, + "identifierName": "instances" + }, + "name": "instances" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6960, + "end": 6966, + "loc": { + "start": { + "line": 161, + "column": 30 + }, + "end": { + "line": 161, + "column": 36 + }, + "identifierName": "delete" + }, + "name": "delete" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 6967, + "end": 6976, + "loc": { + "start": { + "line": 161, + "column": 37 + }, + "end": { + "line": 161, + "column": 46 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 6987, + "end": 7014, + "loc": { + "start": { + "line": 162, + "column": 8 + }, + "end": { + "line": 162, + "column": 35 + } + }, + "expression": { + "type": "CallExpression", + "start": 6987, + "end": 7013, + "loc": { + "start": { + "line": 162, + "column": 8 + }, + "end": { + "line": 162, + "column": 34 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6987, + "end": 7002, + "loc": { + "start": { + "line": 162, + "column": 8 + }, + "end": { + "line": 162, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 6987, + "end": 6995, + "loc": { + "start": { + "line": 162, + "column": 8 + }, + "end": { + "line": 162, + "column": 16 + }, + "identifierName": "Parallax" + }, + "name": "Parallax" + }, + "property": { + "type": "Identifier", + "start": 6996, + "end": 7002, + "loc": { + "start": { + "line": 162, + "column": 17 + }, + "end": { + "line": 162, + "column": 23 + }, + "identifierName": "remove" + }, + "name": "remove" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 7003, + "end": 7012, + "loc": { + "start": { + "line": 162, + "column": 24 + }, + "end": { + "line": 162, + "column": 33 + }, + "identifierName": "pInstance" + }, + "name": "pInstance" + } + ] + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Removes the instance from the parallax layer.\n * @param {Diob} pInstance - The instance to remove from the layer.\n ", + "start": 6769, + "end": 6905, + "loc": { + "start": { + "line": 156, + "column": 4 + }, + "end": { + "line": 159, + "column": 7 + } + } + } + ] + } + ] + }, + "leadingComments": [], + "trailingComments": [] + } + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * The configuration object of this layer.\n * @private\n * @type {Object}\n * @param {number} horizontalSpeed - The horizontal speed of the layer.\n * @param {number} verticalSpeed - The vertical speed of the layer.\n * @param {number} plane - The plane this parallax layer will occupy.\n * @param {Diob[] | MapObject[]} backgrounds - An array of instances that will serve as the background. These are automatically toggled to repeat.\n * @param {Set} instances - A set of instances currently on the layer.\n ", + "start": 69, + "end": 613, + "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": 637, + "end": 701, + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 72 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Creates a new Parallax layer with the supplied configuration.\n * When creating a layer, all instances and backgrounds should already be on the map.\n * @param {Object} pConfig - The configuration of the parallax layer.\n * @prop {number} pConfig.horizontalSpeed - The horizontal speed of the layer.\n * @prop {number} pConfig.verticalSpeed - The vertical speed of the layer. \n * @prop {number} pConfig.plane - The plane this layer will occupy.\n * @param {Diob[] | MapObject[]} pConfig.backgrounds - An array of instances that will serve as the background. These are automatically toggled to repeat.\n * @prop {Diob[] | MapObject[]} pConfig.instances - The instances that will be added to the layer. \n ", + "start": 845, + "end": 1587, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 31, + "column": 7 + } + } + }, + { + "type": "CommentLine", + "value": " Backgrounds automatically loop", + "start": 2383, + "end": 2416, + "loc": { + "start": { + "line": 54, + "column": 12 + }, + "end": { + "line": 54, + "column": 45 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Updates the configuration speed of the layer.\n * @param {Object} pConfig - The speed configuration of the parallax layer.\n * @prop {number} pConfig.horizontalSpeed - The horizontal speed of the layer.\n * @prop {number} pConfig.verticalSpeed - The vertical speed of the layer. \n * @param {boolean} pUpdateLayerConfigOnly - If only to update the layer config and not the instance config.\n ", + "start": 2653, + "end": 3073, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 68, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Updates the horizontal speed of this layer.\n * @param {number} pHorizontalSpeed - The new horizontal speed.\n * @param {boolean} pUpdateLayerConfigOnly - If only to update the layer config and not the instance config.\n ", + "start": 3307, + "end": 3550, + "loc": { + "start": { + "line": 73, + "column": 4 + }, + "end": { + "line": 77, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Updates the vertical speed of the layer.\n * @param {number} pVerticalSpeed - The new vertical speed. \n * @param {boolean} pUpdateLayerConfigOnly - If only to update the layer config and not the instance config.\n ", + "start": 4427, + "end": 4664, + "loc": { + "start": { + "line": 102, + "column": 4 + }, + "end": { + "line": 106, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Adds the instance to the parallax layer.\n * When using this API the instance should already be on the map.\n * @param {Diob} pInstance - The instance to add to the layer.\n * @param {Object} pConfig - The personal config of this instance. Akin to the parallax info passed via the `Parallax.add` API.\n * @prop {number} pConfig.x - The horizontal speed of this instance. (This will be ignored and the layer's speed will be used.)\n * @prop {number} pConfig.y - The vertical speed of this instance. (This will be ignored and the layer's speed will be used.)\n * @prop {boolean} pConfig.loop - Whether this instance will be treated as a background and loop seamlessly.\n ", + "start": 5521, + "end": 6224, + "loc": { + "start": { + "line": 131, + "column": 4 + }, + "end": { + "line": 139, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Removes the instance from the parallax layer.\n * @param {Diob} pInstance - The instance to remove from the layer.\n ", + "start": 6769, + "end": 6905, + "loc": { + "start": { + "line": 156, + "column": 4 + }, + "end": { + "line": 159, + "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": 44, + "end": 50, + "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": 51, + "end": 56, + "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": 57, + "end": 62, + "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": 63, + "end": 64, + "loc": { + "start": { + "line": 3, + "column": 19 + }, + "end": { + "line": 3, + "column": 20 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * The configuration object of this layer.\n * @private\n * @type {Object}\n * @param {number} horizontalSpeed - The horizontal speed of the layer.\n * @param {number} verticalSpeed - The vertical speed of the layer.\n * @param {number} plane - The plane this parallax layer will occupy.\n * @param {Diob[] | MapObject[]} backgrounds - An array of instances that will serve as the background. These are automatically toggled to repeat.\n * @param {Set} instances - A set of instances currently on the layer.\n ", + "start": 69, + "end": 613, + "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": 618, + "end": 624, + "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": 625, + "end": 626, + "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": 627, + "end": 628, + "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": 637, + "end": 701, + "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": 710, + "end": 725, + "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": 725, + "end": 726, + "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": 727, + "end": 728, + "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": 728, + "end": 729, + "loc": { + "start": { + "line": 16, + "column": 26 + }, + "end": { + "line": 16, + "column": 27 } } - ], - "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, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "verticalSpeed", + "start": 738, + "end": 751, "loc": { "start": { - "line": 4, - "column": 4 + "line": 17, + "column": 8 }, "end": { - "line": 13, - "column": 7 + "line": 17, + "column": 21 } } }, { - "type": "CommentLine", - "value": " Move the instance with the camera if the parallax is set to 0", - "start": 651, - "end": 715, + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 751, + "end": 752, "loc": { "start": { - "line": 15, + "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": 753, + "end": 754, + "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": 754, + "end": 755, + "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": 764, + "end": 769, + "loc": { + "start": { + "line": 18, "column": 8 }, "end": { - "line": 15, - "column": 72 + "line": 18, + "column": 13 } } }, { - "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, + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 769, + "end": 770, "loc": { "start": { - "line": 22, - "column": 4 + "line": 18, + "column": 13 }, "end": { - "line": 31, - "column": 7 + "line": 18, + "column": 14 } } }, { - "type": "CommentLine", - "value": " Backgrounds automatically loop", - "start": 2436, - "end": 2469, + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 1, + "start": 771, + "end": 772, "loc": { "start": { - "line": 54, - "column": 12 + "line": 18, + "column": 15 }, "end": { - "line": 54, - "column": 45 + "line": 18, + "column": 16 } } }, { - "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, + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 772, + "end": 773, "loc": { "start": { - "line": 62, - "column": 4 + "line": 18, + "column": 16 }, "end": { - "line": 68, - "column": 7 + "line": 18, + "column": 17 } } }, { - "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, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "backgrounds", + "start": 782, + "end": 793, "loc": { "start": { - "line": 73, - "column": 4 + "line": 19, + "column": 8 }, "end": { - "line": 77, - "column": 7 + "line": 19, + "column": 19 } } }, { - "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, + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 793, + "end": 794, "loc": { "start": { - "line": 102, - "column": 4 + "line": 19, + "column": 19 }, "end": { - "line": 106, - "column": 7 + "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": 795, + "end": 798, + "loc": { + "start": { + "line": 19, + "column": 21 + }, + "end": { + "line": 19, + "column": 24 } } }, { - "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, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Set", + "start": 799, + "end": 802, "loc": { "start": { - "line": 131, - "column": 4 + "line": 19, + "column": 25 }, "end": { - "line": 139, - "column": 7 + "line": 19, + "column": 28 } } }, { - "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, + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 802, + "end": 803, "loc": { "start": { - "line": 151, - "column": 4 + "line": 19, + "column": 28 }, "end": { - "line": 154, - "column": 7 + "line": 19, + "column": 29 } } - } - ], - "tokens": [ + }, { "type": { - "label": "import", - "keyword": "import", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "import", - "start": 0, - "end": 6, + "start": 803, + "end": 804, "loc": { "start": { - "line": 1, - "column": 0 + "line": 19, + "column": 29 }, "end": { - "line": 1, - "column": 6 + "line": 19, + "column": 30 } } }, { "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": 804, + "end": 805, "loc": { "start": { - "line": 1, - "column": 7 + "line": 19, + "column": 30 }, "end": { - "line": 1, - "column": 8 + "line": 19, + "column": 31 } } }, @@ -8274,74 +9597,77 @@ "postfix": false, "binop": null }, - "value": "Parallax", - "start": 9, - "end": 17, + "value": "instances", + "start": 814, + "end": 823, "loc": { "start": { - "line": 1, - "column": 9 + "line": 20, + "column": 8 }, "end": { - "line": 1, + "line": 20, "column": 17 } } }, { "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": 18, - "end": 19, + "start": 823, + "end": 824, "loc": { "start": { - "line": 1, - "column": 18 + "line": 20, + "column": 17 }, "end": { - "line": 1, - "column": 19 + "line": 20, + "column": 18 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "new", + "keyword": "new", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "from", - "start": 20, - "end": 24, + "value": "new", + "start": 825, + "end": 828, "loc": { "start": { - "line": 1, - "column": 20 + "line": 20, + "column": 19 }, "end": { - "line": 1, - "column": 24 + "line": 20, + "column": 22 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -8349,53 +9675,50 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "./parallax.mjs", - "start": 25, - "end": 41, + "value": "Set", + "start": 829, + "end": 832, "loc": { "start": { - "line": 1, - "column": 25 + "line": 20, + "column": 23 }, "end": { - "line": 1, - "column": 41 + "line": 20, + "column": 26 } } }, { "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": 41, - "end": 42, + "start": 832, + "end": 833, "loc": { "start": { - "line": 1, - "column": 41 + "line": 20, + "column": 26 }, "end": { - "line": 1, - "column": 42 + "line": 20, + "column": 27 } } }, { "type": { - "label": "export", - "keyword": "export", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -8403,27 +9726,24 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "export", - "start": 46, - "end": 52, + "start": 833, + "end": 834, "loc": { "start": { - "line": 3, - "column": 0 + "line": 20, + "column": 27 }, "end": { - "line": 3, - "column": 6 + "line": 20, + "column": 28 } } }, { "type": { - "label": "class", - "keyword": "class", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -8431,20 +9751,34 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "class", - "start": 53, - "end": 58, + "start": 839, + "end": 840, "loc": { "start": { - "line": 3, - "column": 7 + "line": 21, + "column": 4 }, "end": { - "line": 3, - "column": 12 + "line": 21, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Creates a new Parallax layer with the supplied configuration.\n * When creating a layer, all instances and backgrounds should already be on the map.\n * @param {Object} pConfig - The configuration of the parallax layer.\n * @prop {number} pConfig.horizontalSpeed - The horizontal speed of the layer.\n * @prop {number} pConfig.verticalSpeed - The vertical speed of the layer. \n * @prop {number} pConfig.plane - The plane this layer will occupy.\n * @param {Diob[] | MapObject[]} pConfig.backgrounds - An array of instances that will serve as the background. These are automatically toggled to repeat.\n * @prop {Diob[] | MapObject[]} pConfig.instances - The instances that will be added to the layer. \n ", + "start": 845, + "end": 1587, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 31, + "column": 7 } } }, @@ -8460,23 +9794,23 @@ "postfix": false, "binop": null }, - "value": "Layer", - "start": 59, - "end": 64, + "value": "constructor", + "start": 1592, + "end": 1603, "loc": { "start": { - "line": 3, - "column": 13 + "line": 32, + "column": 4 }, "end": { - "line": 3, - "column": 18 + "line": 32, + "column": 15 } } }, { "type": { - "label": "{", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -8486,32 +9820,16 @@ "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, + "start": 1603, + "end": 1604, "loc": { "start": { - "line": 4, - "column": 4 + "line": 32, + "column": 15 }, "end": { - "line": 13, - "column": 7 + "line": 32, + "column": 16 } } }, @@ -8527,44 +9845,42 @@ "postfix": false, "binop": null }, - "value": "config", - "start": 631, - "end": 637, + "value": "pConfig", + "start": 1604, + "end": 1611, "loc": { "start": { - "line": 14, - "column": 4 + "line": 32, + "column": 16 }, "end": { - "line": 14, - "column": 10 + "line": 32, + "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 + "binop": null }, - "value": "=", - "start": 638, - "end": 639, + "start": 1611, + "end": 1612, "loc": { "start": { - "line": 14, - "column": 11 + "line": 32, + "column": 23 }, "end": { - "line": 14, - "column": 12 + "line": 32, + "column": 24 } } }, @@ -8580,38 +9896,23 @@ "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, + "start": 1613, + "end": 1614, "loc": { "start": { - "line": 15, - "column": 8 + "line": 32, + "column": 25 }, "end": { - "line": 15, - "column": 72 + "line": 32, + "column": 26 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -8619,26 +9920,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "horizontalSpeed", - "start": 725, - "end": 740, + "value": "this", + "start": 1623, + "end": 1627, "loc": { "start": { - "line": 16, + "line": 33, "column": 8 }, "end": { - "line": 16, - "column": 23 + "line": 33, + "column": 12 } } }, { "type": { - "label": ":", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -8648,22 +9950,22 @@ "binop": null, "updateContext": null }, - "start": 740, - "end": 741, + "start": 1627, + "end": 1628, "loc": { "start": { - "line": 16, - "column": 23 + "line": 33, + "column": 12 }, "end": { - "line": 16, - "column": 24 + "line": 33, + "column": 13 } } }, { "type": { - "label": "num", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -8671,46 +9973,44 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 0, - "start": 742, - "end": 743, + "value": "updateConfigSpeed", + "start": 1628, + "end": 1645, "loc": { "start": { - "line": 16, - "column": 25 + "line": 33, + "column": 13 }, "end": { - "line": 16, - "column": 26 + "line": 33, + "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": 743, - "end": 744, + "start": 1645, + "end": 1646, "loc": { "start": { - "line": 16, - "column": 26 + "line": 33, + "column": 30 }, "end": { - "line": 16, - "column": 27 + "line": 33, + "column": 31 } } }, @@ -8726,23 +10026,23 @@ "postfix": false, "binop": null }, - "value": "verticalSpeed", - "start": 754, - "end": 767, + "value": "pConfig", + "start": 1646, + "end": 1653, "loc": { "start": { - "line": 17, - "column": 8 + "line": 33, + "column": 31 }, "end": { - "line": 17, - "column": 21 + "line": 33, + "column": 38 } } }, { "type": { - "label": ":", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -8753,22 +10053,23 @@ "binop": null, "updateContext": null }, - "start": 767, - "end": 768, + "start": 1653, + "end": 1654, "loc": { "start": { - "line": 17, - "column": 21 + "line": 33, + "column": 38 }, "end": { - "line": 17, - "column": 22 + "line": 33, + "column": 39 } } }, { "type": { - "label": "num", + "label": "true", + "keyword": "true", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -8779,23 +10080,48 @@ "binop": null, "updateContext": null }, - "value": 0, - "start": 769, - "end": 770, + "value": "true", + "start": 1655, + "end": 1659, "loc": { "start": { - "line": 17, - "column": 23 + "line": 33, + "column": 40 }, "end": { - "line": 17, - "column": 24 + "line": 33, + "column": 44 } } }, { "type": { - "label": ",", + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1659, + "end": 1660, + "loc": { + "start": { + "line": 33, + "column": 44 + }, + "end": { + "line": 33, + "column": 45 + } + } + }, + { + "type": { + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -8806,121 +10132,124 @@ "binop": null, "updateContext": null }, - "start": 770, - "end": 771, + "start": 1660, + "end": 1661, "loc": { "start": { - "line": 17, - "column": 24 + "line": 33, + "column": 45 }, "end": { - "line": 17, - "column": 25 + "line": 33, + "column": 46 } } }, { "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": "plane", - "start": 781, - "end": 786, + "value": "if", + "start": 1671, + "end": 1673, "loc": { "start": { - "line": 18, + "line": 35, "column": 8 }, "end": { - "line": 18, - "column": 13 + "line": 35, + "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": 786, - "end": 787, + "start": 1674, + "end": 1675, "loc": { "start": { - "line": 18, - "column": 13 + "line": 35, + "column": 11 }, "end": { - "line": 18, - "column": 14 + "line": 35, + "column": 12 } } }, { "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": 1, - "start": 788, - "end": 789, + "value": "!", + "start": 1675, + "end": 1676, "loc": { "start": { - "line": 18, - "column": 15 + "line": 35, + "column": 12 }, "end": { - "line": 18, - "column": 16 + "line": 35, + "column": 13 } } }, { "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": 789, - "end": 790, + "value": "typeof", + "start": 1676, + "end": 1682, "loc": { "start": { - "line": 18, - "column": 16 + "line": 35, + "column": 13 }, "end": { - "line": 18, - "column": 17 + "line": 35, + "column": 19 } } }, @@ -8936,24 +10265,24 @@ "postfix": false, "binop": null }, - "value": "backgrounds", - "start": 800, - "end": 811, + "value": "pConfig", + "start": 1683, + "end": 1690, "loc": { "start": { - "line": 19, - "column": 8 + "line": 35, + "column": 20 }, "end": { - "line": 19, - "column": 19 + "line": 35, + "column": 27 } } }, { "type": { - "label": ":", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -8963,95 +10292,96 @@ "binop": null, "updateContext": null }, - "start": 811, - "end": 812, + "start": 1690, + "end": 1691, "loc": { "start": { - "line": 19, - "column": 19 + "line": 35, + "column": 27 }, "end": { - "line": 19, - "column": 20 + "line": 35, + "column": 28 } } }, { "type": { - "label": "new", - "keyword": "new", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "new", - "start": 813, - "end": 816, + "value": "plane", + "start": 1691, + "end": 1696, "loc": { "start": { - "line": 19, - "column": 21 + "line": 35, + "column": 28 }, "end": { - "line": 19, - "column": 24 + "line": 35, + "column": 33 } } }, { "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": 6, + "updateContext": null }, - "value": "Set", - "start": 817, - "end": 820, + "value": "===", + "start": 1697, + "end": 1700, "loc": { "start": { - "line": 19, - "column": 25 + "line": 35, + "column": 34 }, "end": { - "line": 19, - "column": 28 + "line": 35, + "column": 37 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "string", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 820, - "end": 821, + "value": "number", + "start": 1701, + "end": 1709, "loc": { "start": { - "line": 19, - "column": 28 + "line": 35, + "column": 38 }, "end": { - "line": 19, - "column": 29 + "line": 35, + "column": 46 } } }, @@ -9067,42 +10397,41 @@ "postfix": false, "binop": null }, - "start": 821, - "end": 822, + "start": 1709, + "end": 1710, "loc": { "start": { - "line": 19, - "column": 29 + "line": 35, + "column": 46 }, "end": { - "line": 19, - "column": 30 + "line": 35, + "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": 822, - "end": 823, + "start": 1711, + "end": 1712, "loc": { "start": { - "line": 19, - "column": 30 + "line": 35, + "column": 48 }, "end": { - "line": 19, - "column": 31 + "line": 35, + "column": 49 } } }, @@ -9118,24 +10447,24 @@ "postfix": false, "binop": null }, - "value": "instances", - "start": 833, - "end": 842, + "value": "Parallax", + "start": 1725, + "end": 1733, "loc": { "start": { - "line": 20, - "column": 8 + "line": 36, + "column": 12 }, "end": { - "line": 20, - "column": 17 + "line": 36, + "column": 20 } } }, { "type": { - "label": ":", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -9145,77 +10474,75 @@ "binop": null, "updateContext": null }, - "start": 842, - "end": 843, + "start": 1733, + "end": 1734, "loc": { "start": { - "line": 20, - "column": 17 + "line": 36, + "column": 20 }, "end": { - "line": 20, - "column": 18 + "line": 36, + "column": 21 } } }, { "type": { - "label": "new", - "keyword": "new", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "new", - "start": 844, - "end": 847, + "value": "logger", + "start": 1734, + "end": 1740, "loc": { "start": { - "line": 20, - "column": 19 + "line": 36, + "column": 21 }, "end": { - "line": 20, - "column": 22 + "line": 36, + "column": 27 } } }, { "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": "Set", - "start": 848, - "end": 851, + "start": 1740, + "end": 1741, "loc": { "start": { - "line": 20, - "column": 23 + "line": 36, + "column": 27 }, "end": { - "line": 20, - "column": 26 + "line": 36, + "column": 28 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -9224,24 +10551,25 @@ "postfix": false, "binop": null }, - "start": 851, - "end": 852, + "value": "prefix", + "start": 1741, + "end": 1747, "loc": { "start": { - "line": 20, - "column": 26 + "line": 36, + "column": 28 }, "end": { - "line": 20, - "column": 27 + "line": 36, + "column": 34 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -9249,65 +10577,51 @@ "postfix": false, "binop": null }, - "start": 852, - "end": 853, + "start": 1747, + "end": 1748, "loc": { "start": { - "line": 20, - "column": 27 + "line": 36, + "column": 34 }, "end": { - "line": 20, - "column": 28 + "line": 36, + "column": 35 } } }, { "type": { - "label": "}", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": 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, + "value": "Parallax-Module", + "start": 1748, + "end": 1765, "loc": { "start": { - "line": 22, - "column": 4 + "line": 36, + "column": 35 }, "end": { - "line": 31, - "column": 7 + "line": 36, + "column": 52 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -9315,42 +10629,42 @@ "postfix": false, "binop": null }, - "value": "constructor", - "start": 1623, - "end": 1634, + "start": 1765, + "end": 1766, "loc": { "start": { - "line": 32, - "column": 4 + "line": 36, + "column": 52 }, "end": { - "line": 32, - "column": 15 + "line": 36, + "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": 1634, - "end": 1635, + "start": 1766, + "end": 1767, "loc": { "start": { - "line": 32, - "column": 15 + "line": 36, + "column": 53 }, "end": { - "line": 32, - "column": 16 + "line": 36, + "column": 54 } } }, @@ -9366,25 +10680,25 @@ "postfix": false, "binop": null }, - "value": "pConfig", - "start": 1635, - "end": 1642, + "value": "warn", + "start": 1767, + "end": 1771, "loc": { "start": { - "line": 32, - "column": 16 + "line": 36, + "column": 54 }, "end": { - "line": 32, - "column": 23 + "line": 36, + "column": 58 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -9392,50 +10706,51 @@ "postfix": false, "binop": null }, - "start": 1642, - "end": 1643, + "start": 1771, + "end": 1772, "loc": { "start": { - "line": 32, - "column": 23 + "line": 36, + "column": 58 }, "end": { - "line": 32, - "column": 24 + "line": 36, + "column": 59 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "string", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1644, - "end": 1645, + "value": "Expected a number for \"pConfig.plane\", but received:", + "start": 1772, + "end": 1826, "loc": { "start": { - "line": 32, - "column": 25 + "line": 36, + "column": 59 }, "end": { - "line": 32, - "column": 26 + "line": 36, + "column": 113 } } }, { "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -9444,43 +10759,44 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 1655, - "end": 1659, + "start": 1826, + "end": 1827, "loc": { "start": { - "line": 33, - "column": 8 + "line": 36, + "column": 113 }, "end": { - "line": 33, - "column": 12 + "line": 36, + "column": 114 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "typeof", + "keyword": "typeof", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, "binop": null, "updateContext": null }, - "start": 1659, - "end": 1660, + "value": "typeof", + "start": 1828, + "end": 1834, "loc": { "start": { - "line": 33, - "column": 12 + "line": 36, + "column": 115 }, "end": { - "line": 33, - "column": 13 + "line": 36, + "column": 121 } } }, @@ -9496,42 +10812,43 @@ "postfix": false, "binop": null }, - "value": "updateConfigSpeed", - "start": 1660, - "end": 1677, + "value": "pConfig", + "start": 1835, + "end": 1842, "loc": { "start": { - "line": 33, - "column": 13 + "line": 36, + "column": 122 }, "end": { - "line": 33, - "column": 30 + "line": 36, + "column": 129 } } }, { "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": 1677, - "end": 1678, + "start": 1842, + "end": 1843, "loc": { "start": { - "line": 33, - "column": 30 + "line": 36, + "column": 129 }, "end": { - "line": 33, - "column": 31 + "line": 36, + "column": 130 } } }, @@ -9547,17 +10864,17 @@ "postfix": false, "binop": null }, - "value": "pConfig", - "start": 1678, - "end": 1685, + "value": "plane", + "start": 1843, + "end": 1848, "loc": { "start": { - "line": 33, - "column": 31 + "line": 36, + "column": 130 }, "end": { - "line": 33, - "column": 38 + "line": 36, + "column": 135 } } }, @@ -9574,23 +10891,22 @@ "binop": null, "updateContext": null }, - "start": 1685, - "end": 1686, + "start": 1848, + "end": 1849, "loc": { "start": { - "line": 33, - "column": 38 + "line": 36, + "column": 135 }, "end": { - "line": 33, - "column": 39 + "line": 36, + "column": 136 } } }, { "type": { - "label": "true", - "keyword": "true", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -9601,17 +10917,17 @@ "binop": null, "updateContext": null }, - "value": "true", - "start": 1687, - "end": 1691, + "value": "\n Default plane of \"1\" used.", + "start": 1850, + "end": 1881, "loc": { "start": { - "line": 33, - "column": 40 + "line": 36, + "column": 137 }, "end": { - "line": 33, - "column": 44 + "line": 36, + "column": 168 } } }, @@ -9627,16 +10943,16 @@ "postfix": false, "binop": null }, - "start": 1691, - "end": 1692, + "start": 1881, + "end": 1882, "loc": { "start": { - "line": 33, - "column": 44 + "line": 36, + "column": 168 }, "end": { - "line": 33, - "column": 45 + "line": 36, + "column": 169 } } }, @@ -9653,23 +10969,22 @@ "binop": null, "updateContext": null }, - "start": 1692, - "end": 1693, + "start": 1882, + "end": 1883, "loc": { "start": { - "line": 33, - "column": 45 + "line": 36, + "column": 169 }, "end": { - "line": 33, - "column": 46 + "line": 36, + "column": 170 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -9677,26 +10992,52 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 1705, - "end": 1707, + "start": 1892, + "end": 1893, "loc": { "start": { - "line": 35, + "line": 37, "column": 8 }, "end": { - "line": 35, + "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": 1894, + "end": 1898, + "loc": { + "start": { + "line": 37, "column": 10 + }, + "end": { + "line": 37, + "column": 14 } } }, { "type": { - "label": "(", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -9706,71 +11047,70 @@ "postfix": false, "binop": null }, - "start": 1708, - "end": 1709, + "start": 1899, + "end": 1900, "loc": { "start": { - "line": 35, - "column": 11 + "line": 37, + "column": 15 }, "end": { - "line": 35, - "column": 12 + "line": 37, + "column": 16 } } }, { "type": { - "label": "prefix", - "beforeExpr": true, + "label": "this", + "keyword": "this", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "!", - "start": 1709, - "end": 1710, + "value": "this", + "start": 1913, + "end": 1917, "loc": { "start": { - "line": 35, + "line": 38, "column": 12 }, "end": { - "line": 35, - "column": 13 + "line": 38, + "column": 16 } } }, { "type": { - "label": "typeof", - "keyword": "typeof", - "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": "typeof", - "start": 1710, - "end": 1716, + "start": 1917, + "end": 1918, "loc": { "start": { - "line": 35, - "column": 13 + "line": 38, + "column": 16 }, "end": { - "line": 35, - "column": 19 + "line": 38, + "column": 17 } } }, @@ -9786,17 +11126,17 @@ "postfix": false, "binop": null }, - "value": "pConfig", - "start": 1717, - "end": 1724, + "value": "config", + "start": 1918, + "end": 1924, "loc": { "start": { - "line": 35, - "column": 20 + "line": 38, + "column": 17 }, "end": { - "line": 35, - "column": 27 + "line": 38, + "column": 23 } } }, @@ -9813,16 +11153,16 @@ "binop": null, "updateContext": null }, - "start": 1724, - "end": 1725, + "start": 1924, + "end": 1925, "loc": { "start": { - "line": 35, - "column": 27 + "line": 38, + "column": 23 }, "end": { - "line": 35, - "column": 28 + "line": 38, + "column": 24 } } }, @@ -9836,54 +11176,80 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null + }, + "value": "plane", + "start": 1925, + "end": 1930, + "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": "plane", - "start": 1725, - "end": 1730, + "value": "=", + "start": 1931, + "end": 1932, "loc": { "start": { - "line": 35, - "column": 28 + "line": 38, + "column": 30 }, "end": { - "line": 35, - "column": 33 + "line": 38, + "column": 31 } } }, { "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": 1731, - "end": 1734, + "value": "pConfig", + "start": 1933, + "end": 1940, "loc": { "start": { - "line": 35, - "column": 34 + "line": 38, + "column": 32 }, "end": { - "line": 35, - "column": 37 + "line": 38, + "column": 39 } } }, { "type": { - "label": "string", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -9892,25 +11258,24 @@ "binop": null, "updateContext": null }, - "value": "number", - "start": 1735, - "end": 1743, + "start": 1940, + "end": 1941, "loc": { "start": { - "line": 35, - "column": 38 + "line": 38, + "column": 39 }, "end": { - "line": 35, - "column": 46 + "line": 38, + "column": 40 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -9918,49 +11283,51 @@ "postfix": false, "binop": null }, - "start": 1743, - "end": 1744, + "value": "plane", + "start": 1941, + "end": 1946, "loc": { "start": { - "line": 35, - "column": 46 + "line": 38, + "column": 40 }, "end": { - "line": 35, - "column": 47 + "line": 38, + "column": 45 } } }, { "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": 1745, - "end": 1746, + "start": 1946, + "end": 1947, "loc": { "start": { - "line": 35, - "column": 48 + "line": 38, + "column": 45 }, "end": { - "line": 35, - "column": 49 + "line": 38, + "column": 46 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -9968,23 +11335,23 @@ "postfix": false, "binop": null }, - "value": "Parallax", - "start": 1760, - "end": 1768, + "start": 1956, + "end": 1957, "loc": { "start": { - "line": 36, - "column": 12 + "line": 39, + "column": 8 }, "end": { - "line": 36, - "column": 20 + "line": 39, + "column": 9 } } }, { "type": { - "label": ".", + "label": "const", + "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -9995,16 +11362,17 @@ "binop": null, "updateContext": null }, - "start": 1768, - "end": 1769, + "value": "const", + "start": 1967, + "end": 1972, "loc": { "start": { - "line": 36, - "column": 20 + "line": 41, + "column": 8 }, "end": { - "line": 36, - "column": 21 + "line": 41, + "column": 13 } } }, @@ -10020,50 +11388,51 @@ "postfix": false, "binop": null }, - "value": "logger", - "start": 1769, - "end": 1775, + "value": "instanceConfig", + "start": 1973, + "end": 1987, "loc": { "start": { - "line": 36, - "column": 21 + "line": 41, + "column": 14 }, "end": { - "line": 36, - "column": 27 + "line": 41, + "column": 28 } } }, { "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": 1775, - "end": 1776, + "value": "=", + "start": 1988, + "end": 1989, "loc": { "start": { - "line": 36, - "column": 27 + "line": 41, + "column": 29 }, "end": { - "line": 36, - "column": 28 + "line": 41, + "column": 30 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -10072,24 +11441,23 @@ "postfix": false, "binop": null }, - "value": "prefix", - "start": 1776, - "end": 1782, + "start": 1990, + "end": 1991, "loc": { "start": { - "line": 36, - "column": 28 + "line": 41, + "column": 31 }, "end": { - "line": 36, - "column": 34 + "line": 41, + "column": 32 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -10098,24 +11466,25 @@ "postfix": false, "binop": null }, - "start": 1782, - "end": 1783, + "value": "x", + "start": 2004, + "end": 2005, "loc": { "start": { - "line": 36, - "column": 34 + "line": 42, + "column": 12 }, "end": { - "line": 36, - "column": 35 + "line": 42, + "column": 13 } } }, { "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, + "label": ":", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -10124,42 +11493,44 @@ "binop": null, "updateContext": null }, - "value": "Parallax-Module", - "start": 1783, - "end": 1800, + "start": 2005, + "end": 2006, "loc": { "start": { - "line": 36, - "column": 35 + "line": 42, + "column": 13 }, "end": { - "line": 36, - "column": 52 + "line": 42, + "column": 14 } } }, { "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": 1800, - "end": 1801, + "value": "this", + "start": 2007, + "end": 2011, "loc": { "start": { - "line": 36, - "column": 52 + "line": 42, + "column": 15 }, "end": { - "line": 36, - "column": 53 + "line": 42, + "column": 19 } } }, @@ -10176,16 +11547,16 @@ "binop": null, "updateContext": null }, - "start": 1801, - "end": 1802, + "start": 2011, + "end": 2012, "loc": { "start": { - "line": 36, - "column": 53 + "line": 42, + "column": 19 }, "end": { - "line": 36, - "column": 54 + "line": 42, + "column": 20 } } }, @@ -10201,48 +11572,49 @@ "postfix": false, "binop": null }, - "value": "warn", - "start": 1802, - "end": 1806, + "value": "config", + "start": 2012, + "end": 2018, "loc": { "start": { - "line": 36, - "column": 54 + "line": 42, + "column": 20 }, "end": { - "line": 36, - "column": 58 + "line": 42, + "column": 26 } } }, { "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": 1806, - "end": 1807, + "start": 2018, + "end": 2019, "loc": { "start": { - "line": 36, - "column": 58 + "line": 42, + "column": 26 }, "end": { - "line": 36, - "column": 59 + "line": 42, + "column": 27 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -10250,20 +11622,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "Expected a number for \"pConfig.plane\", but received:", - "start": 1807, - "end": 1861, + "value": "horizontalSpeed", + "start": 2019, + "end": 2034, "loc": { "start": { - "line": 36, - "column": 59 + "line": 42, + "column": 27 }, "end": { - "line": 36, - "column": 113 + "line": 42, + "column": 42 } } }, @@ -10277,53 +11648,78 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null, + "updateContext": null + }, + "start": 2034, + "end": 2035, + "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 }, - "start": 1861, - "end": 1862, + "value": "y", + "start": 2048, + "end": 2049, "loc": { "start": { - "line": 36, - "column": 113 + "line": 43, + "column": 12 }, "end": { - "line": 36, - "column": 114 + "line": 43, + "column": 13 } } }, { "type": { - "label": "typeof", - "keyword": "typeof", + "label": ":", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "typeof", - "start": 1863, - "end": 1869, + "start": 2049, + "end": 2050, "loc": { "start": { - "line": 36, - "column": 115 + "line": 43, + "column": 13 }, "end": { - "line": 36, - "column": 121 + "line": 43, + "column": 14 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -10331,19 +11727,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "pConfig", - "start": 1870, - "end": 1877, + "value": "this", + "start": 2051, + "end": 2055, "loc": { "start": { - "line": 36, - "column": 122 + "line": 43, + "column": 15 }, "end": { - "line": 36, - "column": 129 + "line": 43, + "column": 19 } } }, @@ -10360,16 +11757,16 @@ "binop": null, "updateContext": null }, - "start": 1877, - "end": 1878, + "start": 2055, + "end": 2056, "loc": { "start": { - "line": 36, - "column": 129 + "line": 43, + "column": 19 }, "end": { - "line": 36, - "column": 130 + "line": 43, + "column": 20 } } }, @@ -10385,24 +11782,24 @@ "postfix": false, "binop": null }, - "value": "plane", - "start": 1878, - "end": 1883, + "value": "config", + "start": 2056, + "end": 2062, "loc": { "start": { - "line": 36, - "column": 130 + "line": 43, + "column": 20 }, "end": { - "line": 36, - "column": 135 + "line": 43, + "column": 26 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -10412,22 +11809,22 @@ "binop": null, "updateContext": null }, - "start": 1883, - "end": 1884, + "start": 2062, + "end": 2063, "loc": { "start": { - "line": 36, - "column": 135 + "line": 43, + "column": 26 }, "end": { - "line": 36, - "column": 136 + "line": 43, + "column": 27 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -10435,26 +11832,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "\n Default plane of \"1\" used.", - "start": 1885, - "end": 1916, + "value": "verticalSpeed", + "start": 2063, + "end": 2076, "loc": { "start": { - "line": 36, - "column": 137 + "line": 43, + "column": 27 }, "end": { - "line": 36, - "column": 168 + "line": 43, + "column": 40 } } }, { "type": { - "label": ")", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -10464,23 +11860,24 @@ "postfix": false, "binop": null }, - "start": 1916, - "end": 1917, + "start": 2085, + "end": 2086, "loc": { "start": { - "line": 36, - "column": 168 + "line": 44, + "column": 8 }, "end": { - "line": 36, - "column": 169 + "line": 44, + "column": 9 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": "if", + "keyword": "if", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -10490,24 +11887,25 @@ "binop": null, "updateContext": null }, - "start": 1917, - "end": 1918, + "value": "if", + "start": 2096, + "end": 2098, "loc": { "start": { - "line": 36, - "column": 169 + "line": 46, + "column": 8 }, "end": { - "line": 36, - "column": 170 + "line": 46, + "column": 10 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -10515,76 +11913,74 @@ "postfix": false, "binop": null }, - "start": 1928, - "end": 1929, + "start": 2099, + "end": 2100, "loc": { "start": { - "line": 37, - "column": 8 + "line": 46, + "column": 11 }, "end": { - "line": 37, - "column": 9 + "line": 46, + "column": 12 } } }, { "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": 1930, - "end": 1934, + "value": "Array", + "start": 2100, + "end": 2105, "loc": { "start": { - "line": 37, - "column": 10 + "line": 46, + "column": 12 }, "end": { - "line": 37, - "column": 14 + "line": 46, + "column": 17 } } }, { "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": 1935, - "end": 1936, + "start": 2105, + "end": 2106, "loc": { "start": { - "line": 37, - "column": 15 + "line": 46, + "column": 17 }, "end": { - "line": 37, - "column": 16 + "line": 46, + "column": 18 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -10592,46 +11988,44 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 1950, - "end": 1954, + "value": "isArray", + "start": 2106, + "end": 2113, "loc": { "start": { - "line": 38, - "column": 12 + "line": 46, + "column": 18 }, "end": { - "line": 38, - "column": 16 + "line": 46, + "column": 25 } } }, { "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": 1954, - "end": 1955, + "start": 2113, + "end": 2114, "loc": { "start": { - "line": 38, - "column": 16 + "line": 46, + "column": 25 }, "end": { - "line": 38, - "column": 17 + "line": 46, + "column": 26 } } }, @@ -10647,17 +12041,17 @@ "postfix": false, "binop": null }, - "value": "config", - "start": 1955, - "end": 1961, + "value": "pConfig", + "start": 2114, + "end": 2121, "loc": { "start": { - "line": 38, - "column": 17 + "line": 46, + "column": 26 }, "end": { - "line": 38, - "column": 23 + "line": 46, + "column": 33 } } }, @@ -10674,16 +12068,16 @@ "binop": null, "updateContext": null }, - "start": 1961, - "end": 1962, + "start": 2121, + "end": 2122, "loc": { "start": { - "line": 38, - "column": 23 + "line": 46, + "column": 33 }, "end": { - "line": 38, - "column": 24 + "line": 46, + "column": 34 } } }, @@ -10699,52 +12093,50 @@ "postfix": false, "binop": null }, - "value": "plane", - "start": 1962, - "end": 1967, + "value": "instances", + "start": 2122, + "end": 2131, "loc": { "start": { - "line": 38, - "column": 24 + "line": 46, + "column": 34 }, "end": { - "line": 38, - "column": 29 + "line": 46, + "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 + "binop": null }, - "value": "=", - "start": 1968, - "end": 1969, + "start": 2131, + "end": 2132, "loc": { "start": { - "line": 38, - "column": 30 + "line": 46, + "column": 43 }, "end": { - "line": 38, - "column": 31 + "line": 46, + "column": 44 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -10752,43 +12144,41 @@ "postfix": false, "binop": null }, - "value": "pConfig", - "start": 1970, - "end": 1977, + "start": 2132, + "end": 2133, "loc": { "start": { - "line": 38, - "column": 32 + "line": 46, + "column": 44 }, "end": { - "line": 38, - "column": 39 + "line": 46, + "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": 1977, - "end": 1978, + "start": 2134, + "end": 2135, "loc": { "start": { - "line": 38, - "column": 39 + "line": 46, + "column": 46 }, "end": { - "line": 38, - "column": 40 + "line": 46, + "column": 47 } } }, @@ -10804,24 +12194,24 @@ "postfix": false, "binop": null }, - "value": "plane", - "start": 1978, - "end": 1983, + "value": "pConfig", + "start": 2148, + "end": 2155, "loc": { "start": { - "line": 38, - "column": 40 + "line": 47, + "column": 12 }, "end": { - "line": 38, - "column": 45 + "line": 47, + "column": 19 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -10831,24 +12221,24 @@ "binop": null, "updateContext": null }, - "start": 1983, - "end": 1984, + "start": 2155, + "end": 2156, "loc": { "start": { - "line": 38, - "column": 45 + "line": 47, + "column": 19 }, "end": { - "line": 38, - "column": 46 + "line": 47, + "column": 20 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -10856,23 +12246,23 @@ "postfix": false, "binop": null }, - "start": 1994, - "end": 1995, + "value": "instances", + "start": 2156, + "end": 2165, "loc": { "start": { - "line": 39, - "column": 8 + "line": 47, + "column": 20 }, "end": { - "line": 39, - "column": 9 + "line": 47, + "column": 29 } } }, { "type": { - "label": "const", - "keyword": "const", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -10883,17 +12273,16 @@ "binop": null, "updateContext": null }, - "value": "const", - "start": 2007, - "end": 2012, + "start": 2165, + "end": 2166, "loc": { "start": { - "line": 41, - "column": 8 + "line": 47, + "column": 29 }, "end": { - "line": 41, - "column": 13 + "line": 47, + "column": 30 } } }, @@ -10909,51 +12298,49 @@ "postfix": false, "binop": null }, - "value": "instanceConfig", - "start": 2013, - "end": 2027, + "value": "forEach", + "start": 2166, + "end": 2173, "loc": { "start": { - "line": 41, - "column": 14 + "line": 47, + "column": 30 }, "end": { - "line": 41, - "column": 28 + "line": 47, + "column": 37 } } }, { "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": 2028, - "end": 2029, + "start": 2173, + "end": 2174, "loc": { "start": { - "line": 41, - "column": 29 + "line": 47, + "column": 37 }, "end": { - "line": 41, - "column": 30 + "line": 47, + "column": 38 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -10962,75 +12349,74 @@ "postfix": false, "binop": null }, - "start": 2030, - "end": 2031, + "value": "pInstance", + "start": 2174, + "end": 2183, "loc": { "start": { - "line": 41, - "column": 31 + "line": 47, + "column": 38 }, "end": { - "line": 41, - "column": 32 + "line": 47, + "column": 47 } } }, { "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": 2045, - "end": 2046, + "start": 2184, + "end": 2186, "loc": { "start": { - "line": 42, - "column": 12 + "line": 47, + "column": 48 }, "end": { - "line": 42, - "column": 13 + "line": 47, + "column": 50 } } }, { "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": 2046, - "end": 2047, + "start": 2187, + "end": 2188, "loc": { "start": { - "line": 42, - "column": 13 + "line": 47, + "column": 51 }, "end": { - "line": 42, - "column": 14 + "line": 47, + "column": 52 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -11038,20 +12424,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 2048, - "end": 2052, + "value": "pInstance", + "start": 2205, + "end": 2214, "loc": { "start": { - "line": 42, - "column": 15 + "line": 48, + "column": 16 }, "end": { - "line": 42, - "column": 19 + "line": 48, + "column": 25 } } }, @@ -11068,16 +12453,16 @@ "binop": null, "updateContext": null }, - "start": 2052, - "end": 2053, + "start": 2214, + "end": 2215, "loc": { "start": { - "line": 42, - "column": 19 + "line": 48, + "column": 25 }, "end": { - "line": 42, - "column": 20 + "line": 48, + "column": 26 } } }, @@ -11093,49 +12478,51 @@ "postfix": false, "binop": null }, - "value": "config", - "start": 2053, - "end": 2059, + "value": "plane", + "start": 2215, + "end": 2220, "loc": { "start": { - "line": 42, - "column": 20 + "line": 48, + "column": 26 }, "end": { - "line": 42, - "column": 26 + "line": 48, + "column": 31 } } }, { "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": 2059, - "end": 2060, + "value": "=", + "start": 2221, + "end": 2222, "loc": { "start": { - "line": 42, - "column": 26 + "line": 48, + "column": 32 }, "end": { - "line": 42, - "column": 27 + "line": 48, + "column": 33 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -11143,26 +12530,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "horizontalSpeed", - "start": 2060, - "end": 2075, + "value": "this", + "start": 2223, + "end": 2227, "loc": { "start": { - "line": 42, - "column": 27 + "line": 48, + "column": 34 }, "end": { - "line": 42, - "column": 42 + "line": 48, + "column": 38 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -11172,16 +12560,16 @@ "binop": null, "updateContext": null }, - "start": 2075, - "end": 2076, + "start": 2227, + "end": 2228, "loc": { "start": { - "line": 42, - "column": 42 + "line": 48, + "column": 38 }, "end": { - "line": 42, - "column": 43 + "line": 48, + "column": 39 } } }, @@ -11197,24 +12585,24 @@ "postfix": false, "binop": null }, - "value": "y", - "start": 2090, - "end": 2091, + "value": "config", + "start": 2228, + "end": 2234, "loc": { "start": { - "line": 43, - "column": 12 + "line": 48, + "column": 39 }, "end": { - "line": 43, - "column": 13 + "line": 48, + "column": 45 } } }, { "type": { - "label": ":", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -11224,23 +12612,22 @@ "binop": null, "updateContext": null }, - "start": 2091, - "end": 2092, + "start": 2234, + "end": 2235, "loc": { "start": { - "line": 43, - "column": 13 + "line": 48, + "column": 45 }, "end": { - "line": 43, - "column": 14 + "line": 48, + "column": 46 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -11248,27 +12635,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 2093, - "end": 2097, + "value": "plane", + "start": 2235, + "end": 2240, "loc": { "start": { - "line": 43, - "column": 15 + "line": 48, + "column": 46 }, "end": { - "line": 43, - "column": 19 + "line": 48, + "column": 51 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -11278,22 +12664,23 @@ "binop": null, "updateContext": null }, - "start": 2097, - "end": 2098, + "start": 2240, + "end": 2241, "loc": { "start": { - "line": 43, - "column": 19 + "line": 48, + "column": 51 }, "end": { - "line": 43, - "column": 20 + "line": 48, + "column": 52 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -11301,19 +12688,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "config", - "start": 2098, - "end": 2104, + "value": "this", + "start": 2258, + "end": 2262, "loc": { "start": { - "line": 43, - "column": 20 + "line": 49, + "column": 16 }, "end": { - "line": 43, - "column": 26 + "line": 49, + "column": 20 } } }, @@ -11330,16 +12718,16 @@ "binop": null, "updateContext": null }, - "start": 2104, - "end": 2105, + "start": 2262, + "end": 2263, "loc": { "start": { - "line": 43, - "column": 26 + "line": 49, + "column": 20 }, "end": { - "line": 43, - "column": 27 + "line": 49, + "column": 21 } } }, @@ -11355,25 +12743,25 @@ "postfix": false, "binop": null }, - "value": "verticalSpeed", - "start": 2105, - "end": 2118, + "value": "add", + "start": 2263, + "end": 2266, "loc": { "start": { - "line": 43, - "column": 27 + "line": 49, + "column": 21 }, "end": { - "line": 43, - "column": 40 + "line": 49, + "column": 24 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -11381,69 +12769,68 @@ "postfix": false, "binop": null }, - "start": 2128, - "end": 2129, + "start": 2266, + "end": 2267, "loc": { "start": { - "line": 44, - "column": 8 + "line": 49, + "column": 24 }, "end": { - "line": 44, - "column": 9 + "line": 49, + "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": 2141, - "end": 2143, + "value": "pInstance", + "start": 2267, + "end": 2276, "loc": { "start": { - "line": 46, - "column": 8 + "line": 49, + "column": 25 }, "end": { - "line": 46, - "column": 10 + "line": 49, + "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": 2144, - "end": 2145, + "start": 2276, + "end": 2277, "loc": { "start": { - "line": 46, - "column": 11 + "line": 49, + "column": 34 }, "end": { - "line": 46, - "column": 12 + "line": 49, + "column": 35 } } }, @@ -11459,23 +12846,23 @@ "postfix": false, "binop": null }, - "value": "Array", - "start": 2145, - "end": 2150, + "value": "instanceConfig", + "start": 2278, + "end": 2292, "loc": { "start": { - "line": 46, - "column": 12 + "line": 49, + "column": 36 }, "end": { - "line": 46, - "column": 17 + "line": 49, + "column": 50 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -11483,27 +12870,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2150, - "end": 2151, + "start": 2292, + "end": 2293, "loc": { "start": { - "line": 46, - "column": 17 + "line": 49, + "column": 50 }, "end": { - "line": 46, - "column": 18 + "line": 49, + "column": 51 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -11511,25 +12897,24 @@ "postfix": false, "binop": null }, - "value": "isArray", - "start": 2151, - "end": 2158, + "start": 2306, + "end": 2307, "loc": { "start": { - "line": 46, - "column": 18 + "line": 50, + "column": 12 }, "end": { - "line": 46, - "column": 25 + "line": 50, + "column": 13 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -11537,48 +12922,48 @@ "postfix": false, "binop": null }, - "start": 2158, - "end": 2159, + "start": 2307, + "end": 2308, "loc": { "start": { - "line": 46, - "column": 25 + "line": 50, + "column": 13 }, "end": { - "line": 46, - "column": 26 + "line": 50, + "column": 14 } } }, { "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": "pConfig", - "start": 2159, - "end": 2166, + "start": 2308, + "end": 2309, "loc": { "start": { - "line": 46, - "column": 26 + "line": 50, + "column": 14 }, "end": { - "line": 46, - "column": 33 + "line": 50, + "column": 15 } } }, { "type": { - "label": ".", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -11586,53 +12971,54 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2166, - "end": 2167, + "start": 2318, + "end": 2319, "loc": { "start": { - "line": 46, - "column": 33 + "line": 51, + "column": 8 }, "end": { - "line": 46, - "column": 34 + "line": 51, + "column": 9 } } }, { "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": 2167, - "end": 2176, + "value": "if", + "start": 2329, + "end": 2331, "loc": { "start": { - "line": 46, - "column": 34 + "line": 53, + "column": 8 }, "end": { - "line": 46, - "column": 43 + "line": 53, + "column": 10 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -11640,24 +13026,24 @@ "postfix": false, "binop": null }, - "start": 2176, - "end": 2177, + "start": 2332, + "end": 2333, "loc": { "start": { - "line": 46, - "column": 43 + "line": 53, + "column": 11 }, "end": { - "line": 46, - "column": 44 + "line": 53, + "column": 12 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -11665,41 +13051,43 @@ "postfix": false, "binop": null }, - "start": 2177, - "end": 2178, + "value": "Array", + "start": 2333, + "end": 2338, "loc": { "start": { - "line": 46, - "column": 44 + "line": 53, + "column": 12 }, "end": { - "line": 46, - "column": 45 + "line": 53, + "column": 17 } } }, { "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": 2179, - "end": 2180, + "start": 2338, + "end": 2339, "loc": { "start": { - "line": 46, - "column": 46 + "line": 53, + "column": 17 }, "end": { - "line": 46, - "column": 47 + "line": 53, + "column": 18 } } }, @@ -11715,43 +13103,42 @@ "postfix": false, "binop": null }, - "value": "pConfig", - "start": 2194, - "end": 2201, + "value": "isArray", + "start": 2339, + "end": 2346, "loc": { "start": { - "line": 47, - "column": 12 + "line": 53, + "column": 18 }, "end": { - "line": 47, - "column": 19 + "line": 53, + "column": 25 } } }, { "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": 2201, - "end": 2202, + "start": 2346, + "end": 2347, "loc": { "start": { - "line": 47, - "column": 19 + "line": 53, + "column": 25 }, "end": { - "line": 47, - "column": 20 + "line": 53, + "column": 26 } } }, @@ -11767,17 +13154,17 @@ "postfix": false, "binop": null }, - "value": "instances", - "start": 2202, - "end": 2211, + "value": "pConfig", + "start": 2347, + "end": 2354, "loc": { "start": { - "line": 47, - "column": 20 + "line": 53, + "column": 26 }, "end": { - "line": 47, - "column": 29 + "line": 53, + "column": 33 } } }, @@ -11794,16 +13181,16 @@ "binop": null, "updateContext": null }, - "start": 2211, - "end": 2212, + "start": 2354, + "end": 2355, "loc": { "start": { - "line": 47, - "column": 29 + "line": 53, + "column": 33 }, "end": { - "line": 47, - "column": 30 + "line": 53, + "column": 34 } } }, @@ -11819,25 +13206,25 @@ "postfix": false, "binop": null }, - "value": "forEach", - "start": 2212, - "end": 2219, + "value": "backgrounds", + "start": 2355, + "end": 2366, "loc": { "start": { - "line": 47, - "column": 30 + "line": 53, + "column": 34 }, "end": { - "line": 47, - "column": 37 + "line": 53, + "column": 45 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -11845,24 +13232,24 @@ "postfix": false, "binop": null }, - "start": 2219, - "end": 2220, + "start": 2366, + "end": 2367, "loc": { "start": { - "line": 47, - "column": 37 + "line": 53, + "column": 45 }, "end": { - "line": 47, - "column": 38 + "line": 53, + "column": 46 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -11870,68 +13257,57 @@ "postfix": false, "binop": null }, - "value": "pInstance", - "start": 2220, - "end": 2229, + "start": 2367, + "end": 2368, "loc": { "start": { - "line": 47, - "column": 38 + "line": 53, + "column": 46 }, "end": { - "line": 47, + "line": 53, "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": 2230, - "end": 2232, + "start": 2369, + "end": 2370, "loc": { "start": { - "line": 47, + "line": 53, "column": 48 }, "end": { - "line": 47, - "column": 50 + "line": 53, + "column": 49 } } }, { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2233, - "end": 2234, + "type": "CommentLine", + "value": " Backgrounds automatically loop", + "start": 2383, + "end": 2416, "loc": { "start": { - "line": 47, - "column": 51 + "line": 54, + "column": 12 }, "end": { - "line": 47, - "column": 52 + "line": 54, + "column": 45 } } }, @@ -11947,17 +13323,17 @@ "postfix": false, "binop": null }, - "value": "pInstance", - "start": 2252, - "end": 2261, + "value": "instanceConfig", + "start": 2429, + "end": 2443, "loc": { "start": { - "line": 48, - "column": 16 + "line": 55, + "column": 12 }, "end": { - "line": 48, - "column": 25 + "line": 55, + "column": 26 } } }, @@ -11974,16 +13350,16 @@ "binop": null, "updateContext": null }, - "start": 2261, - "end": 2262, + "start": 2443, + "end": 2444, "loc": { "start": { - "line": 48, - "column": 25 + "line": 55, + "column": 26 }, "end": { - "line": 48, - "column": 26 + "line": 55, + "column": 27 } } }, @@ -11999,16 +13375,16 @@ "postfix": false, "binop": null }, - "value": "plane", - "start": 2262, - "end": 2267, + "value": "loop", + "start": 2444, + "end": 2448, "loc": { "start": { - "line": 48, - "column": 26 + "line": 55, + "column": 27 }, "end": { - "line": 48, + "line": 55, "column": 31 } } @@ -12027,23 +13403,23 @@ "updateContext": null }, "value": "=", - "start": 2268, - "end": 2269, + "start": 2449, + "end": 2450, "loc": { "start": { - "line": 48, + "line": 55, "column": 32 }, "end": { - "line": 48, + "line": 55, "column": 33 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "true", + "keyword": "true", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -12054,24 +13430,24 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 2270, - "end": 2274, + "value": "true", + "start": 2451, + "end": 2455, "loc": { "start": { - "line": 48, + "line": 55, "column": 34 }, "end": { - "line": 48, + "line": 55, "column": 38 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -12081,15 +13457,15 @@ "binop": null, "updateContext": null }, - "start": 2274, - "end": 2275, + "start": 2455, + "end": 2456, "loc": { "start": { - "line": 48, + "line": 55, "column": 38 }, "end": { - "line": 48, + "line": 55, "column": 39 } } @@ -12106,17 +13482,17 @@ "postfix": false, "binop": null }, - "value": "config", - "start": 2275, - "end": 2281, + "value": "pConfig", + "start": 2469, + "end": 2476, "loc": { "start": { - "line": 48, - "column": 39 + "line": 56, + "column": 12 }, "end": { - "line": 48, - "column": 45 + "line": 56, + "column": 19 } } }, @@ -12133,16 +13509,16 @@ "binop": null, "updateContext": null }, - "start": 2281, - "end": 2282, + "start": 2476, + "end": 2477, "loc": { "start": { - "line": 48, - "column": 45 + "line": 56, + "column": 19 }, "end": { - "line": 48, - "column": 46 + "line": 56, + "column": 20 } } }, @@ -12158,71 +13534,17 @@ "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, + "value": "backgrounds", + "start": 2477, + "end": 2488, "loc": { "start": { - "line": 49, - "column": 16 + "line": 56, + "column": 20 }, "end": { - "line": 49, - "column": 20 + "line": 56, + "column": 31 } } }, @@ -12239,16 +13561,16 @@ "binop": null, "updateContext": null }, - "start": 2310, - "end": 2311, + "start": 2488, + "end": 2489, "loc": { "start": { - "line": 49, - "column": 20 + "line": 56, + "column": 31 }, "end": { - "line": 49, - "column": 21 + "line": 56, + "column": 32 } } }, @@ -12264,17 +13586,17 @@ "postfix": false, "binop": null }, - "value": "add", - "start": 2311, - "end": 2314, + "value": "forEach", + "start": 2489, + "end": 2496, "loc": { "start": { - "line": 49, - "column": 21 + "line": 56, + "column": 32 }, "end": { - "line": 49, - "column": 24 + "line": 56, + "column": 39 } } }, @@ -12290,16 +13612,16 @@ "postfix": false, "binop": null }, - "start": 2314, - "end": 2315, + "start": 2496, + "end": 2497, "loc": { "start": { - "line": 49, - "column": 24 + "line": 56, + "column": 39 }, "end": { - "line": 49, - "column": 25 + "line": 56, + "column": 40 } } }, @@ -12316,22 +13638,22 @@ "binop": null }, "value": "pInstance", - "start": 2315, - "end": 2324, + "start": 2497, + "end": 2506, "loc": { "start": { - "line": 49, - "column": 25 + "line": 56, + "column": 40 }, "end": { - "line": 49, - "column": 34 + "line": 56, + "column": 49 } } }, { "type": { - "label": ",", + "label": "=>", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -12342,23 +13664,23 @@ "binop": null, "updateContext": null }, - "start": 2324, - "end": 2325, + "start": 2507, + "end": 2509, "loc": { "start": { - "line": 49, - "column": 34 + "line": 56, + "column": 50 }, "end": { - "line": 49, - "column": 35 + "line": 56, + "column": 52 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -12367,25 +13689,24 @@ "postfix": false, "binop": null }, - "value": "instanceConfig", - "start": 2326, - "end": 2340, + "start": 2510, + "end": 2511, "loc": { "start": { - "line": 49, - "column": 36 + "line": 56, + "column": 53 }, "end": { - "line": 49, - "column": 50 + "line": 56, + "column": 54 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -12393,22 +13714,23 @@ "postfix": false, "binop": null }, - "start": 2340, - "end": 2341, + "value": "pInstance", + "start": 2528, + "end": 2537, "loc": { "start": { - "line": 49, - "column": 50 + "line": 57, + "column": 16 }, "end": { - "line": 49, - "column": 51 + "line": 57, + "column": 25 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -12416,26 +13738,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2355, - "end": 2356, + "start": 2537, + "end": 2538, "loc": { "start": { - "line": 50, - "column": 12 + "line": 57, + "column": 25 }, "end": { - "line": 50, - "column": 13 + "line": 57, + "column": 26 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -12443,74 +13766,78 @@ "postfix": false, "binop": null }, - "start": 2356, - "end": 2357, + "value": "plane", + "start": 2538, + "end": 2543, "loc": { "start": { - "line": 50, - "column": 13 + "line": 57, + "column": 26 }, "end": { - "line": 50, - "column": 14 + "line": 57, + "column": 31 } } }, { "type": { - "label": ";", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 2357, - "end": 2358, + "value": "=", + "start": 2544, + "end": 2545, "loc": { "start": { - "line": 50, - "column": 14 + "line": 57, + "column": 32 }, "end": { - "line": 50, - "column": 15 + "line": 57, + "column": 33 } } }, { "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": 2368, - "end": 2369, + "value": "this", + "start": 2546, + "end": 2550, "loc": { "start": { - "line": 51, - "column": 8 + "line": 57, + "column": 34 }, "end": { - "line": 51, - "column": 9 + "line": 57, + "column": 38 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -12521,42 +13848,16 @@ "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, + "start": 2550, + "end": 2551, "loc": { "start": { - "line": 53, - "column": 11 + "line": 57, + "column": 38 }, "end": { - "line": 53, - "column": 12 + "line": 57, + "column": 39 } } }, @@ -12572,17 +13873,17 @@ "postfix": false, "binop": null }, - "value": "Array", - "start": 2385, - "end": 2390, + "value": "config", + "start": 2551, + "end": 2557, "loc": { "start": { - "line": 53, - "column": 12 + "line": 57, + "column": 39 }, "end": { - "line": 53, - "column": 17 + "line": 57, + "column": 45 } } }, @@ -12599,16 +13900,16 @@ "binop": null, "updateContext": null }, - "start": 2390, - "end": 2391, + "start": 2557, + "end": 2558, "loc": { "start": { - "line": 53, - "column": 17 + "line": 57, + "column": 45 }, "end": { - "line": 53, - "column": 18 + "line": 57, + "column": 46 } } }, @@ -12624,48 +13925,50 @@ "postfix": false, "binop": null }, - "value": "isArray", - "start": 2391, - "end": 2398, + "value": "plane", + "start": 2558, + "end": 2563, "loc": { "start": { - "line": 53, - "column": 18 + "line": 57, + "column": 46 }, "end": { - "line": 53, - "column": 25 + "line": 57, + "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": 2398, - "end": 2399, + "start": 2563, + "end": 2564, "loc": { "start": { - "line": 53, - "column": 25 + "line": 57, + "column": 51 }, "end": { - "line": 53, - "column": 26 + "line": 57, + "column": 52 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -12673,19 +13976,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "pConfig", - "start": 2399, - "end": 2406, + "value": "this", + "start": 2581, + "end": 2585, "loc": { "start": { - "line": 53, - "column": 26 + "line": 58, + "column": 16 }, "end": { - "line": 53, - "column": 33 + "line": 58, + "column": 20 } } }, @@ -12702,50 +14006,24 @@ "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, + "start": 2585, + "end": 2586, "loc": { "start": { - "line": 53, - "column": 34 + "line": 58, + "column": 20 }, "end": { - "line": 53, - "column": 45 + "line": 58, + "column": 21 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -12753,24 +14031,25 @@ "postfix": false, "binop": null }, - "start": 2418, - "end": 2419, + "value": "add", + "start": 2586, + "end": 2589, "loc": { "start": { - "line": 53, - "column": 45 + "line": 58, + "column": 21 }, "end": { - "line": 53, - "column": 46 + "line": 58, + "column": 24 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -12778,23 +14057,23 @@ "postfix": false, "binop": null }, - "start": 2419, - "end": 2420, + "start": 2589, + "end": 2590, "loc": { "start": { - "line": 53, - "column": 46 + "line": 58, + "column": 24 }, "end": { - "line": 53, - "column": 47 + "line": 58, + "column": 25 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -12803,32 +14082,43 @@ "postfix": false, "binop": null }, - "start": 2421, - "end": 2422, + "value": "pInstance", + "start": 2590, + "end": 2599, "loc": { "start": { - "line": 53, - "column": 48 + "line": 58, + "column": 25 }, "end": { - "line": 53, - "column": 49 + "line": 58, + "column": 34 } } }, { - "type": "CommentLine", - "value": " Backgrounds automatically loop", - "start": 2436, - "end": 2469, + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2599, + "end": 2600, "loc": { "start": { - "line": 54, - "column": 12 + "line": 58, + "column": 34 }, "end": { - "line": 54, - "column": 45 + "line": 58, + "column": 35 } } }, @@ -12845,22 +14135,22 @@ "binop": null }, "value": "instanceConfig", - "start": 2483, - "end": 2497, + "start": 2601, + "end": 2615, "loc": { "start": { - "line": 55, - "column": 12 + "line": 58, + "column": 36 }, "end": { - "line": 55, - "column": 26 + "line": 58, + "column": 50 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -12868,27 +14158,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2497, - "end": 2498, + "start": 2615, + "end": 2616, "loc": { "start": { - "line": 55, - "column": 26 + "line": 58, + "column": 50 }, "end": { - "line": 55, - "column": 27 + "line": 58, + "column": 51 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -12896,53 +14185,49 @@ "postfix": false, "binop": null }, - "value": "loop", - "start": 2498, - "end": 2502, + "start": 2629, + "end": 2630, "loc": { "start": { - "line": 55, - "column": 27 + "line": 59, + "column": 12 }, "end": { - "line": 55, - "column": 31 + "line": 59, + "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": 2503, - "end": 2504, + "start": 2630, + "end": 2631, "loc": { "start": { - "line": 55, - "column": 32 + "line": 59, + "column": 13 }, "end": { - "line": 55, - "column": 33 + "line": 59, + "column": 14 } } }, { "type": { - "label": "true", - "keyword": "true", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -12951,51 +14236,49 @@ "binop": null, "updateContext": null }, - "value": "true", - "start": 2505, - "end": 2509, + "start": 2631, + "end": 2632, "loc": { "start": { - "line": 55, - "column": 34 + "line": 59, + "column": 14 }, "end": { - "line": 55, - "column": 38 + "line": 59, + "column": 15 } } }, { "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": 2509, - "end": 2510, + "start": 2641, + "end": 2642, "loc": { "start": { - "line": 55, - "column": 38 + "line": 60, + "column": 8 }, "end": { - "line": 55, - "column": 39 + "line": 60, + "column": 9 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -13003,43 +14286,32 @@ "postfix": false, "binop": null }, - "value": "pConfig", - "start": 2524, - "end": 2531, + "start": 2647, + "end": 2648, "loc": { "start": { - "line": 56, - "column": 12 + "line": 61, + "column": 4 }, "end": { - "line": 56, - "column": 19 + "line": 61, + "column": 5 } } }, { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2531, - "end": 2532, + "type": "CommentBlock", + "value": "*\n * Updates the configuration speed of the layer.\n * @param {Object} pConfig - The speed configuration of the parallax layer.\n * @prop {number} pConfig.horizontalSpeed - The horizontal speed of the layer.\n * @prop {number} pConfig.verticalSpeed - The vertical speed of the layer. \n * @param {boolean} pUpdateLayerConfigOnly - If only to update the layer config and not the instance config.\n ", + "start": 2653, + "end": 3073, "loc": { "start": { - "line": 56, - "column": 19 + "line": 62, + "column": 4 }, "end": { - "line": 56, - "column": 20 + "line": 68, + "column": 7 } } }, @@ -13055,43 +14327,42 @@ "postfix": false, "binop": null }, - "value": "backgrounds", - "start": 2532, - "end": 2543, + "value": "updateConfigSpeed", + "start": 3078, + "end": 3095, "loc": { "start": { - "line": 56, - "column": 20 + "line": 69, + "column": 4 }, "end": { - "line": 56, - "column": 31 + "line": 69, + "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": 2543, - "end": 2544, + "start": 3095, + "end": 3096, "loc": { "start": { - "line": 56, - "column": 31 + "line": 69, + "column": 21 }, "end": { - "line": 56, - "column": 32 + "line": 69, + "column": 22 } } }, @@ -13107,42 +14378,43 @@ "postfix": false, "binop": null }, - "value": "forEach", - "start": 2544, - "end": 2551, + "value": "pConfig", + "start": 3096, + "end": 3103, "loc": { "start": { - "line": 56, - "column": 32 + "line": 69, + "column": 22 }, "end": { - "line": 56, - "column": 39 + "line": 69, + "column": 29 } } }, { "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": 2551, - "end": 2552, + "start": 3103, + "end": 3104, "loc": { "start": { - "line": 56, - "column": 39 + "line": 69, + "column": 29 }, "end": { - "line": 56, - "column": 40 + "line": 69, + "column": 30 } } }, @@ -13158,43 +14430,42 @@ "postfix": false, "binop": null }, - "value": "pInstance", - "start": 2552, - "end": 2561, + "value": "pUpdateLayerConfigOnly", + "start": 3105, + "end": 3127, "loc": { "start": { - "line": 56, - "column": 40 + "line": 69, + "column": 31 }, "end": { - "line": 56, - "column": 49 + "line": 69, + "column": 53 } } }, { - "type": { - "label": "=>", - "beforeExpr": true, + "type": { + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2562, - "end": 2564, + "start": 3127, + "end": 3128, "loc": { "start": { - "line": 56, - "column": 50 + "line": 69, + "column": 53 }, "end": { - "line": 56, - "column": 52 + "line": 69, + "column": 54 } } }, @@ -13210,22 +14481,23 @@ "postfix": false, "binop": null }, - "start": 2565, - "end": 2566, + "start": 3129, + "end": 3130, "loc": { "start": { - "line": 56, - "column": 53 + "line": 69, + "column": 55 }, "end": { - "line": 56, - "column": 54 + "line": 69, + "column": 56 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -13233,19 +14505,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "pInstance", - "start": 2584, - "end": 2593, + "value": "this", + "start": 3139, + "end": 3143, "loc": { "start": { - "line": 57, - "column": 16 + "line": 70, + "column": 8 }, "end": { - "line": 57, - "column": 25 + "line": 70, + "column": 12 } } }, @@ -13262,16 +14535,16 @@ "binop": null, "updateContext": null }, - "start": 2593, - "end": 2594, + "start": 3143, + "end": 3144, "loc": { "start": { - "line": 57, - "column": 25 + "line": 70, + "column": 12 }, "end": { - "line": 57, - "column": 26 + "line": 70, + "column": 13 } } }, @@ -13287,51 +14560,48 @@ "postfix": false, "binop": null }, - "value": "plane", - "start": 2594, - "end": 2599, + "value": "updateHorizontalSpeed", + "start": 3144, + "end": 3165, "loc": { "start": { - "line": 57, - "column": 26 + "line": 70, + "column": 13 }, "end": { - "line": 57, - "column": 31 + "line": 70, + "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": 2600, - "end": 2601, + "start": 3165, + "end": 3166, "loc": { "start": { - "line": 57, - "column": 32 + "line": 70, + "column": 34 }, "end": { - "line": 57, - "column": 33 + "line": 70, + "column": 35 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -13339,20 +14609,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 2602, - "end": 2606, + "value": "pConfig", + "start": 3166, + "end": 3173, "loc": { "start": { - "line": 57, - "column": 34 + "line": 70, + "column": 35 }, "end": { - "line": 57, - "column": 38 + "line": 70, + "column": 42 } } }, @@ -13369,16 +14638,16 @@ "binop": null, "updateContext": null }, - "start": 2606, - "end": 2607, + "start": 3173, + "end": 3174, "loc": { "start": { - "line": 57, - "column": 38 + "line": 70, + "column": 42 }, "end": { - "line": 57, - "column": 39 + "line": 70, + "column": 43 } } }, @@ -13394,24 +14663,24 @@ "postfix": false, "binop": null }, - "value": "config", - "start": 2607, - "end": 2613, + "value": "horizontalSpeed", + "start": 3174, + "end": 3189, "loc": { "start": { - "line": 57, - "column": 39 + "line": 70, + "column": 43 }, "end": { - "line": 57, - "column": 45 + "line": 70, + "column": 58 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -13421,16 +14690,16 @@ "binop": null, "updateContext": null }, - "start": 2613, - "end": 2614, + "start": 3189, + "end": 3190, "loc": { "start": { - "line": 57, - "column": 45 + "line": 70, + "column": 58 }, "end": { - "line": 57, - "column": 46 + "line": 70, + "column": 59 } } }, @@ -13446,17 +14715,42 @@ "postfix": false, "binop": null }, - "value": "plane", - "start": 2614, - "end": 2619, + "value": "pUpdateLayerConfigOnly", + "start": 3191, + "end": 3213, "loc": { "start": { - "line": 57, - "column": 46 + "line": 70, + "column": 60 }, "end": { - "line": 57, - "column": 51 + "line": 70, + "column": 82 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3213, + "end": 3214, + "loc": { + "start": { + "line": 70, + "column": 82 + }, + "end": { + "line": 70, + "column": 83 } } }, @@ -13473,16 +14767,16 @@ "binop": null, "updateContext": null }, - "start": 2619, - "end": 2620, + "start": 3214, + "end": 3215, "loc": { "start": { - "line": 57, - "column": 51 + "line": 70, + "column": 83 }, "end": { - "line": 57, - "column": 52 + "line": 70, + "column": 84 } } }, @@ -13501,16 +14795,16 @@ "updateContext": null }, "value": "this", - "start": 2638, - "end": 2642, + "start": 3224, + "end": 3228, "loc": { "start": { - "line": 58, - "column": 16 + "line": 71, + "column": 8 }, "end": { - "line": 58, - "column": 20 + "line": 71, + "column": 12 } } }, @@ -13527,16 +14821,16 @@ "binop": null, "updateContext": null }, - "start": 2642, - "end": 2643, + "start": 3228, + "end": 3229, "loc": { "start": { - "line": 58, - "column": 20 + "line": 71, + "column": 12 }, "end": { - "line": 58, - "column": 21 + "line": 71, + "column": 13 } } }, @@ -13552,17 +14846,17 @@ "postfix": false, "binop": null }, - "value": "add", - "start": 2643, - "end": 2646, + "value": "updateVerticalSpeed", + "start": 3229, + "end": 3248, "loc": { "start": { - "line": 58, - "column": 21 + "line": 71, + "column": 13 }, "end": { - "line": 58, - "column": 24 + "line": 71, + "column": 32 } } }, @@ -13578,16 +14872,16 @@ "postfix": false, "binop": null }, - "start": 2646, - "end": 2647, + "start": 3248, + "end": 3249, "loc": { "start": { - "line": 58, - "column": 24 + "line": 71, + "column": 32 }, "end": { - "line": 58, - "column": 25 + "line": 71, + "column": 33 } } }, @@ -13603,24 +14897,24 @@ "postfix": false, "binop": null }, - "value": "pInstance", - "start": 2647, - "end": 2656, + "value": "pConfig", + "start": 3249, + "end": 3256, "loc": { "start": { - "line": 58, - "column": 25 + "line": 71, + "column": 33 }, "end": { - "line": 58, - "column": 34 + "line": 71, + "column": 40 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -13630,16 +14924,16 @@ "binop": null, "updateContext": null }, - "start": 2656, - "end": 2657, + "start": 3256, + "end": 3257, "loc": { "start": { - "line": 58, - "column": 34 + "line": 71, + "column": 40 }, "end": { - "line": 58, - "column": 35 + "line": 71, + "column": 41 } } }, @@ -13655,75 +14949,51 @@ "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, + "value": "verticalSpeed", + "start": 3257, + "end": 3270, "loc": { "start": { - "line": 58, - "column": 50 + "line": 71, + "column": 41 }, "end": { - "line": 58, - "column": 51 + "line": 71, + "column": 54 } } }, { "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": 2687, - "end": 2688, + "start": 3270, + "end": 3271, "loc": { "start": { - "line": 59, - "column": 12 + "line": 71, + "column": 54 }, "end": { - "line": 59, - "column": 13 + "line": 71, + "column": 55 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -13731,67 +15001,68 @@ "postfix": false, "binop": null }, - "start": 2688, - "end": 2689, + "value": "pUpdateLayerConfigOnly", + "start": 3272, + "end": 3294, "loc": { "start": { - "line": 59, - "column": 13 + "line": 71, + "column": 56 }, "end": { - "line": 59, - "column": 14 + "line": 71, + "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": 2689, - "end": 2690, + "start": 3294, + "end": 3295, "loc": { "start": { - "line": 59, - "column": 14 + "line": 71, + "column": 78 }, "end": { - "line": 59, - "column": 15 + "line": 71, + "column": 79 } } }, { "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": 2700, - "end": 2701, + "start": 3295, + "end": 3296, "loc": { "start": { - "line": 60, - "column": 8 + "line": 71, + "column": 79 }, "end": { - "line": 60, - "column": 9 + "line": 71, + "column": 80 } } }, @@ -13807,31 +15078,31 @@ "postfix": false, "binop": null }, - "start": 2707, - "end": 2708, + "start": 3301, + "end": 3302, "loc": { "start": { - "line": 61, + "line": 72, "column": 4 }, "end": { - "line": 61, + "line": 72, "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, + "value": "*\n * Updates the horizontal speed of this layer.\n * @param {number} pHorizontalSpeed - The new horizontal speed.\n * @param {boolean} pUpdateLayerConfigOnly - If only to update the layer config and not the instance config.\n ", + "start": 3307, + "end": 3550, "loc": { "start": { - "line": 62, + "line": 73, "column": 4 }, "end": { - "line": 68, + "line": 77, "column": 7 } } @@ -13848,17 +15119,17 @@ "postfix": false, "binop": null }, - "value": "updateConfigSpeed", - "start": 3146, - "end": 3163, + "value": "updateHorizontalSpeed", + "start": 3555, + "end": 3576, "loc": { "start": { - "line": 69, + "line": 78, "column": 4 }, "end": { - "line": 69, - "column": 21 + "line": 78, + "column": 25 } } }, @@ -13874,16 +15145,16 @@ "postfix": false, "binop": null }, - "start": 3163, - "end": 3164, + "start": 3576, + "end": 3577, "loc": { "start": { - "line": 69, - "column": 21 + "line": 78, + "column": 25 }, "end": { - "line": 69, - "column": 22 + "line": 78, + "column": 26 } } }, @@ -13899,17 +15170,17 @@ "postfix": false, "binop": null }, - "value": "pConfig", - "start": 3164, - "end": 3171, + "value": "pHorizontalSpeed", + "start": 3577, + "end": 3593, "loc": { "start": { - "line": 69, - "column": 22 + "line": 78, + "column": 26 }, "end": { - "line": 69, - "column": 29 + "line": 78, + "column": 42 } } }, @@ -13926,16 +15197,16 @@ "binop": null, "updateContext": null }, - "start": 3171, - "end": 3172, + "start": 3593, + "end": 3594, "loc": { "start": { - "line": 69, - "column": 29 + "line": 78, + "column": 42 }, "end": { - "line": 69, - "column": 30 + "line": 78, + "column": 43 } } }, @@ -13952,16 +15223,16 @@ "binop": null }, "value": "pUpdateLayerConfigOnly", - "start": 3173, - "end": 3195, + "start": 3595, + "end": 3617, "loc": { "start": { - "line": 69, - "column": 31 + "line": 78, + "column": 44 }, "end": { - "line": 69, - "column": 53 + "line": 78, + "column": 66 } } }, @@ -13977,16 +15248,16 @@ "postfix": false, "binop": null }, - "start": 3195, - "end": 3196, + "start": 3617, + "end": 3618, "loc": { "start": { - "line": 69, - "column": 53 + "line": 78, + "column": 66 }, "end": { - "line": 69, - "column": 54 + "line": 78, + "column": 67 } } }, @@ -14002,25 +15273,25 @@ "postfix": false, "binop": null }, - "start": 3197, - "end": 3198, + "start": 3619, + "end": 3620, "loc": { "start": { - "line": 69, - "column": 55 + "line": 78, + "column": 68 }, "end": { - "line": 69, - "column": 56 + "line": 78, + "column": 69 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "const", + "keyword": "const", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -14029,76 +15300,77 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 3208, - "end": 3212, + "value": "const", + "start": 3629, + "end": 3634, "loc": { "start": { - "line": 70, + "line": 79, "column": 8 }, "end": { - "line": 70, - "column": 12 + "line": 79, + "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": 3212, - "end": 3213, + "value": "inValidHorizontal", + "start": 3635, + "end": 3652, "loc": { "start": { - "line": 70, - "column": 12 + "line": 79, + "column": 14 }, "end": { - "line": 70, - "column": 13 + "line": 79, + "column": 31 } } }, { "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": "updateHorizontalSpeed", - "start": 3213, - "end": 3234, + "value": "=", + "start": 3653, + "end": 3654, "loc": { "start": { - "line": 70, - "column": 13 + "line": 79, + "column": 32 }, "end": { - "line": 70, - "column": 34 + "line": 79, + "column": 33 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -14107,68 +15379,72 @@ "postfix": false, "binop": null }, - "start": 3234, - "end": 3235, + "value": "pHorizontalSpeed", + "start": 3655, + "end": 3671, "loc": { "start": { - "line": 70, + "line": 79, "column": 34 }, "end": { - "line": 70, - "column": 35 + "line": 79, + "column": 50 } } }, { "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": 2, + "updateContext": null }, - "value": "pConfig", - "start": 3235, - "end": 3242, + "value": "&&", + "start": 3672, + "end": 3674, "loc": { "start": { - "line": 70, - "column": 35 + "line": 79, + "column": 51 }, "end": { - "line": 70, - "column": 42 + "line": 79, + "column": 53 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "typeof", + "keyword": "typeof", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, "binop": null, "updateContext": null }, - "start": 3242, - "end": 3243, + "value": "typeof", + "start": 3675, + "end": 3681, "loc": { "start": { - "line": 70, - "column": 42 + "line": 79, + "column": 54 }, "end": { - "line": 70, - "column": 43 + "line": 79, + "column": 60 } } }, @@ -14184,23 +15460,23 @@ "postfix": false, "binop": null }, - "value": "horizontalSpeed", - "start": 3243, - "end": 3258, + "value": "pHorizontalSpeed", + "start": 3682, + "end": 3698, "loc": { "start": { - "line": 70, - "column": 43 + "line": 79, + "column": 61 }, "end": { - "line": 70, - "column": 58 + "line": 79, + "column": 77 } } }, { "type": { - "label": ",", + "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -14208,25 +15484,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 6, "updateContext": null }, - "start": 3258, - "end": 3259, + "value": "!==", + "start": 3699, + "end": 3702, "loc": { "start": { - "line": 70, - "column": 58 + "line": 79, + "column": 78 }, "end": { - "line": 70, - "column": 59 + "line": 79, + "column": 81 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -14234,51 +15511,54 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "pUpdateLayerConfigOnly", - "start": 3260, - "end": 3282, + "value": "number", + "start": 3703, + "end": 3711, "loc": { "start": { - "line": 70, - "column": 60 + "line": 79, + "column": 82 }, "end": { - "line": 70, - "column": 82 + "line": 79, + "column": 90 } } }, { "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": 3282, - "end": 3283, + "start": 3711, + "end": 3712, "loc": { "start": { - "line": 70, - "column": 82 + "line": 79, + "column": 90 }, "end": { - "line": 70, - "column": 83 + "line": 79, + "column": 91 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": "if", + "keyword": "if", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -14288,78 +15568,76 @@ "binop": null, "updateContext": null }, - "start": 3283, - "end": 3284, + "value": "if", + "start": 3722, + "end": 3724, "loc": { "start": { - "line": 70, - "column": 83 + "line": 81, + "column": 8 }, "end": { - "line": 70, - "column": 84 + "line": 81, + "column": 10 } } }, { "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": 3294, - "end": 3298, + "start": 3725, + "end": 3726, "loc": { "start": { - "line": 71, - "column": 8 + "line": 81, + "column": 11 }, "end": { - "line": 71, + "line": 81, "column": 12 } } }, { "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": 3298, - "end": 3299, + "value": "inValidHorizontal", + "start": 3726, + "end": 3743, "loc": { "start": { - "line": 71, + "line": 81, "column": 12 }, "end": { - "line": 71, - "column": 13 + "line": 81, + "column": 29 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -14367,23 +15645,22 @@ "postfix": false, "binop": null }, - "value": "updateVerticalSpeed", - "start": 3299, - "end": 3318, + "start": 3743, + "end": 3744, "loc": { "start": { - "line": 71, - "column": 13 + "line": 81, + "column": 29 }, "end": { - "line": 71, - "column": 32 + "line": 81, + "column": 30 } } }, { "type": { - "label": "(", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -14393,16 +15670,16 @@ "postfix": false, "binop": null }, - "start": 3318, - "end": 3319, + "start": 3745, + "end": 3746, "loc": { "start": { - "line": 71, - "column": 32 + "line": 81, + "column": 31 }, "end": { - "line": 71, - "column": 33 + "line": 81, + "column": 32 } } }, @@ -14418,17 +15695,17 @@ "postfix": false, "binop": null }, - "value": "pConfig", - "start": 3319, - "end": 3326, + "value": "Parallax", + "start": 3759, + "end": 3767, "loc": { "start": { - "line": 71, - "column": 33 + "line": 82, + "column": 12 }, "end": { - "line": 71, - "column": 40 + "line": 82, + "column": 20 } } }, @@ -14445,16 +15722,16 @@ "binop": null, "updateContext": null }, - "start": 3326, - "end": 3327, + "start": 3767, + "end": 3768, "loc": { "start": { - "line": 71, - "column": 40 + "line": 82, + "column": 20 }, "end": { - "line": 71, - "column": 41 + "line": 82, + "column": 21 } } }, @@ -14470,24 +15747,24 @@ "postfix": false, "binop": null }, - "value": "verticalSpeed", - "start": 3327, - "end": 3340, + "value": "logger", + "start": 3768, + "end": 3774, "loc": { "start": { - "line": 71, - "column": 41 + "line": 82, + "column": 21 }, "end": { - "line": 71, - "column": 54 + "line": 82, + "column": 27 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -14497,16 +15774,16 @@ "binop": null, "updateContext": null }, - "start": 3340, - "end": 3341, + "start": 3774, + "end": 3775, "loc": { "start": { - "line": 71, - "column": 54 + "line": 82, + "column": 27 }, "end": { - "line": 71, - "column": 55 + "line": 82, + "column": 28 } } }, @@ -14522,25 +15799,25 @@ "postfix": false, "binop": null }, - "value": "pUpdateLayerConfigOnly", - "start": 3342, - "end": 3364, + "value": "prefix", + "start": 3775, + "end": 3781, "loc": { "start": { - "line": 71, - "column": 56 + "line": 82, + "column": 28 }, "end": { - "line": 71, - "column": 78 + "line": 82, + "column": 34 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -14548,24 +15825,24 @@ "postfix": false, "binop": null }, - "start": 3364, - "end": 3365, + "start": 3781, + "end": 3782, "loc": { "start": { - "line": 71, - "column": 78 + "line": 82, + "column": 34 }, "end": { - "line": 71, - "column": 79 + "line": 82, + "column": 35 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "string", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -14574,22 +15851,23 @@ "binop": null, "updateContext": null }, - "start": 3365, - "end": 3366, + "value": "Parallax-Module", + "start": 3782, + "end": 3799, "loc": { "start": { - "line": 71, - "column": 79 + "line": 82, + "column": 35 }, "end": { - "line": 71, - "column": 80 + "line": 82, + "column": 52 } } }, { "type": { - "label": "}", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -14599,32 +15877,42 @@ "postfix": false, "binop": null }, - "start": 3372, - "end": 3373, + "start": 3799, + "end": 3800, "loc": { "start": { - "line": 72, - "column": 4 + "line": 82, + "column": 52 }, "end": { - "line": 72, - "column": 5 + "line": 82, + "column": 53 } } }, { - "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, + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3800, + "end": 3801, "loc": { "start": { - "line": 73, - "column": 4 + "line": 82, + "column": 53 }, "end": { - "line": 77, - "column": 7 + "line": 82, + "column": 54 } } }, @@ -14640,17 +15928,17 @@ "postfix": false, "binop": null }, - "value": "updateHorizontalSpeed", - "start": 3632, - "end": 3653, + "value": "warn", + "start": 3801, + "end": 3805, "loc": { "start": { - "line": 78, - "column": 4 + "line": 82, + "column": 54 }, "end": { - "line": 78, - "column": 25 + "line": 82, + "column": 58 } } }, @@ -14666,68 +15954,97 @@ "postfix": false, "binop": null }, - "start": 3653, - "end": 3654, + "start": 3805, + "end": 3806, "loc": { "start": { - "line": 78, - "column": 25 + "line": 82, + "column": 58 }, "end": { - "line": 78, - "column": 26 + "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": 3806, + "end": 3863, + "loc": { + "start": { + "line": 82, + "column": 59 + }, + "end": { + "line": 82, + "column": 116 } } }, { "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": "pHorizontalSpeed", - "start": 3654, - "end": 3670, + "start": 3863, + "end": 3864, "loc": { "start": { - "line": 78, - "column": 26 + "line": 82, + "column": 116 }, "end": { - "line": 78, - "column": 42 + "line": 82, + "column": 117 } } }, { "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": 3670, - "end": 3671, + "value": "typeof", + "start": 3865, + "end": 3871, "loc": { "start": { - "line": 78, - "column": 42 + "line": 82, + "column": 118 }, "end": { - "line": 78, - "column": 43 + "line": 82, + "column": 124 } } }, @@ -14743,17 +16060,17 @@ "postfix": false, "binop": null }, - "value": "pUpdateLayerConfigOnly", - "start": 3672, - "end": 3694, + "value": "pHorizontalSpeed", + "start": 3872, + "end": 3888, "loc": { "start": { - "line": 78, - "column": 44 + "line": 82, + "column": 125 }, "end": { - "line": 78, - "column": 66 + "line": 82, + "column": 141 } } }, @@ -14769,49 +16086,50 @@ "postfix": false, "binop": null }, - "start": 3694, - "end": 3695, + "start": 3888, + "end": 3889, "loc": { "start": { - "line": 78, - "column": 66 + "line": 82, + "column": 141 }, "end": { - "line": 78, - "column": 67 + "line": 82, + "column": 142 } } }, { "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": 3696, - "end": 3697, + "start": 3889, + "end": 3890, "loc": { "start": { - "line": 78, - "column": 68 + "line": 82, + "column": 142 }, "end": { - "line": 78, - "column": 69 + "line": 82, + "column": 143 } } }, { "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, + "label": "return", + "keyword": "return", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -14821,25 +16139,25 @@ "binop": null, "updateContext": null }, - "value": "const", - "start": 3707, - "end": 3712, + "value": "return", + "start": 3903, + "end": 3909, "loc": { "start": { - "line": 79, - "column": 8 + "line": 83, + "column": 12 }, "end": { - "line": 79, - "column": 13 + "line": 83, + "column": 18 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -14847,125 +16165,122 @@ "postfix": false, "binop": null }, - "value": "inValidHorizontal", - "start": 3713, - "end": 3730, + "start": 3918, + "end": 3919, "loc": { "start": { - "line": 79, - "column": 14 + "line": 84, + "column": 8 }, "end": { - "line": 79, - "column": 31 + "line": 84, + "column": 9 } } }, { "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": 3731, - "end": 3732, + "value": "this", + "start": 3929, + "end": 3933, "loc": { "start": { - "line": 79, - "column": 32 + "line": 86, + "column": 8 }, "end": { - "line": 79, - "column": 33 + "line": 86, + "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": "pHorizontalSpeed", - "start": 3733, - "end": 3749, + "start": 3933, + "end": 3934, "loc": { "start": { - "line": 79, - "column": 34 + "line": 86, + "column": 12 }, "end": { - "line": 79, - "column": 50 + "line": 86, + "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": 2, - "updateContext": null + "binop": null }, - "value": "&&", - "start": 3750, - "end": 3752, + "value": "config", + "start": 3934, + "end": 3940, "loc": { "start": { - "line": 79, - "column": 51 + "line": 86, + "column": 13 }, "end": { - "line": 79, - "column": 53 + "line": 86, + "column": 19 } } }, { "type": { - "label": "typeof", - "keyword": "typeof", - "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": "typeof", - "start": 3753, - "end": 3759, + "start": 3940, + "end": 3941, "loc": { "start": { - "line": 79, - "column": 54 + "line": 86, + "column": 19 }, "end": { - "line": 79, - "column": 60 + "line": 86, + "column": 20 } } }, @@ -14981,50 +16296,50 @@ "postfix": false, "binop": null }, - "value": "pHorizontalSpeed", - "start": 3760, - "end": 3776, + "value": "horizontalSpeed", + "start": 3941, + "end": 3956, "loc": { "start": { - "line": 79, - "column": 61 + "line": 86, + "column": 20 }, "end": { - "line": 79, - "column": 77 + "line": 86, + "column": 35 } } }, { "type": { - "label": "==/!=", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": 6, + "binop": null, "updateContext": null }, - "value": "!==", - "start": 3777, - "end": 3780, + "value": "=", + "start": 3957, + "end": 3958, "loc": { "start": { - "line": 79, - "column": 78 + "line": 86, + "column": 36 }, "end": { - "line": 79, - "column": 81 + "line": 86, + "column": 37 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -15032,20 +16347,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "number", - "start": 3781, - "end": 3789, + "value": "pHorizontalSpeed", + "start": 3959, + "end": 3975, "loc": { "start": { - "line": 79, - "column": 82 + "line": 86, + "column": 38 }, "end": { - "line": 79, - "column": 90 + "line": 86, + "column": 54 } } }, @@ -15062,16 +16376,16 @@ "binop": null, "updateContext": null }, - "start": 3789, - "end": 3790, + "start": 3975, + "end": 3976, "loc": { "start": { - "line": 79, - "column": 90 + "line": 86, + "column": 54 }, "end": { - "line": 79, - "column": 91 + "line": 86, + "column": 55 } } }, @@ -15090,15 +16404,15 @@ "updateContext": null }, "value": "if", - "start": 3802, - "end": 3804, + "start": 3986, + "end": 3988, "loc": { "start": { - "line": 81, + "line": 88, "column": 8 }, "end": { - "line": 81, + "line": 88, "column": 10 } } @@ -15115,16 +16429,43 @@ "postfix": false, "binop": null }, - "start": 3805, - "end": 3806, + "start": 3989, + "end": 3990, "loc": { "start": { - "line": 81, + "line": 88, "column": 11 }, "end": { - "line": 81, - "column": 12 + "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": 3990, + "end": 3991, + "loc": { + "start": { + "line": 88, + "column": 12 + }, + "end": { + "line": 88, + "column": 13 } } }, @@ -15140,17 +16481,17 @@ "postfix": false, "binop": null }, - "value": "inValidHorizontal", - "start": 3806, - "end": 3823, + "value": "pUpdateLayerConfigOnly", + "start": 3991, + "end": 4013, "loc": { "start": { - "line": 81, - "column": 12 + "line": 88, + "column": 13 }, "end": { - "line": 81, - "column": 29 + "line": 88, + "column": 35 } } }, @@ -15166,16 +16507,16 @@ "postfix": false, "binop": null }, - "start": 3823, - "end": 3824, + "start": 4013, + "end": 4014, "loc": { "start": { - "line": 81, - "column": 29 + "line": 88, + "column": 35 }, "end": { - "line": 81, - "column": 30 + "line": 88, + "column": 36 } } }, @@ -15191,119 +16532,121 @@ "postfix": false, "binop": null }, - "start": 3825, - "end": 3826, + "start": 4015, + "end": 4016, "loc": { "start": { - "line": 81, - "column": 31 + "line": 88, + "column": 37 }, "end": { - "line": 81, - "column": 32 + "line": 88, + "column": 38 } } }, { "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": "Parallax", - "start": 3840, - "end": 3848, + "value": "const", + "start": 4029, + "end": 4034, "loc": { "start": { - "line": 82, + "line": 89, "column": 12 }, "end": { - "line": 82, - "column": 20 + "line": 89, + "column": 17 } } }, { "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": 3848, - "end": 3849, + "value": "update", + "start": 4035, + "end": 4041, "loc": { "start": { - "line": 82, - "column": 20 + "line": 89, + "column": 18 }, "end": { - "line": 82, - "column": 21 + "line": 89, + "column": 24 } } }, { "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": "logger", - "start": 3849, - "end": 3855, + "value": "=", + "start": 4042, + "end": 4043, "loc": { "start": { - "line": 82, - "column": 21 + "line": 89, + "column": 25 }, "end": { - "line": 82, - "column": 27 + "line": 89, + "column": 26 } } }, { "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": 3855, - "end": 3856, + "start": 4044, + "end": 4045, "loc": { "start": { - "line": 82, + "line": 89, "column": 27 }, "end": { - "line": 82, + "line": 89, "column": 28 } } @@ -15320,25 +16663,25 @@ "postfix": false, "binop": null }, - "value": "prefix", - "start": 3856, - "end": 3862, + "value": "pInstance", + "start": 4045, + "end": 4054, "loc": { "start": { - "line": 82, + "line": 89, "column": 28 }, "end": { - "line": 82, - "column": 34 + "line": 89, + "column": 37 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -15346,24 +16689,24 @@ "postfix": false, "binop": null }, - "start": 3862, - "end": 3863, + "start": 4054, + "end": 4055, "loc": { "start": { - "line": 82, - "column": 34 + "line": 89, + "column": 37 }, "end": { - "line": 82, - "column": 35 + "line": 89, + "column": 38 } } }, { "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, + "label": "=>", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -15372,25 +16715,24 @@ "binop": null, "updateContext": null }, - "value": "Parallax-Module", - "start": 3863, - "end": 3880, + "start": 4056, + "end": 4058, "loc": { "start": { - "line": 82, - "column": 35 + "line": 89, + "column": 39 }, "end": { - "line": 82, - "column": 52 + "line": 89, + "column": 41 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -15398,22 +16740,23 @@ "postfix": false, "binop": null }, - "start": 3880, - "end": 3881, + "start": 4059, + "end": 4060, "loc": { "start": { - "line": 82, - "column": 52 + "line": 89, + "column": 42 }, "end": { - "line": 82, - "column": 53 + "line": 89, + "column": 43 } } }, { "type": { - "label": ".", + "label": "const", + "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -15424,16 +16767,17 @@ "binop": null, "updateContext": null }, - "start": 3881, - "end": 3882, + "value": "const", + "start": 4077, + "end": 4082, "loc": { "start": { - "line": 82, - "column": 53 + "line": 90, + "column": 16 }, "end": { - "line": 82, - "column": 54 + "line": 90, + "column": 21 } } }, @@ -15449,48 +16793,50 @@ "postfix": false, "binop": null }, - "value": "warn", - "start": 3882, - "end": 3886, + "value": "parallaxInfo", + "start": 4083, + "end": 4095, "loc": { "start": { - "line": 82, - "column": 54 + "line": 90, + "column": 22 }, "end": { - "line": 82, - "column": 58 + "line": 90, + "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": 3886, - "end": 3887, + "value": "=", + "start": 4096, + "end": 4097, "loc": { "start": { - "line": 82, - "column": 58 + "line": 90, + "column": 35 }, "end": { - "line": 82, - "column": 59 + "line": 90, + "column": 36 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -15498,27 +16844,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "Expected a number for \"pHorizontalSpeed\", but received:", - "start": 3887, - "end": 3944, + "value": "Parallax", + "start": 4098, + "end": 4106, "loc": { "start": { - "line": 82, - "column": 59 + "line": 90, + "column": 37 }, "end": { - "line": 82, - "column": 116 + "line": 90, + "column": 45 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -15528,44 +16873,68 @@ "binop": null, "updateContext": null }, - "start": 3944, - "end": 3945, + "start": 4106, + "end": 4107, "loc": { "start": { - "line": 82, - "column": 116 + "line": 90, + "column": 45 }, "end": { - "line": 82, - "column": 117 + "line": 90, + "column": 46 } } }, { "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 + }, + "value": "instanceWeakMap", + "start": 4107, + "end": 4122, + "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 }, - "value": "typeof", - "start": 3946, - "end": 3952, + "start": 4122, + "end": 4123, "loc": { "start": { - "line": 82, - "column": 118 + "line": 90, + "column": 61 }, "end": { - "line": 82, - "column": 124 + "line": 90, + "column": 62 } } }, @@ -15581,25 +16950,25 @@ "postfix": false, "binop": null }, - "value": "pHorizontalSpeed", - "start": 3953, - "end": 3969, + "value": "get", + "start": 4123, + "end": 4126, "loc": { "start": { - "line": 82, - "column": 125 + "line": 90, + "column": 62 }, "end": { - "line": 82, - "column": 141 + "line": 90, + "column": 65 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -15607,102 +16976,99 @@ "postfix": false, "binop": null }, - "start": 3969, - "end": 3970, + "start": 4126, + "end": 4127, "loc": { "start": { - "line": 82, - "column": 141 + "line": 90, + "column": 65 }, "end": { - "line": 82, - "column": 142 + "line": 90, + "column": 66 } } }, { "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": 3970, - "end": 3971, + "value": "pInstance", + "start": 4127, + "end": 4136, "loc": { "start": { - "line": 82, - "column": 142 + "line": 90, + "column": 66 }, "end": { - "line": 82, - "column": 143 + "line": 90, + "column": 75 } } }, { "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "return", - "start": 3985, - "end": 3991, + "start": 4136, + "end": 4137, "loc": { "start": { - "line": 83, - "column": 12 + "line": 90, + "column": 75 }, "end": { - "line": 83, - "column": 18 + "line": 90, + "column": 76 } } }, { "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": 4001, - "end": 4002, + "start": 4137, + "end": 4138, "loc": { "start": { - "line": 84, - "column": 8 + "line": 90, + "column": 76 }, "end": { - "line": 84, - "column": 9 + "line": 90, + "column": 77 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -15710,20 +17076,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 4014, - "end": 4018, + "value": "parallaxInfo", + "start": 4155, + "end": 4167, "loc": { "start": { - "line": 86, - "column": 8 + "line": 91, + "column": 16 }, "end": { - "line": 86, - "column": 12 + "line": 91, + "column": 28 } } }, @@ -15740,16 +17105,16 @@ "binop": null, "updateContext": null }, - "start": 4018, - "end": 4019, + "start": 4167, + "end": 4168, "loc": { "start": { - "line": 86, - "column": 12 + "line": 91, + "column": 28 }, "end": { - "line": 86, - "column": 13 + "line": 91, + "column": 29 } } }, @@ -15765,43 +17130,44 @@ "postfix": false, "binop": null }, - "value": "config", - "start": 4019, - "end": 4025, + "value": "x", + "start": 4168, + "end": 4169, "loc": { "start": { - "line": 86, - "column": 13 + "line": 91, + "column": 29 }, "end": { - "line": 86, - "column": 19 + "line": 91, + "column": 30 } } }, { "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": 4025, - "end": 4026, + "value": "=", + "start": 4170, + "end": 4171, "loc": { "start": { - "line": 86, - "column": 19 + "line": 91, + "column": 31 }, "end": { - "line": 86, - "column": 20 + "line": 91, + "column": 32 } } }, @@ -15817,52 +17183,51 @@ "postfix": false, "binop": null }, - "value": "horizontalSpeed", - "start": 4026, - "end": 4041, + "value": "pVerticalSpeed", + "start": 4172, + "end": 4186, "loc": { "start": { - "line": 86, - "column": 20 + "line": 91, + "column": 33 }, "end": { - "line": 86, - "column": 35 + "line": 91, + "column": 47 } } }, { "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": 4042, - "end": 4043, + "start": 4186, + "end": 4187, "loc": { "start": { - "line": 86, - "column": 36 + "line": 91, + "column": 47 }, "end": { - "line": 86, - "column": 37 + "line": 91, + "column": 48 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -15870,25 +17235,25 @@ "postfix": false, "binop": null }, - "value": "pHorizontalSpeed", - "start": 4044, - "end": 4060, + "start": 4200, + "end": 4201, "loc": { "start": { - "line": 86, - "column": 38 + "line": 92, + "column": 12 }, "end": { - "line": 86, - "column": 54 + "line": 92, + "column": 13 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -15897,23 +17262,23 @@ "binop": null, "updateContext": null }, - "start": 4060, - "end": 4061, + "value": "this", + "start": 4215, + "end": 4219, "loc": { "start": { - "line": 86, - "column": 54 + "line": 94, + "column": 12 }, "end": { - "line": 86, - "column": 55 + "line": 94, + "column": 16 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -15924,24 +17289,23 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 4073, - "end": 4075, + "start": 4219, + "end": 4220, "loc": { "start": { - "line": 88, - "column": 8 + "line": 94, + "column": 16 }, "end": { - "line": 88, - "column": 10 + "line": 94, + "column": 17 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -15950,43 +17314,43 @@ "postfix": false, "binop": null }, - "start": 4076, - "end": 4077, + "value": "instances", + "start": 4220, + "end": 4229, "loc": { "start": { - "line": 88, - "column": 11 + "line": 94, + "column": 17 }, "end": { - "line": 88, - "column": 12 + "line": 94, + "column": 26 } } }, { "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": 4077, - "end": 4078, + "start": 4229, + "end": 4230, "loc": { "start": { - "line": 88, - "column": 12 + "line": 94, + "column": 26 }, "end": { - "line": 88, - "column": 13 + "line": 94, + "column": 27 } } }, @@ -16002,25 +17366,25 @@ "postfix": false, "binop": null }, - "value": "pUpdateLayerConfigOnly", - "start": 4078, - "end": 4100, + "value": "forEach", + "start": 4230, + "end": 4237, "loc": { "start": { - "line": 88, - "column": 13 + "line": 94, + "column": 27 }, "end": { - "line": 88, - "column": 35 + "line": 94, + "column": 34 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -16028,23 +17392,23 @@ "postfix": false, "binop": null }, - "start": 4100, - "end": 4101, + "start": 4237, + "end": 4238, "loc": { "start": { - "line": 88, - "column": 35 + "line": 94, + "column": 34 }, "end": { - "line": 88, - "column": 36 + "line": 94, + "column": 35 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -16053,24 +17417,24 @@ "postfix": false, "binop": null }, - "start": 4102, - "end": 4103, + "value": "pInstance", + "start": 4238, + "end": 4247, "loc": { "start": { - "line": 88, - "column": 37 + "line": 94, + "column": 35 }, "end": { - "line": 88, - "column": 38 + "line": 94, + "column": 44 } } }, { "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, + "label": "=>", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -16080,24 +17444,23 @@ "binop": null, "updateContext": null }, - "value": "const", - "start": 4117, - "end": 4122, + "start": 4248, + "end": 4250, "loc": { "start": { - "line": 89, - "column": 12 + "line": 94, + "column": 45 }, "end": { - "line": 89, - "column": 17 + "line": 94, + "column": 47 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -16106,44 +17469,42 @@ "postfix": false, "binop": null }, - "value": "update", - "start": 4123, - "end": 4129, + "start": 4251, + "end": 4252, "loc": { "start": { - "line": 89, - "column": 18 + "line": 94, + "column": 48 }, "end": { - "line": 89, - "column": 24 + "line": 94, + "column": 49 } } }, { "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": 4130, - "end": 4131, + "value": "update", + "start": 4269, + "end": 4275, "loc": { "start": { - "line": 89, - "column": 25 + "line": 95, + "column": 16 }, "end": { - "line": 89, - "column": 26 + "line": 95, + "column": 22 } } }, @@ -16159,16 +17520,16 @@ "postfix": false, "binop": null }, - "start": 4132, - "end": 4133, + "start": 4275, + "end": 4276, "loc": { "start": { - "line": 89, - "column": 27 + "line": 95, + "column": 22 }, "end": { - "line": 89, - "column": 28 + "line": 95, + "column": 23 } } }, @@ -16185,16 +17546,16 @@ "binop": null }, "value": "pInstance", - "start": 4133, - "end": 4142, + "start": 4276, + "end": 4285, "loc": { "start": { - "line": 89, - "column": 28 + "line": 95, + "column": 23 }, "end": { - "line": 89, - "column": 37 + "line": 95, + "column": 32 } } }, @@ -16210,22 +17571,22 @@ "postfix": false, "binop": null }, - "start": 4142, - "end": 4143, + "start": 4285, + "end": 4286, "loc": { "start": { - "line": 89, - "column": 37 + "line": 95, + "column": 32 }, "end": { - "line": 89, - "column": 38 + "line": 95, + "column": 33 } } }, { "type": { - "label": "=>", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -16236,48 +17597,22 @@ "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, + "start": 4286, + "end": 4287, "loc": { "start": { - "line": 89, - "column": 42 + "line": 95, + "column": 33 }, "end": { - "line": 89, - "column": 43 + "line": 95, + "column": 34 } } }, { "type": { - "label": "const", - "keyword": "const", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -16285,28 +17620,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "const", - "start": 4166, - "end": 4171, + "start": 4300, + "end": 4301, "loc": { "start": { - "line": 90, - "column": 16 + "line": 96, + "column": 12 }, "end": { - "line": 90, - "column": 21 + "line": 96, + "column": 13 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -16314,50 +17647,49 @@ "postfix": false, "binop": null }, - "value": "parallaxInfo", - "start": 4172, - "end": 4184, + "start": 4301, + "end": 4302, "loc": { "start": { - "line": 90, - "column": 22 + "line": 96, + "column": 13 }, "end": { - "line": 90, - "column": 34 + "line": 96, + "column": 14 } } }, { "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": 4185, - "end": 4186, + "start": 4302, + "end": 4303, "loc": { "start": { - "line": 90, - "column": 35 + "line": 96, + "column": 14 }, "end": { - "line": 90, - "column": 36 + "line": 96, + "column": 15 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -16365,19 +17697,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "Parallax", - "start": 4187, - "end": 4195, + "value": "this", + "start": 4316, + "end": 4320, "loc": { "start": { - "line": 90, - "column": 37 + "line": 97, + "column": 12 }, "end": { - "line": 90, - "column": 45 + "line": 97, + "column": 16 } } }, @@ -16394,16 +17727,16 @@ "binop": null, "updateContext": null }, - "start": 4195, - "end": 4196, + "start": 4320, + "end": 4321, "loc": { "start": { - "line": 90, - "column": 45 + "line": 97, + "column": 16 }, "end": { - "line": 90, - "column": 46 + "line": 97, + "column": 17 } } }, @@ -16419,17 +17752,17 @@ "postfix": false, "binop": null }, - "value": "instanceWeakMap", - "start": 4196, - "end": 4211, + "value": "backgrounds", + "start": 4321, + "end": 4332, "loc": { "start": { - "line": 90, - "column": 46 + "line": 97, + "column": 17 }, "end": { - "line": 90, - "column": 61 + "line": 97, + "column": 28 } } }, @@ -16446,16 +17779,16 @@ "binop": null, "updateContext": null }, - "start": 4211, - "end": 4212, + "start": 4332, + "end": 4333, "loc": { "start": { - "line": 90, - "column": 61 + "line": 97, + "column": 28 }, "end": { - "line": 90, - "column": 62 + "line": 97, + "column": 29 } } }, @@ -16471,17 +17804,17 @@ "postfix": false, "binop": null }, - "value": "get", - "start": 4212, - "end": 4215, + "value": "forEach", + "start": 4333, + "end": 4340, "loc": { "start": { - "line": 90, - "column": 62 + "line": 97, + "column": 29 }, "end": { - "line": 90, - "column": 65 + "line": 97, + "column": 36 } } }, @@ -16497,50 +17830,24 @@ "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, + "start": 4340, + "end": 4341, "loc": { "start": { - "line": 90, - "column": 66 + "line": 97, + "column": 36 }, "end": { - "line": 90, - "column": 75 + "line": 97, + "column": 37 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -16548,22 +17855,23 @@ "postfix": false, "binop": null }, - "start": 4225, - "end": 4226, + "value": "pInstance", + "start": 4341, + "end": 4350, "loc": { "start": { - "line": 90, - "column": 75 + "line": 97, + "column": 37 }, "end": { - "line": 90, - "column": 76 + "line": 97, + "column": 46 } } }, { "type": { - "label": ";", + "label": "=>", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -16574,23 +17882,23 @@ "binop": null, "updateContext": null }, - "start": 4226, - "end": 4227, + "start": 4351, + "end": 4353, "loc": { "start": { - "line": 90, - "column": 76 + "line": 97, + "column": 47 }, "end": { - "line": 90, - "column": 77 + "line": 97, + "column": 49 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -16599,50 +17907,49 @@ "postfix": false, "binop": null }, - "value": "parallaxInfo", - "start": 4245, - "end": 4257, + "start": 4354, + "end": 4355, "loc": { "start": { - "line": 91, - "column": 16 + "line": 97, + "column": 50 }, "end": { - "line": 91, - "column": 28 + "line": 97, + "column": 51 } } }, { "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": 4257, - "end": 4258, + "value": "update", + "start": 4372, + "end": 4378, "loc": { "start": { - "line": 91, - "column": 28 + "line": 98, + "column": 16 }, "end": { - "line": 91, - "column": 29 + "line": 98, + "column": 22 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -16651,52 +17958,50 @@ "postfix": false, "binop": null }, - "value": "x", - "start": 4258, - "end": 4259, + "start": 4378, + "end": 4379, "loc": { "start": { - "line": 91, - "column": 29 + "line": 98, + "column": 22 }, "end": { - "line": 91, - "column": 30 + "line": 98, + "column": 23 } } }, { "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": 4260, - "end": 4261, + "value": "pInstance", + "start": 4379, + "end": 4388, "loc": { "start": { - "line": 91, - "column": 31 + "line": 98, + "column": 23 }, "end": { - "line": 91, + "line": 98, "column": 32 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -16704,17 +18009,16 @@ "postfix": false, "binop": null }, - "value": "pVerticalSpeed", - "start": 4262, - "end": 4276, + "start": 4388, + "end": 4389, "loc": { "start": { - "line": 91, - "column": 33 + "line": 98, + "column": 32 }, "end": { - "line": 91, - "column": 47 + "line": 98, + "column": 33 } } }, @@ -16731,16 +18035,16 @@ "binop": null, "updateContext": null }, - "start": 4276, - "end": 4277, + "start": 4389, + "end": 4390, "loc": { "start": { - "line": 91, - "column": 47 + "line": 98, + "column": 33 }, "end": { - "line": 91, - "column": 48 + "line": 98, + "column": 34 } } }, @@ -16756,51 +18060,48 @@ "postfix": false, "binop": null }, - "start": 4291, - "end": 4292, + "start": 4403, + "end": 4404, "loc": { "start": { - "line": 92, + "line": 99, "column": 12 }, "end": { - "line": 92, + "line": 99, "column": 13 } } }, { "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": 4308, - "end": 4312, + "start": 4404, + "end": 4405, "loc": { "start": { - "line": 94, - "column": 12 + "line": 99, + "column": 13 }, "end": { - "line": 94, - "column": 16 + "line": 99, + "column": 14 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -16810,24 +18111,24 @@ "binop": null, "updateContext": null }, - "start": 4312, - "end": 4313, + "start": 4405, + "end": 4406, "loc": { "start": { - "line": 94, - "column": 16 + "line": 99, + "column": 14 }, "end": { - "line": 94, - "column": 17 + "line": 99, + "column": 15 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -16835,23 +18136,22 @@ "postfix": false, "binop": null }, - "value": "instances", - "start": 4313, - "end": 4322, + "start": 4415, + "end": 4416, "loc": { "start": { - "line": 94, - "column": 17 + "line": 100, + "column": 8 }, "end": { - "line": 94, - "column": 26 + "line": 100, + "column": 9 } } }, { "type": { - "label": ".", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -16859,19 +18159,34 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 4322, - "end": 4323, + "start": 4421, + "end": 4422, "loc": { "start": { - "line": 94, - "column": 26 + "line": 101, + "column": 4 }, "end": { - "line": 94, - "column": 27 + "line": 101, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Updates the vertical speed of the layer.\n * @param {number} pVerticalSpeed - The new vertical speed. \n * @param {boolean} pUpdateLayerConfigOnly - If only to update the layer config and not the instance config.\n ", + "start": 4427, + "end": 4664, + "loc": { + "start": { + "line": 102, + "column": 4 + }, + "end": { + "line": 106, + "column": 7 } } }, @@ -16887,17 +18202,17 @@ "postfix": false, "binop": null }, - "value": "forEach", - "start": 4323, - "end": 4330, + "value": "updateVerticalSpeed", + "start": 4669, + "end": 4688, "loc": { "start": { - "line": 94, - "column": 27 + "line": 107, + "column": 4 }, "end": { - "line": 94, - "column": 34 + "line": 107, + "column": 23 } } }, @@ -16913,16 +18228,16 @@ "postfix": false, "binop": null }, - "start": 4330, - "end": 4331, + "start": 4688, + "end": 4689, "loc": { "start": { - "line": 94, - "column": 34 + "line": 107, + "column": 23 }, "end": { - "line": 94, - "column": 35 + "line": 107, + "column": 24 } } }, @@ -16938,23 +18253,23 @@ "postfix": false, "binop": null }, - "value": "pInstance", - "start": 4331, - "end": 4340, + "value": "pVerticalSpeed", + "start": 4689, + "end": 4703, "loc": { "start": { - "line": 94, - "column": 35 + "line": 107, + "column": 24 }, "end": { - "line": 94, - "column": 44 + "line": 107, + "column": 38 } } }, { "type": { - "label": "=>", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -16965,23 +18280,23 @@ "binop": null, "updateContext": null }, - "start": 4341, - "end": 4343, + "start": 4703, + "end": 4704, "loc": { "start": { - "line": 94, - "column": 45 + "line": 107, + "column": 38 }, "end": { - "line": 94, - "column": 47 + "line": 107, + "column": 39 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -16990,24 +18305,25 @@ "postfix": false, "binop": null }, - "start": 4344, - "end": 4345, + "value": "pUpdateLayerConfigOnly", + "start": 4705, + "end": 4727, "loc": { "start": { - "line": 94, - "column": 48 + "line": 107, + "column": 40 }, "end": { - "line": 94, - "column": 49 + "line": 107, + "column": 62 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -17015,23 +18331,22 @@ "postfix": false, "binop": null }, - "value": "update", - "start": 4363, - "end": 4369, + "start": 4727, + "end": 4728, "loc": { "start": { - "line": 95, - "column": 16 + "line": 107, + "column": 62 }, "end": { - "line": 95, - "column": 22 + "line": 107, + "column": 63 } } }, { "type": { - "label": "(", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -17041,50 +18356,52 @@ "postfix": false, "binop": null }, - "start": 4369, - "end": 4370, + "start": 4729, + "end": 4730, "loc": { - "start": { - "line": 95, - "column": 22 + "start": { + "line": 107, + "column": 64 }, "end": { - "line": 95, - "column": 23 + "line": 107, + "column": 65 } } }, { "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": 4370, - "end": 4379, + "value": "const", + "start": 4739, + "end": 4744, "loc": { "start": { - "line": 95, - "column": 23 + "line": 108, + "column": 8 }, "end": { - "line": 95, - "column": 32 + "line": 108, + "column": 13 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -17092,50 +18409,52 @@ "postfix": false, "binop": null }, - "start": 4379, - "end": 4380, + "value": "inValidVertical", + "start": 4745, + "end": 4760, "loc": { "start": { - "line": 95, - "column": 32 + "line": 108, + "column": 14 }, "end": { - "line": 95, - "column": 33 + "line": 108, + "column": 29 } } }, { "type": { - "label": ";", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 4380, - "end": 4381, + "value": "=", + "start": 4761, + "end": 4762, "loc": { "start": { - "line": 95, - "column": 33 + "line": 108, + "column": 30 }, "end": { - "line": 95, - "column": 34 + "line": 108, + "column": 31 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -17143,74 +18462,78 @@ "postfix": false, "binop": null }, - "start": 4395, - "end": 4396, + "value": "pVerticalSpeed", + "start": 4763, + "end": 4777, "loc": { "start": { - "line": 96, - "column": 12 + "line": 108, + "column": 32 }, "end": { - "line": 96, - "column": 13 + "line": 108, + "column": 46 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "&&", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 2, + "updateContext": null }, - "start": 4396, - "end": 4397, + "value": "&&", + "start": 4778, + "end": 4780, "loc": { "start": { - "line": 96, - "column": 13 + "line": 108, + "column": 47 }, "end": { - "line": 96, - "column": 14 + "line": 108, + "column": 49 } } }, { "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": 4397, - "end": 4398, + "value": "typeof", + "start": 4781, + "end": 4787, "loc": { "start": { - "line": 96, - "column": 14 + "line": 108, + "column": 50 }, "end": { - "line": 96, - "column": 15 + "line": 108, + "column": 56 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -17218,52 +18541,52 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 4412, - "end": 4416, + "value": "pVerticalSpeed", + "start": 4788, + "end": 4802, "loc": { "start": { - "line": 97, - "column": 12 + "line": 108, + "column": 57 }, "end": { - "line": 97, - "column": 16 + "line": 108, + "column": 71 } } }, { "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": 4416, - "end": 4417, + "value": "!==", + "start": 4803, + "end": 4806, "loc": { "start": { - "line": 97, - "column": 16 + "line": 108, + "column": 72 }, "end": { - "line": 97, - "column": 17 + "line": 108, + "column": 75 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -17271,26 +18594,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "backgrounds", - "start": 4417, - "end": 4428, + "value": "number", + "start": 4807, + "end": 4815, "loc": { "start": { - "line": 97, - "column": 17 + "line": 108, + "column": 76 }, "end": { - "line": 97, - "column": 28 + "line": 108, + "column": 84 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -17300,42 +18624,44 @@ "binop": null, "updateContext": null }, - "start": 4428, - "end": 4429, + "start": 4815, + "end": 4816, "loc": { "start": { - "line": 97, - "column": 28 + "line": 108, + "column": 84 }, "end": { - "line": 97, - "column": 29 + "line": 108, + "column": 85 } } }, { "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": "forEach", - "start": 4429, - "end": 4436, + "value": "if", + "start": 4826, + "end": 4828, "loc": { "start": { - "line": 97, - "column": 29 + "line": 110, + "column": 8 }, "end": { - "line": 97, - "column": 36 + "line": 110, + "column": 10 } } }, @@ -17351,16 +18677,16 @@ "postfix": false, "binop": null }, - "start": 4436, - "end": 4437, + "start": 4829, + "end": 4830, "loc": { "start": { - "line": 97, - "column": 36 + "line": 110, + "column": 11 }, "end": { - "line": 97, - "column": 37 + "line": 110, + "column": 12 } } }, @@ -17376,43 +18702,42 @@ "postfix": false, "binop": null }, - "value": "pInstance", - "start": 4437, - "end": 4446, + "value": "inValidVertical", + "start": 4830, + "end": 4845, "loc": { "start": { - "line": 97, - "column": 37 + "line": 110, + "column": 12 }, "end": { - "line": 97, - "column": 46 + "line": 110, + "column": 27 } } }, { "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": 4447, - "end": 4449, + "start": 4845, + "end": 4846, "loc": { "start": { - "line": 97, - "column": 47 + "line": 110, + "column": 27 }, "end": { - "line": 97, - "column": 49 + "line": 110, + "column": 28 } } }, @@ -17428,16 +18753,16 @@ "postfix": false, "binop": null }, - "start": 4450, - "end": 4451, + "start": 4847, + "end": 4848, "loc": { "start": { - "line": 97, - "column": 50 + "line": 110, + "column": 29 }, "end": { - "line": 97, - "column": 51 + "line": 110, + "column": 30 } } }, @@ -17453,76 +18778,51 @@ "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, + "value": "Parallax", + "start": 4861, + "end": 4869, "loc": { "start": { - "line": 98, - "column": 22 + "line": 111, + "column": 12 }, "end": { - "line": 98, - "column": 23 + "line": 111, + "column": 20 } } }, { "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": "pInstance", - "start": 4476, - "end": 4485, + "start": 4869, + "end": 4870, "loc": { "start": { - "line": 98, - "column": 23 + "line": 111, + "column": 20 }, "end": { - "line": 98, - "column": 32 + "line": 111, + "column": 21 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -17530,23 +18830,24 @@ "postfix": false, "binop": null }, - "start": 4485, - "end": 4486, + "value": "logger", + "start": 4870, + "end": 4876, "loc": { "start": { - "line": 98, - "column": 32 + "line": 111, + "column": 21 }, "end": { - "line": 98, - "column": 33 + "line": 111, + "column": 27 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -17556,24 +18857,24 @@ "binop": null, "updateContext": null }, - "start": 4486, - "end": 4487, + "start": 4876, + "end": 4877, "loc": { "start": { - "line": 98, - "column": 33 + "line": 111, + "column": 27 }, "end": { - "line": 98, - "column": 34 + "line": 111, + "column": 28 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -17581,24 +18882,25 @@ "postfix": false, "binop": null }, - "start": 4501, - "end": 4502, + "value": "prefix", + "start": 4877, + "end": 4883, "loc": { "start": { - "line": 99, - "column": 12 + "line": 111, + "column": 28 }, "end": { - "line": 99, - "column": 13 + "line": 111, + "column": 34 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -17606,24 +18908,24 @@ "postfix": false, "binop": null }, - "start": 4502, - "end": 4503, + "start": 4883, + "end": 4884, "loc": { "start": { - "line": 99, - "column": 13 + "line": 111, + "column": 34 }, "end": { - "line": 99, - "column": 14 + "line": 111, + "column": 35 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "string", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -17632,22 +18934,23 @@ "binop": null, "updateContext": null }, - "start": 4503, - "end": 4504, + "value": "Parallax-Module", + "start": 4884, + "end": 4901, "loc": { "start": { - "line": 99, - "column": 14 + "line": 111, + "column": 35 }, "end": { - "line": 99, - "column": 15 + "line": 111, + "column": 52 } } }, { "type": { - "label": "}", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -17657,22 +18960,22 @@ "postfix": false, "binop": null }, - "start": 4514, - "end": 4515, + "start": 4901, + "end": 4902, "loc": { "start": { - "line": 100, - "column": 8 + "line": 111, + "column": 52 }, "end": { - "line": 100, - "column": 9 + "line": 111, + "column": 53 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -17680,34 +18983,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": 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, + "start": 4902, + "end": 4903, "loc": { "start": { - "line": 102, - "column": 4 + "line": 111, + "column": 53 }, "end": { - "line": 106, - "column": 7 + "line": 111, + "column": 54 } } }, @@ -17723,17 +19011,17 @@ "postfix": false, "binop": null }, - "value": "updateVerticalSpeed", - "start": 4775, - "end": 4794, + "value": "warn", + "start": 4903, + "end": 4907, "loc": { "start": { - "line": 107, - "column": 4 + "line": 111, + "column": 54 }, "end": { - "line": 107, - "column": 23 + "line": 111, + "column": 58 } } }, @@ -17749,22 +19037,22 @@ "postfix": false, "binop": null }, - "start": 4794, - "end": 4795, + "start": 4907, + "end": 4908, "loc": { "start": { - "line": 107, - "column": 23 + "line": 111, + "column": 58 }, "end": { - "line": 107, - "column": 24 + "line": 111, + "column": 59 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -17772,19 +19060,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "pVerticalSpeed", - "start": 4795, - "end": 4809, + "value": "Expected a number for \"pVerticalSpeed\", but received:", + "start": 4908, + "end": 4963, "loc": { "start": { - "line": 107, - "column": 24 + "line": 111, + "column": 59 }, "end": { - "line": 107, - "column": 38 + "line": 111, + "column": 114 } } }, @@ -17801,16 +19090,44 @@ "binop": null, "updateContext": null }, - "start": 4809, - "end": 4810, + "start": 4963, + "end": 4964, "loc": { "start": { - "line": 107, - "column": 38 + "line": 111, + "column": 114 }, "end": { - "line": 107, - "column": 39 + "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": 4965, + "end": 4971, + "loc": { + "start": { + "line": 111, + "column": 116 + }, + "end": { + "line": 111, + "column": 122 } } }, @@ -17826,17 +19143,17 @@ "postfix": false, "binop": null }, - "value": "pUpdateLayerConfigOnly", - "start": 4811, - "end": 4833, + "value": "pVerticalSpeed", + "start": 4972, + "end": 4986, "loc": { "start": { - "line": 107, - "column": 40 + "line": 111, + "column": 123 }, "end": { - "line": 107, - "column": 62 + "line": 111, + "column": 137 } } }, @@ -17852,49 +19169,50 @@ "postfix": false, "binop": null }, - "start": 4833, - "end": 4834, + "start": 4986, + "end": 4987, "loc": { "start": { - "line": 107, - "column": 62 + "line": 111, + "column": 137 }, "end": { - "line": 107, - "column": 63 + "line": 111, + "column": 138 } } }, { "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": 4835, - "end": 4836, + "start": 4987, + "end": 4988, "loc": { "start": { - "line": 107, - "column": 64 + "line": 111, + "column": 138 }, "end": { - "line": 107, - "column": 65 + "line": 111, + "column": 139 } } }, { "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, + "label": "return", + "keyword": "return", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -17904,25 +19222,25 @@ "binop": null, "updateContext": null }, - "value": "const", - "start": 4846, - "end": 4851, + "value": "return", + "start": 5001, + "end": 5007, "loc": { "start": { - "line": 108, - "column": 8 + "line": 112, + "column": 12 }, "end": { - "line": 108, - "column": 13 + "line": 112, + "column": 18 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -17930,125 +19248,122 @@ "postfix": false, "binop": null }, - "value": "inValidVertical", - "start": 4852, - "end": 4867, + "start": 5016, + "end": 5017, "loc": { "start": { - "line": 108, - "column": 14 + "line": 113, + "column": 8 }, "end": { - "line": 108, - "column": 29 + "line": 113, + "column": 9 } } }, { "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": 4868, - "end": 4869, + "value": "this", + "start": 5027, + "end": 5031, "loc": { "start": { - "line": 108, - "column": 30 + "line": 115, + "column": 8 }, "end": { - "line": 108, - "column": 31 + "line": 115, + "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": "pVerticalSpeed", - "start": 4870, - "end": 4884, + "start": 5031, + "end": 5032, "loc": { "start": { - "line": 108, - "column": 32 + "line": 115, + "column": 12 }, "end": { - "line": 108, - "column": 46 + "line": 115, + "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": 2, - "updateContext": null + "binop": null }, - "value": "&&", - "start": 4885, - "end": 4887, + "value": "config", + "start": 5032, + "end": 5038, "loc": { "start": { - "line": 108, - "column": 47 + "line": 115, + "column": 13 }, "end": { - "line": 108, - "column": 49 + "line": 115, + "column": 19 } } }, { "type": { - "label": "typeof", - "keyword": "typeof", - "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": "typeof", - "start": 4888, - "end": 4894, + "start": 5038, + "end": 5039, "loc": { "start": { - "line": 108, - "column": 50 + "line": 115, + "column": 19 }, "end": { - "line": 108, - "column": 56 + "line": 115, + "column": 20 } } }, @@ -18064,50 +19379,50 @@ "postfix": false, "binop": null }, - "value": "pVerticalSpeed", - "start": 4895, - "end": 4909, + "value": "verticalSpeed", + "start": 5039, + "end": 5052, "loc": { "start": { - "line": 108, - "column": 57 + "line": 115, + "column": 20 }, "end": { - "line": 108, - "column": 71 + "line": 115, + "column": 33 } } }, { "type": { - "label": "==/!=", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": 6, + "binop": null, "updateContext": null }, - "value": "!==", - "start": 4910, - "end": 4913, + "value": "=", + "start": 5053, + "end": 5054, "loc": { "start": { - "line": 108, - "column": 72 + "line": 115, + "column": 34 }, "end": { - "line": 108, - "column": 75 + "line": 115, + "column": 35 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -18115,20 +19430,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "number", - "start": 4914, - "end": 4922, + "value": "pVerticalSpeed", + "start": 5055, + "end": 5069, "loc": { "start": { - "line": 108, - "column": 76 + "line": 115, + "column": 36 }, "end": { - "line": 108, - "column": 84 + "line": 115, + "column": 50 } } }, @@ -18145,16 +19459,16 @@ "binop": null, "updateContext": null }, - "start": 4922, - "end": 4923, + "start": 5069, + "end": 5070, "loc": { "start": { - "line": 108, - "column": 84 + "line": 115, + "column": 50 }, "end": { - "line": 108, - "column": 85 + "line": 115, + "column": 51 } } }, @@ -18173,15 +19487,15 @@ "updateContext": null }, "value": "if", - "start": 4935, - "end": 4937, + "start": 5080, + "end": 5082, "loc": { "start": { - "line": 110, + "line": 117, "column": 8 }, "end": { - "line": 110, + "line": 117, "column": 10 } } @@ -18198,50 +19512,51 @@ "postfix": false, "binop": null }, - "start": 4938, - "end": 4939, + "start": 5083, + "end": 5084, "loc": { "start": { - "line": 110, + "line": 117, "column": 11 }, "end": { - "line": 110, + "line": 117, "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": "inValidVertical", - "start": 4939, - "end": 4954, + "value": "!", + "start": 5084, + "end": 5085, "loc": { "start": { - "line": 110, + "line": 117, "column": 12 }, "end": { - "line": 110, - "column": 27 + "line": 117, + "column": 13 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -18249,24 +19564,25 @@ "postfix": false, "binop": null }, - "start": 4954, - "end": 4955, + "value": "pUpdateLayerConfigOnly", + "start": 5085, + "end": 5107, "loc": { "start": { - "line": 110, - "column": 27 + "line": 117, + "column": 13 }, "end": { - "line": 110, - "column": 28 + "line": 117, + "column": 35 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -18274,23 +19590,23 @@ "postfix": false, "binop": null }, - "start": 4956, - "end": 4957, + "start": 5107, + "end": 5108, "loc": { "start": { - "line": 110, - "column": 29 + "line": 117, + "column": 35 }, "end": { - "line": 110, - "column": 30 + "line": 117, + "column": 36 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -18299,23 +19615,23 @@ "postfix": false, "binop": null }, - "value": "Parallax", - "start": 4971, - "end": 4979, + "start": 5109, + "end": 5110, "loc": { "start": { - "line": 111, - "column": 12 + "line": 117, + "column": 37 }, "end": { - "line": 111, - "column": 20 + "line": 117, + "column": 38 } } }, { "type": { - "label": ".", + "label": "const", + "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -18326,16 +19642,17 @@ "binop": null, "updateContext": null }, - "start": 4979, - "end": 4980, + "value": "const", + "start": 5123, + "end": 5128, "loc": { "start": { - "line": 111, - "column": 20 + "line": 118, + "column": 12 }, "end": { - "line": 111, - "column": 21 + "line": 118, + "column": 17 } } }, @@ -18351,42 +19668,68 @@ "postfix": false, "binop": null }, - "value": "logger", - "start": 4980, - "end": 4986, + "value": "update", + "start": 5129, + "end": 5135, "loc": { "start": { - "line": 111, - "column": 21 + "line": 118, + "column": 18 }, "end": { - "line": 111, - "column": 27 + "line": 118, + "column": 24 } } }, { "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": 4986, - "end": 4987, + "value": "=", + "start": 5136, + "end": 5137, "loc": { "start": { - "line": 111, + "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": 5138, + "end": 5139, + "loc": { + "start": { + "line": 118, "column": 27 }, "end": { - "line": 111, + "line": 118, "column": 28 } } @@ -18403,25 +19746,25 @@ "postfix": false, "binop": null }, - "value": "prefix", - "start": 4987, - "end": 4993, + "value": "pInstance", + "start": 5139, + "end": 5148, "loc": { "start": { - "line": 111, + "line": 118, "column": 28 }, "end": { - "line": 111, - "column": 34 + "line": 118, + "column": 37 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -18429,24 +19772,24 @@ "postfix": false, "binop": null }, - "start": 4993, - "end": 4994, + "start": 5148, + "end": 5149, "loc": { "start": { - "line": 111, - "column": 34 + "line": 118, + "column": 37 }, "end": { - "line": 111, - "column": 35 + "line": 118, + "column": 38 } } }, { "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, + "label": "=>", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -18455,25 +19798,24 @@ "binop": null, "updateContext": null }, - "value": "Parallax-Module", - "start": 4994, - "end": 5011, + "start": 5150, + "end": 5152, "loc": { "start": { - "line": 111, - "column": 35 + "line": 118, + "column": 39 }, "end": { - "line": 111, - "column": 52 + "line": 118, + "column": 41 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -18481,22 +19823,23 @@ "postfix": false, "binop": null }, - "start": 5011, - "end": 5012, + "start": 5153, + "end": 5154, "loc": { "start": { - "line": 111, - "column": 52 + "line": 118, + "column": 42 }, "end": { - "line": 111, - "column": 53 + "line": 118, + "column": 43 } } }, { "type": { - "label": ".", + "label": "const", + "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -18507,16 +19850,17 @@ "binop": null, "updateContext": null }, - "start": 5012, - "end": 5013, + "value": "const", + "start": 5171, + "end": 5176, "loc": { "start": { - "line": 111, - "column": 53 + "line": 119, + "column": 16 }, "end": { - "line": 111, - "column": 54 + "line": 119, + "column": 21 } } }, @@ -18532,48 +19876,50 @@ "postfix": false, "binop": null }, - "value": "warn", - "start": 5013, - "end": 5017, + "value": "parallaxInfo", + "start": 5177, + "end": 5189, "loc": { "start": { - "line": 111, - "column": 54 + "line": 119, + "column": 22 }, "end": { - "line": 111, - "column": 58 + "line": 119, + "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": 5017, - "end": 5018, + "value": "=", + "start": 5190, + "end": 5191, "loc": { "start": { - "line": 111, - "column": 58 + "line": 119, + "column": 35 }, "end": { - "line": 111, - "column": 59 + "line": 119, + "column": 36 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -18581,27 +19927,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "Expected a number for \"pVerticalSpeed\", but received:", - "start": 5018, - "end": 5073, + "value": "Parallax", + "start": 5192, + "end": 5200, "loc": { "start": { - "line": 111, - "column": 59 + "line": 119, + "column": 37 }, "end": { - "line": 111, - "column": 114 + "line": 119, + "column": 45 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -18611,44 +19956,16 @@ "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, + "start": 5200, + "end": 5201, "loc": { "start": { - "line": 111, - "column": 116 + "line": 119, + "column": 45 }, "end": { - "line": 111, - "column": 122 + "line": 119, + "column": 46 } } }, @@ -18664,23 +19981,23 @@ "postfix": false, "binop": null }, - "value": "pVerticalSpeed", - "start": 5082, - "end": 5096, + "value": "instanceWeakMap", + "start": 5201, + "end": 5216, "loc": { "start": { - "line": 111, - "column": 123 + "line": 119, + "column": 46 }, "end": { - "line": 111, - "column": 137 + "line": 119, + "column": 61 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -18688,80 +20005,78 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5096, - "end": 5097, + "start": 5216, + "end": 5217, "loc": { "start": { - "line": 111, - "column": 137 + "line": 119, + "column": 61 }, "end": { - "line": 111, - "column": 138 + "line": 119, + "column": 62 } } }, { "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": 5097, - "end": 5098, + "value": "get", + "start": 5217, + "end": 5220, "loc": { "start": { - "line": 111, - "column": 138 + "line": 119, + "column": 62 }, "end": { - "line": 111, - "column": 139 + "line": 119, + "column": 65 } } }, { "type": { - "label": "return", - "keyword": "return", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "return", - "start": 5112, - "end": 5118, + "start": 5220, + "end": 5221, "loc": { "start": { - "line": 112, - "column": 12 + "line": 119, + "column": 65 }, "end": { - "line": 112, - "column": 18 + "line": 119, + "column": 66 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -18769,51 +20084,49 @@ "postfix": false, "binop": null }, - "start": 5128, - "end": 5129, + "value": "pInstance", + "start": 5221, + "end": 5230, "loc": { "start": { - "line": 113, - "column": 8 + "line": 119, + "column": 66 }, "end": { - "line": 113, - "column": 9 + "line": 119, + "column": 75 } } }, { "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": 5141, - "end": 5145, + "start": 5230, + "end": 5231, "loc": { "start": { - "line": 115, - "column": 8 + "line": 119, + "column": 75 }, "end": { - "line": 115, - "column": 12 + "line": 119, + "column": 76 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -18823,16 +20136,16 @@ "binop": null, "updateContext": null }, - "start": 5145, - "end": 5146, + "start": 5231, + "end": 5232, "loc": { "start": { - "line": 115, - "column": 12 + "line": 119, + "column": 76 }, "end": { - "line": 115, - "column": 13 + "line": 119, + "column": 77 } } }, @@ -18848,17 +20161,17 @@ "postfix": false, "binop": null }, - "value": "config", - "start": 5146, - "end": 5152, + "value": "parallaxInfo", + "start": 5249, + "end": 5261, "loc": { "start": { - "line": 115, - "column": 13 + "line": 120, + "column": 16 }, "end": { - "line": 115, - "column": 19 + "line": 120, + "column": 28 } } }, @@ -18875,16 +20188,16 @@ "binop": null, "updateContext": null }, - "start": 5152, - "end": 5153, + "start": 5261, + "end": 5262, "loc": { "start": { - "line": 115, - "column": 19 + "line": 120, + "column": 28 }, "end": { - "line": 115, - "column": 20 + "line": 120, + "column": 29 } } }, @@ -18900,17 +20213,17 @@ "postfix": false, "binop": null }, - "value": "verticalSpeed", - "start": 5153, - "end": 5166, + "value": "y", + "start": 5262, + "end": 5263, "loc": { "start": { - "line": 115, - "column": 20 + "line": 120, + "column": 29 }, "end": { - "line": 115, - "column": 33 + "line": 120, + "column": 30 } } }, @@ -18928,16 +20241,16 @@ "updateContext": null }, "value": "=", - "start": 5167, - "end": 5168, + "start": 5264, + "end": 5265, "loc": { "start": { - "line": 115, - "column": 34 + "line": 120, + "column": 31 }, "end": { - "line": 115, - "column": 35 + "line": 120, + "column": 32 } } }, @@ -18954,16 +20267,16 @@ "binop": null }, "value": "pVerticalSpeed", - "start": 5169, - "end": 5183, + "start": 5266, + "end": 5280, "loc": { "start": { - "line": 115, - "column": 36 + "line": 120, + "column": 33 }, "end": { - "line": 115, - "column": 50 + "line": 120, + "column": 47 } } }, @@ -18980,23 +20293,22 @@ "binop": null, "updateContext": null }, - "start": 5183, - "end": 5184, + "start": 5280, + "end": 5281, "loc": { "start": { - "line": 115, - "column": 50 + "line": 120, + "column": 47 }, "end": { - "line": 115, - "column": 51 + "line": 120, + "column": 48 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -19004,72 +20316,72 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 5196, - "end": 5198, + "start": 5294, + "end": 5295, "loc": { "start": { - "line": 117, - "column": 8 + "line": 121, + "column": 12 }, "end": { - "line": 117, - "column": 10 + "line": 121, + "column": 13 } } }, { "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": 5199, - "end": 5200, + "value": "this", + "start": 5309, + "end": 5313, "loc": { "start": { - "line": 117, - "column": 11 + "line": 123, + "column": 12 }, "end": { - "line": 117, - "column": 12 + "line": 123, + "column": 16 } } }, { "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": 5200, - "end": 5201, + "start": 5313, + "end": 5314, "loc": { "start": { - "line": 117, - "column": 12 + "line": 123, + "column": 16 }, "end": { - "line": 117, - "column": 13 + "line": 123, + "column": 17 } } }, @@ -19085,23 +20397,23 @@ "postfix": false, "binop": null }, - "value": "pUpdateLayerConfigOnly", - "start": 5201, - "end": 5223, + "value": "instances", + "start": 5314, + "end": 5323, "loc": { "start": { - "line": 117, - "column": 13 + "line": 123, + "column": 17 }, "end": { - "line": 117, - "column": 35 + "line": 123, + "column": 26 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -19109,25 +20421,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5223, - "end": 5224, + "start": 5323, + "end": 5324, "loc": { "start": { - "line": 117, - "column": 35 + "line": 123, + "column": 26 }, "end": { - "line": 117, - "column": 36 + "line": 123, + "column": 27 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -19136,44 +20449,42 @@ "postfix": false, "binop": null }, - "start": 5225, - "end": 5226, + "value": "forEach", + "start": 5324, + "end": 5331, "loc": { "start": { - "line": 117, - "column": 37 + "line": 123, + "column": 27 }, "end": { - "line": 117, - "column": 38 + "line": 123, + "column": 34 } } }, { "type": { - "label": "const", - "keyword": "const", - "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": "const", - "start": 5240, - "end": 5245, + "start": 5331, + "end": 5332, "loc": { "start": { - "line": 118, - "column": 12 + "line": 123, + "column": 34 }, "end": { - "line": 118, - "column": 17 + "line": 123, + "column": 35 } } }, @@ -19189,50 +20500,49 @@ "postfix": false, "binop": null }, - "value": "update", - "start": 5246, - "end": 5252, + "value": "pInstance", + "start": 5332, + "end": 5341, "loc": { "start": { - "line": 118, - "column": 18 + "line": 123, + "column": 35 }, "end": { - "line": 118, - "column": 24 + "line": 123, + "column": 44 } } }, { "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": 5253, - "end": 5254, + "start": 5342, + "end": 5344, "loc": { "start": { - "line": 118, - "column": 25 + "line": 123, + "column": 45 }, "end": { - "line": 118, - "column": 26 + "line": 123, + "column": 47 } } }, { "type": { - "label": "(", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -19242,16 +20552,16 @@ "postfix": false, "binop": null }, - "start": 5255, - "end": 5256, + "start": 5345, + "end": 5346, "loc": { "start": { - "line": 118, - "column": 27 + "line": 123, + "column": 48 }, "end": { - "line": 118, - "column": 28 + "line": 123, + "column": 49 } } }, @@ -19267,25 +20577,50 @@ "postfix": false, "binop": null }, - "value": "pInstance", - "start": 5256, - "end": 5265, + "value": "update", + "start": 5363, + "end": 5369, "loc": { "start": { - "line": 118, - "column": 28 + "line": 124, + "column": 16 }, "end": { - "line": 118, - "column": 37 + "line": 124, + "column": 22 } } }, { "type": { - "label": ")", + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5369, + "end": 5370, + "loc": { + "start": { + "line": 124, + "column": 22 + }, + "end": { + "line": 124, + "column": 23 + } + } + }, + { + "type": { + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -19293,74 +20628,74 @@ "postfix": false, "binop": null }, - "start": 5265, - "end": 5266, + "value": "pInstance", + "start": 5370, + "end": 5379, "loc": { "start": { - "line": 118, - "column": 37 + "line": 124, + "column": 23 }, "end": { - "line": 118, - "column": 38 + "line": 124, + "column": 32 } } }, { "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": 5267, - "end": 5269, + "start": 5379, + "end": 5380, "loc": { "start": { - "line": 118, - "column": 39 + "line": 124, + "column": 32 }, "end": { - "line": 118, - "column": 41 + "line": 124, + "column": 33 } } }, { "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": 5270, - "end": 5271, + "start": 5380, + "end": 5381, "loc": { "start": { - "line": 118, - "column": 42 + "line": 124, + "column": 33 }, "end": { - "line": 118, - "column": 43 + "line": 124, + "column": 34 } } }, { "type": { - "label": "const", - "keyword": "const", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -19368,28 +20703,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "const", - "start": 5289, - "end": 5294, + "start": 5394, + "end": 5395, "loc": { "start": { - "line": 119, - "column": 16 + "line": 125, + "column": 12 }, "end": { - "line": 119, - "column": 21 + "line": 125, + "column": 13 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -19397,50 +20730,49 @@ "postfix": false, "binop": null }, - "value": "parallaxInfo", - "start": 5295, - "end": 5307, + "start": 5395, + "end": 5396, "loc": { "start": { - "line": 119, - "column": 22 + "line": 125, + "column": 13 }, "end": { - "line": 119, - "column": 34 + "line": 125, + "column": 14 } } }, { "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": 5308, - "end": 5309, + "start": 5396, + "end": 5397, "loc": { "start": { - "line": 119, - "column": 35 + "line": 125, + "column": 14 }, "end": { - "line": 119, - "column": 36 + "line": 125, + "column": 15 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -19448,19 +20780,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "Parallax", - "start": 5310, - "end": 5318, + "value": "this", + "start": 5410, + "end": 5414, "loc": { "start": { - "line": 119, - "column": 37 + "line": 126, + "column": 12 }, "end": { - "line": 119, - "column": 45 + "line": 126, + "column": 16 } } }, @@ -19477,16 +20810,16 @@ "binop": null, "updateContext": null }, - "start": 5318, - "end": 5319, + "start": 5414, + "end": 5415, "loc": { "start": { - "line": 119, - "column": 45 + "line": 126, + "column": 16 }, "end": { - "line": 119, - "column": 46 + "line": 126, + "column": 17 } } }, @@ -19502,17 +20835,17 @@ "postfix": false, "binop": null }, - "value": "instanceWeakMap", - "start": 5319, - "end": 5334, + "value": "backgrounds", + "start": 5415, + "end": 5426, "loc": { "start": { - "line": 119, - "column": 46 + "line": 126, + "column": 17 }, "end": { - "line": 119, - "column": 61 + "line": 126, + "column": 28 } } }, @@ -19529,16 +20862,16 @@ "binop": null, "updateContext": null }, - "start": 5334, - "end": 5335, + "start": 5426, + "end": 5427, "loc": { "start": { - "line": 119, - "column": 61 + "line": 126, + "column": 28 }, "end": { - "line": 119, - "column": 62 + "line": 126, + "column": 29 } } }, @@ -19554,17 +20887,17 @@ "postfix": false, "binop": null }, - "value": "get", - "start": 5335, - "end": 5338, + "value": "forEach", + "start": 5427, + "end": 5434, "loc": { "start": { - "line": 119, - "column": 62 + "line": 126, + "column": 29 }, "end": { - "line": 119, - "column": 65 + "line": 126, + "column": 36 } } }, @@ -19580,16 +20913,16 @@ "postfix": false, "binop": null }, - "start": 5338, - "end": 5339, + "start": 5434, + "end": 5435, "loc": { "start": { - "line": 119, - "column": 65 + "line": 126, + "column": 36 }, "end": { - "line": 119, - "column": 66 + "line": 126, + "column": 37 } } }, @@ -19606,67 +20939,67 @@ "binop": null }, "value": "pInstance", - "start": 5339, - "end": 5348, + "start": 5435, + "end": 5444, "loc": { "start": { - "line": 119, - "column": 66 + "line": 126, + "column": 37 }, "end": { - "line": 119, - "column": 75 + "line": 126, + "column": 46 } } }, { "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": 5348, - "end": 5349, + "start": 5445, + "end": 5447, "loc": { "start": { - "line": 119, - "column": 75 + "line": 126, + "column": 47 }, "end": { - "line": 119, - "column": 76 + "line": 126, + "column": 49 } } }, { "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": 5349, - "end": 5350, + "start": 5448, + "end": 5449, "loc": { "start": { - "line": 119, - "column": 76 + "line": 126, + "column": 50 }, "end": { - "line": 119, - "column": 77 + "line": 126, + "column": 51 } } }, @@ -19682,43 +21015,42 @@ "postfix": false, "binop": null }, - "value": "parallaxInfo", - "start": 5368, - "end": 5380, + "value": "update", + "start": 5466, + "end": 5472, "loc": { "start": { - "line": 120, + "line": 127, "column": 16 }, "end": { - "line": 120, - "column": 28 + "line": 127, + "column": 22 } } }, { "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": 5380, - "end": 5381, + "start": 5472, + "end": 5473, "loc": { "start": { - "line": 120, - "column": 28 + "line": 127, + "column": 22 }, "end": { - "line": 120, - "column": 29 + "line": 127, + "column": 23 } } }, @@ -19734,52 +21066,25 @@ "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, + "value": "pInstance", + "start": 5473, + "end": 5482, "loc": { "start": { - "line": 120, - "column": 31 + "line": 127, + "column": 23 }, "end": { - "line": 120, + "line": 127, "column": 32 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -19787,17 +21092,16 @@ "postfix": false, "binop": null }, - "value": "pVerticalSpeed", - "start": 5385, - "end": 5399, + "start": 5482, + "end": 5483, "loc": { "start": { - "line": 120, - "column": 33 + "line": 127, + "column": 32 }, "end": { - "line": 120, - "column": 47 + "line": 127, + "column": 33 } } }, @@ -19814,16 +21118,16 @@ "binop": null, "updateContext": null }, - "start": 5399, - "end": 5400, + "start": 5483, + "end": 5484, "loc": { "start": { - "line": 120, - "column": 47 + "line": 127, + "column": 33 }, "end": { - "line": 120, - "column": 48 + "line": 127, + "column": 34 } } }, @@ -19839,51 +21143,48 @@ "postfix": false, "binop": null }, - "start": 5414, - "end": 5415, + "start": 5497, + "end": 5498, "loc": { "start": { - "line": 121, + "line": 128, "column": 12 }, "end": { - "line": 121, + "line": 128, "column": 13 } } }, { "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": 5431, - "end": 5435, + "start": 5498, + "end": 5499, "loc": { "start": { - "line": 123, - "column": 12 + "line": 128, + "column": 13 }, "end": { - "line": 123, - "column": 16 + "line": 128, + "column": 14 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -19893,24 +21194,24 @@ "binop": null, "updateContext": null }, - "start": 5435, - "end": 5436, + "start": 5499, + "end": 5500, "loc": { "start": { - "line": 123, - "column": 16 + "line": 128, + "column": 14 }, "end": { - "line": 123, - "column": 17 + "line": 128, + "column": 15 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -19918,23 +21219,22 @@ "postfix": false, "binop": null }, - "value": "instances", - "start": 5436, - "end": 5445, + "start": 5509, + "end": 5510, "loc": { "start": { - "line": 123, - "column": 17 + "line": 129, + "column": 8 }, "end": { - "line": 123, - "column": 26 + "line": 129, + "column": 9 } } }, { "type": { - "label": ".", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -19942,19 +21242,34 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 5445, - "end": 5446, + "start": 5515, + "end": 5516, "loc": { "start": { - "line": 123, - "column": 26 + "line": 130, + "column": 4 }, "end": { - "line": 123, - "column": 27 + "line": 130, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Adds the instance to the parallax layer.\n * When using this API the instance should already be on the map.\n * @param {Diob} pInstance - The instance to add to the layer.\n * @param {Object} pConfig - The personal config of this instance. Akin to the parallax info passed via the `Parallax.add` API.\n * @prop {number} pConfig.x - The horizontal speed of this instance. (This will be ignored and the layer's speed will be used.)\n * @prop {number} pConfig.y - The vertical speed of this instance. (This will be ignored and the layer's speed will be used.)\n * @prop {boolean} pConfig.loop - Whether this instance will be treated as a background and loop seamlessly.\n ", + "start": 5521, + "end": 6224, + "loc": { + "start": { + "line": 131, + "column": 4 + }, + "end": { + "line": 139, + "column": 7 } } }, @@ -19970,17 +21285,17 @@ "postfix": false, "binop": null }, - "value": "forEach", - "start": 5446, - "end": 5453, + "value": "add", + "start": 6229, + "end": 6232, "loc": { "start": { - "line": 123, - "column": 27 + "line": 140, + "column": 4 }, "end": { - "line": 123, - "column": 34 + "line": 140, + "column": 7 } } }, @@ -19996,16 +21311,16 @@ "postfix": false, "binop": null }, - "start": 5453, - "end": 5454, + "start": 6232, + "end": 6233, "loc": { "start": { - "line": 123, - "column": 34 + "line": 140, + "column": 7 }, "end": { - "line": 123, - "column": 35 + "line": 140, + "column": 8 } } }, @@ -20022,22 +21337,22 @@ "binop": null }, "value": "pInstance", - "start": 5454, - "end": 5463, + "start": 6233, + "end": 6242, "loc": { "start": { - "line": 123, - "column": 35 + "line": 140, + "column": 8 }, "end": { - "line": 123, - "column": 44 + "line": 140, + "column": 17 } } }, { "type": { - "label": "=>", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -20048,23 +21363,23 @@ "binop": null, "updateContext": null }, - "start": 5464, - "end": 5466, + "start": 6242, + "end": 6243, "loc": { "start": { - "line": 123, - "column": 45 + "line": 140, + "column": 17 }, "end": { - "line": 123, - "column": 47 + "line": 140, + "column": 18 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -20073,24 +21388,25 @@ "postfix": false, "binop": null }, - "start": 5467, - "end": 5468, + "value": "pConfig", + "start": 6244, + "end": 6251, "loc": { "start": { - "line": 123, - "column": 48 + "line": 140, + "column": 19 }, "end": { - "line": 123, - "column": 49 + "line": 140, + "column": 26 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -20098,23 +21414,22 @@ "postfix": false, "binop": null }, - "value": "update", - "start": 5486, - "end": 5492, + "start": 6251, + "end": 6252, "loc": { "start": { - "line": 124, - "column": 16 + "line": 140, + "column": 26 }, "end": { - "line": 124, - "column": 22 + "line": 140, + "column": 27 } } }, { "type": { - "label": "(", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -20124,50 +21439,52 @@ "postfix": false, "binop": null }, - "start": 5492, - "end": 5493, + "start": 6253, + "end": 6254, "loc": { "start": { - "line": 124, - "column": 22 + "line": 140, + "column": 28 }, "end": { - "line": 124, - "column": 23 + "line": 140, + "column": 29 } } }, { "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": "pInstance", - "start": 5493, - "end": 5502, + "value": "if", + "start": 6263, + "end": 6265, "loc": { "start": { - "line": 124, - "column": 23 + "line": 141, + "column": 8 }, "end": { - "line": 124, - "column": 32 + "line": 141, + "column": 10 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -20175,24 +21492,25 @@ "postfix": false, "binop": null }, - "start": 5502, - "end": 5503, + "start": 6266, + "end": 6267, "loc": { "start": { - "line": 124, - "column": 32 + "line": 141, + "column": 11 }, "end": { - "line": 124, - "column": 33 + "line": 141, + "column": 12 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -20201,22 +21519,23 @@ "binop": null, "updateContext": null }, - "start": 5503, - "end": 5504, + "value": "this", + "start": 6267, + "end": 6271, "loc": { "start": { - "line": 124, - "column": 33 + "line": 141, + "column": 12 }, "end": { - "line": 124, - "column": 34 + "line": 141, + "column": 16 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -20224,26 +21543,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5518, - "end": 5519, + "start": 6271, + "end": 6272, "loc": { "start": { - "line": 125, - "column": 12 + "line": 141, + "column": 16 }, "end": { - "line": 125, - "column": 13 + "line": 141, + "column": 17 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -20251,23 +21571,24 @@ "postfix": false, "binop": null }, - "start": 5519, - "end": 5520, + "value": "config", + "start": 6272, + "end": 6278, "loc": { "start": { - "line": 125, - "column": 13 + "line": 141, + "column": 17 }, "end": { - "line": 125, - "column": 14 + "line": 141, + "column": 23 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -20277,23 +21598,22 @@ "binop": null, "updateContext": null }, - "start": 5520, - "end": 5521, + "start": 6278, + "end": 6279, "loc": { "start": { - "line": 125, - "column": 14 + "line": 141, + "column": 23 }, "end": { - "line": 125, - "column": 15 + "line": 141, + "column": 24 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -20301,20 +21621,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 5535, - "end": 5539, + "value": "instances", + "start": 6279, + "end": 6288, "loc": { "start": { - "line": 126, - "column": 12 + "line": 141, + "column": 24 }, "end": { - "line": 126, - "column": 16 + "line": 141, + "column": 33 } } }, @@ -20331,16 +21650,16 @@ "binop": null, "updateContext": null }, - "start": 5539, - "end": 5540, + "start": 6288, + "end": 6289, "loc": { "start": { - "line": 126, - "column": 16 + "line": 141, + "column": 33 }, "end": { - "line": 126, - "column": 17 + "line": 141, + "column": 34 } } }, @@ -20356,43 +21675,42 @@ "postfix": false, "binop": null }, - "value": "backgrounds", - "start": 5540, - "end": 5551, + "value": "has", + "start": 6289, + "end": 6292, "loc": { "start": { - "line": 126, - "column": 17 + "line": 141, + "column": 34 }, "end": { - "line": 126, - "column": 28 + "line": 141, + "column": 37 } } }, { "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": 5551, - "end": 5552, + "start": 6292, + "end": 6293, "loc": { "start": { - "line": 126, - "column": 28 + "line": 141, + "column": 37 }, "end": { - "line": 126, - "column": 29 + "line": 141, + "column": 38 } } }, @@ -20408,25 +21726,25 @@ "postfix": false, "binop": null }, - "value": "forEach", - "start": 5552, - "end": 5559, + "value": "pInstance", + "start": 6293, + "end": 6302, "loc": { "start": { - "line": 126, - "column": 29 + "line": 141, + "column": 38 }, "end": { - "line": 126, - "column": 36 + "line": 141, + "column": 47 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -20434,24 +21752,24 @@ "postfix": false, "binop": null }, - "start": 5559, - "end": 5560, + "start": 6302, + "end": 6303, "loc": { "start": { - "line": 126, - "column": 36 + "line": 141, + "column": 47 }, "end": { - "line": 126, - "column": 37 + "line": 141, + "column": 48 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -20459,23 +21777,23 @@ "postfix": false, "binop": null }, - "value": "pInstance", - "start": 5560, - "end": 5569, + "start": 6303, + "end": 6304, "loc": { "start": { - "line": 126, - "column": 37 + "line": 141, + "column": 48 }, "end": { - "line": 126, - "column": 46 + "line": 141, + "column": 49 } } }, { "type": { - "label": "=>", + "label": "return", + "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -20486,47 +21804,50 @@ "binop": null, "updateContext": null }, - "start": 5570, - "end": 5572, + "value": "return", + "start": 6305, + "end": 6311, "loc": { "start": { - "line": 126, - "column": 47 + "line": 141, + "column": 50 }, "end": { - "line": 126, - "column": 49 + "line": 141, + "column": 56 } } }, { "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": 5573, - "end": 5574, + "start": 6311, + "end": 6312, "loc": { "start": { - "line": 126, - "column": 50 + "line": 141, + "column": 56 }, "end": { - "line": 126, - "column": 51 + "line": 141, + "column": 57 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -20534,44 +21855,46 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "update", - "start": 5592, - "end": 5598, + "value": "this", + "start": 6321, + "end": 6325, "loc": { "start": { - "line": 127, - "column": 16 + "line": 142, + "column": 8 }, "end": { - "line": 127, - "column": 22 + "line": 142, + "column": 12 } } }, { "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": 5598, - "end": 5599, + "start": 6325, + "end": 6326, "loc": { "start": { - "line": 127, - "column": 22 + "line": 142, + "column": 12 }, "end": { - "line": 127, - "column": 23 + "line": 142, + "column": 13 } } }, @@ -20587,23 +21910,23 @@ "postfix": false, "binop": null }, - "value": "pInstance", - "start": 5599, - "end": 5608, + "value": "config", + "start": 6326, + "end": 6332, "loc": { "start": { - "line": 127, - "column": 23 + "line": 142, + "column": 13 }, "end": { - "line": 127, - "column": 32 + "line": 142, + "column": 19 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -20611,50 +21934,51 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5608, - "end": 5609, + "start": 6332, + "end": 6333, "loc": { "start": { - "line": 127, - "column": 32 + "line": 142, + "column": 19 }, "end": { - "line": 127, - "column": 33 + "line": 142, + "column": 20 } } }, { "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": 5609, - "end": 5610, + "value": "instances", + "start": 6333, + "end": 6342, "loc": { "start": { - "line": 127, - "column": 33 + "line": 142, + "column": 20 }, "end": { - "line": 127, - "column": 34 + "line": 142, + "column": 29 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -20662,26 +21986,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 5624, - "end": 5625, + "start": 6342, + "end": 6343, "loc": { "start": { - "line": 128, - "column": 12 + "line": 142, + "column": 29 }, "end": { - "line": 128, - "column": 13 + "line": 142, + "column": 30 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -20689,50 +22014,50 @@ "postfix": false, "binop": null }, - "start": 5625, - "end": 5626, + "value": "add", + "start": 6343, + "end": 6346, "loc": { "start": { - "line": 128, - "column": 13 + "line": 142, + "column": 30 }, "end": { - "line": 128, - "column": 14 + "line": 142, + "column": 33 } } }, { "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": 5626, - "end": 5627, + "start": 6346, + "end": 6347, "loc": { "start": { - "line": 128, - "column": 14 + "line": 142, + "column": 33 }, "end": { - "line": 128, - "column": 15 + "line": 142, + "column": 34 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -20740,22 +22065,23 @@ "postfix": false, "binop": null }, - "start": 5637, - "end": 5638, + "value": "pInstance", + "start": 6347, + "end": 6356, "loc": { "start": { - "line": 129, - "column": 8 + "line": 142, + "column": 34 }, "end": { - "line": 129, - "column": 9 + "line": 142, + "column": 43 } } }, { "type": { - "label": "}", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -20765,83 +22091,70 @@ "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, + "start": 6356, + "end": 6357, "loc": { "start": { - "line": 131, - "column": 4 + "line": 142, + "column": 43 }, "end": { - "line": 139, - "column": 7 + "line": 142, + "column": 44 } } }, { "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": "add", - "start": 6368, - "end": 6371, + "start": 6357, + "end": 6358, "loc": { "start": { - "line": 140, - "column": 4 + "line": 142, + "column": 44 }, "end": { - "line": 140, - "column": 7 + "line": 142, + "column": 45 } } }, { "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": 6371, + "value": "const", + "start": 6367, "end": 6372, "loc": { "start": { - "line": 140, - "column": 7 + "line": 143, + "column": 8 }, "end": { - "line": 140, - "column": 8 + "line": 143, + "column": 13 } } }, @@ -20857,43 +22170,44 @@ "postfix": false, "binop": null }, - "value": "pInstance", - "start": 6372, - "end": 6381, + "value": "config", + "start": 6373, + "end": 6379, "loc": { "start": { - "line": 140, - "column": 8 + "line": 143, + "column": 14 }, "end": { - "line": 140, - "column": 17 + "line": 143, + "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": 6381, - "end": 6382, + "value": "=", + "start": 6380, + "end": 6381, "loc": { "start": { - "line": 140, - "column": 17 + "line": 143, + "column": 21 }, "end": { - "line": 140, - "column": 18 + "line": 143, + "column": 22 } } }, @@ -20910,41 +22224,42 @@ "binop": null }, "value": "pConfig", - "start": 6383, - "end": 6390, + "start": 6382, + "end": 6389, "loc": { "start": { - "line": 140, - "column": 19 + "line": 143, + "column": 23 }, "end": { - "line": 140, - "column": 26 + "line": 143, + "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": 6390, - "end": 6391, + "start": 6403, + "end": 6404, "loc": { "start": { - "line": 140, - "column": 26 + "line": 144, + "column": 12 }, "end": { - "line": 140, - "column": 27 + "line": 144, + "column": 13 } } }, @@ -20960,69 +22275,68 @@ "postfix": false, "binop": null }, - "start": 6392, - "end": 6393, + "start": 6405, + "end": 6406, "loc": { "start": { - "line": 140, - "column": 28 + "line": 144, + "column": 14 }, "end": { - "line": 140, - "column": 29 + "line": 144, + "column": 15 } } }, { "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": 6403, - "end": 6405, + "value": "x", + "start": 6423, + "end": 6424, "loc": { "start": { - "line": 141, - "column": 8 + "line": 145, + "column": 16 }, "end": { - "line": 141, - "column": 10 + "line": 145, + "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": 6406, - "end": 6407, + "start": 6424, + "end": 6425, "loc": { "start": { - "line": 141, - "column": 11 + "line": 145, + "column": 17 }, "end": { - "line": 141, - "column": 12 + "line": 145, + "column": 18 } } }, @@ -21041,16 +22355,16 @@ "updateContext": null }, "value": "this", - "start": 6407, - "end": 6411, + "start": 6426, + "end": 6430, "loc": { "start": { - "line": 141, - "column": 12 + "line": 145, + "column": 19 }, "end": { - "line": 141, - "column": 16 + "line": 145, + "column": 23 } } }, @@ -21067,16 +22381,16 @@ "binop": null, "updateContext": null }, - "start": 6411, - "end": 6412, + "start": 6430, + "end": 6431, "loc": { "start": { - "line": 141, - "column": 16 + "line": 145, + "column": 23 }, "end": { - "line": 141, - "column": 17 + "line": 145, + "column": 24 } } }, @@ -21093,16 +22407,16 @@ "binop": null }, "value": "config", - "start": 6412, - "end": 6418, + "start": 6431, + "end": 6437, "loc": { "start": { - "line": 141, - "column": 17 + "line": 145, + "column": 24 }, "end": { - "line": 141, - "column": 23 + "line": 145, + "column": 30 } } }, @@ -21119,16 +22433,16 @@ "binop": null, "updateContext": null }, - "start": 6418, - "end": 6419, + "start": 6437, + "end": 6438, "loc": { "start": { - "line": 141, - "column": 23 + "line": 145, + "column": 30 }, "end": { - "line": 141, - "column": 24 + "line": 145, + "column": 31 } } }, @@ -21144,24 +22458,24 @@ "postfix": false, "binop": null }, - "value": "instances", - "start": 6419, - "end": 6428, + "value": "horizontalSpeed", + "start": 6438, + "end": 6453, "loc": { "start": { - "line": 141, - "column": 24 + "line": 145, + "column": 31 }, "end": { - "line": 141, - "column": 33 + "line": 145, + "column": 46 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -21171,16 +22485,16 @@ "binop": null, "updateContext": null }, - "start": 6428, - "end": 6429, + "start": 6453, + "end": 6454, "loc": { "start": { - "line": 141, - "column": 33 + "line": 145, + "column": 46 }, "end": { - "line": 141, - "column": 34 + "line": 145, + "column": 47 } } }, @@ -21196,48 +22510,50 @@ "postfix": false, "binop": null }, - "value": "has", - "start": 6429, - "end": 6432, + "value": "y", + "start": 6471, + "end": 6472, "loc": { "start": { - "line": 141, - "column": 34 + "line": 146, + "column": 16 }, "end": { - "line": 141, - "column": 37 + "line": 146, + "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": 6432, - "end": 6433, + "start": 6472, + "end": 6473, "loc": { "start": { - "line": 141, - "column": 37 + "line": 146, + "column": 17 }, "end": { - "line": 141, - "column": 38 + "line": 146, + "column": 18 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -21245,25 +22561,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "pInstance", - "start": 6433, - "end": 6442, + "value": "this", + "start": 6474, + "end": 6478, "loc": { "start": { - "line": 141, - "column": 38 + "line": 146, + "column": 19 }, "end": { - "line": 141, - "column": 47 + "line": 146, + "column": 23 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -21271,26 +22588,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 6442, - "end": 6443, + "start": 6478, + "end": 6479, "loc": { "start": { - "line": 141, - "column": 47 + "line": 146, + "column": 23 }, "end": { - "line": 141, - "column": 48 + "line": 146, + "column": 24 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -21298,51 +22616,24 @@ "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, + "value": "config", + "start": 6479, + "end": 6485, "loc": { "start": { - "line": 141, - "column": 50 + "line": 146, + "column": 24 }, "end": { - "line": 141, - "column": 56 + "line": 146, + "column": 30 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -21352,23 +22643,22 @@ "binop": null, "updateContext": null }, - "start": 6451, - "end": 6452, + "start": 6485, + "end": 6486, "loc": { "start": { - "line": 141, - "column": 56 + "line": 146, + "column": 30 }, "end": { - "line": 141, - "column": 57 + "line": 146, + "column": 31 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -21376,27 +22666,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 6462, - "end": 6466, + "value": "verticalSpeed", + "start": 6486, + "end": 6499, "loc": { "start": { - "line": 142, - "column": 8 + "line": 146, + "column": 31 }, "end": { - "line": 142, - "column": 12 + "line": 146, + "column": 44 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -21406,16 +22695,16 @@ "binop": null, "updateContext": null }, - "start": 6466, - "end": 6467, + "start": 6499, + "end": 6500, "loc": { "start": { - "line": 142, - "column": 12 + "line": 146, + "column": 44 }, "end": { - "line": 142, - "column": 13 + "line": 146, + "column": 45 } } }, @@ -21431,24 +22720,24 @@ "postfix": false, "binop": null }, - "value": "config", - "start": 6467, - "end": 6473, + "value": "loop", + "start": 6517, + "end": 6521, "loc": { "start": { - "line": 142, - "column": 13 + "line": 147, + "column": 16 }, "end": { - "line": 142, - "column": 19 + "line": 147, + "column": 20 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ":", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -21458,16 +22747,16 @@ "binop": null, "updateContext": null }, - "start": 6473, - "end": 6474, + "start": 6521, + "end": 6522, "loc": { "start": { - "line": 142, - "column": 19 + "line": 147, + "column": 20 }, "end": { - "line": 142, - "column": 20 + "line": 147, + "column": 21 } } }, @@ -21483,16 +22772,16 @@ "postfix": false, "binop": null }, - "value": "instances", - "start": 6474, - "end": 6483, + "value": "pConfig", + "start": 6523, + "end": 6530, "loc": { "start": { - "line": 142, - "column": 20 + "line": 147, + "column": 22 }, "end": { - "line": 142, + "line": 147, "column": 29 } } @@ -21510,15 +22799,15 @@ "binop": null, "updateContext": null }, - "start": 6483, - "end": 6484, + "start": 6530, + "end": 6531, "loc": { "start": { - "line": 142, + "line": 147, "column": 29 }, "end": { - "line": 142, + "line": 147, "column": 30 } } @@ -21535,25 +22824,25 @@ "postfix": false, "binop": null }, - "value": "add", - "start": 6484, - "end": 6487, + "value": "loop", + "start": 6531, + "end": 6535, "loc": { "start": { - "line": 142, + "line": 147, "column": 30 }, "end": { - "line": 142, - "column": 33 + "line": 147, + "column": 34 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": "}", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -21561,50 +22850,50 @@ "postfix": false, "binop": null }, - "start": 6487, - "end": 6488, + "start": 6548, + "end": 6549, "loc": { "start": { - "line": 142, - "column": 33 + "line": 148, + "column": 12 }, "end": { - "line": 142, - "column": 34 + "line": 148, + "column": 13 } } }, { "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": 6488, - "end": 6497, + "start": 6562, + "end": 6563, "loc": { "start": { - "line": 142, - "column": 34 + "line": 149, + "column": 12 }, "end": { - "line": 142, - "column": 43 + "line": 149, + "column": 13 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -21612,50 +22901,49 @@ "postfix": false, "binop": null }, - "start": 6497, - "end": 6498, + "start": 6564, + "end": 6565, "loc": { "start": { - "line": 142, - "column": 43 + "line": 149, + "column": 14 }, "end": { - "line": 142, - "column": 44 + "line": 149, + "column": 15 } } }, { "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": 6498, - "end": 6499, + "value": "x", + "start": 6582, + "end": 6583, "loc": { "start": { - "line": 142, - "column": 44 + "line": 150, + "column": 16 }, "end": { - "line": 142, - "column": 45 + "line": 150, + "column": 17 } } }, { "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, + "label": ":", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -21665,23 +22953,23 @@ "binop": null, "updateContext": null }, - "value": "const", - "start": 6509, - "end": 6514, + "start": 6583, + "end": 6584, "loc": { "start": { - "line": 143, - "column": 8 + "line": 150, + "column": 17 }, "end": { - "line": 143, - "column": 13 + "line": 150, + "column": 18 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -21689,46 +22977,46 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "config", - "start": 6515, - "end": 6521, + "value": "this", + "start": 6585, + "end": 6589, "loc": { "start": { - "line": 143, - "column": 14 + "line": 150, + "column": 19 }, "end": { - "line": 143, - "column": 20 + "line": 150, + "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": 6522, - "end": 6523, + "start": 6589, + "end": 6590, "loc": { "start": { - "line": 143, - "column": 21 + "line": 150, + "column": 23 }, "end": { - "line": 143, - "column": 22 + "line": 150, + "column": 24 } } }, @@ -21744,24 +23032,24 @@ "postfix": false, "binop": null }, - "value": "pConfig", - "start": 6524, - "end": 6531, + "value": "config", + "start": 6590, + "end": 6596, "loc": { "start": { - "line": 143, - "column": 23 + "line": 150, + "column": 24 }, "end": { - "line": 143, + "line": 150, "column": 30 } } }, { "type": { - "label": "?", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -21771,16 +23059,16 @@ "binop": null, "updateContext": null }, - "start": 6546, - "end": 6547, + "start": 6596, + "end": 6597, "loc": { "start": { - "line": 144, - "column": 12 + "line": 150, + "column": 30 }, "end": { - "line": 144, - "column": 13 + "line": 150, + "column": 31 } } }, @@ -21796,23 +23084,23 @@ "postfix": false, "binop": null }, - "value": "pConfig", - "start": 6548, - "end": 6555, + "value": "horizontalSpeed", + "start": 6597, + "end": 6612, "loc": { "start": { - "line": 144, - "column": 14 + "line": 150, + "column": 31 }, "end": { - "line": 144, - "column": 21 + "line": 150, + "column": 46 } } }, { "type": { - "label": ":", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -21823,41 +23111,16 @@ "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, + "start": 6612, + "end": 6613, "loc": { "start": { - "line": 145, - "column": 14 + "line": 150, + "column": 46 }, "end": { - "line": 145, - "column": 15 + "line": 150, + "column": 47 } } }, @@ -21873,16 +23136,16 @@ "postfix": false, "binop": null }, - "value": "x", - "start": 6590, - "end": 6591, + "value": "y", + "start": 6630, + "end": 6631, "loc": { "start": { - "line": 146, + "line": 151, "column": 16 }, "end": { - "line": 146, + "line": 151, "column": 17 } } @@ -21900,15 +23163,15 @@ "binop": null, "updateContext": null }, - "start": 6591, - "end": 6592, + "start": 6631, + "end": 6632, "loc": { "start": { - "line": 146, + "line": 151, "column": 17 }, "end": { - "line": 146, + "line": 151, "column": 18 } } @@ -21928,15 +23191,15 @@ "updateContext": null }, "value": "this", - "start": 6593, - "end": 6597, + "start": 6633, + "end": 6637, "loc": { "start": { - "line": 146, + "line": 151, "column": 19 }, "end": { - "line": 146, + "line": 151, "column": 23 } } @@ -21954,15 +23217,15 @@ "binop": null, "updateContext": null }, - "start": 6597, - "end": 6598, + "start": 6637, + "end": 6638, "loc": { "start": { - "line": 146, + "line": 151, "column": 23 }, "end": { - "line": 146, + "line": 151, "column": 24 } } @@ -21980,15 +23243,15 @@ "binop": null }, "value": "config", - "start": 6598, - "end": 6604, + "start": 6638, + "end": 6644, "loc": { "start": { - "line": 146, + "line": 151, "column": 24 }, "end": { - "line": 146, + "line": 151, "column": 30 } } @@ -22006,15 +23269,15 @@ "binop": null, "updateContext": null }, - "start": 6604, - "end": 6605, + "start": 6644, + "end": 6645, "loc": { "start": { - "line": 146, + "line": 151, "column": 30 }, "end": { - "line": 146, + "line": 151, "column": 31 } } @@ -22031,43 +23294,42 @@ "postfix": false, "binop": null }, - "value": "horizontalSpeed", - "start": 6605, - "end": 6620, + "value": "verticalSpeed", + "start": 6645, + "end": 6658, "loc": { "start": { - "line": 146, + "line": 151, "column": 31 }, "end": { - "line": 146, - "column": 46 + "line": 151, + "column": 44 } } }, { "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": 6620, - "end": 6621, + "start": 6671, + "end": 6672, "loc": { "start": { - "line": 146, - "column": 46 + "line": 152, + "column": 12 }, "end": { - "line": 146, - "column": 47 + "line": 152, + "column": 13 } } }, @@ -22083,24 +23345,24 @@ "postfix": false, "binop": null }, - "value": "y", - "start": 6639, - "end": 6640, + "value": "pInstance", + "start": 6681, + "end": 6690, "loc": { "start": { - "line": 147, - "column": 16 + "line": 153, + "column": 8 }, "end": { - "line": 147, + "line": 153, "column": 17 } } }, { "type": { - "label": ":", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -22110,16 +23372,69 @@ "binop": null, "updateContext": null }, - "start": 6640, - "end": 6641, + "start": 6690, + "end": 6691, "loc": { "start": { - "line": 147, + "line": 153, "column": 17 }, "end": { - "line": 147, + "line": 153, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "plane", + "start": 6691, + "end": 6696, + "loc": { + "start": { + "line": 153, "column": 18 + }, + "end": { + "line": 153, + "column": 23 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 6697, + "end": 6698, + "loc": { + "start": { + "line": 153, + "column": 24 + }, + "end": { + "line": 153, + "column": 25 } } }, @@ -22138,16 +23453,16 @@ "updateContext": null }, "value": "this", - "start": 6642, - "end": 6646, + "start": 6699, + "end": 6703, "loc": { "start": { - "line": 147, - "column": 19 + "line": 153, + "column": 26 }, "end": { - "line": 147, - "column": 23 + "line": 153, + "column": 30 } } }, @@ -22164,16 +23479,16 @@ "binop": null, "updateContext": null }, - "start": 6646, - "end": 6647, + "start": 6703, + "end": 6704, "loc": { "start": { - "line": 147, - "column": 23 + "line": 153, + "column": 30 }, "end": { - "line": 147, - "column": 24 + "line": 153, + "column": 31 } } }, @@ -22190,16 +23505,16 @@ "binop": null }, "value": "config", - "start": 6647, - "end": 6653, + "start": 6704, + "end": 6710, "loc": { "start": { - "line": 147, - "column": 24 + "line": 153, + "column": 31 }, "end": { - "line": 147, - "column": 30 + "line": 153, + "column": 37 } } }, @@ -22216,16 +23531,16 @@ "binop": null, "updateContext": null }, - "start": 6653, - "end": 6654, + "start": 6710, + "end": 6711, "loc": { "start": { - "line": 147, - "column": 30 + "line": 153, + "column": 37 }, "end": { - "line": 147, - "column": 31 + "line": 153, + "column": 38 } } }, @@ -22241,42 +23556,43 @@ "postfix": false, "binop": null }, - "value": "verticalSpeed", - "start": 6654, - "end": 6667, + "value": "plane", + "start": 6711, + "end": 6716, "loc": { "start": { - "line": 147, - "column": 31 + "line": 153, + "column": 38 }, "end": { - "line": 147, - "column": 44 + "line": 153, + "column": 43 } } }, { "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": 6681, - "end": 6682, + "start": 6716, + "end": 6717, "loc": { "start": { - "line": 148, - "column": 12 + "line": 153, + "column": 43 }, "end": { - "line": 148, - "column": 13 + "line": 153, + "column": 44 } } }, @@ -22293,15 +23609,15 @@ "binop": null }, "value": "Parallax", - "start": 6692, - "end": 6700, + "start": 6726, + "end": 6734, "loc": { "start": { - "line": 149, + "line": 154, "column": 8 }, "end": { - "line": 149, + "line": 154, "column": 16 } } @@ -22319,15 +23635,15 @@ "binop": null, "updateContext": null }, - "start": 6700, - "end": 6701, + "start": 6734, + "end": 6735, "loc": { "start": { - "line": 149, + "line": 154, "column": 16 }, "end": { - "line": 149, + "line": 154, "column": 17 } } @@ -22345,15 +23661,15 @@ "binop": null }, "value": "add", - "start": 6701, - "end": 6704, + "start": 6735, + "end": 6738, "loc": { "start": { - "line": 149, + "line": 154, "column": 17 }, "end": { - "line": 149, + "line": 154, "column": 20 } } @@ -22370,15 +23686,15 @@ "postfix": false, "binop": null }, - "start": 6704, - "end": 6705, + "start": 6738, + "end": 6739, "loc": { "start": { - "line": 149, + "line": 154, "column": 20 }, "end": { - "line": 149, + "line": 154, "column": 21 } } @@ -22396,15 +23712,15 @@ "binop": null }, "value": "pInstance", - "start": 6705, - "end": 6714, + "start": 6739, + "end": 6748, "loc": { "start": { - "line": 149, + "line": 154, "column": 21 }, "end": { - "line": 149, + "line": 154, "column": 30 } } @@ -22422,15 +23738,15 @@ "binop": null, "updateContext": null }, - "start": 6714, - "end": 6715, + "start": 6748, + "end": 6749, "loc": { "start": { - "line": 149, + "line": 154, "column": 30 }, "end": { - "line": 149, + "line": 154, "column": 31 } } @@ -22448,15 +23764,15 @@ "binop": null }, "value": "config", - "start": 6716, - "end": 6722, + "start": 6750, + "end": 6756, "loc": { "start": { - "line": 149, + "line": 154, "column": 32 }, "end": { - "line": 149, + "line": 154, "column": 38 } } @@ -22473,15 +23789,15 @@ "postfix": false, "binop": null }, - "start": 6722, - "end": 6723, + "start": 6756, + "end": 6757, "loc": { "start": { - "line": 149, + "line": 154, "column": 38 }, "end": { - "line": 149, + "line": 154, "column": 39 } } @@ -22499,15 +23815,15 @@ "binop": null, "updateContext": null }, - "start": 6723, - "end": 6724, + "start": 6757, + "end": 6758, "loc": { "start": { - "line": 149, + "line": 154, "column": 39 }, "end": { - "line": 149, + "line": 154, "column": 40 } } @@ -22524,31 +23840,31 @@ "postfix": false, "binop": null }, - "start": 6730, - "end": 6731, + "start": 6763, + "end": 6764, "loc": { "start": { - "line": 150, + "line": 155, "column": 4 }, "end": { - "line": 150, + "line": 155, "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, + "value": "*\n * Removes the instance from the parallax layer.\n * @param {Diob} pInstance - The instance to remove from the layer.\n ", + "start": 6769, + "end": 6905, "loc": { "start": { - "line": 151, + "line": 156, "column": 4 }, "end": { - "line": 154, + "line": 159, "column": 7 } } @@ -22566,15 +23882,15 @@ "binop": null }, "value": "remove", - "start": 6882, - "end": 6888, + "start": 6910, + "end": 6916, "loc": { "start": { - "line": 155, + "line": 160, "column": 4 }, "end": { - "line": 155, + "line": 160, "column": 10 } } @@ -22591,15 +23907,15 @@ "postfix": false, "binop": null }, - "start": 6888, - "end": 6889, + "start": 6916, + "end": 6917, "loc": { "start": { - "line": 155, + "line": 160, "column": 10 }, "end": { - "line": 155, + "line": 160, "column": 11 } } @@ -22617,15 +23933,15 @@ "binop": null }, "value": "pInstance", - "start": 6889, - "end": 6898, + "start": 6917, + "end": 6926, "loc": { "start": { - "line": 155, + "line": 160, "column": 11 }, "end": { - "line": 155, + "line": 160, "column": 20 } } @@ -22642,15 +23958,15 @@ "postfix": false, "binop": null }, - "start": 6898, - "end": 6899, + "start": 6926, + "end": 6927, "loc": { "start": { - "line": 155, + "line": 160, "column": 20 }, "end": { - "line": 155, + "line": 160, "column": 21 } } @@ -22667,15 +23983,15 @@ "postfix": false, "binop": null }, - "start": 6900, - "end": 6901, + "start": 6928, + "end": 6929, "loc": { "start": { - "line": 155, + "line": 160, "column": 22 }, "end": { - "line": 155, + "line": 160, "column": 23 } } @@ -22695,15 +24011,15 @@ "updateContext": null }, "value": "this", - "start": 6911, - "end": 6915, + "start": 6938, + "end": 6942, "loc": { "start": { - "line": 156, + "line": 161, "column": 8 }, "end": { - "line": 156, + "line": 161, "column": 12 } } @@ -22721,15 +24037,15 @@ "binop": null, "updateContext": null }, - "start": 6915, - "end": 6916, + "start": 6942, + "end": 6943, "loc": { "start": { - "line": 156, + "line": 161, "column": 12 }, "end": { - "line": 156, + "line": 161, "column": 13 } } @@ -22747,15 +24063,15 @@ "binop": null }, "value": "config", - "start": 6916, - "end": 6922, + "start": 6943, + "end": 6949, "loc": { "start": { - "line": 156, + "line": 161, "column": 13 }, "end": { - "line": 156, + "line": 161, "column": 19 } } @@ -22773,15 +24089,15 @@ "binop": null, "updateContext": null }, - "start": 6922, - "end": 6923, + "start": 6949, + "end": 6950, "loc": { "start": { - "line": 156, + "line": 161, "column": 19 }, "end": { - "line": 156, + "line": 161, "column": 20 } } @@ -22799,15 +24115,15 @@ "binop": null }, "value": "instances", - "start": 6923, - "end": 6932, + "start": 6950, + "end": 6959, "loc": { "start": { - "line": 156, + "line": 161, "column": 20 }, "end": { - "line": 156, + "line": 161, "column": 29 } } @@ -22825,15 +24141,15 @@ "binop": null, "updateContext": null }, - "start": 6932, - "end": 6933, + "start": 6959, + "end": 6960, "loc": { "start": { - "line": 156, + "line": 161, "column": 29 }, "end": { - "line": 156, + "line": 161, "column": 30 } } @@ -22853,15 +24169,15 @@ "updateContext": null }, "value": "delete", - "start": 6933, - "end": 6939, + "start": 6960, + "end": 6966, "loc": { "start": { - "line": 156, + "line": 161, "column": 30 }, "end": { - "line": 156, + "line": 161, "column": 36 } } @@ -22878,15 +24194,15 @@ "postfix": false, "binop": null }, - "start": 6939, - "end": 6940, + "start": 6966, + "end": 6967, "loc": { "start": { - "line": 156, + "line": 161, "column": 36 }, "end": { - "line": 156, + "line": 161, "column": 37 } } @@ -22904,15 +24220,15 @@ "binop": null }, "value": "pInstance", - "start": 6940, - "end": 6949, + "start": 6967, + "end": 6976, "loc": { "start": { - "line": 156, + "line": 161, "column": 37 }, "end": { - "line": 156, + "line": 161, "column": 46 } } @@ -22929,15 +24245,15 @@ "postfix": false, "binop": null }, - "start": 6949, - "end": 6950, + "start": 6976, + "end": 6977, "loc": { "start": { - "line": 156, + "line": 161, "column": 46 }, "end": { - "line": 156, + "line": 161, "column": 47 } } @@ -22955,15 +24271,15 @@ "binop": null, "updateContext": null }, - "start": 6950, - "end": 6951, + "start": 6977, + "end": 6978, "loc": { "start": { - "line": 156, + "line": 161, "column": 47 }, "end": { - "line": 156, + "line": 161, "column": 48 } } @@ -22981,15 +24297,15 @@ "binop": null }, "value": "Parallax", - "start": 6961, - "end": 6969, + "start": 6987, + "end": 6995, "loc": { "start": { - "line": 157, + "line": 162, "column": 8 }, "end": { - "line": 157, + "line": 162, "column": 16 } } @@ -23007,15 +24323,15 @@ "binop": null, "updateContext": null }, - "start": 6969, - "end": 6970, + "start": 6995, + "end": 6996, "loc": { "start": { - "line": 157, + "line": 162, "column": 16 }, "end": { - "line": 157, + "line": 162, "column": 17 } } @@ -23033,15 +24349,15 @@ "binop": null }, "value": "remove", - "start": 6970, - "end": 6976, + "start": 6996, + "end": 7002, "loc": { "start": { - "line": 157, + "line": 162, "column": 17 }, "end": { - "line": 157, + "line": 162, "column": 23 } } @@ -23058,15 +24374,15 @@ "postfix": false, "binop": null }, - "start": 6976, - "end": 6977, + "start": 7002, + "end": 7003, "loc": { "start": { - "line": 157, + "line": 162, "column": 23 }, "end": { - "line": 157, + "line": 162, "column": 24 } } @@ -23084,15 +24400,15 @@ "binop": null }, "value": "pInstance", - "start": 6977, - "end": 6986, + "start": 7003, + "end": 7012, "loc": { "start": { - "line": 157, + "line": 162, "column": 24 }, "end": { - "line": 157, + "line": 162, "column": 33 } } @@ -23109,15 +24425,15 @@ "postfix": false, "binop": null }, - "start": 6986, - "end": 6987, + "start": 7012, + "end": 7013, "loc": { "start": { - "line": 157, + "line": 162, "column": 33 }, "end": { - "line": 157, + "line": 162, "column": 34 } } @@ -23135,15 +24451,15 @@ "binop": null, "updateContext": null }, - "start": 6987, - "end": 6988, + "start": 7013, + "end": 7014, "loc": { "start": { - "line": 157, + "line": 162, "column": 34 }, "end": { - "line": 157, + "line": 162, "column": 35 } } @@ -23160,15 +24476,15 @@ "postfix": false, "binop": null }, - "start": 6994, - "end": 6995, + "start": 7019, + "end": 7020, "loc": { "start": { - "line": 158, + "line": 163, "column": 4 }, "end": { - "line": 158, + "line": 163, "column": 5 } } @@ -23185,15 +24501,15 @@ "postfix": false, "binop": null }, - "start": 6997, - "end": 6998, + "start": 7021, + "end": 7022, "loc": { "start": { - "line": 159, + "line": 164, "column": 0 }, "end": { - "line": 159, + "line": 164, "column": 1 } } @@ -23211,15 +24527,15 @@ "binop": null, "updateContext": null }, - "start": 6998, - "end": 6998, + "start": 7022, + "end": 7022, "loc": { "start": { - "line": 159, + "line": 164, "column": 1 }, "end": { - "line": 159, + "line": 164, "column": 1 } } diff --git a/docs/ast/source/parallax.mjs.json b/docs/ast/source/parallax.mjs.json index d1a5012..182809b 100644 --- a/docs/ast/source/parallax.mjs.json +++ b/docs/ast/source/parallax.mjs.json @@ -1,7 +1,7 @@ { "type": "File", "start": 0, - "end": 10294, + "end": 10048, "loc": { "start": { "line": 1, @@ -15,7 +15,7 @@ "program": { "type": "Program", "start": 0, - "end": 10294, + "end": 10048, "loc": { "start": { "line": 1, @@ -116,8 +116,8 @@ }, { "type": "ImportDeclaration", - "start": 51, - "end": 86, + "start": 50, + "end": 85, "loc": { "start": { "line": 2, @@ -131,8 +131,8 @@ "specifiers": [ { "type": "ImportSpecifier", - "start": 60, - "end": 65, + "start": 59, + "end": 64, "loc": { "start": { "line": 2, @@ -145,8 +145,8 @@ }, "imported": { "type": "Identifier", - "start": 60, - "end": 65, + "start": 59, + "end": 64, "loc": { "start": { "line": 2, @@ -162,8 +162,8 @@ }, "local": { "type": "Identifier", - "start": 60, - "end": 65, + "start": 59, + "end": 64, "loc": { "start": { "line": 2, @@ -181,8 +181,8 @@ ], "source": { "type": "StringLiteral", - "start": 73, - "end": 86, + "start": 72, + "end": 85, "loc": { "start": { "line": 2, @@ -202,8 +202,8 @@ }, { "type": "Identifier", - "start": 90, - "end": 10227, + "start": 87, + "end": 9984, "loc": { "start": { "line": 4, @@ -216,8 +216,8 @@ }, "id": { "type": "Identifier", - "start": 96, - "end": 113, + "start": 93, + "end": 110, "loc": { "start": { "line": 4, @@ -234,8 +234,8 @@ "superClass": null, "body": { "type": "ClassBody", - "start": 114, - "end": 10227, + "start": 111, + "end": 9984, "loc": { "start": { "line": 4, @@ -249,8 +249,8 @@ "body": [ { "type": "ClassProperty", - "start": 162, - "end": 193, + "start": 155, + "end": 186, "loc": { "start": { "line": 8, @@ -265,8 +265,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 162, - "end": 169, + "start": 155, + "end": 162, "loc": { "start": { "line": 8, @@ -283,8 +283,8 @@ }, "value": { "type": "StringLiteral", - "start": 172, - "end": 192, + "start": 165, + "end": 185, "loc": { "start": { "line": 8, @@ -304,9 +304,9 @@ "leadingComments": [ { "type": "CommentBlock", - "value": "*\r\n\t * The version of the module.\r\n\t ", - "start": 118, - "end": 159, + "value": "*\n\t * The version of the module.\n\t ", + "start": 114, + "end": 153, "loc": { "start": { "line": 5, @@ -322,9 +322,9 @@ "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, + "value": "* The logger module this module uses to log errors / logs\n * @private\n * @type {Object}\n ", + "start": 191, + "end": 296, "loc": { "start": { "line": 9, @@ -340,8 +340,8 @@ }, { "type": "ClassProperty", - "start": 313, - "end": 335, + "start": 301, + "end": 323, "loc": { "start": { "line": 13, @@ -356,8 +356,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 313, - "end": 319, + "start": 301, + "end": 307, "loc": { "start": { "line": 13, @@ -374,8 +374,8 @@ }, "value": { "type": "NewExpression", - "start": 322, - "end": 334, + "start": 310, + "end": 322, "loc": { "start": { "line": 13, @@ -388,8 +388,8 @@ }, "callee": { "type": "Identifier", - "start": 326, - "end": 332, + "start": 314, + "end": 320, "loc": { "start": { "line": 13, @@ -408,9 +408,9 @@ "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, + "value": "* The logger module this module uses to log errors / logs\n * @private\n * @type {Object}\n ", + "start": 191, + "end": 296, "loc": { "start": { "line": 9, @@ -426,9 +426,9 @@ "trailingComments": [ { "type": "CommentBlock", - "value": "*\r\n * The layer class.\r\n * @type {Layer}\r\n ", - "start": 341, - "end": 400, + "value": "*\n * The layer class.\n * @type {Layer}\n ", + "start": 328, + "end": 384, "loc": { "start": { "line": 14, @@ -444,8 +444,8 @@ }, { "type": "ClassProperty", - "start": 406, - "end": 420, + "start": 389, + "end": 403, "loc": { "start": { "line": 18, @@ -460,8 +460,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 406, - "end": 411, + "start": 389, + "end": 394, "loc": { "start": { "line": 18, @@ -478,8 +478,8 @@ }, "value": { "type": "Identifier", - "start": 414, - "end": 419, + "start": 397, + "end": 402, "loc": { "start": { "line": 18, @@ -496,9 +496,9 @@ "leadingComments": [ { "type": "CommentBlock", - "value": "*\r\n * The layer class.\r\n * @type {Layer}\r\n ", - "start": 341, - "end": 400, + "value": "*\n * The layer class.\n * @type {Layer}\n ", + "start": 328, + "end": 384, "loc": { "start": { "line": 14, @@ -514,9 +514,9 @@ "trailingComments": [ { "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, + "value": "*\n * An set of instances that use the parallax system.\n * @private\n * @type {Set}\n ", + "start": 408, + "end": 511, "loc": { "start": { "line": 19, @@ -532,8 +532,8 @@ }, { "type": "ClassProperty", - "start": 539, - "end": 561, + "start": 516, + "end": 538, "loc": { "start": { "line": 24, @@ -548,8 +548,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 539, - "end": 548, + "start": 516, + "end": 525, "loc": { "start": { "line": 24, @@ -566,8 +566,8 @@ }, "value": { "type": "NewExpression", - "start": 551, - "end": 560, + "start": 528, + "end": 537, "loc": { "start": { "line": 24, @@ -580,8 +580,8 @@ }, "callee": { "type": "Identifier", - "start": 555, - "end": 558, + "start": 532, + "end": 535, "loc": { "start": { "line": 24, @@ -600,9 +600,9 @@ "leadingComments": [ { "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, + "value": "*\n * An set of instances that use the parallax system.\n * @private\n * @type {Set}\n ", + "start": 408, + "end": 511, "loc": { "start": { "line": 19, @@ -618,9 +618,9 @@ "trailingComments": [ { "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, + "value": "*\n * Weakmap to store info on instances used in this module.\n * @private\n * @type {WeakMap}\n ", + "start": 543, + "end": 656, "loc": { "start": { "line": 25, @@ -636,8 +636,8 @@ }, { "type": "ClassProperty", - "start": 690, - "end": 722, + "start": 661, + "end": 693, "loc": { "start": { "line": 30, @@ -652,8 +652,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 690, - "end": 705, + "start": 661, + "end": 676, "loc": { "start": { "line": 30, @@ -670,8 +670,8 @@ }, "value": { "type": "NewExpression", - "start": 708, - "end": 721, + "start": 679, + "end": 692, "loc": { "start": { "line": 30, @@ -684,8 +684,8 @@ }, "callee": { "type": "Identifier", - "start": 712, - "end": 719, + "start": 683, + "end": 690, "loc": { "start": { "line": 30, @@ -704,9 +704,9 @@ "leadingComments": [ { "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, + "value": "*\n * Weakmap to store info on instances used in this module.\n * @private\n * @type {WeakMap}\n ", + "start": 543, + "end": 656, "loc": { "start": { "line": 25, @@ -722,9 +722,9 @@ "trailingComments": [ { "type": "CommentBlock", - "value": "*\r\n * The last position of the camera.\r\n * @private\r\n * @type {Object}\r\n ", - "start": 728, - "end": 821, + "value": "*\n * The last position of the camera.\n * @private\n * @type {Object}\n ", + "start": 698, + "end": 787, "loc": { "start": { "line": 31, @@ -740,8 +740,8 @@ }, { "type": "ClassProperty", - "start": 827, - "end": 878, + "start": 792, + "end": 840, "loc": { "start": { "line": 36, @@ -756,8 +756,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 827, - "end": 837, + "start": 792, + "end": 802, "loc": { "start": { "line": 36, @@ -774,8 +774,8 @@ }, "value": { "type": "ObjectExpression", - "start": 840, - "end": 878, + "start": 805, + "end": 840, "loc": { "start": { "line": 36, @@ -789,8 +789,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 852, - "end": 856, + "start": 816, + "end": 820, "loc": { "start": { "line": 37, @@ -806,8 +806,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 852, - "end": 853, + "start": 816, + "end": 817, "loc": { "start": { "line": 37, @@ -823,8 +823,8 @@ }, "value": { "type": "NumericLiteral", - "start": 855, - "end": 856, + "start": 819, + "end": 820, "loc": { "start": { "line": 37, @@ -844,8 +844,8 @@ }, { "type": "ObjectProperty", - "start": 867, - "end": 871, + "start": 830, + "end": 834, "loc": { "start": { "line": 38, @@ -861,8 +861,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 867, - "end": 868, + "start": 830, + "end": 831, "loc": { "start": { "line": 38, @@ -878,8 +878,8 @@ }, "value": { "type": "NumericLiteral", - "start": 870, - "end": 871, + "start": 833, + "end": 834, "loc": { "start": { "line": 38, @@ -899,9 +899,9 @@ "trailingComments": [ { "type": "CommentBlock", - "value": "*\r\n * @private\r\n ", - "start": 884, - "end": 913, + "value": "*\n * @private\n ", + "start": 845, + "end": 872, "loc": { "start": { "line": 40, @@ -921,9 +921,9 @@ "leadingComments": [ { "type": "CommentBlock", - "value": "*\r\n * The last position of the camera.\r\n * @private\r\n * @type {Object}\r\n ", - "start": 728, - "end": 821, + "value": "*\n * The last position of the camera.\n * @private\n * @type {Object}\n ", + "start": 698, + "end": 787, "loc": { "start": { "line": 31, @@ -939,9 +939,9 @@ "trailingComments": [ { "type": "CommentBlock", - "value": "*\r\n * @private\r\n ", - "start": 884, - "end": 913, + "value": "*\n * @private\n ", + "start": 845, + "end": 872, "loc": { "start": { "line": 40, @@ -957,8 +957,8 @@ }, { "type": "ClassMethod", - "start": 916, - "end": 1000, + "start": 874, + "end": 956, "loc": { "start": { "line": 43, @@ -973,8 +973,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 916, - "end": 927, + "start": 874, + "end": 885, "loc": { "start": { "line": 43, @@ -996,8 +996,8 @@ "params": [], "body": { "type": "BlockStatement", - "start": 930, - "end": 1000, + "start": 888, + "end": 956, "loc": { "start": { "line": 43, @@ -1011,8 +1011,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 941, - "end": 996, + "start": 898, + "end": 953, "loc": { "start": { "line": 44, @@ -1025,8 +1025,8 @@ }, "expression": { "type": "CallExpression", - "start": 941, - "end": 995, + "start": 898, + "end": 952, "loc": { "start": { "line": 44, @@ -1039,8 +1039,8 @@ }, "callee": { "type": "MemberExpression", - "start": 941, - "end": 965, + "start": 898, + "end": 922, "loc": { "start": { "line": 44, @@ -1053,8 +1053,8 @@ }, "object": { "type": "MemberExpression", - "start": 941, - "end": 952, + "start": 898, + "end": 909, "loc": { "start": { "line": 44, @@ -1067,8 +1067,8 @@ }, "object": { "type": "ThisExpression", - "start": 941, - "end": 945, + "start": 898, + "end": 902, "loc": { "start": { "line": 44, @@ -1082,8 +1082,8 @@ }, "property": { "type": "Identifier", - "start": 946, - "end": 952, + "start": 903, + "end": 909, "loc": { "start": { "line": 44, @@ -1101,8 +1101,8 @@ }, "property": { "type": "Identifier", - "start": 953, - "end": 965, + "start": 910, + "end": 922, "loc": { "start": { "line": 44, @@ -1121,8 +1121,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 966, - "end": 983, + "start": 923, + "end": 940, "loc": { "start": { "line": 44, @@ -1141,8 +1141,8 @@ }, { "type": "StringLiteral", - "start": 985, - "end": 994, + "start": 942, + "end": 951, "loc": { "start": { "line": 44, @@ -1169,9 +1169,9 @@ "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, + "value": "*\n * Adds an instance to the parallax system.\n * Call this first and then add your instance to the map.\n * @param {Object} pInstance - The instance to add to the parallax system.\n * @param {Object} pConfig - The parallax info that tells this module how to control this instance.\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.\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.\n * @prop {boolean} pConfig.loop - Whether this instance will loop endlessly.\n * @param {number} [pX] - The x position this instance will start at.\n * @param {number} [pY] - The y position this instance will start at.\n * @param {string} [pMap] - The map this instance will start at.\n * \n * ## The following is how the speed of the parallax multipliers are factored in. \n (x | y) < 1 = faster behind the camera eg: (-> Player goes this way = Instance goes this way <-) \n (x | y) > 1 faster against the camera eg: (-> Player goes this way = Instance goes this way ->) \n (x | y) = 0 = static to the camera eg: (-> Player goes this way = Instance does nothing, and moves with the camera) \n (x | y) = 1 = moves with the camera eg: (-> Player goes this way = Instance goes this way -> at position of camera) \n ", + "start": 961, + "end": 2439, "loc": { "start": { "line": 46, @@ -1187,8 +1187,8 @@ }, { "type": "ClassMethod", - "start": 2507, - "end": 3495, + "start": 2444, + "end": 3411, "loc": { "start": { "line": 64, @@ -1203,8 +1203,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2507, - "end": 2510, + "start": 2444, + "end": 2447, "loc": { "start": { "line": 64, @@ -1227,8 +1227,8 @@ "params": [ { "type": "Identifier", - "start": 2511, - "end": 2520, + "start": 2448, + "end": 2457, "loc": { "start": { "line": 64, @@ -1244,8 +1244,8 @@ }, { "type": "Identifier", - "start": 2522, - "end": 2529, + "start": 2459, + "end": 2466, "loc": { "start": { "line": 64, @@ -1261,8 +1261,8 @@ }, { "type": "Identifier", - "start": 2531, - "end": 2533, + "start": 2468, + "end": 2470, "loc": { "start": { "line": 64, @@ -1278,8 +1278,8 @@ }, { "type": "Identifier", - "start": 2535, - "end": 2537, + "start": 2472, + "end": 2474, "loc": { "start": { "line": 64, @@ -1295,8 +1295,8 @@ }, { "type": "Identifier", - "start": 2539, - "end": 2543, + "start": 2476, + "end": 2480, "loc": { "start": { "line": 64, @@ -1313,8 +1313,8 @@ ], "body": { "type": "BlockStatement", - "start": 2545, - "end": 3495, + "start": 2482, + "end": 3411, "loc": { "start": { "line": 64, @@ -1328,8 +1328,8 @@ "body": [ { "type": "IfStatement", - "start": 2556, - "end": 2687, + "start": 2492, + "end": 2620, "loc": { "start": { "line": 65, @@ -1342,8 +1342,8 @@ }, "test": { "type": "UnaryExpression", - "start": 2560, - "end": 2570, + "start": 2496, + "end": 2506, "loc": { "start": { "line": 65, @@ -1358,8 +1358,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 2561, - "end": 2570, + "start": 2497, + "end": 2506, "loc": { "start": { "line": 65, @@ -1379,8 +1379,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 2572, - "end": 2687, + "start": 2508, + "end": 2620, "loc": { "start": { "line": 65, @@ -1394,8 +1394,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 2587, - "end": 2655, + "start": 2522, + "end": 2590, "loc": { "start": { "line": 66, @@ -1408,8 +1408,8 @@ }, "expression": { "type": "CallExpression", - "start": 2587, - "end": 2654, + "start": 2522, + "end": 2589, "loc": { "start": { "line": 66, @@ -1422,8 +1422,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2587, - "end": 2630, + "start": 2522, + "end": 2565, "loc": { "start": { "line": 66, @@ -1436,8 +1436,8 @@ }, "object": { "type": "CallExpression", - "start": 2587, - "end": 2624, + "start": 2522, + "end": 2559, "loc": { "start": { "line": 66, @@ -1450,8 +1450,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2587, - "end": 2605, + "start": 2522, + "end": 2540, "loc": { "start": { "line": 66, @@ -1464,8 +1464,8 @@ }, "object": { "type": "MemberExpression", - "start": 2587, - "end": 2598, + "start": 2522, + "end": 2533, "loc": { "start": { "line": 66, @@ -1478,8 +1478,8 @@ }, "object": { "type": "ThisExpression", - "start": 2587, - "end": 2591, + "start": 2522, + "end": 2526, "loc": { "start": { "line": 66, @@ -1493,8 +1493,8 @@ }, "property": { "type": "Identifier", - "start": 2592, - "end": 2598, + "start": 2527, + "end": 2533, "loc": { "start": { "line": 66, @@ -1512,8 +1512,8 @@ }, "property": { "type": "Identifier", - "start": 2599, - "end": 2605, + "start": 2534, + "end": 2540, "loc": { "start": { "line": 66, @@ -1532,8 +1532,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 2606, - "end": 2623, + "start": 2541, + "end": 2558, "loc": { "start": { "line": 66, @@ -1554,8 +1554,8 @@ }, "property": { "type": "Identifier", - "start": 2625, - "end": 2630, + "start": 2560, + "end": 2565, "loc": { "start": { "line": 66, @@ -1574,8 +1574,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 2631, - "end": 2653, + "start": 2566, + "end": 2588, "loc": { "start": { "line": 66, @@ -1597,8 +1597,8 @@ }, { "type": "ReturnStatement", - "start": 2669, - "end": 2676, + "start": 2603, + "end": 2610, "loc": { "start": { "line": 67, @@ -1618,8 +1618,8 @@ }, { "type": "IfStatement", - "start": 2699, - "end": 3488, + "start": 2630, + "end": 3405, "loc": { "start": { "line": 70, @@ -1632,8 +1632,8 @@ }, "test": { "type": "BinaryExpression", - "start": 2703, - "end": 2728, + "start": 2634, + "end": 2659, "loc": { "start": { "line": 70, @@ -1646,8 +1646,8 @@ }, "left": { "type": "Identifier", - "start": 2703, - "end": 2710, + "start": 2634, + "end": 2641, "loc": { "start": { "line": 70, @@ -1664,8 +1664,8 @@ "operator": "instanceof", "right": { "type": "Identifier", - "start": 2722, - "end": 2728, + "start": 2653, + "end": 2659, "loc": { "start": { "line": 70, @@ -1682,8 +1682,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 2730, - "end": 3368, + "start": 2661, + "end": 3287, "loc": { "start": { "line": 70, @@ -1697,8 +1697,8 @@ "body": [ { "type": "IfStatement", - "start": 2745, - "end": 3357, + "start": 2675, + "end": 3277, "loc": { "start": { "line": 71, @@ -1711,8 +1711,8 @@ }, "test": { "type": "UnaryExpression", - "start": 2749, - "end": 2779, + "start": 2679, + "end": 2709, "loc": { "start": { "line": 71, @@ -1727,8 +1727,8 @@ "prefix": true, "argument": { "type": "CallExpression", - "start": 2750, - "end": 2779, + "start": 2680, + "end": 2709, "loc": { "start": { "line": 71, @@ -1741,8 +1741,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2750, - "end": 2768, + "start": 2680, + "end": 2698, "loc": { "start": { "line": 71, @@ -1755,8 +1755,8 @@ }, "object": { "type": "MemberExpression", - "start": 2750, - "end": 2764, + "start": 2680, + "end": 2694, "loc": { "start": { "line": 71, @@ -1769,8 +1769,8 @@ }, "object": { "type": "ThisExpression", - "start": 2750, - "end": 2754, + "start": 2680, + "end": 2684, "loc": { "start": { "line": 71, @@ -1784,8 +1784,8 @@ }, "property": { "type": "Identifier", - "start": 2755, - "end": 2764, + "start": 2685, + "end": 2694, "loc": { "start": { "line": 71, @@ -1803,8 +1803,8 @@ }, "property": { "type": "Identifier", - "start": 2765, - "end": 2768, + "start": 2695, + "end": 2698, "loc": { "start": { "line": 71, @@ -1823,8 +1823,8 @@ "arguments": [ { "type": "Identifier", - "start": 2769, - "end": 2778, + "start": 2699, + "end": 2708, "loc": { "start": { "line": 71, @@ -1846,8 +1846,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 2781, - "end": 3357, + "start": 2711, + "end": 3277, "loc": { "start": { "line": 71, @@ -1861,8 +1861,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 2800, - "end": 2852, + "start": 2729, + "end": 2781, "loc": { "start": { "line": 72, @@ -1876,8 +1876,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 2806, - "end": 2851, + "start": 2735, + "end": 2780, "loc": { "start": { "line": 72, @@ -1890,8 +1890,8 @@ }, "id": { "type": "Identifier", - "start": 2806, - "end": 2807, + "start": 2735, + "end": 2736, "loc": { "start": { "line": 72, @@ -1907,8 +1907,8 @@ }, "init": { "type": "ConditionalExpression", - "start": 2810, - "end": 2851, + "start": 2739, + "end": 2780, "loc": { "start": { "line": 72, @@ -1921,8 +1921,8 @@ }, "test": { "type": "BinaryExpression", - "start": 2810, - "end": 2832, + "start": 2739, + "end": 2761, "loc": { "start": { "line": 72, @@ -1935,8 +1935,8 @@ }, "left": { "type": "UnaryExpression", - "start": 2810, - "end": 2819, + "start": 2739, + "end": 2748, "loc": { "start": { "line": 72, @@ -1951,8 +1951,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 2817, - "end": 2819, + "start": 2746, + "end": 2748, "loc": { "start": { "line": 72, @@ -1973,8 +1973,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 2824, - "end": 2832, + "start": 2753, + "end": 2761, "loc": { "start": { "line": 72, @@ -1994,8 +1994,8 @@ }, "consequent": { "type": "Identifier", - "start": 2835, - "end": 2837, + "start": 2764, + "end": 2766, "loc": { "start": { "line": 72, @@ -2011,8 +2011,8 @@ }, "alternate": { "type": "MemberExpression", - "start": 2840, - "end": 2851, + "start": 2769, + "end": 2780, "loc": { "start": { "line": 72, @@ -2025,8 +2025,8 @@ }, "object": { "type": "Identifier", - "start": 2840, - "end": 2849, + "start": 2769, + "end": 2778, "loc": { "start": { "line": 72, @@ -2042,8 +2042,8 @@ }, "property": { "type": "Identifier", - "start": 2850, - "end": 2851, + "start": 2779, + "end": 2780, "loc": { "start": { "line": 72, @@ -2066,8 +2066,8 @@ }, { "type": "VariableDeclaration", - "start": 2870, - "end": 2922, + "start": 2798, + "end": 2850, "loc": { "start": { "line": 73, @@ -2081,8 +2081,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 2876, - "end": 2921, + "start": 2804, + "end": 2849, "loc": { "start": { "line": 73, @@ -2095,8 +2095,8 @@ }, "id": { "type": "Identifier", - "start": 2876, - "end": 2877, + "start": 2804, + "end": 2805, "loc": { "start": { "line": 73, @@ -2112,8 +2112,8 @@ }, "init": { "type": "ConditionalExpression", - "start": 2880, - "end": 2921, + "start": 2808, + "end": 2849, "loc": { "start": { "line": 73, @@ -2126,8 +2126,8 @@ }, "test": { "type": "BinaryExpression", - "start": 2880, - "end": 2902, + "start": 2808, + "end": 2830, "loc": { "start": { "line": 73, @@ -2140,8 +2140,8 @@ }, "left": { "type": "UnaryExpression", - "start": 2880, - "end": 2889, + "start": 2808, + "end": 2817, "loc": { "start": { "line": 73, @@ -2156,8 +2156,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 2887, - "end": 2889, + "start": 2815, + "end": 2817, "loc": { "start": { "line": 73, @@ -2178,8 +2178,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 2894, - "end": 2902, + "start": 2822, + "end": 2830, "loc": { "start": { "line": 73, @@ -2199,8 +2199,8 @@ }, "consequent": { "type": "Identifier", - "start": 2905, - "end": 2907, + "start": 2833, + "end": 2835, "loc": { "start": { "line": 73, @@ -2216,8 +2216,8 @@ }, "alternate": { "type": "MemberExpression", - "start": 2910, - "end": 2921, + "start": 2838, + "end": 2849, "loc": { "start": { "line": 73, @@ -2230,8 +2230,8 @@ }, "object": { "type": "Identifier", - "start": 2910, - "end": 2919, + "start": 2838, + "end": 2847, "loc": { "start": { "line": 73, @@ -2247,8 +2247,8 @@ }, "property": { "type": "Identifier", - "start": 2920, - "end": 2921, + "start": 2848, + "end": 2849, "loc": { "start": { "line": 73, @@ -2271,8 +2271,8 @@ }, { "type": "VariableDeclaration", - "start": 2940, - "end": 3004, + "start": 2867, + "end": 2931, "loc": { "start": { "line": 74, @@ -2286,8 +2286,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 2946, - "end": 3003, + "start": 2873, + "end": 2930, "loc": { "start": { "line": 74, @@ -2300,8 +2300,8 @@ }, "id": { "type": "Identifier", - "start": 2946, - "end": 2949, + "start": 2873, + "end": 2876, "loc": { "start": { "line": 74, @@ -2317,8 +2317,8 @@ }, "init": { "type": "ConditionalExpression", - "start": 2952, - "end": 3003, + "start": 2879, + "end": 2930, "loc": { "start": { "line": 74, @@ -2331,8 +2331,8 @@ }, "test": { "type": "BinaryExpression", - "start": 2952, - "end": 2976, + "start": 2879, + "end": 2903, "loc": { "start": { "line": 74, @@ -2345,8 +2345,8 @@ }, "left": { "type": "UnaryExpression", - "start": 2952, - "end": 2963, + "start": 2879, + "end": 2890, "loc": { "start": { "line": 74, @@ -2361,8 +2361,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 2959, - "end": 2963, + "start": 2886, + "end": 2890, "loc": { "start": { "line": 74, @@ -2383,8 +2383,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 2968, - "end": 2976, + "start": 2895, + "end": 2903, "loc": { "start": { "line": 74, @@ -2404,8 +2404,8 @@ }, "consequent": { "type": "Identifier", - "start": 2979, - "end": 2983, + "start": 2906, + "end": 2910, "loc": { "start": { "line": 74, @@ -2421,8 +2421,8 @@ }, "alternate": { "type": "MemberExpression", - "start": 2986, - "end": 3003, + "start": 2913, + "end": 2930, "loc": { "start": { "line": 74, @@ -2435,8 +2435,8 @@ }, "object": { "type": "Identifier", - "start": 2986, - "end": 2995, + "start": 2913, + "end": 2922, "loc": { "start": { "line": 74, @@ -2452,8 +2452,8 @@ }, "property": { "type": "Identifier", - "start": 2996, - "end": 3003, + "start": 2923, + "end": 2930, "loc": { "start": { "line": 74, @@ -2477,8 +2477,8 @@ { "type": "CommentLine", "value": " Clone the parallax object", - "start": 3022, - "end": 3050, + "start": 2948, + "end": 2976, "loc": { "start": { "line": 75, @@ -2494,8 +2494,8 @@ }, { "type": "VariableDeclaration", - "start": 3068, - "end": 3104, + "start": 2993, + "end": 3029, "loc": { "start": { "line": 76, @@ -2509,8 +2509,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 3074, - "end": 3103, + "start": 2999, + "end": 3028, "loc": { "start": { "line": 76, @@ -2523,8 +2523,8 @@ }, "id": { "type": "Identifier", - "start": 3074, - "end": 3086, + "start": 2999, + "end": 3011, "loc": { "start": { "line": 76, @@ -2541,8 +2541,8 @@ }, "init": { "type": "ObjectExpression", - "start": 3089, - "end": 3103, + "start": 3014, + "end": 3028, "loc": { "start": { "line": 76, @@ -2556,8 +2556,8 @@ "properties": [ { "type": "SpreadProperty", - "start": 3091, - "end": 3101, + "start": 3016, + "end": 3026, "loc": { "start": { "line": 76, @@ -2570,8 +2570,8 @@ }, "argument": { "type": "Identifier", - "start": 3094, - "end": 3101, + "start": 3019, + "end": 3026, "loc": { "start": { "line": 76, @@ -2596,8 +2596,8 @@ { "type": "CommentLine", "value": " Clone the parallax object", - "start": 3022, - "end": 3050, + "start": 2948, + "end": 2976, "loc": { "start": { "line": 75, @@ -2613,8 +2613,8 @@ }, { "type": "ExpressionStatement", - "start": 3122, - "end": 3168, + "start": 3046, + "end": 3092, "loc": { "start": { "line": 77, @@ -2627,8 +2627,8 @@ }, "expression": { "type": "CallExpression", - "start": 3122, - "end": 3167, + "start": 3046, + "end": 3091, "loc": { "start": { "line": 77, @@ -2641,8 +2641,8 @@ }, "callee": { "type": "MemberExpression", - "start": 3122, - "end": 3131, + "start": 3046, + "end": 3055, "loc": { "start": { "line": 77, @@ -2655,8 +2655,8 @@ }, "object": { "type": "ThisExpression", - "start": 3122, - "end": 3126, + "start": 3046, + "end": 3050, "loc": { "start": { "line": 77, @@ -2670,8 +2670,8 @@ }, "property": { "type": "Identifier", - "start": 3127, - "end": 3131, + "start": 3051, + "end": 3055, "loc": { "start": { "line": 77, @@ -2690,8 +2690,8 @@ "arguments": [ { "type": "Identifier", - "start": 3132, - "end": 3141, + "start": 3056, + "end": 3065, "loc": { "start": { "line": 77, @@ -2707,8 +2707,8 @@ }, { "type": "Identifier", - "start": 3143, - "end": 3155, + "start": 3067, + "end": 3079, "loc": { "start": { "line": 77, @@ -2724,8 +2724,8 @@ }, { "type": "Identifier", - "start": 3157, - "end": 3158, + "start": 3081, + "end": 3082, "loc": { "start": { "line": 77, @@ -2741,8 +2741,8 @@ }, { "type": "Identifier", - "start": 3160, - "end": 3161, + "start": 3084, + "end": 3085, "loc": { "start": { "line": 77, @@ -2758,8 +2758,8 @@ }, { "type": "Identifier", - "start": 3163, - "end": 3166, + "start": 3087, + "end": 3090, "loc": { "start": { "line": 77, @@ -2779,8 +2779,8 @@ { "type": "CommentLine", "value": " Set the parallax info to the instance", - "start": 3186, - "end": 3226, + "start": 3109, + "end": 3149, "loc": { "start": { "line": 78, @@ -2796,8 +2796,8 @@ }, { "type": "ExpressionStatement", - "start": 3244, - "end": 3294, + "start": 3166, + "end": 3216, "loc": { "start": { "line": 79, @@ -2810,8 +2810,8 @@ }, "expression": { "type": "CallExpression", - "start": 3244, - "end": 3293, + "start": 3166, + "end": 3215, "loc": { "start": { "line": 79, @@ -2824,8 +2824,8 @@ }, "callee": { "type": "MemberExpression", - "start": 3244, - "end": 3268, + "start": 3166, + "end": 3190, "loc": { "start": { "line": 79, @@ -2838,8 +2838,8 @@ }, "object": { "type": "MemberExpression", - "start": 3244, - "end": 3264, + "start": 3166, + "end": 3186, "loc": { "start": { "line": 79, @@ -2852,8 +2852,8 @@ }, "object": { "type": "ThisExpression", - "start": 3244, - "end": 3248, + "start": 3166, + "end": 3170, "loc": { "start": { "line": 79, @@ -2868,8 +2868,8 @@ }, "property": { "type": "Identifier", - "start": 3249, - "end": 3264, + "start": 3171, + "end": 3186, "loc": { "start": { "line": 79, @@ -2888,8 +2888,8 @@ }, "property": { "type": "Identifier", - "start": 3265, - "end": 3268, + "start": 3187, + "end": 3190, "loc": { "start": { "line": 79, @@ -2909,8 +2909,8 @@ "arguments": [ { "type": "Identifier", - "start": 3269, - "end": 3278, + "start": 3191, + "end": 3200, "loc": { "start": { "line": 79, @@ -2926,8 +2926,8 @@ }, { "type": "Identifier", - "start": 3280, - "end": 3292, + "start": 3202, + "end": 3214, "loc": { "start": { "line": 79, @@ -2948,8 +2948,8 @@ { "type": "CommentLine", "value": " Set the parallax info to the instance", - "start": 3186, - "end": 3226, + "start": 3109, + "end": 3149, "loc": { "start": { "line": 78, @@ -2965,8 +2965,8 @@ }, { "type": "ExpressionStatement", - "start": 3312, - "end": 3342, + "start": 3233, + "end": 3263, "loc": { "start": { "line": 80, @@ -2979,8 +2979,8 @@ }, "expression": { "type": "CallExpression", - "start": 3312, - "end": 3341, + "start": 3233, + "end": 3262, "loc": { "start": { "line": 80, @@ -2993,8 +2993,8 @@ }, "callee": { "type": "MemberExpression", - "start": 3312, - "end": 3330, + "start": 3233, + "end": 3251, "loc": { "start": { "line": 80, @@ -3007,8 +3007,8 @@ }, "object": { "type": "MemberExpression", - "start": 3312, - "end": 3326, + "start": 3233, + "end": 3247, "loc": { "start": { "line": 80, @@ -3021,8 +3021,8 @@ }, "object": { "type": "ThisExpression", - "start": 3312, - "end": 3316, + "start": 3233, + "end": 3237, "loc": { "start": { "line": 80, @@ -3036,8 +3036,8 @@ }, "property": { "type": "Identifier", - "start": 3317, - "end": 3326, + "start": 3238, + "end": 3247, "loc": { "start": { "line": 80, @@ -3055,8 +3055,8 @@ }, "property": { "type": "Identifier", - "start": 3327, - "end": 3330, + "start": 3248, + "end": 3251, "loc": { "start": { "line": 80, @@ -3075,8 +3075,8 @@ "arguments": [ { "type": "Identifier", - "start": 3331, - "end": 3340, + "start": 3252, + "end": 3261, "loc": { "start": { "line": 80, @@ -3103,8 +3103,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 3374, - "end": 3488, + "start": 3293, + "end": 3405, "loc": { "start": { "line": 82, @@ -3118,8 +3118,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 3389, - "end": 3477, + "start": 3307, + "end": 3395, "loc": { "start": { "line": 83, @@ -3132,8 +3132,8 @@ }, "expression": { "type": "CallExpression", - "start": 3389, - "end": 3476, + "start": 3307, + "end": 3394, "loc": { "start": { "line": 83, @@ -3146,8 +3146,8 @@ }, "callee": { "type": "MemberExpression", - "start": 3389, - "end": 3432, + "start": 3307, + "end": 3350, "loc": { "start": { "line": 83, @@ -3160,8 +3160,8 @@ }, "object": { "type": "CallExpression", - "start": 3389, - "end": 3426, + "start": 3307, + "end": 3344, "loc": { "start": { "line": 83, @@ -3174,8 +3174,8 @@ }, "callee": { "type": "MemberExpression", - "start": 3389, - "end": 3407, + "start": 3307, + "end": 3325, "loc": { "start": { "line": 83, @@ -3188,8 +3188,8 @@ }, "object": { "type": "MemberExpression", - "start": 3389, - "end": 3400, + "start": 3307, + "end": 3318, "loc": { "start": { "line": 83, @@ -3202,8 +3202,8 @@ }, "object": { "type": "ThisExpression", - "start": 3389, - "end": 3393, + "start": 3307, + "end": 3311, "loc": { "start": { "line": 83, @@ -3217,8 +3217,8 @@ }, "property": { "type": "Identifier", - "start": 3394, - "end": 3400, + "start": 3312, + "end": 3318, "loc": { "start": { "line": 83, @@ -3236,8 +3236,8 @@ }, "property": { "type": "Identifier", - "start": 3401, - "end": 3407, + "start": 3319, + "end": 3325, "loc": { "start": { "line": 83, @@ -3256,8 +3256,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 3408, - "end": 3425, + "start": 3326, + "end": 3343, "loc": { "start": { "line": 83, @@ -3278,8 +3278,8 @@ }, "property": { "type": "Identifier", - "start": 3427, - "end": 3432, + "start": 3345, + "end": 3350, "loc": { "start": { "line": 83, @@ -3298,8 +3298,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 3433, - "end": 3475, + "start": 3351, + "end": 3393, "loc": { "start": { "line": 83, @@ -3330,9 +3330,9 @@ "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, + "value": "*\n * Adds an instance to the parallax system.\n * Call this first and then add your instance to the map.\n * @param {Object} pInstance - The instance to add to the parallax system.\n * @param {Object} pConfig - The parallax info that tells this module how to control this instance.\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.\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.\n * @prop {boolean} pConfig.loop - Whether this instance will loop endlessly.\n * @param {number} [pX] - The x position this instance will start at.\n * @param {number} [pY] - The y position this instance will start at.\n * @param {string} [pMap] - The map this instance will start at.\n * \n * ## The following is how the speed of the parallax multipliers are factored in. \n (x | y) < 1 = faster behind the camera eg: (-> Player goes this way = Instance goes this way <-) \n (x | y) > 1 faster against the camera eg: (-> Player goes this way = Instance goes this way ->) \n (x | y) = 0 = static to the camera eg: (-> Player goes this way = Instance does nothing, and moves with the camera) \n (x | y) = 1 = moves with the camera eg: (-> Player goes this way = Instance goes this way -> at position of camera) \n ", + "start": 961, + "end": 2439, "loc": { "start": { "line": 46, @@ -3348,9 +3348,9 @@ "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, + "value": "*\n * Initializes this instance.\n * @param {Object} pInstance - The instance to initialize.\n * @param {Object} pConfig - The parallax info that tells this module how to control this instance.\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.\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.\n * @prop {boolean} pConfig.loop - Whether this instance will loop endlessly.\n * @param {number} pX - The x position this parallax will start at.\n * @param {number} pY - The y position this parallax will start at.\n * @param {string} pMap - The map this instance will start at.\n * @private\n ", + "start": 3416, + "end": 4262, "loc": { "start": { "line": 86, @@ -3366,8 +3366,8 @@ }, { "type": "ClassMethod", - "start": 4364, - "end": 6840, + "start": 4267, + "end": 6685, "loc": { "start": { "line": 98, @@ -3382,8 +3382,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 4364, - "end": 4368, + "start": 4267, + "end": 4271, "loc": { "start": { "line": 98, @@ -3406,8 +3406,8 @@ "params": [ { "type": "Identifier", - "start": 4369, - "end": 4378, + "start": 4272, + "end": 4281, "loc": { "start": { "line": 98, @@ -3423,8 +3423,8 @@ }, { "type": "Identifier", - "start": 4380, - "end": 4387, + "start": 4283, + "end": 4290, "loc": { "start": { "line": 98, @@ -3440,8 +3440,8 @@ }, { "type": "Identifier", - "start": 4389, - "end": 4391, + "start": 4292, + "end": 4294, "loc": { "start": { "line": 98, @@ -3457,8 +3457,8 @@ }, { "type": "Identifier", - "start": 4393, - "end": 4395, + "start": 4296, + "end": 4298, "loc": { "start": { "line": 98, @@ -3474,8 +3474,8 @@ }, { "type": "Identifier", - "start": 4397, - "end": 4401, + "start": 4300, + "end": 4304, "loc": { "start": { "line": 98, @@ -3492,8 +3492,8 @@ ], "body": { "type": "BlockStatement", - "start": 4403, - "end": 6840, + "start": 4306, + "end": 6685, "loc": { "start": { "line": 98, @@ -3507,8 +3507,8 @@ "body": [ { "type": "IfStatement", - "start": 4414, - "end": 4606, + "start": 4316, + "end": 4505, "loc": { "start": { "line": 99, @@ -3521,8 +3521,8 @@ }, "test": { "type": "UnaryExpression", - "start": 4418, - "end": 4423, + "start": 4320, + "end": 4325, "loc": { "start": { "line": 99, @@ -3537,8 +3537,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 4419, - "end": 4423, + "start": 4321, + "end": 4325, "loc": { "start": { "line": 99, @@ -3558,8 +3558,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 4425, - "end": 4606, + "start": 4327, + "end": 4505, "loc": { "start": { "line": 99, @@ -3573,8 +3573,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 4440, - "end": 4574, + "start": 4341, + "end": 4475, "loc": { "start": { "line": 100, @@ -3587,8 +3587,8 @@ }, "expression": { "type": "CallExpression", - "start": 4440, - "end": 4573, + "start": 4341, + "end": 4474, "loc": { "start": { "line": 100, @@ -3601,8 +3601,8 @@ }, "callee": { "type": "MemberExpression", - "start": 4440, - "end": 4483, + "start": 4341, + "end": 4384, "loc": { "start": { "line": 100, @@ -3615,8 +3615,8 @@ }, "object": { "type": "CallExpression", - "start": 4440, - "end": 4477, + "start": 4341, + "end": 4378, "loc": { "start": { "line": 100, @@ -3629,8 +3629,8 @@ }, "callee": { "type": "MemberExpression", - "start": 4440, - "end": 4458, + "start": 4341, + "end": 4359, "loc": { "start": { "line": 100, @@ -3643,8 +3643,8 @@ }, "object": { "type": "MemberExpression", - "start": 4440, - "end": 4451, + "start": 4341, + "end": 4352, "loc": { "start": { "line": 100, @@ -3657,8 +3657,8 @@ }, "object": { "type": "ThisExpression", - "start": 4440, - "end": 4444, + "start": 4341, + "end": 4345, "loc": { "start": { "line": 100, @@ -3672,8 +3672,8 @@ }, "property": { "type": "Identifier", - "start": 4445, - "end": 4451, + "start": 4346, + "end": 4352, "loc": { "start": { "line": 100, @@ -3691,8 +3691,8 @@ }, "property": { "type": "Identifier", - "start": 4452, - "end": 4458, + "start": 4353, + "end": 4359, "loc": { "start": { "line": 100, @@ -3711,8 +3711,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 4459, - "end": 4476, + "start": 4360, + "end": 4377, "loc": { "start": { "line": 100, @@ -3733,8 +3733,8 @@ }, "property": { "type": "Identifier", - "start": 4478, - "end": 4483, + "start": 4379, + "end": 4384, "loc": { "start": { "line": 100, @@ -3753,8 +3753,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 4484, - "end": 4572, + "start": 4385, + "end": 4473, "loc": { "start": { "line": 100, @@ -3776,8 +3776,8 @@ }, { "type": "ReturnStatement", - "start": 4588, - "end": 4595, + "start": 4488, + "end": 4495, "loc": { "start": { "line": 101, @@ -3799,8 +3799,8 @@ { "type": "CommentLine", "value": " If this instance is set to loop, then it needs a left and right clone", - "start": 4618, - "end": 4690, + "start": 4515, + "end": 4587, "loc": { "start": { "line": 104, @@ -3816,8 +3816,8 @@ }, { "type": "IfStatement", - "start": 4700, - "end": 6504, + "start": 4596, + "end": 6360, "loc": { "start": { "line": 105, @@ -3830,8 +3830,8 @@ }, "test": { "type": "MemberExpression", - "start": 4704, - "end": 4716, + "start": 4600, + "end": 4612, "loc": { "start": { "line": 105, @@ -3844,8 +3844,8 @@ }, "object": { "type": "Identifier", - "start": 4704, - "end": 4711, + "start": 4600, + "end": 4607, "loc": { "start": { "line": 105, @@ -3862,8 +3862,8 @@ }, "property": { "type": "Identifier", - "start": 4712, - "end": 4716, + "start": 4608, + "end": 4612, "loc": { "start": { "line": 105, @@ -3882,8 +3882,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 4718, - "end": 6504, + "start": 4614, + "end": 6360, "loc": { "start": { "line": 105, @@ -3897,8 +3897,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 4779, - "end": 4818, + "start": 4673, + "end": 4712, "loc": { "start": { "line": 107, @@ -3912,8 +3912,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 4785, - "end": 4817, + "start": 4679, + "end": 4711, "loc": { "start": { "line": 107, @@ -3926,8 +3926,8 @@ }, "id": { "type": "Identifier", - "start": 4785, - "end": 4789, + "start": 4679, + "end": 4683, "loc": { "start": { "line": 107, @@ -3944,8 +3944,8 @@ }, "init": { "type": "CallExpression", - "start": 4792, - "end": 4817, + "start": 4686, + "end": 4711, "loc": { "start": { "line": 107, @@ -3958,8 +3958,8 @@ }, "callee": { "type": "MemberExpression", - "start": 4792, - "end": 4804, + "start": 4686, + "end": 4698, "loc": { "start": { "line": 107, @@ -3972,8 +3972,8 @@ }, "object": { "type": "Identifier", - "start": 4792, - "end": 4796, + "start": 4686, + "end": 4690, "loc": { "start": { "line": 107, @@ -3989,8 +3989,8 @@ }, "property": { "type": "Identifier", - "start": 4797, - "end": 4804, + "start": 4691, + "end": 4698, "loc": { "start": { "line": 107, @@ -4009,8 +4009,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 4805, - "end": 4816, + "start": 4699, + "end": 4710, "loc": { "start": { "line": 107, @@ -4037,8 +4037,8 @@ { "type": "CommentLine", "value": " Create a left and right clone", - "start": 4733, - "end": 4765, + "start": 4628, + "end": 4660, "loc": { "start": { "line": 106, @@ -4054,8 +4054,8 @@ }, { "type": "VariableDeclaration", - "start": 4832, - "end": 4872, + "start": 4725, + "end": 4765, "loc": { "start": { "line": 108, @@ -4069,8 +4069,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 4838, - "end": 4871, + "start": 4731, + "end": 4764, "loc": { "start": { "line": 108, @@ -4083,8 +4083,8 @@ }, "id": { "type": "Identifier", - "start": 4838, - "end": 4843, + "start": 4731, + "end": 4736, "loc": { "start": { "line": 108, @@ -4100,8 +4100,8 @@ }, "init": { "type": "CallExpression", - "start": 4846, - "end": 4871, + "start": 4739, + "end": 4764, "loc": { "start": { "line": 108, @@ -4114,8 +4114,8 @@ }, "callee": { "type": "MemberExpression", - "start": 4846, - "end": 4858, + "start": 4739, + "end": 4751, "loc": { "start": { "line": 108, @@ -4128,8 +4128,8 @@ }, "object": { "type": "Identifier", - "start": 4846, - "end": 4850, + "start": 4739, + "end": 4743, "loc": { "start": { "line": 108, @@ -4145,8 +4145,8 @@ }, "property": { "type": "Identifier", - "start": 4851, - "end": 4858, + "start": 4744, + "end": 4751, "loc": { "start": { "line": 108, @@ -4165,8 +4165,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 4859, - "end": 4870, + "start": 4752, + "end": 4763, "loc": { "start": { "line": 108, @@ -4192,8 +4192,8 @@ { "type": "CommentLine", "value": " Make the left and right clone particle look the same as the initial instance", - "start": 4888, - "end": 4967, + "start": 4779, + "end": 4858, "loc": { "start": { "line": 110, @@ -4209,8 +4209,8 @@ }, { "type": "ExpressionStatement", - "start": 4981, - "end": 5011, + "start": 4871, + "end": 4901, "loc": { "start": { "line": 111, @@ -4223,8 +4223,8 @@ }, "expression": { "type": "CallExpression", - "start": 4981, - "end": 5010, + "start": 4871, + "end": 4900, "loc": { "start": { "line": 111, @@ -4237,8 +4237,8 @@ }, "callee": { "type": "MemberExpression", - "start": 4981, - "end": 4999, + "start": 4871, + "end": 4889, "loc": { "start": { "line": 111, @@ -4251,8 +4251,8 @@ }, "object": { "type": "Identifier", - "start": 4981, - "end": 4985, + "start": 4871, + "end": 4875, "loc": { "start": { "line": 111, @@ -4269,8 +4269,8 @@ }, "property": { "type": "Identifier", - "start": 4986, - "end": 4999, + "start": 4876, + "end": 4889, "loc": { "start": { "line": 111, @@ -4290,8 +4290,8 @@ "arguments": [ { "type": "Identifier", - "start": 5000, - "end": 5009, + "start": 4890, + "end": 4899, "loc": { "start": { "line": 111, @@ -4312,8 +4312,8 @@ { "type": "CommentLine", "value": " Make the left and right clone particle look the same as the initial instance", - "start": 4888, - "end": 4967, + "start": 4779, + "end": 4858, "loc": { "start": { "line": 110, @@ -4329,8 +4329,8 @@ }, { "type": "ExpressionStatement", - "start": 5025, - "end": 5056, + "start": 4914, + "end": 4945, "loc": { "start": { "line": 112, @@ -4343,8 +4343,8 @@ }, "expression": { "type": "CallExpression", - "start": 5025, - "end": 5055, + "start": 4914, + "end": 4944, "loc": { "start": { "line": 112, @@ -4357,8 +4357,8 @@ }, "callee": { "type": "MemberExpression", - "start": 5025, - "end": 5044, + "start": 4914, + "end": 4933, "loc": { "start": { "line": 112, @@ -4371,8 +4371,8 @@ }, "object": { "type": "Identifier", - "start": 5025, - "end": 5030, + "start": 4914, + "end": 4919, "loc": { "start": { "line": 112, @@ -4388,8 +4388,8 @@ }, "property": { "type": "Identifier", - "start": 5031, - "end": 5044, + "start": 4920, + "end": 4933, "loc": { "start": { "line": 112, @@ -4408,8 +4408,8 @@ "arguments": [ { "type": "Identifier", - "start": 5045, - "end": 5054, + "start": 4934, + "end": 4943, "loc": { "start": { "line": 112, @@ -4429,8 +4429,8 @@ { "type": "CommentLine", "value": " Force the renderer to render it, as if its placed offscreen its not rendered.", - "start": 5072, - "end": 5152, + "start": 4959, + "end": 5039, "loc": { "start": { "line": 114, @@ -4446,8 +4446,8 @@ }, { "type": "ExpressionStatement", - "start": 5166, - "end": 5192, + "start": 5052, + "end": 5078, "loc": { "start": { "line": 115, @@ -4460,8 +4460,8 @@ }, "expression": { "type": "CallExpression", - "start": 5166, - "end": 5191, + "start": 5052, + "end": 5077, "loc": { "start": { "line": 115, @@ -4474,8 +4474,8 @@ }, "callee": { "type": "MemberExpression", - "start": 5166, - "end": 5177, + "start": 5052, + "end": 5063, "loc": { "start": { "line": 115, @@ -4488,8 +4488,8 @@ }, "object": { "type": "Identifier", - "start": 5166, - "end": 5170, + "start": 5052, + "end": 5056, "loc": { "start": { "line": 115, @@ -4506,8 +4506,8 @@ }, "property": { "type": "Identifier", - "start": 5171, - "end": 5177, + "start": 5057, + "end": 5063, "loc": { "start": { "line": 115, @@ -4527,8 +4527,8 @@ "arguments": [ { "type": "Identifier", - "start": 5178, - "end": 5180, + "start": 5064, + "end": 5066, "loc": { "start": { "line": 115, @@ -4544,8 +4544,8 @@ }, { "type": "Identifier", - "start": 5182, - "end": 5184, + "start": 5068, + "end": 5070, "loc": { "start": { "line": 115, @@ -4561,8 +4561,8 @@ }, { "type": "Identifier", - "start": 5186, - "end": 5190, + "start": 5072, + "end": 5076, "loc": { "start": { "line": 115, @@ -4583,8 +4583,8 @@ { "type": "CommentLine", "value": " Force the renderer to render it, as if its placed offscreen its not rendered.", - "start": 5072, - "end": 5152, + "start": 4959, + "end": 5039, "loc": { "start": { "line": 114, @@ -4600,8 +4600,8 @@ }, { "type": "ExpressionStatement", - "start": 5206, - "end": 5233, + "start": 5091, + "end": 5118, "loc": { "start": { "line": 116, @@ -4614,8 +4614,8 @@ }, "expression": { "type": "CallExpression", - "start": 5206, - "end": 5232, + "start": 5091, + "end": 5117, "loc": { "start": { "line": 116, @@ -4628,8 +4628,8 @@ }, "callee": { "type": "MemberExpression", - "start": 5206, - "end": 5218, + "start": 5091, + "end": 5103, "loc": { "start": { "line": 116, @@ -4642,8 +4642,8 @@ }, "object": { "type": "Identifier", - "start": 5206, - "end": 5211, + "start": 5091, + "end": 5096, "loc": { "start": { "line": 116, @@ -4659,8 +4659,8 @@ }, "property": { "type": "Identifier", - "start": 5212, - "end": 5218, + "start": 5097, + "end": 5103, "loc": { "start": { "line": 116, @@ -4679,8 +4679,8 @@ "arguments": [ { "type": "Identifier", - "start": 5219, - "end": 5221, + "start": 5104, + "end": 5106, "loc": { "start": { "line": 116, @@ -4696,8 +4696,8 @@ }, { "type": "Identifier", - "start": 5223, - "end": 5225, + "start": 5108, + "end": 5110, "loc": { "start": { "line": 116, @@ -4713,8 +4713,8 @@ }, { "type": "Identifier", - "start": 5227, - "end": 5231, + "start": 5112, + "end": 5116, "loc": { "start": { "line": 116, @@ -4734,8 +4734,8 @@ { "type": "CommentLine", "value": " Position the left clone", - "start": 5249, - "end": 5275, + "start": 5132, + "end": 5158, "loc": { "start": { "line": 118, @@ -4751,8 +4751,8 @@ }, { "type": "ExpressionStatement", - "start": 5289, - "end": 5324, + "start": 5171, + "end": 5206, "loc": { "start": { "line": 119, @@ -4765,8 +4765,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 5289, - "end": 5323, + "start": 5171, + "end": 5205, "loc": { "start": { "line": 119, @@ -4780,8 +4780,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 5289, - "end": 5295, + "start": 5171, + "end": 5177, "loc": { "start": { "line": 119, @@ -4794,8 +4794,8 @@ }, "object": { "type": "Identifier", - "start": 5289, - "end": 5293, + "start": 5171, + "end": 5175, "loc": { "start": { "line": 119, @@ -4812,8 +4812,8 @@ }, "property": { "type": "Identifier", - "start": 5294, - "end": 5295, + "start": 5176, + "end": 5177, "loc": { "start": { "line": 119, @@ -4832,8 +4832,8 @@ }, "right": { "type": "BinaryExpression", - "start": 5298, - "end": 5323, + "start": 5180, + "end": 5205, "loc": { "start": { "line": 119, @@ -4846,8 +4846,8 @@ }, "left": { "type": "Identifier", - "start": 5298, - "end": 5300, + "start": 5180, + "end": 5182, "loc": { "start": { "line": 119, @@ -4864,8 +4864,8 @@ "operator": "-", "right": { "type": "MemberExpression", - "start": 5303, - "end": 5323, + "start": 5185, + "end": 5205, "loc": { "start": { "line": 119, @@ -4878,8 +4878,8 @@ }, "object": { "type": "MemberExpression", - "start": 5303, - "end": 5317, + "start": 5185, + "end": 5199, "loc": { "start": { "line": 119, @@ -4892,8 +4892,8 @@ }, "object": { "type": "Identifier", - "start": 5303, - "end": 5312, + "start": 5185, + "end": 5194, "loc": { "start": { "line": 119, @@ -4909,8 +4909,8 @@ }, "property": { "type": "Identifier", - "start": 5313, - "end": 5317, + "start": 5195, + "end": 5199, "loc": { "start": { "line": 119, @@ -4928,8 +4928,8 @@ }, "property": { "type": "Identifier", - "start": 5318, - "end": 5323, + "start": 5200, + "end": 5205, "loc": { "start": { "line": 119, @@ -4952,8 +4952,8 @@ { "type": "CommentLine", "value": " Position the left clone", - "start": 5249, - "end": 5275, + "start": 5132, + "end": 5158, "loc": { "start": { "line": 118, @@ -4969,8 +4969,8 @@ }, { "type": "ExpressionStatement", - "start": 5338, - "end": 5350, + "start": 5219, + "end": 5231, "loc": { "start": { "line": 120, @@ -4983,8 +4983,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 5338, - "end": 5349, + "start": 5219, + "end": 5230, "loc": { "start": { "line": 120, @@ -4998,8 +4998,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 5338, - "end": 5344, + "start": 5219, + "end": 5225, "loc": { "start": { "line": 120, @@ -5012,8 +5012,8 @@ }, "object": { "type": "Identifier", - "start": 5338, - "end": 5342, + "start": 5219, + "end": 5223, "loc": { "start": { "line": 120, @@ -5029,8 +5029,8 @@ }, "property": { "type": "Identifier", - "start": 5343, - "end": 5344, + "start": 5224, + "end": 5225, "loc": { "start": { "line": 120, @@ -5048,8 +5048,8 @@ }, "right": { "type": "Identifier", - "start": 5347, - "end": 5349, + "start": 5228, + "end": 5230, "loc": { "start": { "line": 120, @@ -5068,8 +5068,8 @@ { "type": "CommentLine", "value": " Position the right clone", - "start": 5364, - "end": 5391, + "start": 5244, + "end": 5271, "loc": { "start": { "line": 121, @@ -5085,8 +5085,8 @@ }, { "type": "ExpressionStatement", - "start": 5405, - "end": 5441, + "start": 5284, + "end": 5320, "loc": { "start": { "line": 122, @@ -5099,8 +5099,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 5405, - "end": 5440, + "start": 5284, + "end": 5319, "loc": { "start": { "line": 122, @@ -5114,8 +5114,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 5405, - "end": 5412, + "start": 5284, + "end": 5291, "loc": { "start": { "line": 122, @@ -5128,8 +5128,8 @@ }, "object": { "type": "Identifier", - "start": 5405, - "end": 5410, + "start": 5284, + "end": 5289, "loc": { "start": { "line": 122, @@ -5146,8 +5146,8 @@ }, "property": { "type": "Identifier", - "start": 5411, - "end": 5412, + "start": 5290, + "end": 5291, "loc": { "start": { "line": 122, @@ -5166,8 +5166,8 @@ }, "right": { "type": "BinaryExpression", - "start": 5415, - "end": 5440, + "start": 5294, + "end": 5319, "loc": { "start": { "line": 122, @@ -5180,8 +5180,8 @@ }, "left": { "type": "Identifier", - "start": 5415, - "end": 5417, + "start": 5294, + "end": 5296, "loc": { "start": { "line": 122, @@ -5198,8 +5198,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 5420, - "end": 5440, + "start": 5299, + "end": 5319, "loc": { "start": { "line": 122, @@ -5212,8 +5212,8 @@ }, "object": { "type": "MemberExpression", - "start": 5420, - "end": 5434, + "start": 5299, + "end": 5313, "loc": { "start": { "line": 122, @@ -5226,8 +5226,8 @@ }, "object": { "type": "Identifier", - "start": 5420, - "end": 5429, + "start": 5299, + "end": 5308, "loc": { "start": { "line": 122, @@ -5243,8 +5243,8 @@ }, "property": { "type": "Identifier", - "start": 5430, - "end": 5434, + "start": 5309, + "end": 5313, "loc": { "start": { "line": 122, @@ -5262,8 +5262,8 @@ }, "property": { "type": "Identifier", - "start": 5435, - "end": 5440, + "start": 5314, + "end": 5319, "loc": { "start": { "line": 122, @@ -5286,8 +5286,8 @@ { "type": "CommentLine", "value": " Position the right clone", - "start": 5364, - "end": 5391, + "start": 5244, + "end": 5271, "loc": { "start": { "line": 121, @@ -5303,8 +5303,8 @@ }, { "type": "ExpressionStatement", - "start": 5455, - "end": 5468, + "start": 5333, + "end": 5346, "loc": { "start": { "line": 123, @@ -5317,8 +5317,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 5455, - "end": 5467, + "start": 5333, + "end": 5345, "loc": { "start": { "line": 123, @@ -5332,8 +5332,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 5455, - "end": 5462, + "start": 5333, + "end": 5340, "loc": { "start": { "line": 123, @@ -5346,8 +5346,8 @@ }, "object": { "type": "Identifier", - "start": 5455, - "end": 5460, + "start": 5333, + "end": 5338, "loc": { "start": { "line": 123, @@ -5363,8 +5363,8 @@ }, "property": { "type": "Identifier", - "start": 5461, - "end": 5462, + "start": 5339, + "end": 5340, "loc": { "start": { "line": 123, @@ -5382,8 +5382,8 @@ }, "right": { "type": "Identifier", - "start": 5465, - "end": 5467, + "start": 5343, + "end": 5345, "loc": { "start": { "line": 123, @@ -5402,8 +5402,8 @@ { "type": "CommentLine", "value": " Store the clones in a temporary array", - "start": 5482, - "end": 5522, + "start": 5359, + "end": 5399, "loc": { "start": { "line": 124, @@ -5419,8 +5419,8 @@ }, { "type": "VariableDeclaration", - "start": 5536, - "end": 5567, + "start": 5412, + "end": 5443, "loc": { "start": { "line": 125, @@ -5434,8 +5434,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 5542, - "end": 5566, + "start": 5418, + "end": 5442, "loc": { "start": { "line": 125, @@ -5448,8 +5448,8 @@ }, "id": { "type": "Identifier", - "start": 5542, - "end": 5550, + "start": 5418, + "end": 5426, "loc": { "start": { "line": 125, @@ -5466,8 +5466,8 @@ }, "init": { "type": "ArrayExpression", - "start": 5553, - "end": 5566, + "start": 5429, + "end": 5442, "loc": { "start": { "line": 125, @@ -5481,8 +5481,8 @@ "elements": [ { "type": "Identifier", - "start": 5554, - "end": 5558, + "start": 5430, + "end": 5434, "loc": { "start": { "line": 125, @@ -5498,8 +5498,8 @@ }, { "type": "Identifier", - "start": 5560, - "end": 5565, + "start": 5436, + "end": 5441, "loc": { "start": { "line": 125, @@ -5523,8 +5523,8 @@ { "type": "CommentLine", "value": " Store the clones in a temporary array", - "start": 5482, - "end": 5522, + "start": 5359, + "end": 5399, "loc": { "start": { "line": 124, @@ -5541,8 +5541,8 @@ { "type": "CommentLine", "value": " Loop the clones and store their relative positions to the main instance", - "start": 5581, - "end": 5655, + "start": 5456, + "end": 5530, "loc": { "start": { "line": 126, @@ -5558,8 +5558,8 @@ }, { "type": "ExpressionStatement", - "start": 5669, - "end": 5818, + "start": 5543, + "end": 5689, "loc": { "start": { "line": 127, @@ -5572,8 +5572,8 @@ }, "expression": { "type": "CallExpression", - "start": 5669, - "end": 5817, + "start": 5543, + "end": 5688, "loc": { "start": { "line": 127, @@ -5586,8 +5586,8 @@ }, "callee": { "type": "MemberExpression", - "start": 5669, - "end": 5685, + "start": 5543, + "end": 5559, "loc": { "start": { "line": 127, @@ -5600,8 +5600,8 @@ }, "object": { "type": "Identifier", - "start": 5669, - "end": 5677, + "start": 5543, + "end": 5551, "loc": { "start": { "line": 127, @@ -5618,8 +5618,8 @@ }, "property": { "type": "Identifier", - "start": 5678, - "end": 5685, + "start": 5552, + "end": 5559, "loc": { "start": { "line": 127, @@ -5639,8 +5639,8 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 5686, - "end": 5816, + "start": 5560, + "end": 5687, "loc": { "start": { "line": 127, @@ -5658,8 +5658,8 @@ "params": [ { "type": "Identifier", - "start": 5687, - "end": 5693, + "start": 5561, + "end": 5567, "loc": { "start": { "line": 127, @@ -5676,8 +5676,8 @@ ], "body": { "type": "BlockStatement", - "start": 5698, - "end": 5816, + "start": 5572, + "end": 5687, "loc": { "start": { "line": 127, @@ -5691,8 +5691,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 5717, - "end": 5750, + "start": 5590, + "end": 5623, "loc": { "start": { "line": 128, @@ -5705,8 +5705,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 5717, - "end": 5749, + "start": 5590, + "end": 5622, "loc": { "start": { "line": 128, @@ -5720,8 +5720,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 5717, - "end": 5733, + "start": 5590, + "end": 5606, "loc": { "start": { "line": 128, @@ -5734,8 +5734,8 @@ }, "object": { "type": "Identifier", - "start": 5717, - "end": 5723, + "start": 5590, + "end": 5596, "loc": { "start": { "line": 128, @@ -5751,8 +5751,8 @@ }, "property": { "type": "Identifier", - "start": 5724, - "end": 5733, + "start": 5597, + "end": 5606, "loc": { "start": { "line": 128, @@ -5770,8 +5770,8 @@ }, "right": { "type": "BinaryExpression", - "start": 5736, - "end": 5749, + "start": 5609, + "end": 5622, "loc": { "start": { "line": 128, @@ -5784,8 +5784,8 @@ }, "left": { "type": "MemberExpression", - "start": 5736, - "end": 5744, + "start": 5609, + "end": 5617, "loc": { "start": { "line": 128, @@ -5798,8 +5798,8 @@ }, "object": { "type": "Identifier", - "start": 5736, - "end": 5742, + "start": 5609, + "end": 5615, "loc": { "start": { "line": 128, @@ -5815,8 +5815,8 @@ }, "property": { "type": "Identifier", - "start": 5743, - "end": 5744, + "start": 5616, + "end": 5617, "loc": { "start": { "line": 128, @@ -5835,8 +5835,8 @@ "operator": "-", "right": { "type": "Identifier", - "start": 5747, - "end": 5749, + "start": 5620, + "end": 5622, "loc": { "start": { "line": 128, @@ -5855,8 +5855,8 @@ }, { "type": "ExpressionStatement", - "start": 5768, - "end": 5801, + "start": 5640, + "end": 5673, "loc": { "start": { "line": 129, @@ -5869,8 +5869,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 5768, - "end": 5800, + "start": 5640, + "end": 5672, "loc": { "start": { "line": 129, @@ -5884,8 +5884,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 5768, - "end": 5784, + "start": 5640, + "end": 5656, "loc": { "start": { "line": 129, @@ -5898,8 +5898,8 @@ }, "object": { "type": "Identifier", - "start": 5768, - "end": 5774, + "start": 5640, + "end": 5646, "loc": { "start": { "line": 129, @@ -5915,8 +5915,8 @@ }, "property": { "type": "Identifier", - "start": 5775, - "end": 5784, + "start": 5647, + "end": 5656, "loc": { "start": { "line": 129, @@ -5934,8 +5934,8 @@ }, "right": { "type": "BinaryExpression", - "start": 5787, - "end": 5800, + "start": 5659, + "end": 5672, "loc": { "start": { "line": 129, @@ -5948,8 +5948,8 @@ }, "left": { "type": "MemberExpression", - "start": 5787, - "end": 5795, + "start": 5659, + "end": 5667, "loc": { "start": { "line": 129, @@ -5962,8 +5962,8 @@ }, "object": { "type": "Identifier", - "start": 5787, - "end": 5793, + "start": 5659, + "end": 5665, "loc": { "start": { "line": 129, @@ -5979,8 +5979,8 @@ }, "property": { "type": "Identifier", - "start": 5794, - "end": 5795, + "start": 5666, + "end": 5667, "loc": { "start": { "line": 129, @@ -5999,8 +5999,8 @@ "operator": "-", "right": { "type": "Identifier", - "start": 5798, - "end": 5800, + "start": 5670, + "end": 5672, "loc": { "start": { "line": 129, @@ -6028,8 +6028,8 @@ { "type": "CommentLine", "value": " Loop the clones and store their relative positions to the main instance", - "start": 5581, - "end": 5655, + "start": 5456, + "end": 5530, "loc": { "start": { "line": 126, @@ -6046,8 +6046,8 @@ { "type": "CommentLine", "value": " Do not mutate event if one is found. Call alongside it.", - "start": 5834, - "end": 5892, + "start": 5703, + "end": 5761, "loc": { "start": { "line": 132, @@ -6063,8 +6063,8 @@ }, { "type": "VariableDeclaration", - "start": 5906, - "end": 5954, + "start": 5774, + "end": 5822, "loc": { "start": { "line": 133, @@ -6078,8 +6078,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 5912, - "end": 5953, + "start": 5780, + "end": 5821, "loc": { "start": { "line": 133, @@ -6092,8 +6092,8 @@ }, "id": { "type": "Identifier", - "start": 5912, - "end": 5929, + "start": 5780, + "end": 5797, "loc": { "start": { "line": 133, @@ -6110,8 +6110,8 @@ }, "init": { "type": "MemberExpression", - "start": 5932, - "end": 5953, + "start": 5800, + "end": 5821, "loc": { "start": { "line": 133, @@ -6124,8 +6124,8 @@ }, "object": { "type": "Identifier", - "start": 5932, - "end": 5941, + "start": 5800, + "end": 5809, "loc": { "start": { "line": 133, @@ -6141,8 +6141,8 @@ }, "property": { "type": "Identifier", - "start": 5942, - "end": 5953, + "start": 5810, + "end": 5821, "loc": { "start": { "line": 133, @@ -6166,8 +6166,8 @@ { "type": "CommentLine", "value": " Do not mutate event if one is found. Call alongside it.", - "start": 5834, - "end": 5892, + "start": 5703, + "end": 5761, "loc": { "start": { "line": 132, @@ -6184,8 +6184,8 @@ { "type": "CommentLine", "value": " When the main instance moves, move the clones with their relative position to it.", - "start": 5968, - "end": 6052, + "start": 5835, + "end": 5919, "loc": { "start": { "line": 134, @@ -6201,8 +6201,8 @@ }, { "type": "IfStatement", - "start": 6066, - "end": 6493, + "start": 5932, + "end": 6350, "loc": { "start": { "line": 135, @@ -6215,8 +6215,8 @@ }, "test": { "type": "BinaryExpression", - "start": 6070, - "end": 6109, + "start": 5936, + "end": 5975, "loc": { "start": { "line": 135, @@ -6229,8 +6229,8 @@ }, "left": { "type": "UnaryExpression", - "start": 6070, - "end": 6094, + "start": 5936, + "end": 5960, "loc": { "start": { "line": 135, @@ -6245,8 +6245,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 6077, - "end": 6094, + "start": 5943, + "end": 5960, "loc": { "start": { "line": 135, @@ -6269,8 +6269,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 6099, - "end": 6109, + "start": 5965, + "end": 5975, "loc": { "start": { "line": 135, @@ -6291,8 +6291,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 6111, - "end": 6331, + "start": 5977, + "end": 6192, "loc": { "start": { "line": 135, @@ -6306,8 +6306,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 6130, - "end": 6316, + "start": 5995, + "end": 6178, "loc": { "start": { "line": 136, @@ -6320,8 +6320,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 6130, - "end": 6316, + "start": 5995, + "end": 6178, "loc": { "start": { "line": 136, @@ -6335,8 +6335,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 6130, - "end": 6151, + "start": 5995, + "end": 6016, "loc": { "start": { "line": 136, @@ -6349,8 +6349,8 @@ }, "object": { "type": "Identifier", - "start": 6130, - "end": 6139, + "start": 5995, + "end": 6004, "loc": { "start": { "line": 136, @@ -6366,8 +6366,8 @@ }, "property": { "type": "Identifier", - "start": 6140, - "end": 6151, + "start": 6005, + "end": 6016, "loc": { "start": { "line": 136, @@ -6385,8 +6385,8 @@ }, "right": { "type": "ArrowFunctionExpression", - "start": 6154, - "end": 6316, + "start": 6019, + "end": 6178, "loc": { "start": { "line": 136, @@ -6404,8 +6404,8 @@ "params": [ { "type": "Identifier", - "start": 6155, - "end": 6157, + "start": 6020, + "end": 6022, "loc": { "start": { "line": 136, @@ -6421,8 +6421,8 @@ }, { "type": "Identifier", - "start": 6159, - "end": 6161, + "start": 6024, + "end": 6026, "loc": { "start": { "line": 136, @@ -6439,8 +6439,8 @@ ], "body": { "type": "BlockStatement", - "start": 6166, - "end": 6316, + "start": 6031, + "end": 6178, "loc": { "start": { "line": 136, @@ -6454,8 +6454,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 6189, - "end": 6231, + "start": 6053, + "end": 6095, "loc": { "start": { "line": 137, @@ -6468,8 +6468,8 @@ }, "expression": { "type": "CallExpression", - "start": 6189, - "end": 6230, + "start": 6053, + "end": 6094, "loc": { "start": { "line": 137, @@ -6482,8 +6482,8 @@ }, "callee": { "type": "MemberExpression", - "start": 6189, - "end": 6211, + "start": 6053, + "end": 6075, "loc": { "start": { "line": 137, @@ -6496,8 +6496,8 @@ }, "object": { "type": "Identifier", - "start": 6189, - "end": 6206, + "start": 6053, + "end": 6070, "loc": { "start": { "line": 137, @@ -6513,8 +6513,8 @@ }, "property": { "type": "Identifier", - "start": 6207, - "end": 6211, + "start": 6071, + "end": 6075, "loc": { "start": { "line": 137, @@ -6533,8 +6533,8 @@ "arguments": [ { "type": "Identifier", - "start": 6212, - "end": 6221, + "start": 6076, + "end": 6085, "loc": { "start": { "line": 137, @@ -6550,8 +6550,8 @@ }, { "type": "Identifier", - "start": 6223, - "end": 6225, + "start": 6087, + "end": 6089, "loc": { "start": { "line": 137, @@ -6567,8 +6567,8 @@ }, { "type": "Identifier", - "start": 6227, - "end": 6229, + "start": 6091, + "end": 6093, "loc": { "start": { "line": 137, @@ -6587,8 +6587,8 @@ }, { "type": "ExpressionStatement", - "start": 6253, - "end": 6297, + "start": 6116, + "end": 6160, "loc": { "start": { "line": 138, @@ -6601,8 +6601,8 @@ }, "expression": { "type": "CallExpression", - "start": 6253, - "end": 6296, + "start": 6116, + "end": 6159, "loc": { "start": { "line": 138, @@ -6615,8 +6615,8 @@ }, "callee": { "type": "MemberExpression", - "start": 6253, - "end": 6275, + "start": 6116, + "end": 6138, "loc": { "start": { "line": 138, @@ -6629,8 +6629,8 @@ }, "object": { "type": "ThisExpression", - "start": 6253, - "end": 6257, + "start": 6116, + "end": 6120, "loc": { "start": { "line": 138, @@ -6644,8 +6644,8 @@ }, "property": { "type": "Identifier", - "start": 6258, - "end": 6275, + "start": 6121, + "end": 6138, "loc": { "start": { "line": 138, @@ -6664,8 +6664,8 @@ "arguments": [ { "type": "Identifier", - "start": 6276, - "end": 6285, + "start": 6139, + "end": 6148, "loc": { "start": { "line": 138, @@ -6681,8 +6681,8 @@ }, { "type": "Identifier", - "start": 6287, - "end": 6295, + "start": 6150, + "end": 6158, "loc": { "start": { "line": 138, @@ -6710,8 +6710,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 6337, - "end": 6493, + "start": 6198, + "end": 6350, "loc": { "start": { "line": 140, @@ -6725,8 +6725,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 6356, - "end": 6478, + "start": 6216, + "end": 6336, "loc": { "start": { "line": 141, @@ -6739,8 +6739,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 6356, - "end": 6478, + "start": 6216, + "end": 6336, "loc": { "start": { "line": 141, @@ -6754,8 +6754,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 6356, - "end": 6377, + "start": 6216, + "end": 6237, "loc": { "start": { "line": 141, @@ -6768,8 +6768,8 @@ }, "object": { "type": "Identifier", - "start": 6356, - "end": 6365, + "start": 6216, + "end": 6225, "loc": { "start": { "line": 141, @@ -6785,8 +6785,8 @@ }, "property": { "type": "Identifier", - "start": 6366, - "end": 6377, + "start": 6226, + "end": 6237, "loc": { "start": { "line": 141, @@ -6804,8 +6804,8 @@ }, "right": { "type": "ArrowFunctionExpression", - "start": 6380, - "end": 6478, + "start": 6240, + "end": 6336, "loc": { "start": { "line": 141, @@ -6823,8 +6823,8 @@ "params": [ { "type": "Identifier", - "start": 6381, - "end": 6383, + "start": 6241, + "end": 6243, "loc": { "start": { "line": 141, @@ -6840,8 +6840,8 @@ }, { "type": "Identifier", - "start": 6385, - "end": 6387, + "start": 6245, + "end": 6247, "loc": { "start": { "line": 141, @@ -6858,8 +6858,8 @@ ], "body": { "type": "BlockStatement", - "start": 6392, - "end": 6478, + "start": 6252, + "end": 6336, "loc": { "start": { "line": 141, @@ -6873,8 +6873,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 6415, - "end": 6459, + "start": 6274, + "end": 6318, "loc": { "start": { "line": 142, @@ -6887,8 +6887,8 @@ }, "expression": { "type": "CallExpression", - "start": 6415, - "end": 6458, + "start": 6274, + "end": 6317, "loc": { "start": { "line": 142, @@ -6901,8 +6901,8 @@ }, "callee": { "type": "MemberExpression", - "start": 6415, - "end": 6437, + "start": 6274, + "end": 6296, "loc": { "start": { "line": 142, @@ -6915,8 +6915,8 @@ }, "object": { "type": "ThisExpression", - "start": 6415, - "end": 6419, + "start": 6274, + "end": 6278, "loc": { "start": { "line": 142, @@ -6930,8 +6930,8 @@ }, "property": { "type": "Identifier", - "start": 6420, - "end": 6437, + "start": 6279, + "end": 6296, "loc": { "start": { "line": 142, @@ -6950,8 +6950,8 @@ "arguments": [ { "type": "Identifier", - "start": 6438, - "end": 6447, + "start": 6297, + "end": 6306, "loc": { "start": { "line": 142, @@ -6967,8 +6967,8 @@ }, { "type": "Identifier", - "start": 6449, - "end": 6457, + "start": 6308, + "end": 6316, "loc": { "start": { "line": 142, @@ -6998,8 +6998,8 @@ { "type": "CommentLine", "value": " When the main instance moves, move the clones with their relative position to it.", - "start": 5968, - "end": 6052, + "start": 5835, + "end": 5919, "loc": { "start": { "line": 134, @@ -7021,8 +7021,8 @@ { "type": "CommentLine", "value": " If this instance is set to loop, then it needs a left and right clone", - "start": 4618, - "end": 4690, + "start": 4515, + "end": 4587, "loc": { "start": { "line": 104, @@ -7038,8 +7038,8 @@ }, { "type": "VariableDeclaration", - "start": 6514, - "end": 6555, + "start": 6369, + "end": 6410, "loc": { "start": { "line": 146, @@ -7053,8 +7053,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 6520, - "end": 6554, + "start": 6375, + "end": 6409, "loc": { "start": { "line": 146, @@ -7067,8 +7067,8 @@ }, "id": { "type": "Identifier", - "start": 6520, - "end": 6527, + "start": 6375, + "end": 6382, "loc": { "start": { "line": 146, @@ -7084,8 +7084,8 @@ }, "init": { "type": "CallExpression", - "start": 6530, - "end": 6554, + "start": 6385, + "end": 6409, "loc": { "start": { "line": 146, @@ -7098,8 +7098,8 @@ }, "callee": { "type": "MemberExpression", - "start": 6530, - "end": 6552, + "start": 6385, + "end": 6407, "loc": { "start": { "line": 146, @@ -7112,8 +7112,8 @@ }, "object": { "type": "MemberExpression", - "start": 6530, - "end": 6541, + "start": 6385, + "end": 6396, "loc": { "start": { "line": 146, @@ -7126,8 +7126,8 @@ }, "object": { "type": "Identifier", - "start": 6530, - "end": 6534, + "start": 6385, + "end": 6389, "loc": { "start": { "line": 146, @@ -7143,8 +7143,8 @@ }, "property": { "type": "Identifier", - "start": 6535, - "end": 6541, + "start": 6390, + "end": 6396, "loc": { "start": { "line": 146, @@ -7162,8 +7162,8 @@ }, "property": { "type": "Identifier", - "start": 6542, - "end": 6552, + "start": 6397, + "end": 6407, "loc": { "start": { "line": 146, @@ -7187,8 +7187,8 @@ }, { "type": "VariableDeclaration", - "start": 6565, - "end": 6582, + "start": 6419, + "end": 6436, "loc": { "start": { "line": 147, @@ -7202,8 +7202,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 6569, - "end": 6581, + "start": 6423, + "end": 6435, "loc": { "start": { "line": 147, @@ -7216,8 +7216,8 @@ }, "id": { "type": "Identifier", - "start": 6569, - "end": 6577, + "start": 6423, + "end": 6431, "loc": { "start": { "line": 147, @@ -7233,8 +7233,8 @@ }, "init": { "type": "NumericLiteral", - "start": 6580, - "end": 6581, + "start": 6434, + "end": 6435, "loc": { "start": { "line": 147, @@ -7257,8 +7257,8 @@ }, { "type": "VariableDeclaration", - "start": 6592, - "end": 6609, + "start": 6445, + "end": 6462, "loc": { "start": { "line": 148, @@ -7272,8 +7272,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 6596, - "end": 6608, + "start": 6449, + "end": 6461, "loc": { "start": { "line": 148, @@ -7286,8 +7286,8 @@ }, "id": { "type": "Identifier", - "start": 6596, - "end": 6604, + "start": 6449, + "end": 6457, "loc": { "start": { "line": 148, @@ -7303,8 +7303,8 @@ }, "init": { "type": "NumericLiteral", - "start": 6607, - "end": 6608, + "start": 6460, + "end": 6461, "loc": { "start": { "line": 148, @@ -7327,8 +7327,8 @@ }, { "type": "IfStatement", - "start": 6619, - "end": 6714, + "start": 6471, + "end": 6563, "loc": { "start": { "line": 149, @@ -7341,8 +7341,8 @@ }, "test": { "type": "Identifier", - "start": 6623, - "end": 6630, + "start": 6475, + "end": 6482, "loc": { "start": { "line": 149, @@ -7358,8 +7358,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 6632, - "end": 6714, + "start": 6484, + "end": 6563, "loc": { "start": { "line": 149, @@ -7373,8 +7373,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 6647, - "end": 6668, + "start": 6498, + "end": 6519, "loc": { "start": { "line": 150, @@ -7387,8 +7387,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 6647, - "end": 6667, + "start": 6498, + "end": 6518, "loc": { "start": { "line": 150, @@ -7402,8 +7402,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 6647, - "end": 6655, + "start": 6498, + "end": 6506, "loc": { "start": { "line": 150, @@ -7419,8 +7419,8 @@ }, "right": { "type": "MemberExpression", - "start": 6658, - "end": 6667, + "start": 6509, + "end": 6518, "loc": { "start": { "line": 150, @@ -7433,8 +7433,8 @@ }, "object": { "type": "Identifier", - "start": 6658, - "end": 6665, + "start": 6509, + "end": 6516, "loc": { "start": { "line": 150, @@ -7450,8 +7450,8 @@ }, "property": { "type": "Identifier", - "start": 6666, - "end": 6667, + "start": 6517, + "end": 6518, "loc": { "start": { "line": 150, @@ -7471,8 +7471,8 @@ }, { "type": "ExpressionStatement", - "start": 6682, - "end": 6703, + "start": 6532, + "end": 6553, "loc": { "start": { "line": 151, @@ -7485,8 +7485,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 6682, - "end": 6702, + "start": 6532, + "end": 6552, "loc": { "start": { "line": 151, @@ -7500,8 +7500,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 6682, - "end": 6690, + "start": 6532, + "end": 6540, "loc": { "start": { "line": 151, @@ -7517,8 +7517,8 @@ }, "right": { "type": "MemberExpression", - "start": 6693, - "end": 6702, + "start": 6543, + "end": 6552, "loc": { "start": { "line": 151, @@ -7531,8 +7531,8 @@ }, "object": { "type": "Identifier", - "start": 6693, - "end": 6700, + "start": 6543, + "end": 6550, "loc": { "start": { "line": 151, @@ -7548,8 +7548,8 @@ }, "property": { "type": "Identifier", - "start": 6701, - "end": 6702, + "start": 6551, + "end": 6552, "loc": { "start": { "line": 151, @@ -7574,8 +7574,8 @@ }, { "type": "ExpressionStatement", - "start": 6724, - "end": 6753, + "start": 6572, + "end": 6601, "loc": { "start": { "line": 153, @@ -7588,8 +7588,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 6724, - "end": 6752, + "start": 6572, + "end": 6600, "loc": { "start": { "line": 153, @@ -7603,8 +7603,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 6724, - "end": 6741, + "start": 6572, + "end": 6589, "loc": { "start": { "line": 153, @@ -7617,8 +7617,8 @@ }, "object": { "type": "MemberExpression", - "start": 6724, - "end": 6739, + "start": 6572, + "end": 6587, "loc": { "start": { "line": 153, @@ -7631,8 +7631,8 @@ }, "object": { "type": "ThisExpression", - "start": 6724, - "end": 6728, + "start": 6572, + "end": 6576, "loc": { "start": { "line": 153, @@ -7646,8 +7646,8 @@ }, "property": { "type": "Identifier", - "start": 6729, - "end": 6739, + "start": 6577, + "end": 6587, "loc": { "start": { "line": 153, @@ -7665,8 +7665,8 @@ }, "property": { "type": "Identifier", - "start": 6740, - "end": 6741, + "start": 6588, + "end": 6589, "loc": { "start": { "line": 153, @@ -7684,8 +7684,8 @@ }, "right": { "type": "Identifier", - "start": 6744, - "end": 6752, + "start": 6592, + "end": 6600, "loc": { "start": { "line": 153, @@ -7703,8 +7703,8 @@ }, { "type": "ExpressionStatement", - "start": 6763, - "end": 6792, + "start": 6610, + "end": 6639, "loc": { "start": { "line": 154, @@ -7717,8 +7717,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 6763, - "end": 6791, + "start": 6610, + "end": 6638, "loc": { "start": { "line": 154, @@ -7732,8 +7732,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 6763, - "end": 6780, + "start": 6610, + "end": 6627, "loc": { "start": { "line": 154, @@ -7746,8 +7746,8 @@ }, "object": { "type": "MemberExpression", - "start": 6763, - "end": 6778, + "start": 6610, + "end": 6625, "loc": { "start": { "line": 154, @@ -7760,8 +7760,8 @@ }, "object": { "type": "ThisExpression", - "start": 6763, - "end": 6767, + "start": 6610, + "end": 6614, "loc": { "start": { "line": 154, @@ -7775,8 +7775,8 @@ }, "property": { "type": "Identifier", - "start": 6768, - "end": 6778, + "start": 6615, + "end": 6625, "loc": { "start": { "line": 154, @@ -7794,8 +7794,8 @@ }, "property": { "type": "Identifier", - "start": 6779, - "end": 6780, + "start": 6626, + "end": 6627, "loc": { "start": { "line": 154, @@ -7813,8 +7813,8 @@ }, "right": { "type": "Identifier", - "start": 6783, - "end": 6791, + "start": 6630, + "end": 6638, "loc": { "start": { "line": 154, @@ -7832,8 +7832,8 @@ }, { "type": "ExpressionStatement", - "start": 6802, - "end": 6833, + "start": 6648, + "end": 6679, "loc": { "start": { "line": 155, @@ -7846,8 +7846,8 @@ }, "expression": { "type": "CallExpression", - "start": 6802, - "end": 6832, + "start": 6648, + "end": 6678, "loc": { "start": { "line": 155, @@ -7860,8 +7860,8 @@ }, "callee": { "type": "MemberExpression", - "start": 6802, - "end": 6818, + "start": 6648, + "end": 6664, "loc": { "start": { "line": 155, @@ -7874,8 +7874,8 @@ }, "object": { "type": "Identifier", - "start": 6802, - "end": 6811, + "start": 6648, + "end": 6657, "loc": { "start": { "line": 155, @@ -7891,8 +7891,8 @@ }, "property": { "type": "Identifier", - "start": 6812, - "end": 6818, + "start": 6658, + "end": 6664, "loc": { "start": { "line": 155, @@ -7911,8 +7911,8 @@ "arguments": [ { "type": "Identifier", - "start": 6819, - "end": 6821, + "start": 6665, + "end": 6667, "loc": { "start": { "line": 155, @@ -7928,8 +7928,8 @@ }, { "type": "Identifier", - "start": 6823, - "end": 6825, + "start": 6669, + "end": 6671, "loc": { "start": { "line": 155, @@ -7945,8 +7945,8 @@ }, { "type": "Identifier", - "start": 6827, - "end": 6831, + "start": 6673, + "end": 6677, "loc": { "start": { "line": 155, @@ -7970,9 +7970,9 @@ "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, + "value": "*\n * Initializes this instance.\n * @param {Object} pInstance - The instance to initialize.\n * @param {Object} pConfig - The parallax info that tells this module how to control this instance.\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.\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.\n * @prop {boolean} pConfig.loop - Whether this instance will loop endlessly.\n * @param {number} pX - The x position this parallax will start at.\n * @param {number} pY - The y position this parallax will start at.\n * @param {string} pMap - The map this instance will start at.\n * @private\n ", + "start": 3416, + "end": 4262, "loc": { "start": { "line": 86, @@ -7988,9 +7988,9 @@ "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, + "value": "*\n * Removes an instance to the parallax system.\n * @param {Object} pInstance - The instance to remove to the parallax system.\n ", + "start": 6690, + "end": 6834, "loc": { "start": { "line": 157, @@ -8006,8 +8006,8 @@ }, { "type": "ClassMethod", - "start": 6999, - "end": 7325, + "start": 6839, + "end": 7155, "loc": { "start": { "line": 161, @@ -8022,8 +8022,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 6999, - "end": 7005, + "start": 6839, + "end": 6845, "loc": { "start": { "line": 161, @@ -8046,8 +8046,8 @@ "params": [ { "type": "Identifier", - "start": 7006, - "end": 7015, + "start": 6846, + "end": 6855, "loc": { "start": { "line": 161, @@ -8064,8 +8064,8 @@ ], "body": { "type": "BlockStatement", - "start": 7017, - "end": 7325, + "start": 6857, + "end": 7155, "loc": { "start": { "line": 161, @@ -8079,8 +8079,8 @@ "body": [ { "type": "IfStatement", - "start": 7028, - "end": 7159, + "start": 6867, + "end": 6995, "loc": { "start": { "line": 162, @@ -8093,8 +8093,8 @@ }, "test": { "type": "UnaryExpression", - "start": 7032, - "end": 7042, + "start": 6871, + "end": 6881, "loc": { "start": { "line": 162, @@ -8109,8 +8109,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 7033, - "end": 7042, + "start": 6872, + "end": 6881, "loc": { "start": { "line": 162, @@ -8130,8 +8130,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 7044, - "end": 7159, + "start": 6883, + "end": 6995, "loc": { "start": { "line": 162, @@ -8145,8 +8145,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 7059, - "end": 7127, + "start": 6897, + "end": 6965, "loc": { "start": { "line": 163, @@ -8159,8 +8159,8 @@ }, "expression": { "type": "CallExpression", - "start": 7059, - "end": 7126, + "start": 6897, + "end": 6964, "loc": { "start": { "line": 163, @@ -8173,8 +8173,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7059, - "end": 7102, + "start": 6897, + "end": 6940, "loc": { "start": { "line": 163, @@ -8187,8 +8187,8 @@ }, "object": { "type": "CallExpression", - "start": 7059, - "end": 7096, + "start": 6897, + "end": 6934, "loc": { "start": { "line": 163, @@ -8201,8 +8201,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7059, - "end": 7077, + "start": 6897, + "end": 6915, "loc": { "start": { "line": 163, @@ -8215,8 +8215,8 @@ }, "object": { "type": "MemberExpression", - "start": 7059, - "end": 7070, + "start": 6897, + "end": 6908, "loc": { "start": { "line": 163, @@ -8229,8 +8229,8 @@ }, "object": { "type": "ThisExpression", - "start": 7059, - "end": 7063, + "start": 6897, + "end": 6901, "loc": { "start": { "line": 163, @@ -8244,8 +8244,8 @@ }, "property": { "type": "Identifier", - "start": 7064, - "end": 7070, + "start": 6902, + "end": 6908, "loc": { "start": { "line": 163, @@ -8263,8 +8263,8 @@ }, "property": { "type": "Identifier", - "start": 7071, - "end": 7077, + "start": 6909, + "end": 6915, "loc": { "start": { "line": 163, @@ -8283,8 +8283,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 7078, - "end": 7095, + "start": 6916, + "end": 6933, "loc": { "start": { "line": 163, @@ -8305,8 +8305,8 @@ }, "property": { "type": "Identifier", - "start": 7097, - "end": 7102, + "start": 6935, + "end": 6940, "loc": { "start": { "line": 163, @@ -8325,8 +8325,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 7103, - "end": 7125, + "start": 6941, + "end": 6963, "loc": { "start": { "line": 163, @@ -8348,8 +8348,8 @@ }, { "type": "ReturnStatement", - "start": 7141, - "end": 7148, + "start": 6978, + "end": 6985, "loc": { "start": { "line": 164, @@ -8369,8 +8369,8 @@ }, { "type": "IfStatement", - "start": 7171, - "end": 7318, + "start": 7005, + "end": 7149, "loc": { "start": { "line": 167, @@ -8383,8 +8383,8 @@ }, "test": { "type": "CallExpression", - "start": 7175, - "end": 7204, + "start": 7009, + "end": 7038, "loc": { "start": { "line": 167, @@ -8397,8 +8397,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7175, - "end": 7193, + "start": 7009, + "end": 7027, "loc": { "start": { "line": 167, @@ -8411,8 +8411,8 @@ }, "object": { "type": "MemberExpression", - "start": 7175, - "end": 7189, + "start": 7009, + "end": 7023, "loc": { "start": { "line": 167, @@ -8425,8 +8425,8 @@ }, "object": { "type": "ThisExpression", - "start": 7175, - "end": 7179, + "start": 7009, + "end": 7013, "loc": { "start": { "line": 167, @@ -8440,8 +8440,8 @@ }, "property": { "type": "Identifier", - "start": 7180, - "end": 7189, + "start": 7014, + "end": 7023, "loc": { "start": { "line": 167, @@ -8459,8 +8459,8 @@ }, "property": { "type": "Identifier", - "start": 7190, - "end": 7193, + "start": 7024, + "end": 7027, "loc": { "start": { "line": 167, @@ -8479,8 +8479,8 @@ "arguments": [ { "type": "Identifier", - "start": 7194, - "end": 7203, + "start": 7028, + "end": 7037, "loc": { "start": { "line": 167, @@ -8498,8 +8498,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 7206, - "end": 7318, + "start": 7040, + "end": 7149, "loc": { "start": { "line": 167, @@ -8513,8 +8513,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 7221, - "end": 7254, + "start": 7054, + "end": 7087, "loc": { "start": { "line": 168, @@ -8527,8 +8527,8 @@ }, "expression": { "type": "CallExpression", - "start": 7221, - "end": 7253, + "start": 7054, + "end": 7086, "loc": { "start": { "line": 168, @@ -8541,8 +8541,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7221, - "end": 7242, + "start": 7054, + "end": 7075, "loc": { "start": { "line": 168, @@ -8555,8 +8555,8 @@ }, "object": { "type": "MemberExpression", - "start": 7221, - "end": 7235, + "start": 7054, + "end": 7068, "loc": { "start": { "line": 168, @@ -8569,8 +8569,8 @@ }, "object": { "type": "ThisExpression", - "start": 7221, - "end": 7225, + "start": 7054, + "end": 7058, "loc": { "start": { "line": 168, @@ -8584,8 +8584,8 @@ }, "property": { "type": "Identifier", - "start": 7226, - "end": 7235, + "start": 7059, + "end": 7068, "loc": { "start": { "line": 168, @@ -8603,8 +8603,8 @@ }, "property": { "type": "Identifier", - "start": 7236, - "end": 7242, + "start": 7069, + "end": 7075, "loc": { "start": { "line": 168, @@ -8623,8 +8623,8 @@ "arguments": [ { "type": "Identifier", - "start": 7243, - "end": 7252, + "start": 7076, + "end": 7085, "loc": { "start": { "line": 168, @@ -8643,8 +8643,8 @@ }, { "type": "ExpressionStatement", - "start": 7268, - "end": 7307, + "start": 7100, + "end": 7139, "loc": { "start": { "line": 169, @@ -8657,8 +8657,8 @@ }, "expression": { "type": "CallExpression", - "start": 7268, - "end": 7306, + "start": 7100, + "end": 7138, "loc": { "start": { "line": 169, @@ -8671,8 +8671,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7268, - "end": 7295, + "start": 7100, + "end": 7127, "loc": { "start": { "line": 169, @@ -8685,8 +8685,8 @@ }, "object": { "type": "MemberExpression", - "start": 7268, - "end": 7288, + "start": 7100, + "end": 7120, "loc": { "start": { "line": 169, @@ -8699,8 +8699,8 @@ }, "object": { "type": "ThisExpression", - "start": 7268, - "end": 7272, + "start": 7100, + "end": 7104, "loc": { "start": { "line": 169, @@ -8714,8 +8714,8 @@ }, "property": { "type": "Identifier", - "start": 7273, - "end": 7288, + "start": 7105, + "end": 7120, "loc": { "start": { "line": 169, @@ -8733,8 +8733,8 @@ }, "property": { "type": "Identifier", - "start": 7289, - "end": 7295, + "start": 7121, + "end": 7127, "loc": { "start": { "line": 169, @@ -8753,8 +8753,8 @@ "arguments": [ { "type": "Identifier", - "start": 7296, - "end": 7305, + "start": 7128, + "end": 7137, "loc": { "start": { "line": 169, @@ -8783,9 +8783,9 @@ "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, + "value": "*\n * Removes an instance to the parallax system.\n * @param {Object} pInstance - The instance to remove to the parallax system.\n ", + "start": 6690, + "end": 6834, "loc": { "start": { "line": 157, @@ -8801,9 +8801,9 @@ "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, + "value": "*\n * Updates the parallax system.\n * @param {number} pCameraX - The x position of the camera.\n * @param {number} pCameraY - The y position of the camera.\n ", + "start": 7160, + "end": 7335, "loc": { "start": { "line": 172, @@ -8819,8 +8819,8 @@ }, { "type": "ClassMethod", - "start": 7516, - "end": 9592, + "start": 7340, + "end": 9363, "loc": { "start": { "line": 177, @@ -8835,8 +8835,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 7516, - "end": 7522, + "start": 7340, + "end": 7346, "loc": { "start": { "line": 177, @@ -8859,8 +8859,8 @@ "params": [ { "type": "AssignmentPattern", - "start": 7523, - "end": 7535, + "start": 7347, + "end": 7359, "loc": { "start": { "line": 177, @@ -8873,8 +8873,8 @@ }, "left": { "type": "Identifier", - "start": 7523, - "end": 7531, + "start": 7347, + "end": 7355, "loc": { "start": { "line": 177, @@ -8890,8 +8890,8 @@ }, "right": { "type": "NumericLiteral", - "start": 7534, - "end": 7535, + "start": 7358, + "end": 7359, "loc": { "start": { "line": 177, @@ -8911,8 +8911,8 @@ }, { "type": "AssignmentPattern", - "start": 7537, - "end": 7549, + "start": 7361, + "end": 7373, "loc": { "start": { "line": 177, @@ -8925,8 +8925,8 @@ }, "left": { "type": "Identifier", - "start": 7537, - "end": 7545, + "start": 7361, + "end": 7369, "loc": { "start": { "line": 177, @@ -8942,8 +8942,8 @@ }, "right": { "type": "NumericLiteral", - "start": 7548, - "end": 7549, + "start": 7372, + "end": 7373, "loc": { "start": { "line": 177, @@ -8964,8 +8964,8 @@ ], "body": { "type": "BlockStatement", - "start": 7551, - "end": 9592, + "start": 7375, + "end": 9363, "loc": { "start": { "line": 177, @@ -8979,8 +8979,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 7599, - "end": 7622, + "start": 7421, + "end": 7444, "loc": { "start": { "line": 179, @@ -8994,8 +8994,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 7603, - "end": 7621, + "start": 7425, + "end": 7443, "loc": { "start": { "line": 179, @@ -9008,8 +9008,8 @@ }, "id": { "type": "Identifier", - "start": 7603, - "end": 7610, + "start": 7425, + "end": 7432, "loc": { "start": { "line": 179, @@ -9026,8 +9026,8 @@ }, "init": { "type": "Identifier", - "start": 7613, - "end": 7621, + "start": 7435, + "end": 7443, "loc": { "start": { "line": 179, @@ -9049,8 +9049,8 @@ { "type": "CommentLine", "value": " The camera's x position.", - "start": 7562, - "end": 7589, + "start": 7385, + "end": 7412, "loc": { "start": { "line": 178, @@ -9067,8 +9067,8 @@ { "type": "CommentLine", "value": " The camera's x position.", - "start": 7632, - "end": 7659, + "start": 7453, + "end": 7480, "loc": { "start": { "line": 180, @@ -9084,8 +9084,8 @@ }, { "type": "VariableDeclaration", - "start": 7669, - "end": 7692, + "start": 7489, + "end": 7512, "loc": { "start": { "line": 181, @@ -9099,8 +9099,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 7673, - "end": 7691, + "start": 7493, + "end": 7511, "loc": { "start": { "line": 181, @@ -9113,8 +9113,8 @@ }, "id": { "type": "Identifier", - "start": 7673, - "end": 7680, + "start": 7493, + "end": 7500, "loc": { "start": { "line": 181, @@ -9131,8 +9131,8 @@ }, "init": { "type": "Identifier", - "start": 7683, - "end": 7691, + "start": 7503, + "end": 7511, "loc": { "start": { "line": 181, @@ -9154,8 +9154,8 @@ { "type": "CommentLine", "value": " The camera's x position.", - "start": 7632, - "end": 7659, + "start": 7453, + "end": 7480, "loc": { "start": { "line": 180, @@ -9171,8 +9171,8 @@ }, { "type": "ExpressionStatement", - "start": 7702, - "end": 9509, + "start": 7521, + "end": 9283, "loc": { "start": { "line": 182, @@ -9185,8 +9185,8 @@ }, "expression": { "type": "CallExpression", - "start": 7702, - "end": 9508, + "start": 7521, + "end": 9282, "loc": { "start": { "line": 182, @@ -9199,8 +9199,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7702, - "end": 7724, + "start": 7521, + "end": 7543, "loc": { "start": { "line": 182, @@ -9213,8 +9213,8 @@ }, "object": { "type": "MemberExpression", - "start": 7702, - "end": 7716, + "start": 7521, + "end": 7535, "loc": { "start": { "line": 182, @@ -9227,8 +9227,8 @@ }, "object": { "type": "ThisExpression", - "start": 7702, - "end": 7706, + "start": 7521, + "end": 7525, "loc": { "start": { "line": 182, @@ -9242,8 +9242,8 @@ }, "property": { "type": "Identifier", - "start": 7707, - "end": 7716, + "start": 7526, + "end": 7535, "loc": { "start": { "line": 182, @@ -9261,8 +9261,8 @@ }, "property": { "type": "Identifier", - "start": 7717, - "end": 7724, + "start": 7536, + "end": 7543, "loc": { "start": { "line": 182, @@ -9281,8 +9281,8 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 7725, - "end": 9507, + "start": 7544, + "end": 9281, "loc": { "start": { "line": 182, @@ -9300,8 +9300,8 @@ "params": [ { "type": "Identifier", - "start": 7726, - "end": 7735, + "start": 7545, + "end": 7554, "loc": { "start": { "line": 182, @@ -9318,8 +9318,8 @@ ], "body": { "type": "BlockStatement", - "start": 7740, - "end": 9507, + "start": 7559, + "end": 9281, "loc": { "start": { "line": 182, @@ -9333,8 +9333,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 7755, - "end": 7812, + "start": 7573, + "end": 7630, "loc": { "start": { "line": 183, @@ -9348,8 +9348,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 7761, - "end": 7811, + "start": 7579, + "end": 7629, "loc": { "start": { "line": 183, @@ -9362,8 +9362,8 @@ }, "id": { "type": "Identifier", - "start": 7761, - "end": 7773, + "start": 7579, + "end": 7591, "loc": { "start": { "line": 183, @@ -9379,8 +9379,8 @@ }, "init": { "type": "CallExpression", - "start": 7776, - "end": 7811, + "start": 7594, + "end": 7629, "loc": { "start": { "line": 183, @@ -9393,8 +9393,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7776, - "end": 7800, + "start": 7594, + "end": 7618, "loc": { "start": { "line": 183, @@ -9407,8 +9407,8 @@ }, "object": { "type": "MemberExpression", - "start": 7776, - "end": 7796, + "start": 7594, + "end": 7614, "loc": { "start": { "line": 183, @@ -9421,8 +9421,8 @@ }, "object": { "type": "ThisExpression", - "start": 7776, - "end": 7780, + "start": 7594, + "end": 7598, "loc": { "start": { "line": 183, @@ -9436,8 +9436,8 @@ }, "property": { "type": "Identifier", - "start": 7781, - "end": 7796, + "start": 7599, + "end": 7614, "loc": { "start": { "line": 183, @@ -9455,8 +9455,8 @@ }, "property": { "type": "Identifier", - "start": 7797, - "end": 7800, + "start": 7615, + "end": 7618, "loc": { "start": { "line": 183, @@ -9475,8 +9475,8 @@ "arguments": [ { "type": "Identifier", - "start": 7801, - "end": 7810, + "start": 7619, + "end": 7628, "loc": { "start": { "line": 183, @@ -9499,8 +9499,8 @@ { "type": "CommentLine", "value": " Move the instance with the camera if the parallax is set to 0", - "start": 7828, - "end": 7892, + "start": 7644, + "end": 7708, "loc": { "start": { "line": 185, @@ -9516,8 +9516,8 @@ }, { "type": "VariableDeclaration", - "start": 7906, - "end": 7949, + "start": 7721, + "end": 7764, "loc": { "start": { "line": 186, @@ -9531,8 +9531,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 7912, - "end": 7948, + "start": 7727, + "end": 7763, "loc": { "start": { "line": 186, @@ -9545,8 +9545,8 @@ }, "id": { "type": "Identifier", - "start": 7912, - "end": 7925, + "start": 7727, + "end": 7740, "loc": { "start": { "line": 186, @@ -9563,8 +9563,8 @@ }, "init": { "type": "BinaryExpression", - "start": 7928, - "end": 7948, + "start": 7743, + "end": 7763, "loc": { "start": { "line": 186, @@ -9577,8 +9577,8 @@ }, "left": { "type": "MemberExpression", - "start": 7928, - "end": 7942, + "start": 7743, + "end": 7757, "loc": { "start": { "line": 186, @@ -9591,8 +9591,8 @@ }, "object": { "type": "Identifier", - "start": 7928, - "end": 7940, + "start": 7743, + "end": 7755, "loc": { "start": { "line": 186, @@ -9608,8 +9608,8 @@ }, "property": { "type": "Identifier", - "start": 7941, - "end": 7942, + "start": 7756, + "end": 7757, "loc": { "start": { "line": 186, @@ -9628,8 +9628,8 @@ "operator": "===", "right": { "type": "NumericLiteral", - "start": 7947, - "end": 7948, + "start": 7762, + "end": 7763, "loc": { "start": { "line": 186, @@ -9655,8 +9655,8 @@ { "type": "CommentLine", "value": " Move the instance with the camera if the parallax is set to 0", - "start": 7828, - "end": 7892, + "start": 7644, + "end": 7708, "loc": { "start": { "line": 185, @@ -9672,8 +9672,8 @@ }, { "type": "VariableDeclaration", - "start": 7963, - "end": 8006, + "start": 7777, + "end": 7820, "loc": { "start": { "line": 187, @@ -9687,8 +9687,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 7969, - "end": 8005, + "start": 7783, + "end": 7819, "loc": { "start": { "line": 187, @@ -9701,8 +9701,8 @@ }, "id": { "type": "Identifier", - "start": 7969, - "end": 7982, + "start": 7783, + "end": 7796, "loc": { "start": { "line": 187, @@ -9718,8 +9718,8 @@ }, "init": { "type": "BinaryExpression", - "start": 7985, - "end": 8005, + "start": 7799, + "end": 7819, "loc": { "start": { "line": 187, @@ -9732,8 +9732,8 @@ }, "left": { "type": "MemberExpression", - "start": 7985, - "end": 7999, + "start": 7799, + "end": 7813, "loc": { "start": { "line": 187, @@ -9746,8 +9746,8 @@ }, "object": { "type": "Identifier", - "start": 7985, - "end": 7997, + "start": 7799, + "end": 7811, "loc": { "start": { "line": 187, @@ -9763,8 +9763,8 @@ }, "property": { "type": "Identifier", - "start": 7998, - "end": 7999, + "start": 7812, + "end": 7813, "loc": { "start": { "line": 187, @@ -9783,8 +9783,8 @@ "operator": "===", "right": { "type": "NumericLiteral", - "start": 8004, - "end": 8005, + "start": 7818, + "end": 7819, "loc": { "start": { "line": 187, @@ -9809,8 +9809,8 @@ { "type": "CommentLine", "value": " Position to set the instance to.", - "start": 8022, - "end": 8057, + "start": 7834, + "end": 7869, "loc": { "start": { "line": 189, @@ -9826,8 +9826,8 @@ }, { "type": "VariableDeclaration", - "start": 8071, - "end": 8077, + "start": 7882, + "end": 7888, "loc": { "start": { "line": 190, @@ -9841,8 +9841,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 8075, - "end": 8076, + "start": 7886, + "end": 7887, "loc": { "start": { "line": 190, @@ -9855,8 +9855,8 @@ }, "id": { "type": "Identifier", - "start": 8075, - "end": 8076, + "start": 7886, + "end": 7887, "loc": { "start": { "line": 190, @@ -9880,8 +9880,8 @@ { "type": "CommentLine", "value": " Position to set the instance to.", - "start": 8022, - "end": 8057, + "start": 7834, + "end": 7869, "loc": { "start": { "line": 189, @@ -9897,8 +9897,8 @@ }, { "type": "VariableDeclaration", - "start": 8091, - "end": 8097, + "start": 7901, + "end": 7907, "loc": { "start": { "line": 191, @@ -9912,8 +9912,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 8095, - "end": 8096, + "start": 7905, + "end": 7906, "loc": { "start": { "line": 191, @@ -9926,8 +9926,8 @@ }, "id": { "type": "Identifier", - "start": 8095, - "end": 8096, + "start": 7905, + "end": 7906, "loc": { "start": { "line": 191, @@ -9948,8 +9948,8 @@ }, { "type": "IfStatement", - "start": 8113, - "end": 8382, + "start": 7921, + "end": 8184, "loc": { "start": { "line": 193, @@ -9962,8 +9962,8 @@ }, "test": { "type": "Identifier", - "start": 8117, - "end": 8130, + "start": 7925, + "end": 7938, "loc": { "start": { "line": 193, @@ -9979,8 +9979,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 8132, - "end": 8205, + "start": 7940, + "end": 8011, "loc": { "start": { "line": 193, @@ -9994,8 +9994,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 8151, - "end": 8190, + "start": 7958, + "end": 7997, "loc": { "start": { "line": 194, @@ -10008,8 +10008,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8151, - "end": 8189, + "start": 7958, + "end": 7996, "loc": { "start": { "line": 194, @@ -10023,8 +10023,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 8151, - "end": 8152, + "start": 7958, + "end": 7959, "loc": { "start": { "line": 194, @@ -10040,8 +10040,8 @@ }, "right": { "type": "BinaryExpression", - "start": 8155, - "end": 8189, + "start": 7962, + "end": 7996, "loc": { "start": { "line": 194, @@ -10054,8 +10054,8 @@ }, "left": { "type": "Identifier", - "start": 8155, - "end": 8162, + "start": 7962, + "end": 7969, "loc": { "start": { "line": 194, @@ -10072,8 +10072,8 @@ "operator": "-", "right": { "type": "BinaryExpression", - "start": 8165, - "end": 8189, + "start": 7972, + "end": 7996, "loc": { "start": { "line": 194, @@ -10086,8 +10086,8 @@ }, "left": { "type": "MemberExpression", - "start": 8165, - "end": 8185, + "start": 7972, + "end": 7992, "loc": { "start": { "line": 194, @@ -10100,8 +10100,8 @@ }, "object": { "type": "MemberExpression", - "start": 8165, - "end": 8179, + "start": 7972, + "end": 7986, "loc": { "start": { "line": 194, @@ -10114,8 +10114,8 @@ }, "object": { "type": "Identifier", - "start": 8165, - "end": 8174, + "start": 7972, + "end": 7981, "loc": { "start": { "line": 194, @@ -10131,8 +10131,8 @@ }, "property": { "type": "Identifier", - "start": 8175, - "end": 8179, + "start": 7982, + "end": 7986, "loc": { "start": { "line": 194, @@ -10150,8 +10150,8 @@ }, "property": { "type": "Identifier", - "start": 8180, - "end": 8185, + "start": 7987, + "end": 7992, "loc": { "start": { "line": 194, @@ -10170,8 +10170,8 @@ "operator": "/", "right": { "type": "NumericLiteral", - "start": 8188, - "end": 8189, + "start": 7995, + "end": 7996, "loc": { "start": { "line": 194, @@ -10197,8 +10197,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 8211, - "end": 8382, + "start": 8017, + "end": 8184, "loc": { "start": { "line": 195, @@ -10212,8 +10212,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 8230, - "end": 8271, + "start": 8035, + "end": 8076, "loc": { "start": { "line": 196, @@ -10227,8 +10227,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 8234, - "end": 8270, + "start": 8039, + "end": 8075, "loc": { "start": { "line": 196, @@ -10241,8 +10241,8 @@ }, "id": { "type": "Identifier", - "start": 8234, - "end": 8240, + "start": 8039, + "end": 8045, "loc": { "start": { "line": 196, @@ -10258,8 +10258,8 @@ }, "init": { "type": "BinaryExpression", - "start": 8243, - "end": 8270, + "start": 8048, + "end": 8075, "loc": { "start": { "line": 196, @@ -10272,8 +10272,8 @@ }, "left": { "type": "Identifier", - "start": 8243, - "end": 8250, + "start": 8048, + "end": 8055, "loc": { "start": { "line": 196, @@ -10290,8 +10290,8 @@ "operator": "-", "right": { "type": "MemberExpression", - "start": 8253, - "end": 8270, + "start": 8058, + "end": 8075, "loc": { "start": { "line": 196, @@ -10304,8 +10304,8 @@ }, "object": { "type": "MemberExpression", - "start": 8253, - "end": 8268, + "start": 8058, + "end": 8073, "loc": { "start": { "line": 196, @@ -10318,8 +10318,8 @@ }, "object": { "type": "ThisExpression", - "start": 8253, - "end": 8257, + "start": 8058, + "end": 8062, "loc": { "start": { "line": 196, @@ -10333,8 +10333,8 @@ }, "property": { "type": "Identifier", - "start": 8258, - "end": 8268, + "start": 8063, + "end": 8073, "loc": { "start": { "line": 196, @@ -10352,8 +10352,8 @@ }, "property": { "type": "Identifier", - "start": 8269, - "end": 8270, + "start": 8074, + "end": 8075, "loc": { "start": { "line": 196, @@ -10376,8 +10376,8 @@ }, { "type": "VariableDeclaration", - "start": 8289, - "end": 8325, + "start": 8093, + "end": 8129, "loc": { "start": { "line": 197, @@ -10391,8 +10391,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 8293, - "end": 8324, + "start": 8097, + "end": 8128, "loc": { "start": { "line": 197, @@ -10405,8 +10405,8 @@ }, "id": { "type": "Identifier", - "start": 8293, - "end": 8298, + "start": 8097, + "end": 8102, "loc": { "start": { "line": 197, @@ -10422,8 +10422,8 @@ }, "init": { "type": "BinaryExpression", - "start": 8301, - "end": 8324, + "start": 8105, + "end": 8128, "loc": { "start": { "line": 197, @@ -10436,8 +10436,8 @@ }, "left": { "type": "Identifier", - "start": 8301, - "end": 8307, + "start": 8105, + "end": 8111, "loc": { "start": { "line": 197, @@ -10454,8 +10454,8 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 8310, - "end": 8324, + "start": 8114, + "end": 8128, "loc": { "start": { "line": 197, @@ -10468,8 +10468,8 @@ }, "object": { "type": "Identifier", - "start": 8310, - "end": 8322, + "start": 8114, + "end": 8126, "loc": { "start": { "line": 197, @@ -10485,8 +10485,8 @@ }, "property": { "type": "Identifier", - "start": 8323, - "end": 8324, + "start": 8127, + "end": 8128, "loc": { "start": { "line": 197, @@ -10509,8 +10509,8 @@ }, { "type": "ExpressionStatement", - "start": 8343, - "end": 8367, + "start": 8146, + "end": 8170, "loc": { "start": { "line": 198, @@ -10523,8 +10523,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8343, - "end": 8366, + "start": 8146, + "end": 8169, "loc": { "start": { "line": 198, @@ -10538,8 +10538,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 8343, - "end": 8344, + "start": 8146, + "end": 8147, "loc": { "start": { "line": 198, @@ -10555,8 +10555,8 @@ }, "right": { "type": "BinaryExpression", - "start": 8347, - "end": 8366, + "start": 8150, + "end": 8169, "loc": { "start": { "line": 198, @@ -10569,8 +10569,8 @@ }, "left": { "type": "MemberExpression", - "start": 8347, - "end": 8358, + "start": 8150, + "end": 8161, "loc": { "start": { "line": 198, @@ -10583,8 +10583,8 @@ }, "object": { "type": "Identifier", - "start": 8347, - "end": 8356, + "start": 8150, + "end": 8159, "loc": { "start": { "line": 198, @@ -10600,8 +10600,8 @@ }, "property": { "type": "Identifier", - "start": 8357, - "end": 8358, + "start": 8160, + "end": 8161, "loc": { "start": { "line": 198, @@ -10620,8 +10620,8 @@ "operator": "+", "right": { "type": "Identifier", - "start": 8361, - "end": 8366, + "start": 8164, + "end": 8169, "loc": { "start": { "line": 198, @@ -10644,8 +10644,8 @@ }, { "type": "IfStatement", - "start": 8398, - "end": 8668, + "start": 8198, + "end": 8462, "loc": { "start": { "line": 201, @@ -10658,8 +10658,8 @@ }, "test": { "type": "Identifier", - "start": 8402, - "end": 8415, + "start": 8202, + "end": 8215, "loc": { "start": { "line": 201, @@ -10675,8 +10675,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 8417, - "end": 8491, + "start": 8217, + "end": 8289, "loc": { "start": { "line": 201, @@ -10690,8 +10690,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 8436, - "end": 8476, + "start": 8235, + "end": 8275, "loc": { "start": { "line": 202, @@ -10704,8 +10704,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8436, - "end": 8475, + "start": 8235, + "end": 8274, "loc": { "start": { "line": 202, @@ -10719,8 +10719,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 8436, - "end": 8437, + "start": 8235, + "end": 8236, "loc": { "start": { "line": 202, @@ -10736,8 +10736,8 @@ }, "right": { "type": "BinaryExpression", - "start": 8440, - "end": 8475, + "start": 8239, + "end": 8274, "loc": { "start": { "line": 202, @@ -10750,8 +10750,8 @@ }, "left": { "type": "Identifier", - "start": 8440, - "end": 8447, + "start": 8239, + "end": 8246, "loc": { "start": { "line": 202, @@ -10768,8 +10768,8 @@ "operator": "-", "right": { "type": "BinaryExpression", - "start": 8450, - "end": 8475, + "start": 8249, + "end": 8274, "loc": { "start": { "line": 202, @@ -10782,8 +10782,8 @@ }, "left": { "type": "MemberExpression", - "start": 8450, - "end": 8471, + "start": 8249, + "end": 8270, "loc": { "start": { "line": 202, @@ -10796,8 +10796,8 @@ }, "object": { "type": "MemberExpression", - "start": 8450, - "end": 8464, + "start": 8249, + "end": 8263, "loc": { "start": { "line": 202, @@ -10810,8 +10810,8 @@ }, "object": { "type": "Identifier", - "start": 8450, - "end": 8459, + "start": 8249, + "end": 8258, "loc": { "start": { "line": 202, @@ -10827,8 +10827,8 @@ }, "property": { "type": "Identifier", - "start": 8460, - "end": 8464, + "start": 8259, + "end": 8263, "loc": { "start": { "line": 202, @@ -10846,8 +10846,8 @@ }, "property": { "type": "Identifier", - "start": 8465, - "end": 8471, + "start": 8264, + "end": 8270, "loc": { "start": { "line": 202, @@ -10866,8 +10866,8 @@ "operator": "/", "right": { "type": "NumericLiteral", - "start": 8474, - "end": 8475, + "start": 8273, + "end": 8274, "loc": { "start": { "line": 202, @@ -10893,8 +10893,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 8497, - "end": 8668, + "start": 8295, + "end": 8462, "loc": { "start": { "line": 203, @@ -10908,8 +10908,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 8516, - "end": 8557, + "start": 8313, + "end": 8354, "loc": { "start": { "line": 204, @@ -10923,8 +10923,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 8520, - "end": 8556, + "start": 8317, + "end": 8353, "loc": { "start": { "line": 204, @@ -10937,8 +10937,8 @@ }, "id": { "type": "Identifier", - "start": 8520, - "end": 8526, + "start": 8317, + "end": 8323, "loc": { "start": { "line": 204, @@ -10954,8 +10954,8 @@ }, "init": { "type": "BinaryExpression", - "start": 8529, - "end": 8556, + "start": 8326, + "end": 8353, "loc": { "start": { "line": 204, @@ -10968,8 +10968,8 @@ }, "left": { "type": "Identifier", - "start": 8529, - "end": 8536, + "start": 8326, + "end": 8333, "loc": { "start": { "line": 204, @@ -10986,8 +10986,8 @@ "operator": "-", "right": { "type": "MemberExpression", - "start": 8539, - "end": 8556, + "start": 8336, + "end": 8353, "loc": { "start": { "line": 204, @@ -11000,8 +11000,8 @@ }, "object": { "type": "MemberExpression", - "start": 8539, - "end": 8554, + "start": 8336, + "end": 8351, "loc": { "start": { "line": 204, @@ -11014,8 +11014,8 @@ }, "object": { "type": "ThisExpression", - "start": 8539, - "end": 8543, + "start": 8336, + "end": 8340, "loc": { "start": { "line": 204, @@ -11029,8 +11029,8 @@ }, "property": { "type": "Identifier", - "start": 8544, - "end": 8554, + "start": 8341, + "end": 8351, "loc": { "start": { "line": 204, @@ -11048,8 +11048,8 @@ }, "property": { "type": "Identifier", - "start": 8555, - "end": 8556, + "start": 8352, + "end": 8353, "loc": { "start": { "line": 204, @@ -11072,8 +11072,8 @@ }, { "type": "VariableDeclaration", - "start": 8575, - "end": 8611, + "start": 8371, + "end": 8407, "loc": { "start": { "line": 205, @@ -11087,8 +11087,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 8579, - "end": 8610, + "start": 8375, + "end": 8406, "loc": { "start": { "line": 205, @@ -11101,8 +11101,8 @@ }, "id": { "type": "Identifier", - "start": 8579, - "end": 8584, + "start": 8375, + "end": 8380, "loc": { "start": { "line": 205, @@ -11118,8 +11118,8 @@ }, "init": { "type": "BinaryExpression", - "start": 8587, - "end": 8610, + "start": 8383, + "end": 8406, "loc": { "start": { "line": 205, @@ -11132,8 +11132,8 @@ }, "left": { "type": "Identifier", - "start": 8587, - "end": 8593, + "start": 8383, + "end": 8389, "loc": { "start": { "line": 205, @@ -11150,8 +11150,8 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 8596, - "end": 8610, + "start": 8392, + "end": 8406, "loc": { "start": { "line": 205, @@ -11164,8 +11164,8 @@ }, "object": { "type": "Identifier", - "start": 8596, - "end": 8608, + "start": 8392, + "end": 8404, "loc": { "start": { "line": 205, @@ -11181,8 +11181,8 @@ }, "property": { "type": "Identifier", - "start": 8609, - "end": 8610, + "start": 8405, + "end": 8406, "loc": { "start": { "line": 205, @@ -11205,8 +11205,8 @@ }, { "type": "ExpressionStatement", - "start": 8629, - "end": 8653, + "start": 8424, + "end": 8448, "loc": { "start": { "line": 206, @@ -11219,8 +11219,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8629, - "end": 8652, + "start": 8424, + "end": 8447, "loc": { "start": { "line": 206, @@ -11234,8 +11234,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 8629, - "end": 8630, + "start": 8424, + "end": 8425, "loc": { "start": { "line": 206, @@ -11251,8 +11251,8 @@ }, "right": { "type": "BinaryExpression", - "start": 8633, - "end": 8652, + "start": 8428, + "end": 8447, "loc": { "start": { "line": 206, @@ -11265,8 +11265,8 @@ }, "left": { "type": "MemberExpression", - "start": 8633, - "end": 8644, + "start": 8428, + "end": 8439, "loc": { "start": { "line": 206, @@ -11279,8 +11279,8 @@ }, "object": { "type": "Identifier", - "start": 8633, - "end": 8642, + "start": 8428, + "end": 8437, "loc": { "start": { "line": 206, @@ -11296,8 +11296,8 @@ }, "property": { "type": "Identifier", - "start": 8643, - "end": 8644, + "start": 8438, + "end": 8439, "loc": { "start": { "line": 206, @@ -11316,8 +11316,8 @@ "operator": "+", "right": { "type": "Identifier", - "start": 8647, - "end": 8652, + "start": 8442, + "end": 8447, "loc": { "start": { "line": 206, @@ -11342,8 +11342,8 @@ { "type": "CommentLine", "value": " Set the position", - "start": 8684, - "end": 8703, + "start": 8476, + "end": 8495, "loc": { "start": { "line": 209, @@ -11359,8 +11359,8 @@ }, { "type": "ExpressionStatement", - "start": 8717, - "end": 8733, + "start": 8508, + "end": 8524, "loc": { "start": { "line": 210, @@ -11373,8 +11373,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8717, - "end": 8732, + "start": 8508, + "end": 8523, "loc": { "start": { "line": 210, @@ -11388,8 +11388,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 8717, - "end": 8728, + "start": 8508, + "end": 8519, "loc": { "start": { "line": 210, @@ -11402,8 +11402,8 @@ }, "object": { "type": "Identifier", - "start": 8717, - "end": 8726, + "start": 8508, + "end": 8517, "loc": { "start": { "line": 210, @@ -11420,8 +11420,8 @@ }, "property": { "type": "Identifier", - "start": 8727, - "end": 8728, + "start": 8518, + "end": 8519, "loc": { "start": { "line": 210, @@ -11440,8 +11440,8 @@ }, "right": { "type": "Identifier", - "start": 8731, - "end": 8732, + "start": 8522, + "end": 8523, "loc": { "start": { "line": 210, @@ -11461,8 +11461,8 @@ { "type": "CommentLine", "value": " Set the position", - "start": 8684, - "end": 8703, + "start": 8476, + "end": 8495, "loc": { "start": { "line": 209, @@ -11478,8 +11478,8 @@ }, { "type": "ExpressionStatement", - "start": 8747, - "end": 8763, + "start": 8537, + "end": 8553, "loc": { "start": { "line": 211, @@ -11492,8 +11492,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8747, - "end": 8762, + "start": 8537, + "end": 8552, "loc": { "start": { "line": 211, @@ -11507,8 +11507,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 8747, - "end": 8758, + "start": 8537, + "end": 8548, "loc": { "start": { "line": 211, @@ -11521,8 +11521,8 @@ }, "object": { "type": "Identifier", - "start": 8747, - "end": 8756, + "start": 8537, + "end": 8546, "loc": { "start": { "line": 211, @@ -11538,8 +11538,8 @@ }, "property": { "type": "Identifier", - "start": 8757, - "end": 8758, + "start": 8547, + "end": 8548, "loc": { "start": { "line": 211, @@ -11557,8 +11557,8 @@ }, "right": { "type": "Identifier", - "start": 8761, - "end": 8762, + "start": 8551, + "end": 8552, "loc": { "start": { "line": 211, @@ -11577,8 +11577,8 @@ { "type": "CommentLine", "value": " Logic cannot be ran on background instances as they should not loop", - "start": 8791, - "end": 8861, + "start": 8579, + "end": 8649, "loc": { "start": { "line": 213, @@ -11594,8 +11594,8 @@ }, { "type": "IfStatement", - "start": 8875, - "end": 9496, + "start": 8662, + "end": 9271, "loc": { "start": { "line": 214, @@ -11608,8 +11608,8 @@ }, "test": { "type": "LogicalExpression", - "start": 8879, - "end": 8911, + "start": 8666, + "end": 8698, "loc": { "start": { "line": 214, @@ -11622,8 +11622,8 @@ }, "left": { "type": "UnaryExpression", - "start": 8879, - "end": 8893, + "start": 8666, + "end": 8680, "loc": { "start": { "line": 214, @@ -11638,8 +11638,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 8880, - "end": 8893, + "start": 8667, + "end": 8680, "loc": { "start": { "line": 214, @@ -11662,8 +11662,8 @@ "operator": "&&", "right": { "type": "UnaryExpression", - "start": 8897, - "end": 8911, + "start": 8684, + "end": 8698, "loc": { "start": { "line": 214, @@ -11678,8 +11678,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 8898, - "end": 8911, + "start": 8685, + "end": 8698, "loc": { "start": { "line": 214, @@ -11701,8 +11701,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 8913, - "end": 9496, + "start": 8700, + "end": 9271, "loc": { "start": { "line": 214, @@ -11716,8 +11716,8 @@ "body": [ { "type": "IfStatement", - "start": 8932, - "end": 9481, + "start": 8718, + "end": 9257, "loc": { "start": { "line": 215, @@ -11730,8 +11730,8 @@ }, "test": { "type": "MemberExpression", - "start": 8936, - "end": 8953, + "start": 8722, + "end": 8739, "loc": { "start": { "line": 215, @@ -11744,8 +11744,8 @@ }, "object": { "type": "Identifier", - "start": 8936, - "end": 8948, + "start": 8722, + "end": 8734, "loc": { "start": { "line": 215, @@ -11761,8 +11761,8 @@ }, "property": { "type": "Identifier", - "start": 8949, - "end": 8953, + "start": 8735, + "end": 8739, "loc": { "start": { "line": 215, @@ -11780,8 +11780,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 8955, - "end": 9481, + "start": 8741, + "end": 9257, "loc": { "start": { "line": 215, @@ -11795,8 +11795,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 9030, - "end": 9082, + "start": 8814, + "end": 8866, "loc": { "start": { "line": 217, @@ -11810,8 +11810,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 9036, - "end": 9081, + "start": 8820, + "end": 8865, "loc": { "start": { "line": 217, @@ -11824,8 +11824,8 @@ }, "id": { "type": "Identifier", - "start": 9036, - "end": 9044, + "start": 8820, + "end": 8828, "loc": { "start": { "line": 217, @@ -11842,8 +11842,8 @@ }, "init": { "type": "BinaryExpression", - "start": 9047, - "end": 9081, + "start": 8831, + "end": 8865, "loc": { "start": { "line": 217, @@ -11856,8 +11856,8 @@ }, "left": { "type": "MemberExpression", - "start": 9047, - "end": 9058, + "start": 8831, + "end": 8842, "loc": { "start": { "line": 217, @@ -11870,8 +11870,8 @@ }, "object": { "type": "Identifier", - "start": 9047, - "end": 9056, + "start": 8831, + "end": 8840, "loc": { "start": { "line": 217, @@ -11887,8 +11887,8 @@ }, "property": { "type": "Identifier", - "start": 9057, - "end": 9058, + "start": 8841, + "end": 8842, "loc": { "start": { "line": 217, @@ -11907,8 +11907,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 9061, - "end": 9081, + "start": 8845, + "end": 8865, "loc": { "start": { "line": 217, @@ -11921,8 +11921,8 @@ }, "object": { "type": "MemberExpression", - "start": 9061, - "end": 9075, + "start": 8845, + "end": 8859, "loc": { "start": { "line": 217, @@ -11935,8 +11935,8 @@ }, "object": { "type": "Identifier", - "start": 9061, - "end": 9070, + "start": 8845, + "end": 8854, "loc": { "start": { "line": 217, @@ -11952,8 +11952,8 @@ }, "property": { "type": "Identifier", - "start": 9071, - "end": 9075, + "start": 8855, + "end": 8859, "loc": { "start": { "line": 217, @@ -11971,8 +11971,8 @@ }, "property": { "type": "Identifier", - "start": 9076, - "end": 9081, + "start": 8860, + "end": 8865, "loc": { "start": { "line": 217, @@ -11997,8 +11997,8 @@ { "type": "CommentLine", "value": " The start pos + total width", - "start": 8978, - "end": 9008, + "start": 8763, + "end": 8793, "loc": { "start": { "line": 216, @@ -12015,8 +12015,8 @@ { "type": "CommentLine", "value": " The start pos - total width / 2", - "start": 9104, - "end": 9138, + "start": 8887, + "end": 8921, "loc": { "start": { "line": 218, @@ -12032,8 +12032,8 @@ }, { "type": "VariableDeclaration", - "start": 9160, - "end": 9215, + "start": 8942, + "end": 8997, "loc": { "start": { "line": 219, @@ -12047,8 +12047,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 9166, - "end": 9214, + "start": 8948, + "end": 8996, "loc": { "start": { "line": 219, @@ -12061,8 +12061,8 @@ }, "id": { "type": "Identifier", - "start": 9166, - "end": 9173, + "start": 8948, + "end": 8955, "loc": { "start": { "line": 219, @@ -12079,8 +12079,8 @@ }, "init": { "type": "BinaryExpression", - "start": 9176, - "end": 9214, + "start": 8958, + "end": 8996, "loc": { "start": { "line": 219, @@ -12093,8 +12093,8 @@ }, "left": { "type": "MemberExpression", - "start": 9176, - "end": 9187, + "start": 8958, + "end": 8969, "loc": { "start": { "line": 219, @@ -12107,8 +12107,8 @@ }, "object": { "type": "Identifier", - "start": 9176, - "end": 9185, + "start": 8958, + "end": 8967, "loc": { "start": { "line": 219, @@ -12124,8 +12124,8 @@ }, "property": { "type": "Identifier", - "start": 9186, - "end": 9187, + "start": 8968, + "end": 8969, "loc": { "start": { "line": 219, @@ -12144,8 +12144,8 @@ "operator": "-", "right": { "type": "BinaryExpression", - "start": 9190, - "end": 9214, + "start": 8972, + "end": 8996, "loc": { "start": { "line": 219, @@ -12158,8 +12158,8 @@ }, "left": { "type": "MemberExpression", - "start": 9190, - "end": 9210, + "start": 8972, + "end": 8992, "loc": { "start": { "line": 219, @@ -12172,8 +12172,8 @@ }, "object": { "type": "MemberExpression", - "start": 9190, - "end": 9204, + "start": 8972, + "end": 8986, "loc": { "start": { "line": 219, @@ -12186,8 +12186,8 @@ }, "object": { "type": "Identifier", - "start": 9190, - "end": 9199, + "start": 8972, + "end": 8981, "loc": { "start": { "line": 219, @@ -12203,8 +12203,8 @@ }, "property": { "type": "Identifier", - "start": 9200, - "end": 9204, + "start": 8982, + "end": 8986, "loc": { "start": { "line": 219, @@ -12222,8 +12222,8 @@ }, "property": { "type": "Identifier", - "start": 9205, - "end": 9210, + "start": 8987, + "end": 8992, "loc": { "start": { "line": 219, @@ -12242,8 +12242,8 @@ "operator": "/", "right": { "type": "NumericLiteral", - "start": 9213, - "end": 9214, + "start": 8995, + "end": 8996, "loc": { "start": { "line": 219, @@ -12270,8 +12270,8 @@ { "type": "CommentLine", "value": " The start pos - total width / 2", - "start": 9104, - "end": 9138, + "start": 8887, + "end": 8921, "loc": { "start": { "line": 218, @@ -12287,8 +12287,8 @@ }, { "type": "IfStatement", - "start": 9237, - "end": 9462, + "start": 9018, + "end": 9239, "loc": { "start": { "line": 220, @@ -12301,8 +12301,8 @@ }, "test": { "type": "BinaryExpression", - "start": 9241, - "end": 9259, + "start": 9022, + "end": 9040, "loc": { "start": { "line": 220, @@ -12315,8 +12315,8 @@ }, "left": { "type": "Identifier", - "start": 9241, - "end": 9248, + "start": 9022, + "end": 9029, "loc": { "start": { "line": 220, @@ -12333,8 +12333,8 @@ "operator": ">", "right": { "type": "Identifier", - "start": 9251, - "end": 9259, + "start": 9032, + "end": 9040, "loc": { "start": { "line": 220, @@ -12351,8 +12351,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 9261, - "end": 9347, + "start": 9042, + "end": 9126, "loc": { "start": { "line": 220, @@ -12366,8 +12366,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 9288, - "end": 9324, + "start": 9068, + "end": 9104, "loc": { "start": { "line": 221, @@ -12380,8 +12380,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 9288, - "end": 9323, + "start": 9068, + "end": 9103, "loc": { "start": { "line": 221, @@ -12395,8 +12395,8 @@ "operator": "+=", "left": { "type": "MemberExpression", - "start": 9288, - "end": 9299, + "start": 9068, + "end": 9079, "loc": { "start": { "line": 221, @@ -12409,8 +12409,8 @@ }, "object": { "type": "Identifier", - "start": 9288, - "end": 9297, + "start": 9068, + "end": 9077, "loc": { "start": { "line": 221, @@ -12426,8 +12426,8 @@ }, "property": { "type": "Identifier", - "start": 9298, - "end": 9299, + "start": 9078, + "end": 9079, "loc": { "start": { "line": 221, @@ -12445,8 +12445,8 @@ }, "right": { "type": "MemberExpression", - "start": 9303, - "end": 9323, + "start": 9083, + "end": 9103, "loc": { "start": { "line": 221, @@ -12459,8 +12459,8 @@ }, "object": { "type": "MemberExpression", - "start": 9303, - "end": 9317, + "start": 9083, + "end": 9097, "loc": { "start": { "line": 221, @@ -12473,8 +12473,8 @@ }, "object": { "type": "Identifier", - "start": 9303, - "end": 9312, + "start": 9083, + "end": 9092, "loc": { "start": { "line": 221, @@ -12490,8 +12490,8 @@ }, "property": { "type": "Identifier", - "start": 9313, - "end": 9317, + "start": 9093, + "end": 9097, "loc": { "start": { "line": 221, @@ -12509,8 +12509,8 @@ }, "property": { "type": "Identifier", - "start": 9318, - "end": 9323, + "start": 9098, + "end": 9103, "loc": { "start": { "line": 221, @@ -12533,8 +12533,8 @@ }, "alternate": { "type": "IfStatement", - "start": 9353, - "end": 9462, + "start": 9132, + "end": 9239, "loc": { "start": { "line": 222, @@ -12547,8 +12547,8 @@ }, "test": { "type": "BinaryExpression", - "start": 9357, - "end": 9374, + "start": 9136, + "end": 9153, "loc": { "start": { "line": 222, @@ -12561,8 +12561,8 @@ }, "left": { "type": "Identifier", - "start": 9357, - "end": 9364, + "start": 9136, + "end": 9143, "loc": { "start": { "line": 222, @@ -12579,8 +12579,8 @@ "operator": "<", "right": { "type": "Identifier", - "start": 9367, - "end": 9374, + "start": 9146, + "end": 9153, "loc": { "start": { "line": 222, @@ -12597,8 +12597,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 9376, - "end": 9462, + "start": 9155, + "end": 9239, "loc": { "start": { "line": 222, @@ -12612,8 +12612,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 9403, - "end": 9439, + "start": 9181, + "end": 9217, "loc": { "start": { "line": 223, @@ -12626,8 +12626,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 9403, - "end": 9438, + "start": 9181, + "end": 9216, "loc": { "start": { "line": 223, @@ -12641,8 +12641,8 @@ "operator": "-=", "left": { "type": "MemberExpression", - "start": 9403, - "end": 9414, + "start": 9181, + "end": 9192, "loc": { "start": { "line": 223, @@ -12655,8 +12655,8 @@ }, "object": { "type": "Identifier", - "start": 9403, - "end": 9412, + "start": 9181, + "end": 9190, "loc": { "start": { "line": 223, @@ -12672,8 +12672,8 @@ }, "property": { "type": "Identifier", - "start": 9413, - "end": 9414, + "start": 9191, + "end": 9192, "loc": { "start": { "line": 223, @@ -12691,8 +12691,8 @@ }, "right": { "type": "MemberExpression", - "start": 9418, - "end": 9438, + "start": 9196, + "end": 9216, "loc": { "start": { "line": 223, @@ -12705,8 +12705,8 @@ }, "object": { "type": "MemberExpression", - "start": 9418, - "end": 9432, + "start": 9196, + "end": 9210, "loc": { "start": { "line": 223, @@ -12719,8 +12719,8 @@ }, "object": { "type": "Identifier", - "start": 9418, - "end": 9427, + "start": 9196, + "end": 9205, "loc": { "start": { "line": 223, @@ -12736,8 +12736,8 @@ }, "property": { "type": "Identifier", - "start": 9428, - "end": 9432, + "start": 9206, + "end": 9210, "loc": { "start": { "line": 223, @@ -12755,8 +12755,8 @@ }, "property": { "type": "Identifier", - "start": 9433, - "end": 9438, + "start": 9211, + "end": 9216, "loc": { "start": { "line": 223, @@ -12793,8 +12793,8 @@ { "type": "CommentLine", "value": " Logic cannot be ran on background instances as they should not loop", - "start": 8791, - "end": 8861, + "start": 8579, + "end": 8649, "loc": { "start": { "line": 213, @@ -12817,8 +12817,8 @@ }, { "type": "ExpressionStatement", - "start": 9519, - "end": 9547, + "start": 9292, + "end": 9320, "loc": { "start": { "line": 228, @@ -12831,8 +12831,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 9519, - "end": 9546, + "start": 9292, + "end": 9319, "loc": { "start": { "line": 228, @@ -12846,8 +12846,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 9519, - "end": 9536, + "start": 9292, + "end": 9309, "loc": { "start": { "line": 228, @@ -12860,8 +12860,8 @@ }, "object": { "type": "MemberExpression", - "start": 9519, - "end": 9534, + "start": 9292, + "end": 9307, "loc": { "start": { "line": 228, @@ -12874,8 +12874,8 @@ }, "object": { "type": "ThisExpression", - "start": 9519, - "end": 9523, + "start": 9292, + "end": 9296, "loc": { "start": { "line": 228, @@ -12889,8 +12889,8 @@ }, "property": { "type": "Identifier", - "start": 9524, - "end": 9534, + "start": 9297, + "end": 9307, "loc": { "start": { "line": 228, @@ -12908,8 +12908,8 @@ }, "property": { "type": "Identifier", - "start": 9535, - "end": 9536, + "start": 9308, + "end": 9309, "loc": { "start": { "line": 228, @@ -12927,8 +12927,8 @@ }, "right": { "type": "Identifier", - "start": 9539, - "end": 9546, + "start": 9312, + "end": 9319, "loc": { "start": { "line": 228, @@ -12946,8 +12946,8 @@ }, { "type": "ExpressionStatement", - "start": 9557, - "end": 9585, + "start": 9329, + "end": 9357, "loc": { "start": { "line": 229, @@ -12960,8 +12960,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 9557, - "end": 9584, + "start": 9329, + "end": 9356, "loc": { "start": { "line": 229, @@ -12975,8 +12975,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 9557, - "end": 9574, + "start": 9329, + "end": 9346, "loc": { "start": { "line": 229, @@ -12989,8 +12989,8 @@ }, "object": { "type": "MemberExpression", - "start": 9557, - "end": 9572, + "start": 9329, + "end": 9344, "loc": { "start": { "line": 229, @@ -13003,8 +13003,8 @@ }, "object": { "type": "ThisExpression", - "start": 9557, - "end": 9561, + "start": 9329, + "end": 9333, "loc": { "start": { "line": 229, @@ -13018,8 +13018,8 @@ }, "property": { "type": "Identifier", - "start": 9562, - "end": 9572, + "start": 9334, + "end": 9344, "loc": { "start": { "line": 229, @@ -13037,8 +13037,8 @@ }, "property": { "type": "Identifier", - "start": 9573, - "end": 9574, + "start": 9345, + "end": 9346, "loc": { "start": { "line": 229, @@ -13056,8 +13056,8 @@ }, "right": { "type": "Identifier", - "start": 9577, - "end": 9584, + "start": 9349, + "end": 9356, "loc": { "start": { "line": 229, @@ -13080,9 +13080,9 @@ "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, + "value": "*\n * Updates the parallax system.\n * @param {number} pCameraX - The x position of the camera.\n * @param {number} pCameraY - The y position of the camera.\n ", + "start": 7160, + "end": 7335, "loc": { "start": { "line": 172, @@ -13098,9 +13098,9 @@ "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, + "value": "*\n * Handles the onRelocated event for instances. Moves their children in relativity to their position.\n * @param {Diob | MapObject} pInstance - The instance to handle the event for.\n * @param {MapObject[]} pChildren - An array of children belonging to the instance.\n ", + "start": 9368, + "end": 9656, "loc": { "start": { "line": 231, @@ -13116,8 +13116,8 @@ }, { "type": "ClassMethod", - "start": 9896, - "end": 10224, + "start": 9661, + "end": 9982, "loc": { "start": { "line": 236, @@ -13132,8 +13132,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 9896, - "end": 9913, + "start": 9661, + "end": 9678, "loc": { "start": { "line": 236, @@ -13156,8 +13156,8 @@ "params": [ { "type": "Identifier", - "start": 9914, - "end": 9923, + "start": 9679, + "end": 9688, "loc": { "start": { "line": 236, @@ -13173,8 +13173,8 @@ }, { "type": "Identifier", - "start": 9925, - "end": 9934, + "start": 9690, + "end": 9699, "loc": { "start": { "line": 236, @@ -13191,8 +13191,8 @@ ], "body": { "type": "BlockStatement", - "start": 9936, - "end": 10224, + "start": 9701, + "end": 9982, "loc": { "start": { "line": 236, @@ -13206,8 +13206,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 10012, - "end": 10217, + "start": 9775, + "end": 9976, "loc": { "start": { "line": 238, @@ -13220,8 +13220,8 @@ }, "expression": { "type": "CallExpression", - "start": 10012, - "end": 10216, + "start": 9775, + "end": 9975, "loc": { "start": { "line": 238, @@ -13234,8 +13234,8 @@ }, "callee": { "type": "MemberExpression", - "start": 10012, - "end": 10029, + "start": 9775, + "end": 9792, "loc": { "start": { "line": 238, @@ -13248,8 +13248,8 @@ }, "object": { "type": "Identifier", - "start": 10012, - "end": 10021, + "start": 9775, + "end": 9784, "loc": { "start": { "line": 238, @@ -13266,8 +13266,8 @@ }, "property": { "type": "Identifier", - "start": 10022, - "end": 10029, + "start": 9785, + "end": 9792, "loc": { "start": { "line": 238, @@ -13287,8 +13287,8 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 10030, - "end": 10215, + "start": 9793, + "end": 9974, "loc": { "start": { "line": 238, @@ -13306,8 +13306,8 @@ "params": [ { "type": "Identifier", - "start": 10031, - "end": 10037, + "start": 9794, + "end": 9800, "loc": { "start": { "line": 238, @@ -13324,8 +13324,8 @@ ], "body": { "type": "BlockStatement", - "start": 10042, - "end": 10215, + "start": 9805, + "end": 9974, "loc": { "start": { "line": 238, @@ -13339,8 +13339,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 10057, - "end": 10099, + "start": 9819, + "end": 9861, "loc": { "start": { "line": 239, @@ -13353,8 +13353,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 10057, - "end": 10098, + "start": 9819, + "end": 9860, "loc": { "start": { "line": 239, @@ -13368,8 +13368,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 10057, - "end": 10065, + "start": 9819, + "end": 9827, "loc": { "start": { "line": 239, @@ -13382,8 +13382,8 @@ }, "object": { "type": "Identifier", - "start": 10057, - "end": 10063, + "start": 9819, + "end": 9825, "loc": { "start": { "line": 239, @@ -13399,8 +13399,8 @@ }, "property": { "type": "Identifier", - "start": 10064, - "end": 10065, + "start": 9826, + "end": 9827, "loc": { "start": { "line": 239, @@ -13418,8 +13418,8 @@ }, "right": { "type": "BinaryExpression", - "start": 10068, - "end": 10098, + "start": 9830, + "end": 9860, "loc": { "start": { "line": 239, @@ -13432,8 +13432,8 @@ }, "left": { "type": "MemberExpression", - "start": 10068, - "end": 10079, + "start": 9830, + "end": 9841, "loc": { "start": { "line": 239, @@ -13446,8 +13446,8 @@ }, "object": { "type": "Identifier", - "start": 10068, - "end": 10077, + "start": 9830, + "end": 9839, "loc": { "start": { "line": 239, @@ -13463,8 +13463,8 @@ }, "property": { "type": "Identifier", - "start": 10078, - "end": 10079, + "start": 9840, + "end": 9841, "loc": { "start": { "line": 239, @@ -13483,8 +13483,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 10082, - "end": 10098, + "start": 9844, + "end": 9860, "loc": { "start": { "line": 239, @@ -13497,8 +13497,8 @@ }, "object": { "type": "Identifier", - "start": 10082, - "end": 10088, + "start": 9844, + "end": 9850, "loc": { "start": { "line": 239, @@ -13514,8 +13514,8 @@ }, "property": { "type": "Identifier", - "start": 10089, - "end": 10098, + "start": 9851, + "end": 9860, "loc": { "start": { "line": 239, @@ -13536,8 +13536,8 @@ }, { "type": "ExpressionStatement", - "start": 10113, - "end": 10155, + "start": 9874, + "end": 9916, "loc": { "start": { "line": 240, @@ -13550,8 +13550,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 10113, - "end": 10154, + "start": 9874, + "end": 9915, "loc": { "start": { "line": 240, @@ -13565,8 +13565,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 10113, - "end": 10121, + "start": 9874, + "end": 9882, "loc": { "start": { "line": 240, @@ -13579,8 +13579,8 @@ }, "object": { "type": "Identifier", - "start": 10113, - "end": 10119, + "start": 9874, + "end": 9880, "loc": { "start": { "line": 240, @@ -13596,8 +13596,8 @@ }, "property": { "type": "Identifier", - "start": 10120, - "end": 10121, + "start": 9881, + "end": 9882, "loc": { "start": { "line": 240, @@ -13615,8 +13615,8 @@ }, "right": { "type": "BinaryExpression", - "start": 10124, - "end": 10154, + "start": 9885, + "end": 9915, "loc": { "start": { "line": 240, @@ -13629,8 +13629,8 @@ }, "left": { "type": "MemberExpression", - "start": 10124, - "end": 10135, + "start": 9885, + "end": 9896, "loc": { "start": { "line": 240, @@ -13643,8 +13643,8 @@ }, "object": { "type": "Identifier", - "start": 10124, - "end": 10133, + "start": 9885, + "end": 9894, "loc": { "start": { "line": 240, @@ -13660,8 +13660,8 @@ }, "property": { "type": "Identifier", - "start": 10134, - "end": 10135, + "start": 9895, + "end": 9896, "loc": { "start": { "line": 240, @@ -13680,8 +13680,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 10138, - "end": 10154, + "start": 9899, + "end": 9915, "loc": { "start": { "line": 240, @@ -13694,8 +13694,8 @@ }, "object": { "type": "Identifier", - "start": 10138, - "end": 10144, + "start": 9899, + "end": 9905, "loc": { "start": { "line": 240, @@ -13711,8 +13711,8 @@ }, "property": { "type": "Identifier", - "start": 10145, - "end": 10154, + "start": 9906, + "end": 9915, "loc": { "start": { "line": 240, @@ -13733,8 +13733,8 @@ }, { "type": "ExpressionStatement", - "start": 10169, - "end": 10204, + "start": 9929, + "end": 9964, "loc": { "start": { "line": 241, @@ -13747,8 +13747,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 10169, - "end": 10203, + "start": 9929, + "end": 9963, "loc": { "start": { "line": 241, @@ -13762,8 +13762,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 10169, - "end": 10183, + "start": 9929, + "end": 9943, "loc": { "start": { "line": 241, @@ -13776,8 +13776,8 @@ }, "object": { "type": "Identifier", - "start": 10169, - "end": 10175, + "start": 9929, + "end": 9935, "loc": { "start": { "line": 241, @@ -13793,8 +13793,8 @@ }, "property": { "type": "Identifier", - "start": 10176, - "end": 10183, + "start": 9936, + "end": 9943, "loc": { "start": { "line": 241, @@ -13812,8 +13812,8 @@ }, "right": { "type": "MemberExpression", - "start": 10186, - "end": 10203, + "start": 9946, + "end": 9963, "loc": { "start": { "line": 241, @@ -13826,8 +13826,8 @@ }, "object": { "type": "Identifier", - "start": 10186, - "end": 10195, + "start": 9946, + "end": 9955, "loc": { "start": { "line": 241, @@ -13843,8 +13843,8 @@ }, "property": { "type": "Identifier", - "start": 10196, - "end": 10203, + "start": 9956, + "end": 9963, "loc": { "start": { "line": 241, @@ -13873,8 +13873,8 @@ { "type": "CommentLine", "value": " Update the children's position when the parent moves", - "start": 9947, - "end": 10002, + "start": 9711, + "end": 9766, "loc": { "start": { "line": 237, @@ -13894,9 +13894,9 @@ "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, + "value": "*\n * Handles the onRelocated event for instances. Moves their children in relativity to their position.\n * @param {Diob | MapObject} pInstance - The instance to handle the event for.\n * @param {MapObject[]} pChildren - An array of children belonging to the instance.\n ", + "start": 9368, + "end": 9656, "loc": { "start": { "line": 231, @@ -13918,8 +13918,8 @@ }, { "type": "Identifier", - "start": 10231, - "end": 10272, + "start": 9986, + "end": 10027, "loc": { "start": { "line": 246, @@ -13933,8 +13933,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 10237, - "end": 10271, + "start": 9992, + "end": 10026, "loc": { "start": { "line": 246, @@ -13947,8 +13947,8 @@ }, "id": { "type": "Identifier", - "start": 10237, - "end": 10245, + "start": 9992, + "end": 10000, "loc": { "start": { "line": 246, @@ -13964,8 +13964,8 @@ }, "init": { "type": "NewExpression", - "start": 10248, - "end": 10271, + "start": 10003, + "end": 10026, "loc": { "start": { "line": 246, @@ -13978,8 +13978,8 @@ }, "callee": { "type": "Identifier", - "start": 10252, - "end": 10269, + "start": 10007, + "end": 10024, "loc": { "start": { "line": 246, @@ -14004,8 +14004,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 10274, - "end": 10294, + "start": 10028, + "end": 10048, "loc": { "start": { "line": 247, @@ -14020,8 +14020,8 @@ "specifiers": [ { "type": "ExportSpecifier", - "start": 10283, - "end": 10291, + "start": 10037, + "end": 10045, "loc": { "start": { "line": 247, @@ -14034,8 +14034,8 @@ }, "local": { "type": "Identifier", - "start": 10283, - "end": 10291, + "start": 10037, + "end": 10045, "loc": { "start": { "line": 247, @@ -14051,8 +14051,8 @@ }, "exported": { "type": "Identifier", - "start": 10283, - "end": 10291, + "start": 10037, + "end": 10045, "loc": { "start": { "line": 247, @@ -14072,8 +14072,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 10274, - "end": 10294, + "start": 10028, + "end": 10048, "loc": { "start": { "line": 247, @@ -14086,8 +14086,8 @@ }, "declaration": { "type": "VariableDeclaration", - "start": 10231, - "end": 10272, + "start": 9986, + "end": 10027, "loc": { "start": { "line": 246, @@ -14101,8 +14101,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 10237, - "end": 10271, + "start": 9992, + "end": 10026, "loc": { "start": { "line": 246, @@ -14115,8 +14115,8 @@ }, "id": { "type": "Identifier", - "start": 10237, - "end": 10245, + "start": 9992, + "end": 10000, "loc": { "start": { "line": 246, @@ -14132,8 +14132,8 @@ }, "init": { "type": "NewExpression", - "start": 10248, - "end": 10271, + "start": 10003, + "end": 10026, "loc": { "start": { "line": 246, @@ -14146,8 +14146,8 @@ }, "callee": { "type": "Identifier", - "start": 10252, - "end": 10269, + "start": 10007, + "end": 10024, "loc": { "start": { "line": 246, @@ -14174,8 +14174,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 10274, - "end": 10294, + "start": 10028, + "end": 10048, "loc": { "start": { "line": 247, @@ -14188,8 +14188,8 @@ }, "declaration": { "type": "ClassDeclaration", - "start": 90, - "end": 10227, + "start": 87, + "end": 9984, "loc": { "start": { "line": 4, @@ -14202,8 +14202,8 @@ }, "id": { "type": "Identifier", - "start": 96, - "end": 113, + "start": 93, + "end": 110, "loc": { "start": { "line": 4, @@ -14220,8 +14220,8 @@ "superClass": null, "body": { "type": "ClassBody", - "start": 114, - "end": 10227, + "start": 111, + "end": 9984, "loc": { "start": { "line": 4, @@ -14235,8 +14235,8 @@ "body": [ { "type": "ClassProperty", - "start": 162, - "end": 193, + "start": 155, + "end": 186, "loc": { "start": { "line": 8, @@ -14251,8 +14251,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 162, - "end": 169, + "start": 155, + "end": 162, "loc": { "start": { "line": 8, @@ -14269,8 +14269,8 @@ }, "value": { "type": "StringLiteral", - "start": 172, - "end": 192, + "start": 165, + "end": 185, "loc": { "start": { "line": 8, @@ -14290,9 +14290,9 @@ "leadingComments": [ { "type": "CommentBlock", - "value": "*\r\n\t * The version of the module.\r\n\t ", - "start": 118, - "end": 159, + "value": "*\n\t * The version of the module.\n\t ", + "start": 114, + "end": 153, "loc": { "start": { "line": 5, @@ -14308,9 +14308,9 @@ "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, + "value": "* The logger module this module uses to log errors / logs\n * @private\n * @type {Object}\n ", + "start": 191, + "end": 296, "loc": { "start": { "line": 9, @@ -14326,8 +14326,8 @@ }, { "type": "ClassProperty", - "start": 313, - "end": 335, + "start": 301, + "end": 323, "loc": { "start": { "line": 13, @@ -14342,8 +14342,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 313, - "end": 319, + "start": 301, + "end": 307, "loc": { "start": { "line": 13, @@ -14360,8 +14360,8 @@ }, "value": { "type": "NewExpression", - "start": 322, - "end": 334, + "start": 310, + "end": 322, "loc": { "start": { "line": 13, @@ -14374,8 +14374,8 @@ }, "callee": { "type": "Identifier", - "start": 326, - "end": 332, + "start": 314, + "end": 320, "loc": { "start": { "line": 13, @@ -14394,9 +14394,9 @@ "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, + "value": "* The logger module this module uses to log errors / logs\n * @private\n * @type {Object}\n ", + "start": 191, + "end": 296, "loc": { "start": { "line": 9, @@ -14412,9 +14412,9 @@ "trailingComments": [ { "type": "CommentBlock", - "value": "*\r\n * The layer class.\r\n * @type {Layer}\r\n ", - "start": 341, - "end": 400, + "value": "*\n * The layer class.\n * @type {Layer}\n ", + "start": 328, + "end": 384, "loc": { "start": { "line": 14, @@ -14430,8 +14430,8 @@ }, { "type": "ClassProperty", - "start": 406, - "end": 420, + "start": 389, + "end": 403, "loc": { "start": { "line": 18, @@ -14446,8 +14446,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 406, - "end": 411, + "start": 389, + "end": 394, "loc": { "start": { "line": 18, @@ -14464,8 +14464,8 @@ }, "value": { "type": "Identifier", - "start": 414, - "end": 419, + "start": 397, + "end": 402, "loc": { "start": { "line": 18, @@ -14482,9 +14482,9 @@ "leadingComments": [ { "type": "CommentBlock", - "value": "*\r\n * The layer class.\r\n * @type {Layer}\r\n ", - "start": 341, - "end": 400, + "value": "*\n * The layer class.\n * @type {Layer}\n ", + "start": 328, + "end": 384, "loc": { "start": { "line": 14, @@ -14500,9 +14500,9 @@ "trailingComments": [ { "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, + "value": "*\n * An set of instances that use the parallax system.\n * @private\n * @type {Set}\n ", + "start": 408, + "end": 511, "loc": { "start": { "line": 19, @@ -14518,8 +14518,8 @@ }, { "type": "ClassProperty", - "start": 539, - "end": 561, + "start": 516, + "end": 538, "loc": { "start": { "line": 24, @@ -14534,8 +14534,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 539, - "end": 548, + "start": 516, + "end": 525, "loc": { "start": { "line": 24, @@ -14552,8 +14552,8 @@ }, "value": { "type": "NewExpression", - "start": 551, - "end": 560, + "start": 528, + "end": 537, "loc": { "start": { "line": 24, @@ -14566,8 +14566,8 @@ }, "callee": { "type": "Identifier", - "start": 555, - "end": 558, + "start": 532, + "end": 535, "loc": { "start": { "line": 24, @@ -14586,9 +14586,9 @@ "leadingComments": [ { "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, + "value": "*\n * An set of instances that use the parallax system.\n * @private\n * @type {Set}\n ", + "start": 408, + "end": 511, "loc": { "start": { "line": 19, @@ -14604,9 +14604,9 @@ "trailingComments": [ { "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, + "value": "*\n * Weakmap to store info on instances used in this module.\n * @private\n * @type {WeakMap}\n ", + "start": 543, + "end": 656, "loc": { "start": { "line": 25, @@ -14622,8 +14622,8 @@ }, { "type": "ClassProperty", - "start": 690, - "end": 722, + "start": 661, + "end": 693, "loc": { "start": { "line": 30, @@ -14638,8 +14638,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 690, - "end": 705, + "start": 661, + "end": 676, "loc": { "start": { "line": 30, @@ -14656,8 +14656,8 @@ }, "value": { "type": "NewExpression", - "start": 708, - "end": 721, + "start": 679, + "end": 692, "loc": { "start": { "line": 30, @@ -14670,8 +14670,8 @@ }, "callee": { "type": "Identifier", - "start": 712, - "end": 719, + "start": 683, + "end": 690, "loc": { "start": { "line": 30, @@ -14690,9 +14690,9 @@ "leadingComments": [ { "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, + "value": "*\n * Weakmap to store info on instances used in this module.\n * @private\n * @type {WeakMap}\n ", + "start": 543, + "end": 656, "loc": { "start": { "line": 25, @@ -14708,9 +14708,9 @@ "trailingComments": [ { "type": "CommentBlock", - "value": "*\r\n * The last position of the camera.\r\n * @private\r\n * @type {Object}\r\n ", - "start": 728, - "end": 821, + "value": "*\n * The last position of the camera.\n * @private\n * @type {Object}\n ", + "start": 698, + "end": 787, "loc": { "start": { "line": 31, @@ -14726,8 +14726,8 @@ }, { "type": "ClassProperty", - "start": 827, - "end": 878, + "start": 792, + "end": 840, "loc": { "start": { "line": 36, @@ -14742,8 +14742,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 827, - "end": 837, + "start": 792, + "end": 802, "loc": { "start": { "line": 36, @@ -14760,8 +14760,8 @@ }, "value": { "type": "ObjectExpression", - "start": 840, - "end": 878, + "start": 805, + "end": 840, "loc": { "start": { "line": 36, @@ -14775,8 +14775,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 852, - "end": 856, + "start": 816, + "end": 820, "loc": { "start": { "line": 37, @@ -14792,8 +14792,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 852, - "end": 853, + "start": 816, + "end": 817, "loc": { "start": { "line": 37, @@ -14809,8 +14809,8 @@ }, "value": { "type": "NumericLiteral", - "start": 855, - "end": 856, + "start": 819, + "end": 820, "loc": { "start": { "line": 37, @@ -14830,8 +14830,8 @@ }, { "type": "ObjectProperty", - "start": 867, - "end": 871, + "start": 830, + "end": 834, "loc": { "start": { "line": 38, @@ -14847,8 +14847,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 867, - "end": 868, + "start": 830, + "end": 831, "loc": { "start": { "line": 38, @@ -14864,8 +14864,8 @@ }, "value": { "type": "NumericLiteral", - "start": 870, - "end": 871, + "start": 833, + "end": 834, "loc": { "start": { "line": 38, @@ -14885,9 +14885,9 @@ "trailingComments": [ { "type": "CommentBlock", - "value": "*\r\n * @private\r\n ", - "start": 884, - "end": 913, + "value": "*\n * @private\n ", + "start": 845, + "end": 872, "loc": { "start": { "line": 40, @@ -14907,9 +14907,9 @@ "leadingComments": [ { "type": "CommentBlock", - "value": "*\r\n * The last position of the camera.\r\n * @private\r\n * @type {Object}\r\n ", - "start": 728, - "end": 821, + "value": "*\n * The last position of the camera.\n * @private\n * @type {Object}\n ", + "start": 698, + "end": 787, "loc": { "start": { "line": 31, @@ -14925,9 +14925,9 @@ "trailingComments": [ { "type": "CommentBlock", - "value": "*\r\n * @private\r\n ", - "start": 884, - "end": 913, + "value": "*\n * @private\n ", + "start": 845, + "end": 872, "loc": { "start": { "line": 40, @@ -14943,8 +14943,8 @@ }, { "type": "ClassMethod", - "start": 916, - "end": 1000, + "start": 874, + "end": 956, "loc": { "start": { "line": 43, @@ -14959,8 +14959,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 916, - "end": 927, + "start": 874, + "end": 885, "loc": { "start": { "line": 43, @@ -14982,8 +14982,8 @@ "params": [], "body": { "type": "BlockStatement", - "start": 930, - "end": 1000, + "start": 888, + "end": 956, "loc": { "start": { "line": 43, @@ -14997,8 +14997,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 941, - "end": 996, + "start": 898, + "end": 953, "loc": { "start": { "line": 44, @@ -15011,8 +15011,8 @@ }, "expression": { "type": "CallExpression", - "start": 941, - "end": 995, + "start": 898, + "end": 952, "loc": { "start": { "line": 44, @@ -15025,8 +15025,8 @@ }, "callee": { "type": "MemberExpression", - "start": 941, - "end": 965, + "start": 898, + "end": 922, "loc": { "start": { "line": 44, @@ -15039,8 +15039,8 @@ }, "object": { "type": "MemberExpression", - "start": 941, - "end": 952, + "start": 898, + "end": 909, "loc": { "start": { "line": 44, @@ -15053,8 +15053,8 @@ }, "object": { "type": "ThisExpression", - "start": 941, - "end": 945, + "start": 898, + "end": 902, "loc": { "start": { "line": 44, @@ -15068,8 +15068,8 @@ }, "property": { "type": "Identifier", - "start": 946, - "end": 952, + "start": 903, + "end": 909, "loc": { "start": { "line": 44, @@ -15087,8 +15087,8 @@ }, "property": { "type": "Identifier", - "start": 953, - "end": 965, + "start": 910, + "end": 922, "loc": { "start": { "line": 44, @@ -15107,8 +15107,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 966, - "end": 983, + "start": 923, + "end": 940, "loc": { "start": { "line": 44, @@ -15127,8 +15127,8 @@ }, { "type": "StringLiteral", - "start": 985, - "end": 994, + "start": 942, + "end": 951, "loc": { "start": { "line": 44, @@ -15155,9 +15155,9 @@ "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, + "value": "*\n * Adds an instance to the parallax system.\n * Call this first and then add your instance to the map.\n * @param {Object} pInstance - The instance to add to the parallax system.\n * @param {Object} pConfig - The parallax info that tells this module how to control this instance.\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.\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.\n * @prop {boolean} pConfig.loop - Whether this instance will loop endlessly.\n * @param {number} [pX] - The x position this instance will start at.\n * @param {number} [pY] - The y position this instance will start at.\n * @param {string} [pMap] - The map this instance will start at.\n * \n * ## The following is how the speed of the parallax multipliers are factored in. \n (x | y) < 1 = faster behind the camera eg: (-> Player goes this way = Instance goes this way <-) \n (x | y) > 1 faster against the camera eg: (-> Player goes this way = Instance goes this way ->) \n (x | y) = 0 = static to the camera eg: (-> Player goes this way = Instance does nothing, and moves with the camera) \n (x | y) = 1 = moves with the camera eg: (-> Player goes this way = Instance goes this way -> at position of camera) \n ", + "start": 961, + "end": 2439, "loc": { "start": { "line": 46, @@ -15173,8 +15173,8 @@ }, { "type": "ClassMethod", - "start": 2507, - "end": 3495, + "start": 2444, + "end": 3411, "loc": { "start": { "line": 64, @@ -15189,8 +15189,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2507, - "end": 2510, + "start": 2444, + "end": 2447, "loc": { "start": { "line": 64, @@ -15213,8 +15213,8 @@ "params": [ { "type": "Identifier", - "start": 2511, - "end": 2520, + "start": 2448, + "end": 2457, "loc": { "start": { "line": 64, @@ -15230,8 +15230,8 @@ }, { "type": "Identifier", - "start": 2522, - "end": 2529, + "start": 2459, + "end": 2466, "loc": { "start": { "line": 64, @@ -15247,8 +15247,8 @@ }, { "type": "Identifier", - "start": 2531, - "end": 2533, + "start": 2468, + "end": 2470, "loc": { "start": { "line": 64, @@ -15264,8 +15264,8 @@ }, { "type": "Identifier", - "start": 2535, - "end": 2537, + "start": 2472, + "end": 2474, "loc": { "start": { "line": 64, @@ -15281,8 +15281,8 @@ }, { "type": "Identifier", - "start": 2539, - "end": 2543, + "start": 2476, + "end": 2480, "loc": { "start": { "line": 64, @@ -15299,8 +15299,8 @@ ], "body": { "type": "BlockStatement", - "start": 2545, - "end": 3495, + "start": 2482, + "end": 3411, "loc": { "start": { "line": 64, @@ -15314,8 +15314,8 @@ "body": [ { "type": "IfStatement", - "start": 2556, - "end": 2687, + "start": 2492, + "end": 2620, "loc": { "start": { "line": 65, @@ -15328,8 +15328,8 @@ }, "test": { "type": "UnaryExpression", - "start": 2560, - "end": 2570, + "start": 2496, + "end": 2506, "loc": { "start": { "line": 65, @@ -15344,8 +15344,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 2561, - "end": 2570, + "start": 2497, + "end": 2506, "loc": { "start": { "line": 65, @@ -15365,8 +15365,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 2572, - "end": 2687, + "start": 2508, + "end": 2620, "loc": { "start": { "line": 65, @@ -15380,8 +15380,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 2587, - "end": 2655, + "start": 2522, + "end": 2590, "loc": { "start": { "line": 66, @@ -15394,8 +15394,8 @@ }, "expression": { "type": "CallExpression", - "start": 2587, - "end": 2654, + "start": 2522, + "end": 2589, "loc": { "start": { "line": 66, @@ -15408,8 +15408,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2587, - "end": 2630, + "start": 2522, + "end": 2565, "loc": { "start": { "line": 66, @@ -15422,8 +15422,8 @@ }, "object": { "type": "CallExpression", - "start": 2587, - "end": 2624, + "start": 2522, + "end": 2559, "loc": { "start": { "line": 66, @@ -15436,8 +15436,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2587, - "end": 2605, + "start": 2522, + "end": 2540, "loc": { "start": { "line": 66, @@ -15450,8 +15450,8 @@ }, "object": { "type": "MemberExpression", - "start": 2587, - "end": 2598, + "start": 2522, + "end": 2533, "loc": { "start": { "line": 66, @@ -15464,8 +15464,8 @@ }, "object": { "type": "ThisExpression", - "start": 2587, - "end": 2591, + "start": 2522, + "end": 2526, "loc": { "start": { "line": 66, @@ -15479,8 +15479,8 @@ }, "property": { "type": "Identifier", - "start": 2592, - "end": 2598, + "start": 2527, + "end": 2533, "loc": { "start": { "line": 66, @@ -15498,8 +15498,8 @@ }, "property": { "type": "Identifier", - "start": 2599, - "end": 2605, + "start": 2534, + "end": 2540, "loc": { "start": { "line": 66, @@ -15518,8 +15518,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 2606, - "end": 2623, + "start": 2541, + "end": 2558, "loc": { "start": { "line": 66, @@ -15540,8 +15540,8 @@ }, "property": { "type": "Identifier", - "start": 2625, - "end": 2630, + "start": 2560, + "end": 2565, "loc": { "start": { "line": 66, @@ -15560,8 +15560,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 2631, - "end": 2653, + "start": 2566, + "end": 2588, "loc": { "start": { "line": 66, @@ -15583,8 +15583,8 @@ }, { "type": "ReturnStatement", - "start": 2669, - "end": 2676, + "start": 2603, + "end": 2610, "loc": { "start": { "line": 67, @@ -15604,8 +15604,8 @@ }, { "type": "IfStatement", - "start": 2699, - "end": 3488, + "start": 2630, + "end": 3405, "loc": { "start": { "line": 70, @@ -15618,8 +15618,8 @@ }, "test": { "type": "BinaryExpression", - "start": 2703, - "end": 2728, + "start": 2634, + "end": 2659, "loc": { "start": { "line": 70, @@ -15632,8 +15632,8 @@ }, "left": { "type": "Identifier", - "start": 2703, - "end": 2710, + "start": 2634, + "end": 2641, "loc": { "start": { "line": 70, @@ -15650,8 +15650,8 @@ "operator": "instanceof", "right": { "type": "Identifier", - "start": 2722, - "end": 2728, + "start": 2653, + "end": 2659, "loc": { "start": { "line": 70, @@ -15668,8 +15668,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 2730, - "end": 3368, + "start": 2661, + "end": 3287, "loc": { "start": { "line": 70, @@ -15683,8 +15683,8 @@ "body": [ { "type": "IfStatement", - "start": 2745, - "end": 3357, + "start": 2675, + "end": 3277, "loc": { "start": { "line": 71, @@ -15697,8 +15697,8 @@ }, "test": { "type": "UnaryExpression", - "start": 2749, - "end": 2779, + "start": 2679, + "end": 2709, "loc": { "start": { "line": 71, @@ -15713,8 +15713,8 @@ "prefix": true, "argument": { "type": "CallExpression", - "start": 2750, - "end": 2779, + "start": 2680, + "end": 2709, "loc": { "start": { "line": 71, @@ -15727,8 +15727,8 @@ }, "callee": { "type": "MemberExpression", - "start": 2750, - "end": 2768, + "start": 2680, + "end": 2698, "loc": { "start": { "line": 71, @@ -15741,8 +15741,8 @@ }, "object": { "type": "MemberExpression", - "start": 2750, - "end": 2764, + "start": 2680, + "end": 2694, "loc": { "start": { "line": 71, @@ -15755,8 +15755,8 @@ }, "object": { "type": "ThisExpression", - "start": 2750, - "end": 2754, + "start": 2680, + "end": 2684, "loc": { "start": { "line": 71, @@ -15770,8 +15770,8 @@ }, "property": { "type": "Identifier", - "start": 2755, - "end": 2764, + "start": 2685, + "end": 2694, "loc": { "start": { "line": 71, @@ -15789,8 +15789,8 @@ }, "property": { "type": "Identifier", - "start": 2765, - "end": 2768, + "start": 2695, + "end": 2698, "loc": { "start": { "line": 71, @@ -15809,8 +15809,8 @@ "arguments": [ { "type": "Identifier", - "start": 2769, - "end": 2778, + "start": 2699, + "end": 2708, "loc": { "start": { "line": 71, @@ -15832,8 +15832,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 2781, - "end": 3357, + "start": 2711, + "end": 3277, "loc": { "start": { "line": 71, @@ -15847,8 +15847,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 2800, - "end": 2852, + "start": 2729, + "end": 2781, "loc": { "start": { "line": 72, @@ -15862,8 +15862,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 2806, - "end": 2851, + "start": 2735, + "end": 2780, "loc": { "start": { "line": 72, @@ -15876,8 +15876,8 @@ }, "id": { "type": "Identifier", - "start": 2806, - "end": 2807, + "start": 2735, + "end": 2736, "loc": { "start": { "line": 72, @@ -15893,8 +15893,8 @@ }, "init": { "type": "ConditionalExpression", - "start": 2810, - "end": 2851, + "start": 2739, + "end": 2780, "loc": { "start": { "line": 72, @@ -15907,8 +15907,8 @@ }, "test": { "type": "BinaryExpression", - "start": 2810, - "end": 2832, + "start": 2739, + "end": 2761, "loc": { "start": { "line": 72, @@ -15921,8 +15921,8 @@ }, "left": { "type": "UnaryExpression", - "start": 2810, - "end": 2819, + "start": 2739, + "end": 2748, "loc": { "start": { "line": 72, @@ -15937,8 +15937,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 2817, - "end": 2819, + "start": 2746, + "end": 2748, "loc": { "start": { "line": 72, @@ -15959,8 +15959,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 2824, - "end": 2832, + "start": 2753, + "end": 2761, "loc": { "start": { "line": 72, @@ -15980,8 +15980,8 @@ }, "consequent": { "type": "Identifier", - "start": 2835, - "end": 2837, + "start": 2764, + "end": 2766, "loc": { "start": { "line": 72, @@ -15997,8 +15997,8 @@ }, "alternate": { "type": "MemberExpression", - "start": 2840, - "end": 2851, + "start": 2769, + "end": 2780, "loc": { "start": { "line": 72, @@ -16011,8 +16011,8 @@ }, "object": { "type": "Identifier", - "start": 2840, - "end": 2849, + "start": 2769, + "end": 2778, "loc": { "start": { "line": 72, @@ -16028,8 +16028,8 @@ }, "property": { "type": "Identifier", - "start": 2850, - "end": 2851, + "start": 2779, + "end": 2780, "loc": { "start": { "line": 72, @@ -16052,8 +16052,8 @@ }, { "type": "VariableDeclaration", - "start": 2870, - "end": 2922, + "start": 2798, + "end": 2850, "loc": { "start": { "line": 73, @@ -16067,8 +16067,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 2876, - "end": 2921, + "start": 2804, + "end": 2849, "loc": { "start": { "line": 73, @@ -16081,8 +16081,8 @@ }, "id": { "type": "Identifier", - "start": 2876, - "end": 2877, + "start": 2804, + "end": 2805, "loc": { "start": { "line": 73, @@ -16098,8 +16098,8 @@ }, "init": { "type": "ConditionalExpression", - "start": 2880, - "end": 2921, + "start": 2808, + "end": 2849, "loc": { "start": { "line": 73, @@ -16112,8 +16112,8 @@ }, "test": { "type": "BinaryExpression", - "start": 2880, - "end": 2902, + "start": 2808, + "end": 2830, "loc": { "start": { "line": 73, @@ -16126,8 +16126,8 @@ }, "left": { "type": "UnaryExpression", - "start": 2880, - "end": 2889, + "start": 2808, + "end": 2817, "loc": { "start": { "line": 73, @@ -16142,8 +16142,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 2887, - "end": 2889, + "start": 2815, + "end": 2817, "loc": { "start": { "line": 73, @@ -16164,8 +16164,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 2894, - "end": 2902, + "start": 2822, + "end": 2830, "loc": { "start": { "line": 73, @@ -16185,8 +16185,8 @@ }, "consequent": { "type": "Identifier", - "start": 2905, - "end": 2907, + "start": 2833, + "end": 2835, "loc": { "start": { "line": 73, @@ -16202,8 +16202,8 @@ }, "alternate": { "type": "MemberExpression", - "start": 2910, - "end": 2921, + "start": 2838, + "end": 2849, "loc": { "start": { "line": 73, @@ -16216,8 +16216,8 @@ }, "object": { "type": "Identifier", - "start": 2910, - "end": 2919, + "start": 2838, + "end": 2847, "loc": { "start": { "line": 73, @@ -16233,8 +16233,8 @@ }, "property": { "type": "Identifier", - "start": 2920, - "end": 2921, + "start": 2848, + "end": 2849, "loc": { "start": { "line": 73, @@ -16257,8 +16257,8 @@ }, { "type": "VariableDeclaration", - "start": 2940, - "end": 3004, + "start": 2867, + "end": 2931, "loc": { "start": { "line": 74, @@ -16272,8 +16272,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 2946, - "end": 3003, + "start": 2873, + "end": 2930, "loc": { "start": { "line": 74, @@ -16286,8 +16286,8 @@ }, "id": { "type": "Identifier", - "start": 2946, - "end": 2949, + "start": 2873, + "end": 2876, "loc": { "start": { "line": 74, @@ -16303,8 +16303,8 @@ }, "init": { "type": "ConditionalExpression", - "start": 2952, - "end": 3003, + "start": 2879, + "end": 2930, "loc": { "start": { "line": 74, @@ -16317,8 +16317,8 @@ }, "test": { "type": "BinaryExpression", - "start": 2952, - "end": 2976, + "start": 2879, + "end": 2903, "loc": { "start": { "line": 74, @@ -16331,8 +16331,8 @@ }, "left": { "type": "UnaryExpression", - "start": 2952, - "end": 2963, + "start": 2879, + "end": 2890, "loc": { "start": { "line": 74, @@ -16347,8 +16347,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 2959, - "end": 2963, + "start": 2886, + "end": 2890, "loc": { "start": { "line": 74, @@ -16369,8 +16369,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 2968, - "end": 2976, + "start": 2895, + "end": 2903, "loc": { "start": { "line": 74, @@ -16390,8 +16390,8 @@ }, "consequent": { "type": "Identifier", - "start": 2979, - "end": 2983, + "start": 2906, + "end": 2910, "loc": { "start": { "line": 74, @@ -16407,8 +16407,8 @@ }, "alternate": { "type": "MemberExpression", - "start": 2986, - "end": 3003, + "start": 2913, + "end": 2930, "loc": { "start": { "line": 74, @@ -16421,8 +16421,8 @@ }, "object": { "type": "Identifier", - "start": 2986, - "end": 2995, + "start": 2913, + "end": 2922, "loc": { "start": { "line": 74, @@ -16438,8 +16438,8 @@ }, "property": { "type": "Identifier", - "start": 2996, - "end": 3003, + "start": 2923, + "end": 2930, "loc": { "start": { "line": 74, @@ -16463,8 +16463,8 @@ { "type": "CommentLine", "value": " Clone the parallax object", - "start": 3022, - "end": 3050, + "start": 2948, + "end": 2976, "loc": { "start": { "line": 75, @@ -16480,8 +16480,8 @@ }, { "type": "VariableDeclaration", - "start": 3068, - "end": 3104, + "start": 2993, + "end": 3029, "loc": { "start": { "line": 76, @@ -16495,8 +16495,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 3074, - "end": 3103, + "start": 2999, + "end": 3028, "loc": { "start": { "line": 76, @@ -16509,8 +16509,8 @@ }, "id": { "type": "Identifier", - "start": 3074, - "end": 3086, + "start": 2999, + "end": 3011, "loc": { "start": { "line": 76, @@ -16527,8 +16527,8 @@ }, "init": { "type": "ObjectExpression", - "start": 3089, - "end": 3103, + "start": 3014, + "end": 3028, "loc": { "start": { "line": 76, @@ -16542,8 +16542,8 @@ "properties": [ { "type": "SpreadProperty", - "start": 3091, - "end": 3101, + "start": 3016, + "end": 3026, "loc": { "start": { "line": 76, @@ -16556,8 +16556,8 @@ }, "argument": { "type": "Identifier", - "start": 3094, - "end": 3101, + "start": 3019, + "end": 3026, "loc": { "start": { "line": 76, @@ -16582,8 +16582,8 @@ { "type": "CommentLine", "value": " Clone the parallax object", - "start": 3022, - "end": 3050, + "start": 2948, + "end": 2976, "loc": { "start": { "line": 75, @@ -16599,8 +16599,8 @@ }, { "type": "ExpressionStatement", - "start": 3122, - "end": 3168, + "start": 3046, + "end": 3092, "loc": { "start": { "line": 77, @@ -16613,8 +16613,8 @@ }, "expression": { "type": "CallExpression", - "start": 3122, - "end": 3167, + "start": 3046, + "end": 3091, "loc": { "start": { "line": 77, @@ -16627,8 +16627,8 @@ }, "callee": { "type": "MemberExpression", - "start": 3122, - "end": 3131, + "start": 3046, + "end": 3055, "loc": { "start": { "line": 77, @@ -16641,8 +16641,8 @@ }, "object": { "type": "ThisExpression", - "start": 3122, - "end": 3126, + "start": 3046, + "end": 3050, "loc": { "start": { "line": 77, @@ -16656,8 +16656,8 @@ }, "property": { "type": "Identifier", - "start": 3127, - "end": 3131, + "start": 3051, + "end": 3055, "loc": { "start": { "line": 77, @@ -16676,8 +16676,8 @@ "arguments": [ { "type": "Identifier", - "start": 3132, - "end": 3141, + "start": 3056, + "end": 3065, "loc": { "start": { "line": 77, @@ -16693,8 +16693,8 @@ }, { "type": "Identifier", - "start": 3143, - "end": 3155, + "start": 3067, + "end": 3079, "loc": { "start": { "line": 77, @@ -16710,8 +16710,8 @@ }, { "type": "Identifier", - "start": 3157, - "end": 3158, + "start": 3081, + "end": 3082, "loc": { "start": { "line": 77, @@ -16727,8 +16727,8 @@ }, { "type": "Identifier", - "start": 3160, - "end": 3161, + "start": 3084, + "end": 3085, "loc": { "start": { "line": 77, @@ -16744,8 +16744,8 @@ }, { "type": "Identifier", - "start": 3163, - "end": 3166, + "start": 3087, + "end": 3090, "loc": { "start": { "line": 77, @@ -16765,8 +16765,8 @@ { "type": "CommentLine", "value": " Set the parallax info to the instance", - "start": 3186, - "end": 3226, + "start": 3109, + "end": 3149, "loc": { "start": { "line": 78, @@ -16782,8 +16782,8 @@ }, { "type": "ExpressionStatement", - "start": 3244, - "end": 3294, + "start": 3166, + "end": 3216, "loc": { "start": { "line": 79, @@ -16796,8 +16796,8 @@ }, "expression": { "type": "CallExpression", - "start": 3244, - "end": 3293, + "start": 3166, + "end": 3215, "loc": { "start": { "line": 79, @@ -16810,8 +16810,8 @@ }, "callee": { "type": "MemberExpression", - "start": 3244, - "end": 3268, + "start": 3166, + "end": 3190, "loc": { "start": { "line": 79, @@ -16824,8 +16824,8 @@ }, "object": { "type": "MemberExpression", - "start": 3244, - "end": 3264, + "start": 3166, + "end": 3186, "loc": { "start": { "line": 79, @@ -16838,8 +16838,8 @@ }, "object": { "type": "ThisExpression", - "start": 3244, - "end": 3248, + "start": 3166, + "end": 3170, "loc": { "start": { "line": 79, @@ -16854,8 +16854,8 @@ }, "property": { "type": "Identifier", - "start": 3249, - "end": 3264, + "start": 3171, + "end": 3186, "loc": { "start": { "line": 79, @@ -16874,8 +16874,8 @@ }, "property": { "type": "Identifier", - "start": 3265, - "end": 3268, + "start": 3187, + "end": 3190, "loc": { "start": { "line": 79, @@ -16895,8 +16895,8 @@ "arguments": [ { "type": "Identifier", - "start": 3269, - "end": 3278, + "start": 3191, + "end": 3200, "loc": { "start": { "line": 79, @@ -16912,8 +16912,8 @@ }, { "type": "Identifier", - "start": 3280, - "end": 3292, + "start": 3202, + "end": 3214, "loc": { "start": { "line": 79, @@ -16934,8 +16934,8 @@ { "type": "CommentLine", "value": " Set the parallax info to the instance", - "start": 3186, - "end": 3226, + "start": 3109, + "end": 3149, "loc": { "start": { "line": 78, @@ -16951,8 +16951,8 @@ }, { "type": "ExpressionStatement", - "start": 3312, - "end": 3342, + "start": 3233, + "end": 3263, "loc": { "start": { "line": 80, @@ -16965,8 +16965,8 @@ }, "expression": { "type": "CallExpression", - "start": 3312, - "end": 3341, + "start": 3233, + "end": 3262, "loc": { "start": { "line": 80, @@ -16979,8 +16979,8 @@ }, "callee": { "type": "MemberExpression", - "start": 3312, - "end": 3330, + "start": 3233, + "end": 3251, "loc": { "start": { "line": 80, @@ -16993,8 +16993,8 @@ }, "object": { "type": "MemberExpression", - "start": 3312, - "end": 3326, + "start": 3233, + "end": 3247, "loc": { "start": { "line": 80, @@ -17007,8 +17007,8 @@ }, "object": { "type": "ThisExpression", - "start": 3312, - "end": 3316, + "start": 3233, + "end": 3237, "loc": { "start": { "line": 80, @@ -17022,8 +17022,8 @@ }, "property": { "type": "Identifier", - "start": 3317, - "end": 3326, + "start": 3238, + "end": 3247, "loc": { "start": { "line": 80, @@ -17041,8 +17041,8 @@ }, "property": { "type": "Identifier", - "start": 3327, - "end": 3330, + "start": 3248, + "end": 3251, "loc": { "start": { "line": 80, @@ -17061,8 +17061,8 @@ "arguments": [ { "type": "Identifier", - "start": 3331, - "end": 3340, + "start": 3252, + "end": 3261, "loc": { "start": { "line": 80, @@ -17089,8 +17089,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 3374, - "end": 3488, + "start": 3293, + "end": 3405, "loc": { "start": { "line": 82, @@ -17104,8 +17104,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 3389, - "end": 3477, + "start": 3307, + "end": 3395, "loc": { "start": { "line": 83, @@ -17118,8 +17118,8 @@ }, "expression": { "type": "CallExpression", - "start": 3389, - "end": 3476, + "start": 3307, + "end": 3394, "loc": { "start": { "line": 83, @@ -17132,8 +17132,8 @@ }, "callee": { "type": "MemberExpression", - "start": 3389, - "end": 3432, + "start": 3307, + "end": 3350, "loc": { "start": { "line": 83, @@ -17146,8 +17146,8 @@ }, "object": { "type": "CallExpression", - "start": 3389, - "end": 3426, + "start": 3307, + "end": 3344, "loc": { "start": { "line": 83, @@ -17160,8 +17160,8 @@ }, "callee": { "type": "MemberExpression", - "start": 3389, - "end": 3407, + "start": 3307, + "end": 3325, "loc": { "start": { "line": 83, @@ -17174,8 +17174,8 @@ }, "object": { "type": "MemberExpression", - "start": 3389, - "end": 3400, + "start": 3307, + "end": 3318, "loc": { "start": { "line": 83, @@ -17188,8 +17188,8 @@ }, "object": { "type": "ThisExpression", - "start": 3389, - "end": 3393, + "start": 3307, + "end": 3311, "loc": { "start": { "line": 83, @@ -17203,8 +17203,8 @@ }, "property": { "type": "Identifier", - "start": 3394, - "end": 3400, + "start": 3312, + "end": 3318, "loc": { "start": { "line": 83, @@ -17222,8 +17222,8 @@ }, "property": { "type": "Identifier", - "start": 3401, - "end": 3407, + "start": 3319, + "end": 3325, "loc": { "start": { "line": 83, @@ -17242,8 +17242,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 3408, - "end": 3425, + "start": 3326, + "end": 3343, "loc": { "start": { "line": 83, @@ -17264,8 +17264,8 @@ }, "property": { "type": "Identifier", - "start": 3427, - "end": 3432, + "start": 3345, + "end": 3350, "loc": { "start": { "line": 83, @@ -17284,8 +17284,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 3433, - "end": 3475, + "start": 3351, + "end": 3393, "loc": { "start": { "line": 83, @@ -17316,9 +17316,9 @@ "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, + "value": "*\n * Adds an instance to the parallax system.\n * Call this first and then add your instance to the map.\n * @param {Object} pInstance - The instance to add to the parallax system.\n * @param {Object} pConfig - The parallax info that tells this module how to control this instance.\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.\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.\n * @prop {boolean} pConfig.loop - Whether this instance will loop endlessly.\n * @param {number} [pX] - The x position this instance will start at.\n * @param {number} [pY] - The y position this instance will start at.\n * @param {string} [pMap] - The map this instance will start at.\n * \n * ## The following is how the speed of the parallax multipliers are factored in. \n (x | y) < 1 = faster behind the camera eg: (-> Player goes this way = Instance goes this way <-) \n (x | y) > 1 faster against the camera eg: (-> Player goes this way = Instance goes this way ->) \n (x | y) = 0 = static to the camera eg: (-> Player goes this way = Instance does nothing, and moves with the camera) \n (x | y) = 1 = moves with the camera eg: (-> Player goes this way = Instance goes this way -> at position of camera) \n ", + "start": 961, + "end": 2439, "loc": { "start": { "line": 46, @@ -17334,9 +17334,9 @@ "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, + "value": "*\n * Initializes this instance.\n * @param {Object} pInstance - The instance to initialize.\n * @param {Object} pConfig - The parallax info that tells this module how to control this instance.\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.\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.\n * @prop {boolean} pConfig.loop - Whether this instance will loop endlessly.\n * @param {number} pX - The x position this parallax will start at.\n * @param {number} pY - The y position this parallax will start at.\n * @param {string} pMap - The map this instance will start at.\n * @private\n ", + "start": 3416, + "end": 4262, "loc": { "start": { "line": 86, @@ -17352,8 +17352,8 @@ }, { "type": "ClassMethod", - "start": 4364, - "end": 6840, + "start": 4267, + "end": 6685, "loc": { "start": { "line": 98, @@ -17368,8 +17368,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 4364, - "end": 4368, + "start": 4267, + "end": 4271, "loc": { "start": { "line": 98, @@ -17392,8 +17392,8 @@ "params": [ { "type": "Identifier", - "start": 4369, - "end": 4378, + "start": 4272, + "end": 4281, "loc": { "start": { "line": 98, @@ -17409,8 +17409,8 @@ }, { "type": "Identifier", - "start": 4380, - "end": 4387, + "start": 4283, + "end": 4290, "loc": { "start": { "line": 98, @@ -17426,8 +17426,8 @@ }, { "type": "Identifier", - "start": 4389, - "end": 4391, + "start": 4292, + "end": 4294, "loc": { "start": { "line": 98, @@ -17443,8 +17443,8 @@ }, { "type": "Identifier", - "start": 4393, - "end": 4395, + "start": 4296, + "end": 4298, "loc": { "start": { "line": 98, @@ -17460,8 +17460,8 @@ }, { "type": "Identifier", - "start": 4397, - "end": 4401, + "start": 4300, + "end": 4304, "loc": { "start": { "line": 98, @@ -17478,8 +17478,8 @@ ], "body": { "type": "BlockStatement", - "start": 4403, - "end": 6840, + "start": 4306, + "end": 6685, "loc": { "start": { "line": 98, @@ -17493,8 +17493,8 @@ "body": [ { "type": "IfStatement", - "start": 4414, - "end": 4606, + "start": 4316, + "end": 4505, "loc": { "start": { "line": 99, @@ -17507,8 +17507,8 @@ }, "test": { "type": "UnaryExpression", - "start": 4418, - "end": 4423, + "start": 4320, + "end": 4325, "loc": { "start": { "line": 99, @@ -17523,8 +17523,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 4419, - "end": 4423, + "start": 4321, + "end": 4325, "loc": { "start": { "line": 99, @@ -17544,8 +17544,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 4425, - "end": 4606, + "start": 4327, + "end": 4505, "loc": { "start": { "line": 99, @@ -17559,8 +17559,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 4440, - "end": 4574, + "start": 4341, + "end": 4475, "loc": { "start": { "line": 100, @@ -17573,8 +17573,8 @@ }, "expression": { "type": "CallExpression", - "start": 4440, - "end": 4573, + "start": 4341, + "end": 4474, "loc": { "start": { "line": 100, @@ -17587,8 +17587,8 @@ }, "callee": { "type": "MemberExpression", - "start": 4440, - "end": 4483, + "start": 4341, + "end": 4384, "loc": { "start": { "line": 100, @@ -17601,8 +17601,8 @@ }, "object": { "type": "CallExpression", - "start": 4440, - "end": 4477, + "start": 4341, + "end": 4378, "loc": { "start": { "line": 100, @@ -17615,8 +17615,8 @@ }, "callee": { "type": "MemberExpression", - "start": 4440, - "end": 4458, + "start": 4341, + "end": 4359, "loc": { "start": { "line": 100, @@ -17629,8 +17629,8 @@ }, "object": { "type": "MemberExpression", - "start": 4440, - "end": 4451, + "start": 4341, + "end": 4352, "loc": { "start": { "line": 100, @@ -17643,8 +17643,8 @@ }, "object": { "type": "ThisExpression", - "start": 4440, - "end": 4444, + "start": 4341, + "end": 4345, "loc": { "start": { "line": 100, @@ -17658,8 +17658,8 @@ }, "property": { "type": "Identifier", - "start": 4445, - "end": 4451, + "start": 4346, + "end": 4352, "loc": { "start": { "line": 100, @@ -17677,8 +17677,8 @@ }, "property": { "type": "Identifier", - "start": 4452, - "end": 4458, + "start": 4353, + "end": 4359, "loc": { "start": { "line": 100, @@ -17697,8 +17697,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 4459, - "end": 4476, + "start": 4360, + "end": 4377, "loc": { "start": { "line": 100, @@ -17719,8 +17719,8 @@ }, "property": { "type": "Identifier", - "start": 4478, - "end": 4483, + "start": 4379, + "end": 4384, "loc": { "start": { "line": 100, @@ -17739,8 +17739,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 4484, - "end": 4572, + "start": 4385, + "end": 4473, "loc": { "start": { "line": 100, @@ -17762,8 +17762,8 @@ }, { "type": "ReturnStatement", - "start": 4588, - "end": 4595, + "start": 4488, + "end": 4495, "loc": { "start": { "line": 101, @@ -17785,8 +17785,8 @@ { "type": "CommentLine", "value": " If this instance is set to loop, then it needs a left and right clone", - "start": 4618, - "end": 4690, + "start": 4515, + "end": 4587, "loc": { "start": { "line": 104, @@ -17802,8 +17802,8 @@ }, { "type": "IfStatement", - "start": 4700, - "end": 6504, + "start": 4596, + "end": 6360, "loc": { "start": { "line": 105, @@ -17816,8 +17816,8 @@ }, "test": { "type": "MemberExpression", - "start": 4704, - "end": 4716, + "start": 4600, + "end": 4612, "loc": { "start": { "line": 105, @@ -17830,8 +17830,8 @@ }, "object": { "type": "Identifier", - "start": 4704, - "end": 4711, + "start": 4600, + "end": 4607, "loc": { "start": { "line": 105, @@ -17848,8 +17848,8 @@ }, "property": { "type": "Identifier", - "start": 4712, - "end": 4716, + "start": 4608, + "end": 4612, "loc": { "start": { "line": 105, @@ -17868,8 +17868,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 4718, - "end": 6504, + "start": 4614, + "end": 6360, "loc": { "start": { "line": 105, @@ -17883,8 +17883,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 4779, - "end": 4818, + "start": 4673, + "end": 4712, "loc": { "start": { "line": 107, @@ -17898,8 +17898,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 4785, - "end": 4817, + "start": 4679, + "end": 4711, "loc": { "start": { "line": 107, @@ -17912,8 +17912,8 @@ }, "id": { "type": "Identifier", - "start": 4785, - "end": 4789, + "start": 4679, + "end": 4683, "loc": { "start": { "line": 107, @@ -17930,8 +17930,8 @@ }, "init": { "type": "CallExpression", - "start": 4792, - "end": 4817, + "start": 4686, + "end": 4711, "loc": { "start": { "line": 107, @@ -17944,8 +17944,8 @@ }, "callee": { "type": "MemberExpression", - "start": 4792, - "end": 4804, + "start": 4686, + "end": 4698, "loc": { "start": { "line": 107, @@ -17958,8 +17958,8 @@ }, "object": { "type": "Identifier", - "start": 4792, - "end": 4796, + "start": 4686, + "end": 4690, "loc": { "start": { "line": 107, @@ -17975,8 +17975,8 @@ }, "property": { "type": "Identifier", - "start": 4797, - "end": 4804, + "start": 4691, + "end": 4698, "loc": { "start": { "line": 107, @@ -17995,8 +17995,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 4805, - "end": 4816, + "start": 4699, + "end": 4710, "loc": { "start": { "line": 107, @@ -18023,8 +18023,8 @@ { "type": "CommentLine", "value": " Create a left and right clone", - "start": 4733, - "end": 4765, + "start": 4628, + "end": 4660, "loc": { "start": { "line": 106, @@ -18040,8 +18040,8 @@ }, { "type": "VariableDeclaration", - "start": 4832, - "end": 4872, + "start": 4725, + "end": 4765, "loc": { "start": { "line": 108, @@ -18055,8 +18055,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 4838, - "end": 4871, + "start": 4731, + "end": 4764, "loc": { "start": { "line": 108, @@ -18069,8 +18069,8 @@ }, "id": { "type": "Identifier", - "start": 4838, - "end": 4843, + "start": 4731, + "end": 4736, "loc": { "start": { "line": 108, @@ -18086,8 +18086,8 @@ }, "init": { "type": "CallExpression", - "start": 4846, - "end": 4871, + "start": 4739, + "end": 4764, "loc": { "start": { "line": 108, @@ -18100,8 +18100,8 @@ }, "callee": { "type": "MemberExpression", - "start": 4846, - "end": 4858, + "start": 4739, + "end": 4751, "loc": { "start": { "line": 108, @@ -18114,8 +18114,8 @@ }, "object": { "type": "Identifier", - "start": 4846, - "end": 4850, + "start": 4739, + "end": 4743, "loc": { "start": { "line": 108, @@ -18131,8 +18131,8 @@ }, "property": { "type": "Identifier", - "start": 4851, - "end": 4858, + "start": 4744, + "end": 4751, "loc": { "start": { "line": 108, @@ -18151,8 +18151,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 4859, - "end": 4870, + "start": 4752, + "end": 4763, "loc": { "start": { "line": 108, @@ -18178,8 +18178,8 @@ { "type": "CommentLine", "value": " Make the left and right clone particle look the same as the initial instance", - "start": 4888, - "end": 4967, + "start": 4779, + "end": 4858, "loc": { "start": { "line": 110, @@ -18195,8 +18195,8 @@ }, { "type": "ExpressionStatement", - "start": 4981, - "end": 5011, + "start": 4871, + "end": 4901, "loc": { "start": { "line": 111, @@ -18209,8 +18209,8 @@ }, "expression": { "type": "CallExpression", - "start": 4981, - "end": 5010, + "start": 4871, + "end": 4900, "loc": { "start": { "line": 111, @@ -18223,8 +18223,8 @@ }, "callee": { "type": "MemberExpression", - "start": 4981, - "end": 4999, + "start": 4871, + "end": 4889, "loc": { "start": { "line": 111, @@ -18237,8 +18237,8 @@ }, "object": { "type": "Identifier", - "start": 4981, - "end": 4985, + "start": 4871, + "end": 4875, "loc": { "start": { "line": 111, @@ -18255,8 +18255,8 @@ }, "property": { "type": "Identifier", - "start": 4986, - "end": 4999, + "start": 4876, + "end": 4889, "loc": { "start": { "line": 111, @@ -18276,8 +18276,8 @@ "arguments": [ { "type": "Identifier", - "start": 5000, - "end": 5009, + "start": 4890, + "end": 4899, "loc": { "start": { "line": 111, @@ -18298,8 +18298,8 @@ { "type": "CommentLine", "value": " Make the left and right clone particle look the same as the initial instance", - "start": 4888, - "end": 4967, + "start": 4779, + "end": 4858, "loc": { "start": { "line": 110, @@ -18315,8 +18315,8 @@ }, { "type": "ExpressionStatement", - "start": 5025, - "end": 5056, + "start": 4914, + "end": 4945, "loc": { "start": { "line": 112, @@ -18329,8 +18329,8 @@ }, "expression": { "type": "CallExpression", - "start": 5025, - "end": 5055, + "start": 4914, + "end": 4944, "loc": { "start": { "line": 112, @@ -18343,8 +18343,8 @@ }, "callee": { "type": "MemberExpression", - "start": 5025, - "end": 5044, + "start": 4914, + "end": 4933, "loc": { "start": { "line": 112, @@ -18357,8 +18357,8 @@ }, "object": { "type": "Identifier", - "start": 5025, - "end": 5030, + "start": 4914, + "end": 4919, "loc": { "start": { "line": 112, @@ -18374,8 +18374,8 @@ }, "property": { "type": "Identifier", - "start": 5031, - "end": 5044, + "start": 4920, + "end": 4933, "loc": { "start": { "line": 112, @@ -18394,8 +18394,8 @@ "arguments": [ { "type": "Identifier", - "start": 5045, - "end": 5054, + "start": 4934, + "end": 4943, "loc": { "start": { "line": 112, @@ -18415,8 +18415,8 @@ { "type": "CommentLine", "value": " Force the renderer to render it, as if its placed offscreen its not rendered.", - "start": 5072, - "end": 5152, + "start": 4959, + "end": 5039, "loc": { "start": { "line": 114, @@ -18432,8 +18432,8 @@ }, { "type": "ExpressionStatement", - "start": 5166, - "end": 5192, + "start": 5052, + "end": 5078, "loc": { "start": { "line": 115, @@ -18446,8 +18446,8 @@ }, "expression": { "type": "CallExpression", - "start": 5166, - "end": 5191, + "start": 5052, + "end": 5077, "loc": { "start": { "line": 115, @@ -18460,8 +18460,8 @@ }, "callee": { "type": "MemberExpression", - "start": 5166, - "end": 5177, + "start": 5052, + "end": 5063, "loc": { "start": { "line": 115, @@ -18474,8 +18474,8 @@ }, "object": { "type": "Identifier", - "start": 5166, - "end": 5170, + "start": 5052, + "end": 5056, "loc": { "start": { "line": 115, @@ -18492,8 +18492,8 @@ }, "property": { "type": "Identifier", - "start": 5171, - "end": 5177, + "start": 5057, + "end": 5063, "loc": { "start": { "line": 115, @@ -18513,8 +18513,8 @@ "arguments": [ { "type": "Identifier", - "start": 5178, - "end": 5180, + "start": 5064, + "end": 5066, "loc": { "start": { "line": 115, @@ -18530,8 +18530,8 @@ }, { "type": "Identifier", - "start": 5182, - "end": 5184, + "start": 5068, + "end": 5070, "loc": { "start": { "line": 115, @@ -18547,8 +18547,8 @@ }, { "type": "Identifier", - "start": 5186, - "end": 5190, + "start": 5072, + "end": 5076, "loc": { "start": { "line": 115, @@ -18569,8 +18569,8 @@ { "type": "CommentLine", "value": " Force the renderer to render it, as if its placed offscreen its not rendered.", - "start": 5072, - "end": 5152, + "start": 4959, + "end": 5039, "loc": { "start": { "line": 114, @@ -18586,8 +18586,8 @@ }, { "type": "ExpressionStatement", - "start": 5206, - "end": 5233, + "start": 5091, + "end": 5118, "loc": { "start": { "line": 116, @@ -18600,8 +18600,8 @@ }, "expression": { "type": "CallExpression", - "start": 5206, - "end": 5232, + "start": 5091, + "end": 5117, "loc": { "start": { "line": 116, @@ -18614,8 +18614,8 @@ }, "callee": { "type": "MemberExpression", - "start": 5206, - "end": 5218, + "start": 5091, + "end": 5103, "loc": { "start": { "line": 116, @@ -18628,8 +18628,8 @@ }, "object": { "type": "Identifier", - "start": 5206, - "end": 5211, + "start": 5091, + "end": 5096, "loc": { "start": { "line": 116, @@ -18645,8 +18645,8 @@ }, "property": { "type": "Identifier", - "start": 5212, - "end": 5218, + "start": 5097, + "end": 5103, "loc": { "start": { "line": 116, @@ -18665,8 +18665,8 @@ "arguments": [ { "type": "Identifier", - "start": 5219, - "end": 5221, + "start": 5104, + "end": 5106, "loc": { "start": { "line": 116, @@ -18682,8 +18682,8 @@ }, { "type": "Identifier", - "start": 5223, - "end": 5225, + "start": 5108, + "end": 5110, "loc": { "start": { "line": 116, @@ -18699,8 +18699,8 @@ }, { "type": "Identifier", - "start": 5227, - "end": 5231, + "start": 5112, + "end": 5116, "loc": { "start": { "line": 116, @@ -18720,8 +18720,8 @@ { "type": "CommentLine", "value": " Position the left clone", - "start": 5249, - "end": 5275, + "start": 5132, + "end": 5158, "loc": { "start": { "line": 118, @@ -18737,8 +18737,8 @@ }, { "type": "ExpressionStatement", - "start": 5289, - "end": 5324, + "start": 5171, + "end": 5206, "loc": { "start": { "line": 119, @@ -18751,8 +18751,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 5289, - "end": 5323, + "start": 5171, + "end": 5205, "loc": { "start": { "line": 119, @@ -18766,8 +18766,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 5289, - "end": 5295, + "start": 5171, + "end": 5177, "loc": { "start": { "line": 119, @@ -18780,8 +18780,8 @@ }, "object": { "type": "Identifier", - "start": 5289, - "end": 5293, + "start": 5171, + "end": 5175, "loc": { "start": { "line": 119, @@ -18798,8 +18798,8 @@ }, "property": { "type": "Identifier", - "start": 5294, - "end": 5295, + "start": 5176, + "end": 5177, "loc": { "start": { "line": 119, @@ -18818,8 +18818,8 @@ }, "right": { "type": "BinaryExpression", - "start": 5298, - "end": 5323, + "start": 5180, + "end": 5205, "loc": { "start": { "line": 119, @@ -18832,8 +18832,8 @@ }, "left": { "type": "Identifier", - "start": 5298, - "end": 5300, + "start": 5180, + "end": 5182, "loc": { "start": { "line": 119, @@ -18850,8 +18850,8 @@ "operator": "-", "right": { "type": "MemberExpression", - "start": 5303, - "end": 5323, + "start": 5185, + "end": 5205, "loc": { "start": { "line": 119, @@ -18864,8 +18864,8 @@ }, "object": { "type": "MemberExpression", - "start": 5303, - "end": 5317, + "start": 5185, + "end": 5199, "loc": { "start": { "line": 119, @@ -18878,8 +18878,8 @@ }, "object": { "type": "Identifier", - "start": 5303, - "end": 5312, + "start": 5185, + "end": 5194, "loc": { "start": { "line": 119, @@ -18895,8 +18895,8 @@ }, "property": { "type": "Identifier", - "start": 5313, - "end": 5317, + "start": 5195, + "end": 5199, "loc": { "start": { "line": 119, @@ -18914,8 +18914,8 @@ }, "property": { "type": "Identifier", - "start": 5318, - "end": 5323, + "start": 5200, + "end": 5205, "loc": { "start": { "line": 119, @@ -18938,8 +18938,8 @@ { "type": "CommentLine", "value": " Position the left clone", - "start": 5249, - "end": 5275, + "start": 5132, + "end": 5158, "loc": { "start": { "line": 118, @@ -18955,8 +18955,8 @@ }, { "type": "ExpressionStatement", - "start": 5338, - "end": 5350, + "start": 5219, + "end": 5231, "loc": { "start": { "line": 120, @@ -18969,8 +18969,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 5338, - "end": 5349, + "start": 5219, + "end": 5230, "loc": { "start": { "line": 120, @@ -18984,8 +18984,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 5338, - "end": 5344, + "start": 5219, + "end": 5225, "loc": { "start": { "line": 120, @@ -18998,8 +18998,8 @@ }, "object": { "type": "Identifier", - "start": 5338, - "end": 5342, + "start": 5219, + "end": 5223, "loc": { "start": { "line": 120, @@ -19015,8 +19015,8 @@ }, "property": { "type": "Identifier", - "start": 5343, - "end": 5344, + "start": 5224, + "end": 5225, "loc": { "start": { "line": 120, @@ -19034,8 +19034,8 @@ }, "right": { "type": "Identifier", - "start": 5347, - "end": 5349, + "start": 5228, + "end": 5230, "loc": { "start": { "line": 120, @@ -19054,8 +19054,8 @@ { "type": "CommentLine", "value": " Position the right clone", - "start": 5364, - "end": 5391, + "start": 5244, + "end": 5271, "loc": { "start": { "line": 121, @@ -19071,8 +19071,8 @@ }, { "type": "ExpressionStatement", - "start": 5405, - "end": 5441, + "start": 5284, + "end": 5320, "loc": { "start": { "line": 122, @@ -19085,8 +19085,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 5405, - "end": 5440, + "start": 5284, + "end": 5319, "loc": { "start": { "line": 122, @@ -19100,8 +19100,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 5405, - "end": 5412, + "start": 5284, + "end": 5291, "loc": { "start": { "line": 122, @@ -19114,8 +19114,8 @@ }, "object": { "type": "Identifier", - "start": 5405, - "end": 5410, + "start": 5284, + "end": 5289, "loc": { "start": { "line": 122, @@ -19132,8 +19132,8 @@ }, "property": { "type": "Identifier", - "start": 5411, - "end": 5412, + "start": 5290, + "end": 5291, "loc": { "start": { "line": 122, @@ -19152,8 +19152,8 @@ }, "right": { "type": "BinaryExpression", - "start": 5415, - "end": 5440, + "start": 5294, + "end": 5319, "loc": { "start": { "line": 122, @@ -19166,8 +19166,8 @@ }, "left": { "type": "Identifier", - "start": 5415, - "end": 5417, + "start": 5294, + "end": 5296, "loc": { "start": { "line": 122, @@ -19184,8 +19184,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 5420, - "end": 5440, + "start": 5299, + "end": 5319, "loc": { "start": { "line": 122, @@ -19198,8 +19198,8 @@ }, "object": { "type": "MemberExpression", - "start": 5420, - "end": 5434, + "start": 5299, + "end": 5313, "loc": { "start": { "line": 122, @@ -19212,8 +19212,8 @@ }, "object": { "type": "Identifier", - "start": 5420, - "end": 5429, + "start": 5299, + "end": 5308, "loc": { "start": { "line": 122, @@ -19229,8 +19229,8 @@ }, "property": { "type": "Identifier", - "start": 5430, - "end": 5434, + "start": 5309, + "end": 5313, "loc": { "start": { "line": 122, @@ -19248,8 +19248,8 @@ }, "property": { "type": "Identifier", - "start": 5435, - "end": 5440, + "start": 5314, + "end": 5319, "loc": { "start": { "line": 122, @@ -19272,8 +19272,8 @@ { "type": "CommentLine", "value": " Position the right clone", - "start": 5364, - "end": 5391, + "start": 5244, + "end": 5271, "loc": { "start": { "line": 121, @@ -19289,8 +19289,8 @@ }, { "type": "ExpressionStatement", - "start": 5455, - "end": 5468, + "start": 5333, + "end": 5346, "loc": { "start": { "line": 123, @@ -19303,8 +19303,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 5455, - "end": 5467, + "start": 5333, + "end": 5345, "loc": { "start": { "line": 123, @@ -19318,8 +19318,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 5455, - "end": 5462, + "start": 5333, + "end": 5340, "loc": { "start": { "line": 123, @@ -19332,8 +19332,8 @@ }, "object": { "type": "Identifier", - "start": 5455, - "end": 5460, + "start": 5333, + "end": 5338, "loc": { "start": { "line": 123, @@ -19349,8 +19349,8 @@ }, "property": { "type": "Identifier", - "start": 5461, - "end": 5462, + "start": 5339, + "end": 5340, "loc": { "start": { "line": 123, @@ -19368,8 +19368,8 @@ }, "right": { "type": "Identifier", - "start": 5465, - "end": 5467, + "start": 5343, + "end": 5345, "loc": { "start": { "line": 123, @@ -19388,8 +19388,8 @@ { "type": "CommentLine", "value": " Store the clones in a temporary array", - "start": 5482, - "end": 5522, + "start": 5359, + "end": 5399, "loc": { "start": { "line": 124, @@ -19405,8 +19405,8 @@ }, { "type": "VariableDeclaration", - "start": 5536, - "end": 5567, + "start": 5412, + "end": 5443, "loc": { "start": { "line": 125, @@ -19420,8 +19420,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 5542, - "end": 5566, + "start": 5418, + "end": 5442, "loc": { "start": { "line": 125, @@ -19434,8 +19434,8 @@ }, "id": { "type": "Identifier", - "start": 5542, - "end": 5550, + "start": 5418, + "end": 5426, "loc": { "start": { "line": 125, @@ -19452,8 +19452,8 @@ }, "init": { "type": "ArrayExpression", - "start": 5553, - "end": 5566, + "start": 5429, + "end": 5442, "loc": { "start": { "line": 125, @@ -19467,8 +19467,8 @@ "elements": [ { "type": "Identifier", - "start": 5554, - "end": 5558, + "start": 5430, + "end": 5434, "loc": { "start": { "line": 125, @@ -19484,8 +19484,8 @@ }, { "type": "Identifier", - "start": 5560, - "end": 5565, + "start": 5436, + "end": 5441, "loc": { "start": { "line": 125, @@ -19509,8 +19509,8 @@ { "type": "CommentLine", "value": " Store the clones in a temporary array", - "start": 5482, - "end": 5522, + "start": 5359, + "end": 5399, "loc": { "start": { "line": 124, @@ -19527,8 +19527,8 @@ { "type": "CommentLine", "value": " Loop the clones and store their relative positions to the main instance", - "start": 5581, - "end": 5655, + "start": 5456, + "end": 5530, "loc": { "start": { "line": 126, @@ -19544,8 +19544,8 @@ }, { "type": "ExpressionStatement", - "start": 5669, - "end": 5818, + "start": 5543, + "end": 5689, "loc": { "start": { "line": 127, @@ -19558,8 +19558,8 @@ }, "expression": { "type": "CallExpression", - "start": 5669, - "end": 5817, + "start": 5543, + "end": 5688, "loc": { "start": { "line": 127, @@ -19572,8 +19572,8 @@ }, "callee": { "type": "MemberExpression", - "start": 5669, - "end": 5685, + "start": 5543, + "end": 5559, "loc": { "start": { "line": 127, @@ -19586,8 +19586,8 @@ }, "object": { "type": "Identifier", - "start": 5669, - "end": 5677, + "start": 5543, + "end": 5551, "loc": { "start": { "line": 127, @@ -19604,8 +19604,8 @@ }, "property": { "type": "Identifier", - "start": 5678, - "end": 5685, + "start": 5552, + "end": 5559, "loc": { "start": { "line": 127, @@ -19625,8 +19625,8 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 5686, - "end": 5816, + "start": 5560, + "end": 5687, "loc": { "start": { "line": 127, @@ -19644,8 +19644,8 @@ "params": [ { "type": "Identifier", - "start": 5687, - "end": 5693, + "start": 5561, + "end": 5567, "loc": { "start": { "line": 127, @@ -19662,8 +19662,8 @@ ], "body": { "type": "BlockStatement", - "start": 5698, - "end": 5816, + "start": 5572, + "end": 5687, "loc": { "start": { "line": 127, @@ -19677,8 +19677,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 5717, - "end": 5750, + "start": 5590, + "end": 5623, "loc": { "start": { "line": 128, @@ -19691,8 +19691,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 5717, - "end": 5749, + "start": 5590, + "end": 5622, "loc": { "start": { "line": 128, @@ -19706,8 +19706,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 5717, - "end": 5733, + "start": 5590, + "end": 5606, "loc": { "start": { "line": 128, @@ -19720,8 +19720,8 @@ }, "object": { "type": "Identifier", - "start": 5717, - "end": 5723, + "start": 5590, + "end": 5596, "loc": { "start": { "line": 128, @@ -19737,8 +19737,8 @@ }, "property": { "type": "Identifier", - "start": 5724, - "end": 5733, + "start": 5597, + "end": 5606, "loc": { "start": { "line": 128, @@ -19756,8 +19756,8 @@ }, "right": { "type": "BinaryExpression", - "start": 5736, - "end": 5749, + "start": 5609, + "end": 5622, "loc": { "start": { "line": 128, @@ -19770,8 +19770,8 @@ }, "left": { "type": "MemberExpression", - "start": 5736, - "end": 5744, + "start": 5609, + "end": 5617, "loc": { "start": { "line": 128, @@ -19784,8 +19784,8 @@ }, "object": { "type": "Identifier", - "start": 5736, - "end": 5742, + "start": 5609, + "end": 5615, "loc": { "start": { "line": 128, @@ -19801,8 +19801,8 @@ }, "property": { "type": "Identifier", - "start": 5743, - "end": 5744, + "start": 5616, + "end": 5617, "loc": { "start": { "line": 128, @@ -19821,8 +19821,8 @@ "operator": "-", "right": { "type": "Identifier", - "start": 5747, - "end": 5749, + "start": 5620, + "end": 5622, "loc": { "start": { "line": 128, @@ -19841,8 +19841,8 @@ }, { "type": "ExpressionStatement", - "start": 5768, - "end": 5801, + "start": 5640, + "end": 5673, "loc": { "start": { "line": 129, @@ -19855,8 +19855,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 5768, - "end": 5800, + "start": 5640, + "end": 5672, "loc": { "start": { "line": 129, @@ -19870,8 +19870,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 5768, - "end": 5784, + "start": 5640, + "end": 5656, "loc": { "start": { "line": 129, @@ -19884,8 +19884,8 @@ }, "object": { "type": "Identifier", - "start": 5768, - "end": 5774, + "start": 5640, + "end": 5646, "loc": { "start": { "line": 129, @@ -19901,8 +19901,8 @@ }, "property": { "type": "Identifier", - "start": 5775, - "end": 5784, + "start": 5647, + "end": 5656, "loc": { "start": { "line": 129, @@ -19920,8 +19920,8 @@ }, "right": { "type": "BinaryExpression", - "start": 5787, - "end": 5800, + "start": 5659, + "end": 5672, "loc": { "start": { "line": 129, @@ -19934,8 +19934,8 @@ }, "left": { "type": "MemberExpression", - "start": 5787, - "end": 5795, + "start": 5659, + "end": 5667, "loc": { "start": { "line": 129, @@ -19948,8 +19948,8 @@ }, "object": { "type": "Identifier", - "start": 5787, - "end": 5793, + "start": 5659, + "end": 5665, "loc": { "start": { "line": 129, @@ -19965,8 +19965,8 @@ }, "property": { "type": "Identifier", - "start": 5794, - "end": 5795, + "start": 5666, + "end": 5667, "loc": { "start": { "line": 129, @@ -19985,8 +19985,8 @@ "operator": "-", "right": { "type": "Identifier", - "start": 5798, - "end": 5800, + "start": 5670, + "end": 5672, "loc": { "start": { "line": 129, @@ -20014,8 +20014,8 @@ { "type": "CommentLine", "value": " Loop the clones and store their relative positions to the main instance", - "start": 5581, - "end": 5655, + "start": 5456, + "end": 5530, "loc": { "start": { "line": 126, @@ -20032,8 +20032,8 @@ { "type": "CommentLine", "value": " Do not mutate event if one is found. Call alongside it.", - "start": 5834, - "end": 5892, + "start": 5703, + "end": 5761, "loc": { "start": { "line": 132, @@ -20049,8 +20049,8 @@ }, { "type": "VariableDeclaration", - "start": 5906, - "end": 5954, + "start": 5774, + "end": 5822, "loc": { "start": { "line": 133, @@ -20064,8 +20064,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 5912, - "end": 5953, + "start": 5780, + "end": 5821, "loc": { "start": { "line": 133, @@ -20078,8 +20078,8 @@ }, "id": { "type": "Identifier", - "start": 5912, - "end": 5929, + "start": 5780, + "end": 5797, "loc": { "start": { "line": 133, @@ -20096,8 +20096,8 @@ }, "init": { "type": "MemberExpression", - "start": 5932, - "end": 5953, + "start": 5800, + "end": 5821, "loc": { "start": { "line": 133, @@ -20110,8 +20110,8 @@ }, "object": { "type": "Identifier", - "start": 5932, - "end": 5941, + "start": 5800, + "end": 5809, "loc": { "start": { "line": 133, @@ -20127,8 +20127,8 @@ }, "property": { "type": "Identifier", - "start": 5942, - "end": 5953, + "start": 5810, + "end": 5821, "loc": { "start": { "line": 133, @@ -20152,8 +20152,8 @@ { "type": "CommentLine", "value": " Do not mutate event if one is found. Call alongside it.", - "start": 5834, - "end": 5892, + "start": 5703, + "end": 5761, "loc": { "start": { "line": 132, @@ -20170,8 +20170,8 @@ { "type": "CommentLine", "value": " When the main instance moves, move the clones with their relative position to it.", - "start": 5968, - "end": 6052, + "start": 5835, + "end": 5919, "loc": { "start": { "line": 134, @@ -20187,8 +20187,8 @@ }, { "type": "IfStatement", - "start": 6066, - "end": 6493, + "start": 5932, + "end": 6350, "loc": { "start": { "line": 135, @@ -20201,8 +20201,8 @@ }, "test": { "type": "BinaryExpression", - "start": 6070, - "end": 6109, + "start": 5936, + "end": 5975, "loc": { "start": { "line": 135, @@ -20215,8 +20215,8 @@ }, "left": { "type": "UnaryExpression", - "start": 6070, - "end": 6094, + "start": 5936, + "end": 5960, "loc": { "start": { "line": 135, @@ -20231,8 +20231,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 6077, - "end": 6094, + "start": 5943, + "end": 5960, "loc": { "start": { "line": 135, @@ -20255,8 +20255,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 6099, - "end": 6109, + "start": 5965, + "end": 5975, "loc": { "start": { "line": 135, @@ -20277,8 +20277,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 6111, - "end": 6331, + "start": 5977, + "end": 6192, "loc": { "start": { "line": 135, @@ -20292,8 +20292,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 6130, - "end": 6316, + "start": 5995, + "end": 6178, "loc": { "start": { "line": 136, @@ -20306,8 +20306,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 6130, - "end": 6316, + "start": 5995, + "end": 6178, "loc": { "start": { "line": 136, @@ -20321,8 +20321,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 6130, - "end": 6151, + "start": 5995, + "end": 6016, "loc": { "start": { "line": 136, @@ -20335,8 +20335,8 @@ }, "object": { "type": "Identifier", - "start": 6130, - "end": 6139, + "start": 5995, + "end": 6004, "loc": { "start": { "line": 136, @@ -20352,8 +20352,8 @@ }, "property": { "type": "Identifier", - "start": 6140, - "end": 6151, + "start": 6005, + "end": 6016, "loc": { "start": { "line": 136, @@ -20371,8 +20371,8 @@ }, "right": { "type": "ArrowFunctionExpression", - "start": 6154, - "end": 6316, + "start": 6019, + "end": 6178, "loc": { "start": { "line": 136, @@ -20390,8 +20390,8 @@ "params": [ { "type": "Identifier", - "start": 6155, - "end": 6157, + "start": 6020, + "end": 6022, "loc": { "start": { "line": 136, @@ -20407,8 +20407,8 @@ }, { "type": "Identifier", - "start": 6159, - "end": 6161, + "start": 6024, + "end": 6026, "loc": { "start": { "line": 136, @@ -20425,8 +20425,8 @@ ], "body": { "type": "BlockStatement", - "start": 6166, - "end": 6316, + "start": 6031, + "end": 6178, "loc": { "start": { "line": 136, @@ -20440,8 +20440,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 6189, - "end": 6231, + "start": 6053, + "end": 6095, "loc": { "start": { "line": 137, @@ -20454,8 +20454,8 @@ }, "expression": { "type": "CallExpression", - "start": 6189, - "end": 6230, + "start": 6053, + "end": 6094, "loc": { "start": { "line": 137, @@ -20468,8 +20468,8 @@ }, "callee": { "type": "MemberExpression", - "start": 6189, - "end": 6211, + "start": 6053, + "end": 6075, "loc": { "start": { "line": 137, @@ -20482,8 +20482,8 @@ }, "object": { "type": "Identifier", - "start": 6189, - "end": 6206, + "start": 6053, + "end": 6070, "loc": { "start": { "line": 137, @@ -20499,8 +20499,8 @@ }, "property": { "type": "Identifier", - "start": 6207, - "end": 6211, + "start": 6071, + "end": 6075, "loc": { "start": { "line": 137, @@ -20519,8 +20519,8 @@ "arguments": [ { "type": "Identifier", - "start": 6212, - "end": 6221, + "start": 6076, + "end": 6085, "loc": { "start": { "line": 137, @@ -20536,8 +20536,8 @@ }, { "type": "Identifier", - "start": 6223, - "end": 6225, + "start": 6087, + "end": 6089, "loc": { "start": { "line": 137, @@ -20553,8 +20553,8 @@ }, { "type": "Identifier", - "start": 6227, - "end": 6229, + "start": 6091, + "end": 6093, "loc": { "start": { "line": 137, @@ -20573,8 +20573,8 @@ }, { "type": "ExpressionStatement", - "start": 6253, - "end": 6297, + "start": 6116, + "end": 6160, "loc": { "start": { "line": 138, @@ -20587,8 +20587,8 @@ }, "expression": { "type": "CallExpression", - "start": 6253, - "end": 6296, + "start": 6116, + "end": 6159, "loc": { "start": { "line": 138, @@ -20601,8 +20601,8 @@ }, "callee": { "type": "MemberExpression", - "start": 6253, - "end": 6275, + "start": 6116, + "end": 6138, "loc": { "start": { "line": 138, @@ -20615,8 +20615,8 @@ }, "object": { "type": "ThisExpression", - "start": 6253, - "end": 6257, + "start": 6116, + "end": 6120, "loc": { "start": { "line": 138, @@ -20630,8 +20630,8 @@ }, "property": { "type": "Identifier", - "start": 6258, - "end": 6275, + "start": 6121, + "end": 6138, "loc": { "start": { "line": 138, @@ -20650,8 +20650,8 @@ "arguments": [ { "type": "Identifier", - "start": 6276, - "end": 6285, + "start": 6139, + "end": 6148, "loc": { "start": { "line": 138, @@ -20667,8 +20667,8 @@ }, { "type": "Identifier", - "start": 6287, - "end": 6295, + "start": 6150, + "end": 6158, "loc": { "start": { "line": 138, @@ -20696,8 +20696,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 6337, - "end": 6493, + "start": 6198, + "end": 6350, "loc": { "start": { "line": 140, @@ -20711,8 +20711,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 6356, - "end": 6478, + "start": 6216, + "end": 6336, "loc": { "start": { "line": 141, @@ -20725,8 +20725,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 6356, - "end": 6478, + "start": 6216, + "end": 6336, "loc": { "start": { "line": 141, @@ -20740,8 +20740,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 6356, - "end": 6377, + "start": 6216, + "end": 6237, "loc": { "start": { "line": 141, @@ -20754,8 +20754,8 @@ }, "object": { "type": "Identifier", - "start": 6356, - "end": 6365, + "start": 6216, + "end": 6225, "loc": { "start": { "line": 141, @@ -20771,8 +20771,8 @@ }, "property": { "type": "Identifier", - "start": 6366, - "end": 6377, + "start": 6226, + "end": 6237, "loc": { "start": { "line": 141, @@ -20790,8 +20790,8 @@ }, "right": { "type": "ArrowFunctionExpression", - "start": 6380, - "end": 6478, + "start": 6240, + "end": 6336, "loc": { "start": { "line": 141, @@ -20809,8 +20809,8 @@ "params": [ { "type": "Identifier", - "start": 6381, - "end": 6383, + "start": 6241, + "end": 6243, "loc": { "start": { "line": 141, @@ -20826,8 +20826,8 @@ }, { "type": "Identifier", - "start": 6385, - "end": 6387, + "start": 6245, + "end": 6247, "loc": { "start": { "line": 141, @@ -20844,8 +20844,8 @@ ], "body": { "type": "BlockStatement", - "start": 6392, - "end": 6478, + "start": 6252, + "end": 6336, "loc": { "start": { "line": 141, @@ -20859,8 +20859,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 6415, - "end": 6459, + "start": 6274, + "end": 6318, "loc": { "start": { "line": 142, @@ -20873,8 +20873,8 @@ }, "expression": { "type": "CallExpression", - "start": 6415, - "end": 6458, + "start": 6274, + "end": 6317, "loc": { "start": { "line": 142, @@ -20887,8 +20887,8 @@ }, "callee": { "type": "MemberExpression", - "start": 6415, - "end": 6437, + "start": 6274, + "end": 6296, "loc": { "start": { "line": 142, @@ -20901,8 +20901,8 @@ }, "object": { "type": "ThisExpression", - "start": 6415, - "end": 6419, + "start": 6274, + "end": 6278, "loc": { "start": { "line": 142, @@ -20916,8 +20916,8 @@ }, "property": { "type": "Identifier", - "start": 6420, - "end": 6437, + "start": 6279, + "end": 6296, "loc": { "start": { "line": 142, @@ -20936,8 +20936,8 @@ "arguments": [ { "type": "Identifier", - "start": 6438, - "end": 6447, + "start": 6297, + "end": 6306, "loc": { "start": { "line": 142, @@ -20953,8 +20953,8 @@ }, { "type": "Identifier", - "start": 6449, - "end": 6457, + "start": 6308, + "end": 6316, "loc": { "start": { "line": 142, @@ -20984,8 +20984,8 @@ { "type": "CommentLine", "value": " When the main instance moves, move the clones with their relative position to it.", - "start": 5968, - "end": 6052, + "start": 5835, + "end": 5919, "loc": { "start": { "line": 134, @@ -21007,8 +21007,8 @@ { "type": "CommentLine", "value": " If this instance is set to loop, then it needs a left and right clone", - "start": 4618, - "end": 4690, + "start": 4515, + "end": 4587, "loc": { "start": { "line": 104, @@ -21024,8 +21024,8 @@ }, { "type": "VariableDeclaration", - "start": 6514, - "end": 6555, + "start": 6369, + "end": 6410, "loc": { "start": { "line": 146, @@ -21039,8 +21039,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 6520, - "end": 6554, + "start": 6375, + "end": 6409, "loc": { "start": { "line": 146, @@ -21053,8 +21053,8 @@ }, "id": { "type": "Identifier", - "start": 6520, - "end": 6527, + "start": 6375, + "end": 6382, "loc": { "start": { "line": 146, @@ -21070,8 +21070,8 @@ }, "init": { "type": "CallExpression", - "start": 6530, - "end": 6554, + "start": 6385, + "end": 6409, "loc": { "start": { "line": 146, @@ -21084,8 +21084,8 @@ }, "callee": { "type": "MemberExpression", - "start": 6530, - "end": 6552, + "start": 6385, + "end": 6407, "loc": { "start": { "line": 146, @@ -21098,8 +21098,8 @@ }, "object": { "type": "MemberExpression", - "start": 6530, - "end": 6541, + "start": 6385, + "end": 6396, "loc": { "start": { "line": 146, @@ -21112,8 +21112,8 @@ }, "object": { "type": "Identifier", - "start": 6530, - "end": 6534, + "start": 6385, + "end": 6389, "loc": { "start": { "line": 146, @@ -21129,8 +21129,8 @@ }, "property": { "type": "Identifier", - "start": 6535, - "end": 6541, + "start": 6390, + "end": 6396, "loc": { "start": { "line": 146, @@ -21148,8 +21148,8 @@ }, "property": { "type": "Identifier", - "start": 6542, - "end": 6552, + "start": 6397, + "end": 6407, "loc": { "start": { "line": 146, @@ -21173,8 +21173,8 @@ }, { "type": "VariableDeclaration", - "start": 6565, - "end": 6582, + "start": 6419, + "end": 6436, "loc": { "start": { "line": 147, @@ -21188,8 +21188,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 6569, - "end": 6581, + "start": 6423, + "end": 6435, "loc": { "start": { "line": 147, @@ -21202,8 +21202,8 @@ }, "id": { "type": "Identifier", - "start": 6569, - "end": 6577, + "start": 6423, + "end": 6431, "loc": { "start": { "line": 147, @@ -21219,8 +21219,8 @@ }, "init": { "type": "NumericLiteral", - "start": 6580, - "end": 6581, + "start": 6434, + "end": 6435, "loc": { "start": { "line": 147, @@ -21243,8 +21243,8 @@ }, { "type": "VariableDeclaration", - "start": 6592, - "end": 6609, + "start": 6445, + "end": 6462, "loc": { "start": { "line": 148, @@ -21258,8 +21258,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 6596, - "end": 6608, + "start": 6449, + "end": 6461, "loc": { "start": { "line": 148, @@ -21272,8 +21272,8 @@ }, "id": { "type": "Identifier", - "start": 6596, - "end": 6604, + "start": 6449, + "end": 6457, "loc": { "start": { "line": 148, @@ -21289,8 +21289,8 @@ }, "init": { "type": "NumericLiteral", - "start": 6607, - "end": 6608, + "start": 6460, + "end": 6461, "loc": { "start": { "line": 148, @@ -21313,8 +21313,8 @@ }, { "type": "IfStatement", - "start": 6619, - "end": 6714, + "start": 6471, + "end": 6563, "loc": { "start": { "line": 149, @@ -21327,8 +21327,8 @@ }, "test": { "type": "Identifier", - "start": 6623, - "end": 6630, + "start": 6475, + "end": 6482, "loc": { "start": { "line": 149, @@ -21344,8 +21344,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 6632, - "end": 6714, + "start": 6484, + "end": 6563, "loc": { "start": { "line": 149, @@ -21359,8 +21359,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 6647, - "end": 6668, + "start": 6498, + "end": 6519, "loc": { "start": { "line": 150, @@ -21373,8 +21373,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 6647, - "end": 6667, + "start": 6498, + "end": 6518, "loc": { "start": { "line": 150, @@ -21388,8 +21388,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 6647, - "end": 6655, + "start": 6498, + "end": 6506, "loc": { "start": { "line": 150, @@ -21405,8 +21405,8 @@ }, "right": { "type": "MemberExpression", - "start": 6658, - "end": 6667, + "start": 6509, + "end": 6518, "loc": { "start": { "line": 150, @@ -21419,8 +21419,8 @@ }, "object": { "type": "Identifier", - "start": 6658, - "end": 6665, + "start": 6509, + "end": 6516, "loc": { "start": { "line": 150, @@ -21436,8 +21436,8 @@ }, "property": { "type": "Identifier", - "start": 6666, - "end": 6667, + "start": 6517, + "end": 6518, "loc": { "start": { "line": 150, @@ -21457,8 +21457,8 @@ }, { "type": "ExpressionStatement", - "start": 6682, - "end": 6703, + "start": 6532, + "end": 6553, "loc": { "start": { "line": 151, @@ -21471,8 +21471,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 6682, - "end": 6702, + "start": 6532, + "end": 6552, "loc": { "start": { "line": 151, @@ -21486,8 +21486,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 6682, - "end": 6690, + "start": 6532, + "end": 6540, "loc": { "start": { "line": 151, @@ -21503,8 +21503,8 @@ }, "right": { "type": "MemberExpression", - "start": 6693, - "end": 6702, + "start": 6543, + "end": 6552, "loc": { "start": { "line": 151, @@ -21517,8 +21517,8 @@ }, "object": { "type": "Identifier", - "start": 6693, - "end": 6700, + "start": 6543, + "end": 6550, "loc": { "start": { "line": 151, @@ -21534,8 +21534,8 @@ }, "property": { "type": "Identifier", - "start": 6701, - "end": 6702, + "start": 6551, + "end": 6552, "loc": { "start": { "line": 151, @@ -21560,8 +21560,8 @@ }, { "type": "ExpressionStatement", - "start": 6724, - "end": 6753, + "start": 6572, + "end": 6601, "loc": { "start": { "line": 153, @@ -21574,8 +21574,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 6724, - "end": 6752, + "start": 6572, + "end": 6600, "loc": { "start": { "line": 153, @@ -21589,8 +21589,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 6724, - "end": 6741, + "start": 6572, + "end": 6589, "loc": { "start": { "line": 153, @@ -21603,8 +21603,8 @@ }, "object": { "type": "MemberExpression", - "start": 6724, - "end": 6739, + "start": 6572, + "end": 6587, "loc": { "start": { "line": 153, @@ -21617,8 +21617,8 @@ }, "object": { "type": "ThisExpression", - "start": 6724, - "end": 6728, + "start": 6572, + "end": 6576, "loc": { "start": { "line": 153, @@ -21632,8 +21632,8 @@ }, "property": { "type": "Identifier", - "start": 6729, - "end": 6739, + "start": 6577, + "end": 6587, "loc": { "start": { "line": 153, @@ -21651,8 +21651,8 @@ }, "property": { "type": "Identifier", - "start": 6740, - "end": 6741, + "start": 6588, + "end": 6589, "loc": { "start": { "line": 153, @@ -21670,8 +21670,8 @@ }, "right": { "type": "Identifier", - "start": 6744, - "end": 6752, + "start": 6592, + "end": 6600, "loc": { "start": { "line": 153, @@ -21689,8 +21689,8 @@ }, { "type": "ExpressionStatement", - "start": 6763, - "end": 6792, + "start": 6610, + "end": 6639, "loc": { "start": { "line": 154, @@ -21703,8 +21703,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 6763, - "end": 6791, + "start": 6610, + "end": 6638, "loc": { "start": { "line": 154, @@ -21718,8 +21718,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 6763, - "end": 6780, + "start": 6610, + "end": 6627, "loc": { "start": { "line": 154, @@ -21732,8 +21732,8 @@ }, "object": { "type": "MemberExpression", - "start": 6763, - "end": 6778, + "start": 6610, + "end": 6625, "loc": { "start": { "line": 154, @@ -21746,8 +21746,8 @@ }, "object": { "type": "ThisExpression", - "start": 6763, - "end": 6767, + "start": 6610, + "end": 6614, "loc": { "start": { "line": 154, @@ -21761,8 +21761,8 @@ }, "property": { "type": "Identifier", - "start": 6768, - "end": 6778, + "start": 6615, + "end": 6625, "loc": { "start": { "line": 154, @@ -21780,8 +21780,8 @@ }, "property": { "type": "Identifier", - "start": 6779, - "end": 6780, + "start": 6626, + "end": 6627, "loc": { "start": { "line": 154, @@ -21799,8 +21799,8 @@ }, "right": { "type": "Identifier", - "start": 6783, - "end": 6791, + "start": 6630, + "end": 6638, "loc": { "start": { "line": 154, @@ -21818,8 +21818,8 @@ }, { "type": "ExpressionStatement", - "start": 6802, - "end": 6833, + "start": 6648, + "end": 6679, "loc": { "start": { "line": 155, @@ -21832,8 +21832,8 @@ }, "expression": { "type": "CallExpression", - "start": 6802, - "end": 6832, + "start": 6648, + "end": 6678, "loc": { "start": { "line": 155, @@ -21846,8 +21846,8 @@ }, "callee": { "type": "MemberExpression", - "start": 6802, - "end": 6818, + "start": 6648, + "end": 6664, "loc": { "start": { "line": 155, @@ -21860,8 +21860,8 @@ }, "object": { "type": "Identifier", - "start": 6802, - "end": 6811, + "start": 6648, + "end": 6657, "loc": { "start": { "line": 155, @@ -21877,8 +21877,8 @@ }, "property": { "type": "Identifier", - "start": 6812, - "end": 6818, + "start": 6658, + "end": 6664, "loc": { "start": { "line": 155, @@ -21897,8 +21897,8 @@ "arguments": [ { "type": "Identifier", - "start": 6819, - "end": 6821, + "start": 6665, + "end": 6667, "loc": { "start": { "line": 155, @@ -21914,8 +21914,8 @@ }, { "type": "Identifier", - "start": 6823, - "end": 6825, + "start": 6669, + "end": 6671, "loc": { "start": { "line": 155, @@ -21931,8 +21931,8 @@ }, { "type": "Identifier", - "start": 6827, - "end": 6831, + "start": 6673, + "end": 6677, "loc": { "start": { "line": 155, @@ -21956,9 +21956,9 @@ "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, + "value": "*\n * Initializes this instance.\n * @param {Object} pInstance - The instance to initialize.\n * @param {Object} pConfig - The parallax info that tells this module how to control this instance.\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.\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.\n * @prop {boolean} pConfig.loop - Whether this instance will loop endlessly.\n * @param {number} pX - The x position this parallax will start at.\n * @param {number} pY - The y position this parallax will start at.\n * @param {string} pMap - The map this instance will start at.\n * @private\n ", + "start": 3416, + "end": 4262, "loc": { "start": { "line": 86, @@ -21974,9 +21974,9 @@ "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, + "value": "*\n * Removes an instance to the parallax system.\n * @param {Object} pInstance - The instance to remove to the parallax system.\n ", + "start": 6690, + "end": 6834, "loc": { "start": { "line": 157, @@ -21992,8 +21992,8 @@ }, { "type": "ClassMethod", - "start": 6999, - "end": 7325, + "start": 6839, + "end": 7155, "loc": { "start": { "line": 161, @@ -22008,8 +22008,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 6999, - "end": 7005, + "start": 6839, + "end": 6845, "loc": { "start": { "line": 161, @@ -22032,8 +22032,8 @@ "params": [ { "type": "Identifier", - "start": 7006, - "end": 7015, + "start": 6846, + "end": 6855, "loc": { "start": { "line": 161, @@ -22050,8 +22050,8 @@ ], "body": { "type": "BlockStatement", - "start": 7017, - "end": 7325, + "start": 6857, + "end": 7155, "loc": { "start": { "line": 161, @@ -22065,8 +22065,8 @@ "body": [ { "type": "IfStatement", - "start": 7028, - "end": 7159, + "start": 6867, + "end": 6995, "loc": { "start": { "line": 162, @@ -22079,8 +22079,8 @@ }, "test": { "type": "UnaryExpression", - "start": 7032, - "end": 7042, + "start": 6871, + "end": 6881, "loc": { "start": { "line": 162, @@ -22095,8 +22095,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 7033, - "end": 7042, + "start": 6872, + "end": 6881, "loc": { "start": { "line": 162, @@ -22116,8 +22116,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 7044, - "end": 7159, + "start": 6883, + "end": 6995, "loc": { "start": { "line": 162, @@ -22131,8 +22131,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 7059, - "end": 7127, + "start": 6897, + "end": 6965, "loc": { "start": { "line": 163, @@ -22145,8 +22145,8 @@ }, "expression": { "type": "CallExpression", - "start": 7059, - "end": 7126, + "start": 6897, + "end": 6964, "loc": { "start": { "line": 163, @@ -22159,8 +22159,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7059, - "end": 7102, + "start": 6897, + "end": 6940, "loc": { "start": { "line": 163, @@ -22173,8 +22173,8 @@ }, "object": { "type": "CallExpression", - "start": 7059, - "end": 7096, + "start": 6897, + "end": 6934, "loc": { "start": { "line": 163, @@ -22187,8 +22187,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7059, - "end": 7077, + "start": 6897, + "end": 6915, "loc": { "start": { "line": 163, @@ -22201,8 +22201,8 @@ }, "object": { "type": "MemberExpression", - "start": 7059, - "end": 7070, + "start": 6897, + "end": 6908, "loc": { "start": { "line": 163, @@ -22215,8 +22215,8 @@ }, "object": { "type": "ThisExpression", - "start": 7059, - "end": 7063, + "start": 6897, + "end": 6901, "loc": { "start": { "line": 163, @@ -22230,8 +22230,8 @@ }, "property": { "type": "Identifier", - "start": 7064, - "end": 7070, + "start": 6902, + "end": 6908, "loc": { "start": { "line": 163, @@ -22249,8 +22249,8 @@ }, "property": { "type": "Identifier", - "start": 7071, - "end": 7077, + "start": 6909, + "end": 6915, "loc": { "start": { "line": 163, @@ -22269,8 +22269,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 7078, - "end": 7095, + "start": 6916, + "end": 6933, "loc": { "start": { "line": 163, @@ -22291,8 +22291,8 @@ }, "property": { "type": "Identifier", - "start": 7097, - "end": 7102, + "start": 6935, + "end": 6940, "loc": { "start": { "line": 163, @@ -22311,8 +22311,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 7103, - "end": 7125, + "start": 6941, + "end": 6963, "loc": { "start": { "line": 163, @@ -22334,8 +22334,8 @@ }, { "type": "ReturnStatement", - "start": 7141, - "end": 7148, + "start": 6978, + "end": 6985, "loc": { "start": { "line": 164, @@ -22355,8 +22355,8 @@ }, { "type": "IfStatement", - "start": 7171, - "end": 7318, + "start": 7005, + "end": 7149, "loc": { "start": { "line": 167, @@ -22369,8 +22369,8 @@ }, "test": { "type": "CallExpression", - "start": 7175, - "end": 7204, + "start": 7009, + "end": 7038, "loc": { "start": { "line": 167, @@ -22383,8 +22383,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7175, - "end": 7193, + "start": 7009, + "end": 7027, "loc": { "start": { "line": 167, @@ -22397,8 +22397,8 @@ }, "object": { "type": "MemberExpression", - "start": 7175, - "end": 7189, + "start": 7009, + "end": 7023, "loc": { "start": { "line": 167, @@ -22411,8 +22411,8 @@ }, "object": { "type": "ThisExpression", - "start": 7175, - "end": 7179, + "start": 7009, + "end": 7013, "loc": { "start": { "line": 167, @@ -22426,8 +22426,8 @@ }, "property": { "type": "Identifier", - "start": 7180, - "end": 7189, + "start": 7014, + "end": 7023, "loc": { "start": { "line": 167, @@ -22445,8 +22445,8 @@ }, "property": { "type": "Identifier", - "start": 7190, - "end": 7193, + "start": 7024, + "end": 7027, "loc": { "start": { "line": 167, @@ -22465,8 +22465,8 @@ "arguments": [ { "type": "Identifier", - "start": 7194, - "end": 7203, + "start": 7028, + "end": 7037, "loc": { "start": { "line": 167, @@ -22484,8 +22484,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 7206, - "end": 7318, + "start": 7040, + "end": 7149, "loc": { "start": { "line": 167, @@ -22499,8 +22499,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 7221, - "end": 7254, + "start": 7054, + "end": 7087, "loc": { "start": { "line": 168, @@ -22513,8 +22513,8 @@ }, "expression": { "type": "CallExpression", - "start": 7221, - "end": 7253, + "start": 7054, + "end": 7086, "loc": { "start": { "line": 168, @@ -22527,8 +22527,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7221, - "end": 7242, + "start": 7054, + "end": 7075, "loc": { "start": { "line": 168, @@ -22541,8 +22541,8 @@ }, "object": { "type": "MemberExpression", - "start": 7221, - "end": 7235, + "start": 7054, + "end": 7068, "loc": { "start": { "line": 168, @@ -22555,8 +22555,8 @@ }, "object": { "type": "ThisExpression", - "start": 7221, - "end": 7225, + "start": 7054, + "end": 7058, "loc": { "start": { "line": 168, @@ -22570,8 +22570,8 @@ }, "property": { "type": "Identifier", - "start": 7226, - "end": 7235, + "start": 7059, + "end": 7068, "loc": { "start": { "line": 168, @@ -22589,8 +22589,8 @@ }, "property": { "type": "Identifier", - "start": 7236, - "end": 7242, + "start": 7069, + "end": 7075, "loc": { "start": { "line": 168, @@ -22609,8 +22609,8 @@ "arguments": [ { "type": "Identifier", - "start": 7243, - "end": 7252, + "start": 7076, + "end": 7085, "loc": { "start": { "line": 168, @@ -22629,8 +22629,8 @@ }, { "type": "ExpressionStatement", - "start": 7268, - "end": 7307, + "start": 7100, + "end": 7139, "loc": { "start": { "line": 169, @@ -22643,8 +22643,8 @@ }, "expression": { "type": "CallExpression", - "start": 7268, - "end": 7306, + "start": 7100, + "end": 7138, "loc": { "start": { "line": 169, @@ -22657,8 +22657,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7268, - "end": 7295, + "start": 7100, + "end": 7127, "loc": { "start": { "line": 169, @@ -22671,8 +22671,8 @@ }, "object": { "type": "MemberExpression", - "start": 7268, - "end": 7288, + "start": 7100, + "end": 7120, "loc": { "start": { "line": 169, @@ -22685,8 +22685,8 @@ }, "object": { "type": "ThisExpression", - "start": 7268, - "end": 7272, + "start": 7100, + "end": 7104, "loc": { "start": { "line": 169, @@ -22700,8 +22700,8 @@ }, "property": { "type": "Identifier", - "start": 7273, - "end": 7288, + "start": 7105, + "end": 7120, "loc": { "start": { "line": 169, @@ -22719,8 +22719,8 @@ }, "property": { "type": "Identifier", - "start": 7289, - "end": 7295, + "start": 7121, + "end": 7127, "loc": { "start": { "line": 169, @@ -22739,8 +22739,8 @@ "arguments": [ { "type": "Identifier", - "start": 7296, - "end": 7305, + "start": 7128, + "end": 7137, "loc": { "start": { "line": 169, @@ -22769,9 +22769,9 @@ "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, + "value": "*\n * Removes an instance to the parallax system.\n * @param {Object} pInstance - The instance to remove to the parallax system.\n ", + "start": 6690, + "end": 6834, "loc": { "start": { "line": 157, @@ -22787,9 +22787,9 @@ "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, + "value": "*\n * Updates the parallax system.\n * @param {number} pCameraX - The x position of the camera.\n * @param {number} pCameraY - The y position of the camera.\n ", + "start": 7160, + "end": 7335, "loc": { "start": { "line": 172, @@ -22805,8 +22805,8 @@ }, { "type": "ClassMethod", - "start": 7516, - "end": 9592, + "start": 7340, + "end": 9363, "loc": { "start": { "line": 177, @@ -22821,8 +22821,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 7516, - "end": 7522, + "start": 7340, + "end": 7346, "loc": { "start": { "line": 177, @@ -22845,8 +22845,8 @@ "params": [ { "type": "AssignmentPattern", - "start": 7523, - "end": 7535, + "start": 7347, + "end": 7359, "loc": { "start": { "line": 177, @@ -22859,8 +22859,8 @@ }, "left": { "type": "Identifier", - "start": 7523, - "end": 7531, + "start": 7347, + "end": 7355, "loc": { "start": { "line": 177, @@ -22876,8 +22876,8 @@ }, "right": { "type": "NumericLiteral", - "start": 7534, - "end": 7535, + "start": 7358, + "end": 7359, "loc": { "start": { "line": 177, @@ -22897,8 +22897,8 @@ }, { "type": "AssignmentPattern", - "start": 7537, - "end": 7549, + "start": 7361, + "end": 7373, "loc": { "start": { "line": 177, @@ -22911,8 +22911,8 @@ }, "left": { "type": "Identifier", - "start": 7537, - "end": 7545, + "start": 7361, + "end": 7369, "loc": { "start": { "line": 177, @@ -22928,8 +22928,8 @@ }, "right": { "type": "NumericLiteral", - "start": 7548, - "end": 7549, + "start": 7372, + "end": 7373, "loc": { "start": { "line": 177, @@ -22950,8 +22950,8 @@ ], "body": { "type": "BlockStatement", - "start": 7551, - "end": 9592, + "start": 7375, + "end": 9363, "loc": { "start": { "line": 177, @@ -22965,8 +22965,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 7599, - "end": 7622, + "start": 7421, + "end": 7444, "loc": { "start": { "line": 179, @@ -22980,8 +22980,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 7603, - "end": 7621, + "start": 7425, + "end": 7443, "loc": { "start": { "line": 179, @@ -22994,8 +22994,8 @@ }, "id": { "type": "Identifier", - "start": 7603, - "end": 7610, + "start": 7425, + "end": 7432, "loc": { "start": { "line": 179, @@ -23012,8 +23012,8 @@ }, "init": { "type": "Identifier", - "start": 7613, - "end": 7621, + "start": 7435, + "end": 7443, "loc": { "start": { "line": 179, @@ -23035,8 +23035,8 @@ { "type": "CommentLine", "value": " The camera's x position.", - "start": 7562, - "end": 7589, + "start": 7385, + "end": 7412, "loc": { "start": { "line": 178, @@ -23053,8 +23053,8 @@ { "type": "CommentLine", "value": " The camera's x position.", - "start": 7632, - "end": 7659, + "start": 7453, + "end": 7480, "loc": { "start": { "line": 180, @@ -23070,8 +23070,8 @@ }, { "type": "VariableDeclaration", - "start": 7669, - "end": 7692, + "start": 7489, + "end": 7512, "loc": { "start": { "line": 181, @@ -23085,8 +23085,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 7673, - "end": 7691, + "start": 7493, + "end": 7511, "loc": { "start": { "line": 181, @@ -23099,8 +23099,8 @@ }, "id": { "type": "Identifier", - "start": 7673, - "end": 7680, + "start": 7493, + "end": 7500, "loc": { "start": { "line": 181, @@ -23117,8 +23117,8 @@ }, "init": { "type": "Identifier", - "start": 7683, - "end": 7691, + "start": 7503, + "end": 7511, "loc": { "start": { "line": 181, @@ -23140,8 +23140,8 @@ { "type": "CommentLine", "value": " The camera's x position.", - "start": 7632, - "end": 7659, + "start": 7453, + "end": 7480, "loc": { "start": { "line": 180, @@ -23157,8 +23157,8 @@ }, { "type": "ExpressionStatement", - "start": 7702, - "end": 9509, + "start": 7521, + "end": 9283, "loc": { "start": { "line": 182, @@ -23171,8 +23171,8 @@ }, "expression": { "type": "CallExpression", - "start": 7702, - "end": 9508, + "start": 7521, + "end": 9282, "loc": { "start": { "line": 182, @@ -23185,8 +23185,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7702, - "end": 7724, + "start": 7521, + "end": 7543, "loc": { "start": { "line": 182, @@ -23199,8 +23199,8 @@ }, "object": { "type": "MemberExpression", - "start": 7702, - "end": 7716, + "start": 7521, + "end": 7535, "loc": { "start": { "line": 182, @@ -23213,8 +23213,8 @@ }, "object": { "type": "ThisExpression", - "start": 7702, - "end": 7706, + "start": 7521, + "end": 7525, "loc": { "start": { "line": 182, @@ -23228,8 +23228,8 @@ }, "property": { "type": "Identifier", - "start": 7707, - "end": 7716, + "start": 7526, + "end": 7535, "loc": { "start": { "line": 182, @@ -23247,8 +23247,8 @@ }, "property": { "type": "Identifier", - "start": 7717, - "end": 7724, + "start": 7536, + "end": 7543, "loc": { "start": { "line": 182, @@ -23267,8 +23267,8 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 7725, - "end": 9507, + "start": 7544, + "end": 9281, "loc": { "start": { "line": 182, @@ -23286,8 +23286,8 @@ "params": [ { "type": "Identifier", - "start": 7726, - "end": 7735, + "start": 7545, + "end": 7554, "loc": { "start": { "line": 182, @@ -23304,8 +23304,8 @@ ], "body": { "type": "BlockStatement", - "start": 7740, - "end": 9507, + "start": 7559, + "end": 9281, "loc": { "start": { "line": 182, @@ -23319,8 +23319,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 7755, - "end": 7812, + "start": 7573, + "end": 7630, "loc": { "start": { "line": 183, @@ -23334,8 +23334,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 7761, - "end": 7811, + "start": 7579, + "end": 7629, "loc": { "start": { "line": 183, @@ -23348,8 +23348,8 @@ }, "id": { "type": "Identifier", - "start": 7761, - "end": 7773, + "start": 7579, + "end": 7591, "loc": { "start": { "line": 183, @@ -23365,8 +23365,8 @@ }, "init": { "type": "CallExpression", - "start": 7776, - "end": 7811, + "start": 7594, + "end": 7629, "loc": { "start": { "line": 183, @@ -23379,8 +23379,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7776, - "end": 7800, + "start": 7594, + "end": 7618, "loc": { "start": { "line": 183, @@ -23393,8 +23393,8 @@ }, "object": { "type": "MemberExpression", - "start": 7776, - "end": 7796, + "start": 7594, + "end": 7614, "loc": { "start": { "line": 183, @@ -23407,8 +23407,8 @@ }, "object": { "type": "ThisExpression", - "start": 7776, - "end": 7780, + "start": 7594, + "end": 7598, "loc": { "start": { "line": 183, @@ -23422,8 +23422,8 @@ }, "property": { "type": "Identifier", - "start": 7781, - "end": 7796, + "start": 7599, + "end": 7614, "loc": { "start": { "line": 183, @@ -23441,8 +23441,8 @@ }, "property": { "type": "Identifier", - "start": 7797, - "end": 7800, + "start": 7615, + "end": 7618, "loc": { "start": { "line": 183, @@ -23461,8 +23461,8 @@ "arguments": [ { "type": "Identifier", - "start": 7801, - "end": 7810, + "start": 7619, + "end": 7628, "loc": { "start": { "line": 183, @@ -23485,8 +23485,8 @@ { "type": "CommentLine", "value": " Move the instance with the camera if the parallax is set to 0", - "start": 7828, - "end": 7892, + "start": 7644, + "end": 7708, "loc": { "start": { "line": 185, @@ -23502,8 +23502,8 @@ }, { "type": "VariableDeclaration", - "start": 7906, - "end": 7949, + "start": 7721, + "end": 7764, "loc": { "start": { "line": 186, @@ -23517,8 +23517,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 7912, - "end": 7948, + "start": 7727, + "end": 7763, "loc": { "start": { "line": 186, @@ -23531,8 +23531,8 @@ }, "id": { "type": "Identifier", - "start": 7912, - "end": 7925, + "start": 7727, + "end": 7740, "loc": { "start": { "line": 186, @@ -23549,8 +23549,8 @@ }, "init": { "type": "BinaryExpression", - "start": 7928, - "end": 7948, + "start": 7743, + "end": 7763, "loc": { "start": { "line": 186, @@ -23563,8 +23563,8 @@ }, "left": { "type": "MemberExpression", - "start": 7928, - "end": 7942, + "start": 7743, + "end": 7757, "loc": { "start": { "line": 186, @@ -23577,8 +23577,8 @@ }, "object": { "type": "Identifier", - "start": 7928, - "end": 7940, + "start": 7743, + "end": 7755, "loc": { "start": { "line": 186, @@ -23594,8 +23594,8 @@ }, "property": { "type": "Identifier", - "start": 7941, - "end": 7942, + "start": 7756, + "end": 7757, "loc": { "start": { "line": 186, @@ -23614,8 +23614,8 @@ "operator": "===", "right": { "type": "NumericLiteral", - "start": 7947, - "end": 7948, + "start": 7762, + "end": 7763, "loc": { "start": { "line": 186, @@ -23641,8 +23641,8 @@ { "type": "CommentLine", "value": " Move the instance with the camera if the parallax is set to 0", - "start": 7828, - "end": 7892, + "start": 7644, + "end": 7708, "loc": { "start": { "line": 185, @@ -23658,8 +23658,8 @@ }, { "type": "VariableDeclaration", - "start": 7963, - "end": 8006, + "start": 7777, + "end": 7820, "loc": { "start": { "line": 187, @@ -23673,8 +23673,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 7969, - "end": 8005, + "start": 7783, + "end": 7819, "loc": { "start": { "line": 187, @@ -23687,8 +23687,8 @@ }, "id": { "type": "Identifier", - "start": 7969, - "end": 7982, + "start": 7783, + "end": 7796, "loc": { "start": { "line": 187, @@ -23704,8 +23704,8 @@ }, "init": { "type": "BinaryExpression", - "start": 7985, - "end": 8005, + "start": 7799, + "end": 7819, "loc": { "start": { "line": 187, @@ -23718,8 +23718,8 @@ }, "left": { "type": "MemberExpression", - "start": 7985, - "end": 7999, + "start": 7799, + "end": 7813, "loc": { "start": { "line": 187, @@ -23732,8 +23732,8 @@ }, "object": { "type": "Identifier", - "start": 7985, - "end": 7997, + "start": 7799, + "end": 7811, "loc": { "start": { "line": 187, @@ -23749,8 +23749,8 @@ }, "property": { "type": "Identifier", - "start": 7998, - "end": 7999, + "start": 7812, + "end": 7813, "loc": { "start": { "line": 187, @@ -23769,8 +23769,8 @@ "operator": "===", "right": { "type": "NumericLiteral", - "start": 8004, - "end": 8005, + "start": 7818, + "end": 7819, "loc": { "start": { "line": 187, @@ -23795,8 +23795,8 @@ { "type": "CommentLine", "value": " Position to set the instance to.", - "start": 8022, - "end": 8057, + "start": 7834, + "end": 7869, "loc": { "start": { "line": 189, @@ -23812,8 +23812,8 @@ }, { "type": "VariableDeclaration", - "start": 8071, - "end": 8077, + "start": 7882, + "end": 7888, "loc": { "start": { "line": 190, @@ -23827,8 +23827,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 8075, - "end": 8076, + "start": 7886, + "end": 7887, "loc": { "start": { "line": 190, @@ -23841,8 +23841,8 @@ }, "id": { "type": "Identifier", - "start": 8075, - "end": 8076, + "start": 7886, + "end": 7887, "loc": { "start": { "line": 190, @@ -23866,8 +23866,8 @@ { "type": "CommentLine", "value": " Position to set the instance to.", - "start": 8022, - "end": 8057, + "start": 7834, + "end": 7869, "loc": { "start": { "line": 189, @@ -23883,8 +23883,8 @@ }, { "type": "VariableDeclaration", - "start": 8091, - "end": 8097, + "start": 7901, + "end": 7907, "loc": { "start": { "line": 191, @@ -23898,8 +23898,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 8095, - "end": 8096, + "start": 7905, + "end": 7906, "loc": { "start": { "line": 191, @@ -23912,8 +23912,8 @@ }, "id": { "type": "Identifier", - "start": 8095, - "end": 8096, + "start": 7905, + "end": 7906, "loc": { "start": { "line": 191, @@ -23934,8 +23934,8 @@ }, { "type": "IfStatement", - "start": 8113, - "end": 8382, + "start": 7921, + "end": 8184, "loc": { "start": { "line": 193, @@ -23948,8 +23948,8 @@ }, "test": { "type": "Identifier", - "start": 8117, - "end": 8130, + "start": 7925, + "end": 7938, "loc": { "start": { "line": 193, @@ -23965,8 +23965,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 8132, - "end": 8205, + "start": 7940, + "end": 8011, "loc": { "start": { "line": 193, @@ -23980,8 +23980,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 8151, - "end": 8190, + "start": 7958, + "end": 7997, "loc": { "start": { "line": 194, @@ -23994,8 +23994,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8151, - "end": 8189, + "start": 7958, + "end": 7996, "loc": { "start": { "line": 194, @@ -24009,8 +24009,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 8151, - "end": 8152, + "start": 7958, + "end": 7959, "loc": { "start": { "line": 194, @@ -24026,8 +24026,8 @@ }, "right": { "type": "BinaryExpression", - "start": 8155, - "end": 8189, + "start": 7962, + "end": 7996, "loc": { "start": { "line": 194, @@ -24040,8 +24040,8 @@ }, "left": { "type": "Identifier", - "start": 8155, - "end": 8162, + "start": 7962, + "end": 7969, "loc": { "start": { "line": 194, @@ -24058,8 +24058,8 @@ "operator": "-", "right": { "type": "BinaryExpression", - "start": 8165, - "end": 8189, + "start": 7972, + "end": 7996, "loc": { "start": { "line": 194, @@ -24072,8 +24072,8 @@ }, "left": { "type": "MemberExpression", - "start": 8165, - "end": 8185, + "start": 7972, + "end": 7992, "loc": { "start": { "line": 194, @@ -24086,8 +24086,8 @@ }, "object": { "type": "MemberExpression", - "start": 8165, - "end": 8179, + "start": 7972, + "end": 7986, "loc": { "start": { "line": 194, @@ -24100,8 +24100,8 @@ }, "object": { "type": "Identifier", - "start": 8165, - "end": 8174, + "start": 7972, + "end": 7981, "loc": { "start": { "line": 194, @@ -24117,8 +24117,8 @@ }, "property": { "type": "Identifier", - "start": 8175, - "end": 8179, + "start": 7982, + "end": 7986, "loc": { "start": { "line": 194, @@ -24136,8 +24136,8 @@ }, "property": { "type": "Identifier", - "start": 8180, - "end": 8185, + "start": 7987, + "end": 7992, "loc": { "start": { "line": 194, @@ -24156,8 +24156,8 @@ "operator": "/", "right": { "type": "NumericLiteral", - "start": 8188, - "end": 8189, + "start": 7995, + "end": 7996, "loc": { "start": { "line": 194, @@ -24183,8 +24183,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 8211, - "end": 8382, + "start": 8017, + "end": 8184, "loc": { "start": { "line": 195, @@ -24198,8 +24198,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 8230, - "end": 8271, + "start": 8035, + "end": 8076, "loc": { "start": { "line": 196, @@ -24213,8 +24213,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 8234, - "end": 8270, + "start": 8039, + "end": 8075, "loc": { "start": { "line": 196, @@ -24227,8 +24227,8 @@ }, "id": { "type": "Identifier", - "start": 8234, - "end": 8240, + "start": 8039, + "end": 8045, "loc": { "start": { "line": 196, @@ -24244,8 +24244,8 @@ }, "init": { "type": "BinaryExpression", - "start": 8243, - "end": 8270, + "start": 8048, + "end": 8075, "loc": { "start": { "line": 196, @@ -24258,8 +24258,8 @@ }, "left": { "type": "Identifier", - "start": 8243, - "end": 8250, + "start": 8048, + "end": 8055, "loc": { "start": { "line": 196, @@ -24276,8 +24276,8 @@ "operator": "-", "right": { "type": "MemberExpression", - "start": 8253, - "end": 8270, + "start": 8058, + "end": 8075, "loc": { "start": { "line": 196, @@ -24290,8 +24290,8 @@ }, "object": { "type": "MemberExpression", - "start": 8253, - "end": 8268, + "start": 8058, + "end": 8073, "loc": { "start": { "line": 196, @@ -24304,8 +24304,8 @@ }, "object": { "type": "ThisExpression", - "start": 8253, - "end": 8257, + "start": 8058, + "end": 8062, "loc": { "start": { "line": 196, @@ -24319,8 +24319,8 @@ }, "property": { "type": "Identifier", - "start": 8258, - "end": 8268, + "start": 8063, + "end": 8073, "loc": { "start": { "line": 196, @@ -24338,8 +24338,8 @@ }, "property": { "type": "Identifier", - "start": 8269, - "end": 8270, + "start": 8074, + "end": 8075, "loc": { "start": { "line": 196, @@ -24362,8 +24362,8 @@ }, { "type": "VariableDeclaration", - "start": 8289, - "end": 8325, + "start": 8093, + "end": 8129, "loc": { "start": { "line": 197, @@ -24377,8 +24377,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 8293, - "end": 8324, + "start": 8097, + "end": 8128, "loc": { "start": { "line": 197, @@ -24391,8 +24391,8 @@ }, "id": { "type": "Identifier", - "start": 8293, - "end": 8298, + "start": 8097, + "end": 8102, "loc": { "start": { "line": 197, @@ -24408,8 +24408,8 @@ }, "init": { "type": "BinaryExpression", - "start": 8301, - "end": 8324, + "start": 8105, + "end": 8128, "loc": { "start": { "line": 197, @@ -24422,8 +24422,8 @@ }, "left": { "type": "Identifier", - "start": 8301, - "end": 8307, + "start": 8105, + "end": 8111, "loc": { "start": { "line": 197, @@ -24440,8 +24440,8 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 8310, - "end": 8324, + "start": 8114, + "end": 8128, "loc": { "start": { "line": 197, @@ -24454,8 +24454,8 @@ }, "object": { "type": "Identifier", - "start": 8310, - "end": 8322, + "start": 8114, + "end": 8126, "loc": { "start": { "line": 197, @@ -24471,8 +24471,8 @@ }, "property": { "type": "Identifier", - "start": 8323, - "end": 8324, + "start": 8127, + "end": 8128, "loc": { "start": { "line": 197, @@ -24495,8 +24495,8 @@ }, { "type": "ExpressionStatement", - "start": 8343, - "end": 8367, + "start": 8146, + "end": 8170, "loc": { "start": { "line": 198, @@ -24509,8 +24509,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8343, - "end": 8366, + "start": 8146, + "end": 8169, "loc": { "start": { "line": 198, @@ -24524,8 +24524,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 8343, - "end": 8344, + "start": 8146, + "end": 8147, "loc": { "start": { "line": 198, @@ -24541,8 +24541,8 @@ }, "right": { "type": "BinaryExpression", - "start": 8347, - "end": 8366, + "start": 8150, + "end": 8169, "loc": { "start": { "line": 198, @@ -24555,8 +24555,8 @@ }, "left": { "type": "MemberExpression", - "start": 8347, - "end": 8358, + "start": 8150, + "end": 8161, "loc": { "start": { "line": 198, @@ -24569,8 +24569,8 @@ }, "object": { "type": "Identifier", - "start": 8347, - "end": 8356, + "start": 8150, + "end": 8159, "loc": { "start": { "line": 198, @@ -24586,8 +24586,8 @@ }, "property": { "type": "Identifier", - "start": 8357, - "end": 8358, + "start": 8160, + "end": 8161, "loc": { "start": { "line": 198, @@ -24606,8 +24606,8 @@ "operator": "+", "right": { "type": "Identifier", - "start": 8361, - "end": 8366, + "start": 8164, + "end": 8169, "loc": { "start": { "line": 198, @@ -24630,8 +24630,8 @@ }, { "type": "IfStatement", - "start": 8398, - "end": 8668, + "start": 8198, + "end": 8462, "loc": { "start": { "line": 201, @@ -24644,8 +24644,8 @@ }, "test": { "type": "Identifier", - "start": 8402, - "end": 8415, + "start": 8202, + "end": 8215, "loc": { "start": { "line": 201, @@ -24661,8 +24661,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 8417, - "end": 8491, + "start": 8217, + "end": 8289, "loc": { "start": { "line": 201, @@ -24676,8 +24676,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 8436, - "end": 8476, + "start": 8235, + "end": 8275, "loc": { "start": { "line": 202, @@ -24690,8 +24690,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8436, - "end": 8475, + "start": 8235, + "end": 8274, "loc": { "start": { "line": 202, @@ -24705,8 +24705,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 8436, - "end": 8437, + "start": 8235, + "end": 8236, "loc": { "start": { "line": 202, @@ -24722,8 +24722,8 @@ }, "right": { "type": "BinaryExpression", - "start": 8440, - "end": 8475, + "start": 8239, + "end": 8274, "loc": { "start": { "line": 202, @@ -24736,8 +24736,8 @@ }, "left": { "type": "Identifier", - "start": 8440, - "end": 8447, + "start": 8239, + "end": 8246, "loc": { "start": { "line": 202, @@ -24754,8 +24754,8 @@ "operator": "-", "right": { "type": "BinaryExpression", - "start": 8450, - "end": 8475, + "start": 8249, + "end": 8274, "loc": { "start": { "line": 202, @@ -24768,8 +24768,8 @@ }, "left": { "type": "MemberExpression", - "start": 8450, - "end": 8471, + "start": 8249, + "end": 8270, "loc": { "start": { "line": 202, @@ -24782,8 +24782,8 @@ }, "object": { "type": "MemberExpression", - "start": 8450, - "end": 8464, + "start": 8249, + "end": 8263, "loc": { "start": { "line": 202, @@ -24796,8 +24796,8 @@ }, "object": { "type": "Identifier", - "start": 8450, - "end": 8459, + "start": 8249, + "end": 8258, "loc": { "start": { "line": 202, @@ -24813,8 +24813,8 @@ }, "property": { "type": "Identifier", - "start": 8460, - "end": 8464, + "start": 8259, + "end": 8263, "loc": { "start": { "line": 202, @@ -24832,8 +24832,8 @@ }, "property": { "type": "Identifier", - "start": 8465, - "end": 8471, + "start": 8264, + "end": 8270, "loc": { "start": { "line": 202, @@ -24852,8 +24852,8 @@ "operator": "/", "right": { "type": "NumericLiteral", - "start": 8474, - "end": 8475, + "start": 8273, + "end": 8274, "loc": { "start": { "line": 202, @@ -24879,8 +24879,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 8497, - "end": 8668, + "start": 8295, + "end": 8462, "loc": { "start": { "line": 203, @@ -24894,8 +24894,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 8516, - "end": 8557, + "start": 8313, + "end": 8354, "loc": { "start": { "line": 204, @@ -24909,8 +24909,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 8520, - "end": 8556, + "start": 8317, + "end": 8353, "loc": { "start": { "line": 204, @@ -24923,8 +24923,8 @@ }, "id": { "type": "Identifier", - "start": 8520, - "end": 8526, + "start": 8317, + "end": 8323, "loc": { "start": { "line": 204, @@ -24940,8 +24940,8 @@ }, "init": { "type": "BinaryExpression", - "start": 8529, - "end": 8556, + "start": 8326, + "end": 8353, "loc": { "start": { "line": 204, @@ -24954,8 +24954,8 @@ }, "left": { "type": "Identifier", - "start": 8529, - "end": 8536, + "start": 8326, + "end": 8333, "loc": { "start": { "line": 204, @@ -24972,8 +24972,8 @@ "operator": "-", "right": { "type": "MemberExpression", - "start": 8539, - "end": 8556, + "start": 8336, + "end": 8353, "loc": { "start": { "line": 204, @@ -24986,8 +24986,8 @@ }, "object": { "type": "MemberExpression", - "start": 8539, - "end": 8554, + "start": 8336, + "end": 8351, "loc": { "start": { "line": 204, @@ -25000,8 +25000,8 @@ }, "object": { "type": "ThisExpression", - "start": 8539, - "end": 8543, + "start": 8336, + "end": 8340, "loc": { "start": { "line": 204, @@ -25015,8 +25015,8 @@ }, "property": { "type": "Identifier", - "start": 8544, - "end": 8554, + "start": 8341, + "end": 8351, "loc": { "start": { "line": 204, @@ -25034,8 +25034,8 @@ }, "property": { "type": "Identifier", - "start": 8555, - "end": 8556, + "start": 8352, + "end": 8353, "loc": { "start": { "line": 204, @@ -25058,8 +25058,8 @@ }, { "type": "VariableDeclaration", - "start": 8575, - "end": 8611, + "start": 8371, + "end": 8407, "loc": { "start": { "line": 205, @@ -25073,8 +25073,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 8579, - "end": 8610, + "start": 8375, + "end": 8406, "loc": { "start": { "line": 205, @@ -25087,8 +25087,8 @@ }, "id": { "type": "Identifier", - "start": 8579, - "end": 8584, + "start": 8375, + "end": 8380, "loc": { "start": { "line": 205, @@ -25104,8 +25104,8 @@ }, "init": { "type": "BinaryExpression", - "start": 8587, - "end": 8610, + "start": 8383, + "end": 8406, "loc": { "start": { "line": 205, @@ -25118,8 +25118,8 @@ }, "left": { "type": "Identifier", - "start": 8587, - "end": 8593, + "start": 8383, + "end": 8389, "loc": { "start": { "line": 205, @@ -25136,8 +25136,8 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 8596, - "end": 8610, + "start": 8392, + "end": 8406, "loc": { "start": { "line": 205, @@ -25150,8 +25150,8 @@ }, "object": { "type": "Identifier", - "start": 8596, - "end": 8608, + "start": 8392, + "end": 8404, "loc": { "start": { "line": 205, @@ -25167,8 +25167,8 @@ }, "property": { "type": "Identifier", - "start": 8609, - "end": 8610, + "start": 8405, + "end": 8406, "loc": { "start": { "line": 205, @@ -25191,8 +25191,8 @@ }, { "type": "ExpressionStatement", - "start": 8629, - "end": 8653, + "start": 8424, + "end": 8448, "loc": { "start": { "line": 206, @@ -25205,8 +25205,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8629, - "end": 8652, + "start": 8424, + "end": 8447, "loc": { "start": { "line": 206, @@ -25220,8 +25220,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 8629, - "end": 8630, + "start": 8424, + "end": 8425, "loc": { "start": { "line": 206, @@ -25237,8 +25237,8 @@ }, "right": { "type": "BinaryExpression", - "start": 8633, - "end": 8652, + "start": 8428, + "end": 8447, "loc": { "start": { "line": 206, @@ -25251,8 +25251,8 @@ }, "left": { "type": "MemberExpression", - "start": 8633, - "end": 8644, + "start": 8428, + "end": 8439, "loc": { "start": { "line": 206, @@ -25265,8 +25265,8 @@ }, "object": { "type": "Identifier", - "start": 8633, - "end": 8642, + "start": 8428, + "end": 8437, "loc": { "start": { "line": 206, @@ -25282,8 +25282,8 @@ }, "property": { "type": "Identifier", - "start": 8643, - "end": 8644, + "start": 8438, + "end": 8439, "loc": { "start": { "line": 206, @@ -25302,8 +25302,8 @@ "operator": "+", "right": { "type": "Identifier", - "start": 8647, - "end": 8652, + "start": 8442, + "end": 8447, "loc": { "start": { "line": 206, @@ -25328,8 +25328,8 @@ { "type": "CommentLine", "value": " Set the position", - "start": 8684, - "end": 8703, + "start": 8476, + "end": 8495, "loc": { "start": { "line": 209, @@ -25345,8 +25345,8 @@ }, { "type": "ExpressionStatement", - "start": 8717, - "end": 8733, + "start": 8508, + "end": 8524, "loc": { "start": { "line": 210, @@ -25359,8 +25359,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8717, - "end": 8732, + "start": 8508, + "end": 8523, "loc": { "start": { "line": 210, @@ -25374,8 +25374,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 8717, - "end": 8728, + "start": 8508, + "end": 8519, "loc": { "start": { "line": 210, @@ -25388,8 +25388,8 @@ }, "object": { "type": "Identifier", - "start": 8717, - "end": 8726, + "start": 8508, + "end": 8517, "loc": { "start": { "line": 210, @@ -25406,8 +25406,8 @@ }, "property": { "type": "Identifier", - "start": 8727, - "end": 8728, + "start": 8518, + "end": 8519, "loc": { "start": { "line": 210, @@ -25426,8 +25426,8 @@ }, "right": { "type": "Identifier", - "start": 8731, - "end": 8732, + "start": 8522, + "end": 8523, "loc": { "start": { "line": 210, @@ -25447,8 +25447,8 @@ { "type": "CommentLine", "value": " Set the position", - "start": 8684, - "end": 8703, + "start": 8476, + "end": 8495, "loc": { "start": { "line": 209, @@ -25464,8 +25464,8 @@ }, { "type": "ExpressionStatement", - "start": 8747, - "end": 8763, + "start": 8537, + "end": 8553, "loc": { "start": { "line": 211, @@ -25478,8 +25478,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8747, - "end": 8762, + "start": 8537, + "end": 8552, "loc": { "start": { "line": 211, @@ -25493,8 +25493,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 8747, - "end": 8758, + "start": 8537, + "end": 8548, "loc": { "start": { "line": 211, @@ -25507,8 +25507,8 @@ }, "object": { "type": "Identifier", - "start": 8747, - "end": 8756, + "start": 8537, + "end": 8546, "loc": { "start": { "line": 211, @@ -25524,8 +25524,8 @@ }, "property": { "type": "Identifier", - "start": 8757, - "end": 8758, + "start": 8547, + "end": 8548, "loc": { "start": { "line": 211, @@ -25543,8 +25543,8 @@ }, "right": { "type": "Identifier", - "start": 8761, - "end": 8762, + "start": 8551, + "end": 8552, "loc": { "start": { "line": 211, @@ -25563,8 +25563,8 @@ { "type": "CommentLine", "value": " Logic cannot be ran on background instances as they should not loop", - "start": 8791, - "end": 8861, + "start": 8579, + "end": 8649, "loc": { "start": { "line": 213, @@ -25580,8 +25580,8 @@ }, { "type": "IfStatement", - "start": 8875, - "end": 9496, + "start": 8662, + "end": 9271, "loc": { "start": { "line": 214, @@ -25594,8 +25594,8 @@ }, "test": { "type": "LogicalExpression", - "start": 8879, - "end": 8911, + "start": 8666, + "end": 8698, "loc": { "start": { "line": 214, @@ -25608,8 +25608,8 @@ }, "left": { "type": "UnaryExpression", - "start": 8879, - "end": 8893, + "start": 8666, + "end": 8680, "loc": { "start": { "line": 214, @@ -25624,8 +25624,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 8880, - "end": 8893, + "start": 8667, + "end": 8680, "loc": { "start": { "line": 214, @@ -25648,8 +25648,8 @@ "operator": "&&", "right": { "type": "UnaryExpression", - "start": 8897, - "end": 8911, + "start": 8684, + "end": 8698, "loc": { "start": { "line": 214, @@ -25664,8 +25664,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 8898, - "end": 8911, + "start": 8685, + "end": 8698, "loc": { "start": { "line": 214, @@ -25687,8 +25687,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 8913, - "end": 9496, + "start": 8700, + "end": 9271, "loc": { "start": { "line": 214, @@ -25702,8 +25702,8 @@ "body": [ { "type": "IfStatement", - "start": 8932, - "end": 9481, + "start": 8718, + "end": 9257, "loc": { "start": { "line": 215, @@ -25716,8 +25716,8 @@ }, "test": { "type": "MemberExpression", - "start": 8936, - "end": 8953, + "start": 8722, + "end": 8739, "loc": { "start": { "line": 215, @@ -25730,8 +25730,8 @@ }, "object": { "type": "Identifier", - "start": 8936, - "end": 8948, + "start": 8722, + "end": 8734, "loc": { "start": { "line": 215, @@ -25747,8 +25747,8 @@ }, "property": { "type": "Identifier", - "start": 8949, - "end": 8953, + "start": 8735, + "end": 8739, "loc": { "start": { "line": 215, @@ -25766,8 +25766,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 8955, - "end": 9481, + "start": 8741, + "end": 9257, "loc": { "start": { "line": 215, @@ -25781,8 +25781,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 9030, - "end": 9082, + "start": 8814, + "end": 8866, "loc": { "start": { "line": 217, @@ -25796,8 +25796,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 9036, - "end": 9081, + "start": 8820, + "end": 8865, "loc": { "start": { "line": 217, @@ -25810,8 +25810,8 @@ }, "id": { "type": "Identifier", - "start": 9036, - "end": 9044, + "start": 8820, + "end": 8828, "loc": { "start": { "line": 217, @@ -25828,8 +25828,8 @@ }, "init": { "type": "BinaryExpression", - "start": 9047, - "end": 9081, + "start": 8831, + "end": 8865, "loc": { "start": { "line": 217, @@ -25842,8 +25842,8 @@ }, "left": { "type": "MemberExpression", - "start": 9047, - "end": 9058, + "start": 8831, + "end": 8842, "loc": { "start": { "line": 217, @@ -25856,8 +25856,8 @@ }, "object": { "type": "Identifier", - "start": 9047, - "end": 9056, + "start": 8831, + "end": 8840, "loc": { "start": { "line": 217, @@ -25873,8 +25873,8 @@ }, "property": { "type": "Identifier", - "start": 9057, - "end": 9058, + "start": 8841, + "end": 8842, "loc": { "start": { "line": 217, @@ -25893,8 +25893,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 9061, - "end": 9081, + "start": 8845, + "end": 8865, "loc": { "start": { "line": 217, @@ -25907,8 +25907,8 @@ }, "object": { "type": "MemberExpression", - "start": 9061, - "end": 9075, + "start": 8845, + "end": 8859, "loc": { "start": { "line": 217, @@ -25921,8 +25921,8 @@ }, "object": { "type": "Identifier", - "start": 9061, - "end": 9070, + "start": 8845, + "end": 8854, "loc": { "start": { "line": 217, @@ -25938,8 +25938,8 @@ }, "property": { "type": "Identifier", - "start": 9071, - "end": 9075, + "start": 8855, + "end": 8859, "loc": { "start": { "line": 217, @@ -25957,8 +25957,8 @@ }, "property": { "type": "Identifier", - "start": 9076, - "end": 9081, + "start": 8860, + "end": 8865, "loc": { "start": { "line": 217, @@ -25983,8 +25983,8 @@ { "type": "CommentLine", "value": " The start pos + total width", - "start": 8978, - "end": 9008, + "start": 8763, + "end": 8793, "loc": { "start": { "line": 216, @@ -26001,8 +26001,8 @@ { "type": "CommentLine", "value": " The start pos - total width / 2", - "start": 9104, - "end": 9138, + "start": 8887, + "end": 8921, "loc": { "start": { "line": 218, @@ -26018,8 +26018,8 @@ }, { "type": "VariableDeclaration", - "start": 9160, - "end": 9215, + "start": 8942, + "end": 8997, "loc": { "start": { "line": 219, @@ -26033,8 +26033,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 9166, - "end": 9214, + "start": 8948, + "end": 8996, "loc": { "start": { "line": 219, @@ -26047,8 +26047,8 @@ }, "id": { "type": "Identifier", - "start": 9166, - "end": 9173, + "start": 8948, + "end": 8955, "loc": { "start": { "line": 219, @@ -26065,8 +26065,8 @@ }, "init": { "type": "BinaryExpression", - "start": 9176, - "end": 9214, + "start": 8958, + "end": 8996, "loc": { "start": { "line": 219, @@ -26079,8 +26079,8 @@ }, "left": { "type": "MemberExpression", - "start": 9176, - "end": 9187, + "start": 8958, + "end": 8969, "loc": { "start": { "line": 219, @@ -26093,8 +26093,8 @@ }, "object": { "type": "Identifier", - "start": 9176, - "end": 9185, + "start": 8958, + "end": 8967, "loc": { "start": { "line": 219, @@ -26110,8 +26110,8 @@ }, "property": { "type": "Identifier", - "start": 9186, - "end": 9187, + "start": 8968, + "end": 8969, "loc": { "start": { "line": 219, @@ -26130,8 +26130,8 @@ "operator": "-", "right": { "type": "BinaryExpression", - "start": 9190, - "end": 9214, + "start": 8972, + "end": 8996, "loc": { "start": { "line": 219, @@ -26144,8 +26144,8 @@ }, "left": { "type": "MemberExpression", - "start": 9190, - "end": 9210, + "start": 8972, + "end": 8992, "loc": { "start": { "line": 219, @@ -26158,8 +26158,8 @@ }, "object": { "type": "MemberExpression", - "start": 9190, - "end": 9204, + "start": 8972, + "end": 8986, "loc": { "start": { "line": 219, @@ -26172,8 +26172,8 @@ }, "object": { "type": "Identifier", - "start": 9190, - "end": 9199, + "start": 8972, + "end": 8981, "loc": { "start": { "line": 219, @@ -26189,8 +26189,8 @@ }, "property": { "type": "Identifier", - "start": 9200, - "end": 9204, + "start": 8982, + "end": 8986, "loc": { "start": { "line": 219, @@ -26208,8 +26208,8 @@ }, "property": { "type": "Identifier", - "start": 9205, - "end": 9210, + "start": 8987, + "end": 8992, "loc": { "start": { "line": 219, @@ -26228,8 +26228,8 @@ "operator": "/", "right": { "type": "NumericLiteral", - "start": 9213, - "end": 9214, + "start": 8995, + "end": 8996, "loc": { "start": { "line": 219, @@ -26256,8 +26256,8 @@ { "type": "CommentLine", "value": " The start pos - total width / 2", - "start": 9104, - "end": 9138, + "start": 8887, + "end": 8921, "loc": { "start": { "line": 218, @@ -26273,8 +26273,8 @@ }, { "type": "IfStatement", - "start": 9237, - "end": 9462, + "start": 9018, + "end": 9239, "loc": { "start": { "line": 220, @@ -26287,8 +26287,8 @@ }, "test": { "type": "BinaryExpression", - "start": 9241, - "end": 9259, + "start": 9022, + "end": 9040, "loc": { "start": { "line": 220, @@ -26301,8 +26301,8 @@ }, "left": { "type": "Identifier", - "start": 9241, - "end": 9248, + "start": 9022, + "end": 9029, "loc": { "start": { "line": 220, @@ -26319,8 +26319,8 @@ "operator": ">", "right": { "type": "Identifier", - "start": 9251, - "end": 9259, + "start": 9032, + "end": 9040, "loc": { "start": { "line": 220, @@ -26337,8 +26337,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 9261, - "end": 9347, + "start": 9042, + "end": 9126, "loc": { "start": { "line": 220, @@ -26352,8 +26352,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 9288, - "end": 9324, + "start": 9068, + "end": 9104, "loc": { "start": { "line": 221, @@ -26366,8 +26366,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 9288, - "end": 9323, + "start": 9068, + "end": 9103, "loc": { "start": { "line": 221, @@ -26381,8 +26381,8 @@ "operator": "+=", "left": { "type": "MemberExpression", - "start": 9288, - "end": 9299, + "start": 9068, + "end": 9079, "loc": { "start": { "line": 221, @@ -26395,8 +26395,8 @@ }, "object": { "type": "Identifier", - "start": 9288, - "end": 9297, + "start": 9068, + "end": 9077, "loc": { "start": { "line": 221, @@ -26412,8 +26412,8 @@ }, "property": { "type": "Identifier", - "start": 9298, - "end": 9299, + "start": 9078, + "end": 9079, "loc": { "start": { "line": 221, @@ -26431,8 +26431,8 @@ }, "right": { "type": "MemberExpression", - "start": 9303, - "end": 9323, + "start": 9083, + "end": 9103, "loc": { "start": { "line": 221, @@ -26445,8 +26445,8 @@ }, "object": { "type": "MemberExpression", - "start": 9303, - "end": 9317, + "start": 9083, + "end": 9097, "loc": { "start": { "line": 221, @@ -26459,8 +26459,8 @@ }, "object": { "type": "Identifier", - "start": 9303, - "end": 9312, + "start": 9083, + "end": 9092, "loc": { "start": { "line": 221, @@ -26476,8 +26476,8 @@ }, "property": { "type": "Identifier", - "start": 9313, - "end": 9317, + "start": 9093, + "end": 9097, "loc": { "start": { "line": 221, @@ -26495,8 +26495,8 @@ }, "property": { "type": "Identifier", - "start": 9318, - "end": 9323, + "start": 9098, + "end": 9103, "loc": { "start": { "line": 221, @@ -26519,8 +26519,8 @@ }, "alternate": { "type": "IfStatement", - "start": 9353, - "end": 9462, + "start": 9132, + "end": 9239, "loc": { "start": { "line": 222, @@ -26533,8 +26533,8 @@ }, "test": { "type": "BinaryExpression", - "start": 9357, - "end": 9374, + "start": 9136, + "end": 9153, "loc": { "start": { "line": 222, @@ -26547,8 +26547,8 @@ }, "left": { "type": "Identifier", - "start": 9357, - "end": 9364, + "start": 9136, + "end": 9143, "loc": { "start": { "line": 222, @@ -26565,8 +26565,8 @@ "operator": "<", "right": { "type": "Identifier", - "start": 9367, - "end": 9374, + "start": 9146, + "end": 9153, "loc": { "start": { "line": 222, @@ -26583,8 +26583,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 9376, - "end": 9462, + "start": 9155, + "end": 9239, "loc": { "start": { "line": 222, @@ -26598,8 +26598,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 9403, - "end": 9439, + "start": 9181, + "end": 9217, "loc": { "start": { "line": 223, @@ -26612,8 +26612,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 9403, - "end": 9438, + "start": 9181, + "end": 9216, "loc": { "start": { "line": 223, @@ -26627,8 +26627,8 @@ "operator": "-=", "left": { "type": "MemberExpression", - "start": 9403, - "end": 9414, + "start": 9181, + "end": 9192, "loc": { "start": { "line": 223, @@ -26641,8 +26641,8 @@ }, "object": { "type": "Identifier", - "start": 9403, - "end": 9412, + "start": 9181, + "end": 9190, "loc": { "start": { "line": 223, @@ -26658,8 +26658,8 @@ }, "property": { "type": "Identifier", - "start": 9413, - "end": 9414, + "start": 9191, + "end": 9192, "loc": { "start": { "line": 223, @@ -26677,8 +26677,8 @@ }, "right": { "type": "MemberExpression", - "start": 9418, - "end": 9438, + "start": 9196, + "end": 9216, "loc": { "start": { "line": 223, @@ -26691,8 +26691,8 @@ }, "object": { "type": "MemberExpression", - "start": 9418, - "end": 9432, + "start": 9196, + "end": 9210, "loc": { "start": { "line": 223, @@ -26705,8 +26705,8 @@ }, "object": { "type": "Identifier", - "start": 9418, - "end": 9427, + "start": 9196, + "end": 9205, "loc": { "start": { "line": 223, @@ -26722,8 +26722,8 @@ }, "property": { "type": "Identifier", - "start": 9428, - "end": 9432, + "start": 9206, + "end": 9210, "loc": { "start": { "line": 223, @@ -26741,8 +26741,8 @@ }, "property": { "type": "Identifier", - "start": 9433, - "end": 9438, + "start": 9211, + "end": 9216, "loc": { "start": { "line": 223, @@ -26779,8 +26779,8 @@ { "type": "CommentLine", "value": " Logic cannot be ran on background instances as they should not loop", - "start": 8791, - "end": 8861, + "start": 8579, + "end": 8649, "loc": { "start": { "line": 213, @@ -26803,8 +26803,8 @@ }, { "type": "ExpressionStatement", - "start": 9519, - "end": 9547, + "start": 9292, + "end": 9320, "loc": { "start": { "line": 228, @@ -26817,8 +26817,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 9519, - "end": 9546, + "start": 9292, + "end": 9319, "loc": { "start": { "line": 228, @@ -26832,8 +26832,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 9519, - "end": 9536, + "start": 9292, + "end": 9309, "loc": { "start": { "line": 228, @@ -26846,8 +26846,8 @@ }, "object": { "type": "MemberExpression", - "start": 9519, - "end": 9534, + "start": 9292, + "end": 9307, "loc": { "start": { "line": 228, @@ -26860,8 +26860,8 @@ }, "object": { "type": "ThisExpression", - "start": 9519, - "end": 9523, + "start": 9292, + "end": 9296, "loc": { "start": { "line": 228, @@ -26875,8 +26875,8 @@ }, "property": { "type": "Identifier", - "start": 9524, - "end": 9534, + "start": 9297, + "end": 9307, "loc": { "start": { "line": 228, @@ -26894,8 +26894,8 @@ }, "property": { "type": "Identifier", - "start": 9535, - "end": 9536, + "start": 9308, + "end": 9309, "loc": { "start": { "line": 228, @@ -26913,8 +26913,8 @@ }, "right": { "type": "Identifier", - "start": 9539, - "end": 9546, + "start": 9312, + "end": 9319, "loc": { "start": { "line": 228, @@ -26932,8 +26932,8 @@ }, { "type": "ExpressionStatement", - "start": 9557, - "end": 9585, + "start": 9329, + "end": 9357, "loc": { "start": { "line": 229, @@ -26946,8 +26946,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 9557, - "end": 9584, + "start": 9329, + "end": 9356, "loc": { "start": { "line": 229, @@ -26961,8 +26961,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 9557, - "end": 9574, + "start": 9329, + "end": 9346, "loc": { "start": { "line": 229, @@ -26975,8 +26975,8 @@ }, "object": { "type": "MemberExpression", - "start": 9557, - "end": 9572, + "start": 9329, + "end": 9344, "loc": { "start": { "line": 229, @@ -26989,8 +26989,8 @@ }, "object": { "type": "ThisExpression", - "start": 9557, - "end": 9561, + "start": 9329, + "end": 9333, "loc": { "start": { "line": 229, @@ -27004,8 +27004,8 @@ }, "property": { "type": "Identifier", - "start": 9562, - "end": 9572, + "start": 9334, + "end": 9344, "loc": { "start": { "line": 229, @@ -27023,8 +27023,8 @@ }, "property": { "type": "Identifier", - "start": 9573, - "end": 9574, + "start": 9345, + "end": 9346, "loc": { "start": { "line": 229, @@ -27042,8 +27042,8 @@ }, "right": { "type": "Identifier", - "start": 9577, - "end": 9584, + "start": 9349, + "end": 9356, "loc": { "start": { "line": 229, @@ -27066,9 +27066,9 @@ "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, + "value": "*\n * Updates the parallax system.\n * @param {number} pCameraX - The x position of the camera.\n * @param {number} pCameraY - The y position of the camera.\n ", + "start": 7160, + "end": 7335, "loc": { "start": { "line": 172, @@ -27084,9 +27084,9 @@ "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, + "value": "*\n * Handles the onRelocated event for instances. Moves their children in relativity to their position.\n * @param {Diob | MapObject} pInstance - The instance to handle the event for.\n * @param {MapObject[]} pChildren - An array of children belonging to the instance.\n ", + "start": 9368, + "end": 9656, "loc": { "start": { "line": 231, @@ -27102,8 +27102,8 @@ }, { "type": "ClassMethod", - "start": 9896, - "end": 10224, + "start": 9661, + "end": 9982, "loc": { "start": { "line": 236, @@ -27118,8 +27118,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 9896, - "end": 9913, + "start": 9661, + "end": 9678, "loc": { "start": { "line": 236, @@ -27142,8 +27142,8 @@ "params": [ { "type": "Identifier", - "start": 9914, - "end": 9923, + "start": 9679, + "end": 9688, "loc": { "start": { "line": 236, @@ -27159,8 +27159,8 @@ }, { "type": "Identifier", - "start": 9925, - "end": 9934, + "start": 9690, + "end": 9699, "loc": { "start": { "line": 236, @@ -27177,8 +27177,8 @@ ], "body": { "type": "BlockStatement", - "start": 9936, - "end": 10224, + "start": 9701, + "end": 9982, "loc": { "start": { "line": 236, @@ -27192,8 +27192,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 10012, - "end": 10217, + "start": 9775, + "end": 9976, "loc": { "start": { "line": 238, @@ -27206,8 +27206,8 @@ }, "expression": { "type": "CallExpression", - "start": 10012, - "end": 10216, + "start": 9775, + "end": 9975, "loc": { "start": { "line": 238, @@ -27220,8 +27220,8 @@ }, "callee": { "type": "MemberExpression", - "start": 10012, - "end": 10029, + "start": 9775, + "end": 9792, "loc": { "start": { "line": 238, @@ -27234,8 +27234,8 @@ }, "object": { "type": "Identifier", - "start": 10012, - "end": 10021, + "start": 9775, + "end": 9784, "loc": { "start": { "line": 238, @@ -27252,8 +27252,8 @@ }, "property": { "type": "Identifier", - "start": 10022, - "end": 10029, + "start": 9785, + "end": 9792, "loc": { "start": { "line": 238, @@ -27273,8 +27273,8 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 10030, - "end": 10215, + "start": 9793, + "end": 9974, "loc": { "start": { "line": 238, @@ -27292,8 +27292,8 @@ "params": [ { "type": "Identifier", - "start": 10031, - "end": 10037, + "start": 9794, + "end": 9800, "loc": { "start": { "line": 238, @@ -27310,8 +27310,8 @@ ], "body": { "type": "BlockStatement", - "start": 10042, - "end": 10215, + "start": 9805, + "end": 9974, "loc": { "start": { "line": 238, @@ -27325,8 +27325,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 10057, - "end": 10099, + "start": 9819, + "end": 9861, "loc": { "start": { "line": 239, @@ -27339,8 +27339,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 10057, - "end": 10098, + "start": 9819, + "end": 9860, "loc": { "start": { "line": 239, @@ -27354,8 +27354,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 10057, - "end": 10065, + "start": 9819, + "end": 9827, "loc": { "start": { "line": 239, @@ -27368,8 +27368,8 @@ }, "object": { "type": "Identifier", - "start": 10057, - "end": 10063, + "start": 9819, + "end": 9825, "loc": { "start": { "line": 239, @@ -27385,8 +27385,8 @@ }, "property": { "type": "Identifier", - "start": 10064, - "end": 10065, + "start": 9826, + "end": 9827, "loc": { "start": { "line": 239, @@ -27404,8 +27404,8 @@ }, "right": { "type": "BinaryExpression", - "start": 10068, - "end": 10098, + "start": 9830, + "end": 9860, "loc": { "start": { "line": 239, @@ -27418,8 +27418,8 @@ }, "left": { "type": "MemberExpression", - "start": 10068, - "end": 10079, + "start": 9830, + "end": 9841, "loc": { "start": { "line": 239, @@ -27432,8 +27432,8 @@ }, "object": { "type": "Identifier", - "start": 10068, - "end": 10077, + "start": 9830, + "end": 9839, "loc": { "start": { "line": 239, @@ -27449,8 +27449,8 @@ }, "property": { "type": "Identifier", - "start": 10078, - "end": 10079, + "start": 9840, + "end": 9841, "loc": { "start": { "line": 239, @@ -27469,8 +27469,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 10082, - "end": 10098, + "start": 9844, + "end": 9860, "loc": { "start": { "line": 239, @@ -27483,8 +27483,8 @@ }, "object": { "type": "Identifier", - "start": 10082, - "end": 10088, + "start": 9844, + "end": 9850, "loc": { "start": { "line": 239, @@ -27500,8 +27500,8 @@ }, "property": { "type": "Identifier", - "start": 10089, - "end": 10098, + "start": 9851, + "end": 9860, "loc": { "start": { "line": 239, @@ -27522,8 +27522,8 @@ }, { "type": "ExpressionStatement", - "start": 10113, - "end": 10155, + "start": 9874, + "end": 9916, "loc": { "start": { "line": 240, @@ -27536,8 +27536,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 10113, - "end": 10154, + "start": 9874, + "end": 9915, "loc": { "start": { "line": 240, @@ -27551,8 +27551,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 10113, - "end": 10121, + "start": 9874, + "end": 9882, "loc": { "start": { "line": 240, @@ -27565,8 +27565,8 @@ }, "object": { "type": "Identifier", - "start": 10113, - "end": 10119, + "start": 9874, + "end": 9880, "loc": { "start": { "line": 240, @@ -27582,8 +27582,8 @@ }, "property": { "type": "Identifier", - "start": 10120, - "end": 10121, + "start": 9881, + "end": 9882, "loc": { "start": { "line": 240, @@ -27601,8 +27601,8 @@ }, "right": { "type": "BinaryExpression", - "start": 10124, - "end": 10154, + "start": 9885, + "end": 9915, "loc": { "start": { "line": 240, @@ -27615,8 +27615,8 @@ }, "left": { "type": "MemberExpression", - "start": 10124, - "end": 10135, + "start": 9885, + "end": 9896, "loc": { "start": { "line": 240, @@ -27629,8 +27629,8 @@ }, "object": { "type": "Identifier", - "start": 10124, - "end": 10133, + "start": 9885, + "end": 9894, "loc": { "start": { "line": 240, @@ -27646,8 +27646,8 @@ }, "property": { "type": "Identifier", - "start": 10134, - "end": 10135, + "start": 9895, + "end": 9896, "loc": { "start": { "line": 240, @@ -27666,8 +27666,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 10138, - "end": 10154, + "start": 9899, + "end": 9915, "loc": { "start": { "line": 240, @@ -27680,8 +27680,8 @@ }, "object": { "type": "Identifier", - "start": 10138, - "end": 10144, + "start": 9899, + "end": 9905, "loc": { "start": { "line": 240, @@ -27697,8 +27697,8 @@ }, "property": { "type": "Identifier", - "start": 10145, - "end": 10154, + "start": 9906, + "end": 9915, "loc": { "start": { "line": 240, @@ -27719,8 +27719,8 @@ }, { "type": "ExpressionStatement", - "start": 10169, - "end": 10204, + "start": 9929, + "end": 9964, "loc": { "start": { "line": 241, @@ -27733,8 +27733,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 10169, - "end": 10203, + "start": 9929, + "end": 9963, "loc": { "start": { "line": 241, @@ -27748,8 +27748,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 10169, - "end": 10183, + "start": 9929, + "end": 9943, "loc": { "start": { "line": 241, @@ -27762,8 +27762,8 @@ }, "object": { "type": "Identifier", - "start": 10169, - "end": 10175, + "start": 9929, + "end": 9935, "loc": { "start": { "line": 241, @@ -27779,8 +27779,8 @@ }, "property": { "type": "Identifier", - "start": 10176, - "end": 10183, + "start": 9936, + "end": 9943, "loc": { "start": { "line": 241, @@ -27798,8 +27798,8 @@ }, "right": { "type": "MemberExpression", - "start": 10186, - "end": 10203, + "start": 9946, + "end": 9963, "loc": { "start": { "line": 241, @@ -27812,8 +27812,8 @@ }, "object": { "type": "Identifier", - "start": 10186, - "end": 10195, + "start": 9946, + "end": 9955, "loc": { "start": { "line": 241, @@ -27829,8 +27829,8 @@ }, "property": { "type": "Identifier", - "start": 10196, - "end": 10203, + "start": 9956, + "end": 9963, "loc": { "start": { "line": 241, @@ -27859,8 +27859,8 @@ { "type": "CommentLine", "value": " Update the children's position when the parent moves", - "start": 9947, - "end": 10002, + "start": 9711, + "end": 9766, "loc": { "start": { "line": 237, @@ -27880,9 +27880,9 @@ "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, + "value": "*\n * Handles the onRelocated event for instances. Moves their children in relativity to their position.\n * @param {Diob | MapObject} pInstance - The instance to handle the event for.\n * @param {MapObject[]} pChildren - An array of children belonging to the instance.\n ", + "start": 9368, + "end": 9656, "loc": { "start": { "line": 231, @@ -27912,9 +27912,9 @@ "comments": [ { "type": "CommentBlock", - "value": "*\r\n\t * The version of the module.\r\n\t ", - "start": 118, - "end": 159, + "value": "*\n\t * The version of the module.\n\t ", + "start": 114, + "end": 153, "loc": { "start": { "line": 5, @@ -27928,9 +27928,9 @@ }, { "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, + "value": "* The logger module this module uses to log errors / logs\n * @private\n * @type {Object}\n ", + "start": 191, + "end": 296, "loc": { "start": { "line": 9, @@ -27944,9 +27944,9 @@ }, { "type": "CommentBlock", - "value": "*\r\n * The layer class.\r\n * @type {Layer}\r\n ", - "start": 341, - "end": 400, + "value": "*\n * The layer class.\n * @type {Layer}\n ", + "start": 328, + "end": 384, "loc": { "start": { "line": 14, @@ -27960,9 +27960,9 @@ }, { "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, + "value": "*\n * An set of instances that use the parallax system.\n * @private\n * @type {Set}\n ", + "start": 408, + "end": 511, "loc": { "start": { "line": 19, @@ -27976,9 +27976,9 @@ }, { "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, + "value": "*\n * Weakmap to store info on instances used in this module.\n * @private\n * @type {WeakMap}\n ", + "start": 543, + "end": 656, "loc": { "start": { "line": 25, @@ -27992,9 +27992,9 @@ }, { "type": "CommentBlock", - "value": "*\r\n * The last position of the camera.\r\n * @private\r\n * @type {Object}\r\n ", - "start": 728, - "end": 821, + "value": "*\n * The last position of the camera.\n * @private\n * @type {Object}\n ", + "start": 698, + "end": 787, "loc": { "start": { "line": 31, @@ -28008,9 +28008,9 @@ }, { "type": "CommentBlock", - "value": "*\r\n * @private\r\n ", - "start": 884, - "end": 913, + "value": "*\n * @private\n ", + "start": 845, + "end": 872, "loc": { "start": { "line": 40, @@ -28024,9 +28024,9 @@ }, { "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, + "value": "*\n * Adds an instance to the parallax system.\n * Call this first and then add your instance to the map.\n * @param {Object} pInstance - The instance to add to the parallax system.\n * @param {Object} pConfig - The parallax info that tells this module how to control this instance.\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.\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.\n * @prop {boolean} pConfig.loop - Whether this instance will loop endlessly.\n * @param {number} [pX] - The x position this instance will start at.\n * @param {number} [pY] - The y position this instance will start at.\n * @param {string} [pMap] - The map this instance will start at.\n * \n * ## The following is how the speed of the parallax multipliers are factored in. \n (x | y) < 1 = faster behind the camera eg: (-> Player goes this way = Instance goes this way <-) \n (x | y) > 1 faster against the camera eg: (-> Player goes this way = Instance goes this way ->) \n (x | y) = 0 = static to the camera eg: (-> Player goes this way = Instance does nothing, and moves with the camera) \n (x | y) = 1 = moves with the camera eg: (-> Player goes this way = Instance goes this way -> at position of camera) \n ", + "start": 961, + "end": 2439, "loc": { "start": { "line": 46, @@ -28041,8 +28041,8 @@ { "type": "CommentLine", "value": " Clone the parallax object", - "start": 3022, - "end": 3050, + "start": 2948, + "end": 2976, "loc": { "start": { "line": 75, @@ -28057,8 +28057,8 @@ { "type": "CommentLine", "value": " Set the parallax info to the instance", - "start": 3186, - "end": 3226, + "start": 3109, + "end": 3149, "loc": { "start": { "line": 78, @@ -28072,9 +28072,9 @@ }, { "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, + "value": "*\n * Initializes this instance.\n * @param {Object} pInstance - The instance to initialize.\n * @param {Object} pConfig - The parallax info that tells this module how to control this instance.\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.\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.\n * @prop {boolean} pConfig.loop - Whether this instance will loop endlessly.\n * @param {number} pX - The x position this parallax will start at.\n * @param {number} pY - The y position this parallax will start at.\n * @param {string} pMap - The map this instance will start at.\n * @private\n ", + "start": 3416, + "end": 4262, "loc": { "start": { "line": 86, @@ -28089,8 +28089,8 @@ { "type": "CommentLine", "value": " If this instance is set to loop, then it needs a left and right clone", - "start": 4618, - "end": 4690, + "start": 4515, + "end": 4587, "loc": { "start": { "line": 104, @@ -28105,8 +28105,8 @@ { "type": "CommentLine", "value": " Create a left and right clone", - "start": 4733, - "end": 4765, + "start": 4628, + "end": 4660, "loc": { "start": { "line": 106, @@ -28121,8 +28121,8 @@ { "type": "CommentLine", "value": " Make the left and right clone particle look the same as the initial instance", - "start": 4888, - "end": 4967, + "start": 4779, + "end": 4858, "loc": { "start": { "line": 110, @@ -28137,8 +28137,8 @@ { "type": "CommentLine", "value": " Force the renderer to render it, as if its placed offscreen its not rendered.", - "start": 5072, - "end": 5152, + "start": 4959, + "end": 5039, "loc": { "start": { "line": 114, @@ -28153,8 +28153,8 @@ { "type": "CommentLine", "value": " Position the left clone", - "start": 5249, - "end": 5275, + "start": 5132, + "end": 5158, "loc": { "start": { "line": 118, @@ -28169,8 +28169,8 @@ { "type": "CommentLine", "value": " Position the right clone", - "start": 5364, - "end": 5391, + "start": 5244, + "end": 5271, "loc": { "start": { "line": 121, @@ -28185,8 +28185,8 @@ { "type": "CommentLine", "value": " Store the clones in a temporary array", - "start": 5482, - "end": 5522, + "start": 5359, + "end": 5399, "loc": { "start": { "line": 124, @@ -28201,8 +28201,8 @@ { "type": "CommentLine", "value": " Loop the clones and store their relative positions to the main instance", - "start": 5581, - "end": 5655, + "start": 5456, + "end": 5530, "loc": { "start": { "line": 126, @@ -28217,8 +28217,8 @@ { "type": "CommentLine", "value": " Do not mutate event if one is found. Call alongside it.", - "start": 5834, - "end": 5892, + "start": 5703, + "end": 5761, "loc": { "start": { "line": 132, @@ -28233,8 +28233,8 @@ { "type": "CommentLine", "value": " When the main instance moves, move the clones with their relative position to it.", - "start": 5968, - "end": 6052, + "start": 5835, + "end": 5919, "loc": { "start": { "line": 134, @@ -28248,9 +28248,9 @@ }, { "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, + "value": "*\n * Removes an instance to the parallax system.\n * @param {Object} pInstance - The instance to remove to the parallax system.\n ", + "start": 6690, + "end": 6834, "loc": { "start": { "line": 157, @@ -28264,9 +28264,9 @@ }, { "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, + "value": "*\n * Updates the parallax system.\n * @param {number} pCameraX - The x position of the camera.\n * @param {number} pCameraY - The y position of the camera.\n ", + "start": 7160, + "end": 7335, "loc": { "start": { "line": 172, @@ -28281,8 +28281,8 @@ { "type": "CommentLine", "value": " The camera's x position.", - "start": 7562, - "end": 7589, + "start": 7385, + "end": 7412, "loc": { "start": { "line": 178, @@ -28297,8 +28297,8 @@ { "type": "CommentLine", "value": " The camera's x position.", - "start": 7632, - "end": 7659, + "start": 7453, + "end": 7480, "loc": { "start": { "line": 180, @@ -28313,8 +28313,8 @@ { "type": "CommentLine", "value": " Move the instance with the camera if the parallax is set to 0", - "start": 7828, - "end": 7892, + "start": 7644, + "end": 7708, "loc": { "start": { "line": 185, @@ -28329,8 +28329,8 @@ { "type": "CommentLine", "value": " Position to set the instance to.", - "start": 8022, - "end": 8057, + "start": 7834, + "end": 7869, "loc": { "start": { "line": 189, @@ -28345,8 +28345,8 @@ { "type": "CommentLine", "value": " Set the position", - "start": 8684, - "end": 8703, + "start": 8476, + "end": 8495, "loc": { "start": { "line": 209, @@ -28361,8 +28361,8 @@ { "type": "CommentLine", "value": " Logic cannot be ran on background instances as they should not loop", - "start": 8791, - "end": 8861, + "start": 8579, + "end": 8649, "loc": { "start": { "line": 213, @@ -28377,8 +28377,8 @@ { "type": "CommentLine", "value": " The start pos + total width", - "start": 8978, - "end": 9008, + "start": 8763, + "end": 8793, "loc": { "start": { "line": 216, @@ -28393,8 +28393,8 @@ { "type": "CommentLine", "value": " The start pos - total width / 2", - "start": 9104, - "end": 9138, + "start": 8887, + "end": 8921, "loc": { "start": { "line": 218, @@ -28408,9 +28408,9 @@ }, { "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, + "value": "*\n * Handles the onRelocated event for instances. Moves their children in relativity to their position.\n * @param {Diob | MapObject} pInstance - The instance to handle the event for.\n * @param {MapObject[]} pChildren - An array of children belonging to the instance.\n ", + "start": 9368, + "end": 9656, "loc": { "start": { "line": 231, @@ -28425,8 +28425,8 @@ { "type": "CommentLine", "value": " Update the children's position when the parent moves", - "start": 9947, - "end": 10002, + "start": 9711, + "end": 9766, "loc": { "start": { "line": 237, @@ -28638,8 +28638,8 @@ "updateContext": null }, "value": "import", - "start": 51, - "end": 57, + "start": 50, + "end": 56, "loc": { "start": { "line": 2, @@ -28663,8 +28663,8 @@ "postfix": false, "binop": null }, - "start": 58, - "end": 59, + "start": 57, + "end": 58, "loc": { "start": { "line": 2, @@ -28689,8 +28689,8 @@ "binop": null }, "value": "Layer", - "start": 60, - "end": 65, + "start": 59, + "end": 64, "loc": { "start": { "line": 2, @@ -28714,8 +28714,8 @@ "postfix": false, "binop": null }, - "start": 66, - "end": 67, + "start": 65, + "end": 66, "loc": { "start": { "line": 2, @@ -28740,8 +28740,8 @@ "binop": null }, "value": "from", - "start": 68, - "end": 72, + "start": 67, + "end": 71, "loc": { "start": { "line": 2, @@ -28767,8 +28767,8 @@ "updateContext": null }, "value": "./layer.mjs", - "start": 73, - "end": 86, + "start": 72, + "end": 85, "loc": { "start": { "line": 2, @@ -28795,8 +28795,8 @@ "updateContext": null }, "value": "class", - "start": 90, - "end": 95, + "start": 87, + "end": 92, "loc": { "start": { "line": 4, @@ -28821,8 +28821,8 @@ "binop": null }, "value": "ParallaxSingleton", - "start": 96, - "end": 113, + "start": 93, + "end": 110, "loc": { "start": { "line": 4, @@ -28846,8 +28846,8 @@ "postfix": false, "binop": null }, - "start": 114, - "end": 115, + "start": 111, + "end": 112, "loc": { "start": { "line": 4, @@ -28861,9 +28861,9 @@ }, { "type": "CommentBlock", - "value": "*\r\n\t * The version of the module.\r\n\t ", - "start": 118, - "end": 159, + "value": "*\n\t * The version of the module.\n\t ", + "start": 114, + "end": 153, "loc": { "start": { "line": 5, @@ -28888,8 +28888,8 @@ "binop": null }, "value": "version", - "start": 162, - "end": 169, + "start": 155, + "end": 162, "loc": { "start": { "line": 8, @@ -28915,8 +28915,8 @@ "updateContext": null }, "value": "=", - "start": 170, - "end": 171, + "start": 163, + "end": 164, "loc": { "start": { "line": 8, @@ -28942,8 +28942,8 @@ "updateContext": null }, "value": "VERSION_REPLACE_ME", - "start": 172, - "end": 192, + "start": 165, + "end": 185, "loc": { "start": { "line": 8, @@ -28968,8 +28968,8 @@ "binop": null, "updateContext": null }, - "start": 192, - "end": 193, + "start": 185, + "end": 186, "loc": { "start": { "line": 8, @@ -28983,9 +28983,9 @@ }, { "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, + "value": "* The logger module this module uses to log errors / logs\n * @private\n * @type {Object}\n ", + "start": 191, + "end": 296, "loc": { "start": { "line": 9, @@ -29010,8 +29010,8 @@ "binop": null }, "value": "logger", - "start": 313, - "end": 319, + "start": 301, + "end": 307, "loc": { "start": { "line": 13, @@ -29037,8 +29037,8 @@ "updateContext": null }, "value": "=", - "start": 320, - "end": 321, + "start": 308, + "end": 309, "loc": { "start": { "line": 13, @@ -29065,8 +29065,8 @@ "updateContext": null }, "value": "new", - "start": 322, - "end": 325, + "start": 310, + "end": 313, "loc": { "start": { "line": 13, @@ -29091,8 +29091,8 @@ "binop": null }, "value": "Logger", - "start": 326, - "end": 332, + "start": 314, + "end": 320, "loc": { "start": { "line": 13, @@ -29116,8 +29116,8 @@ "postfix": false, "binop": null }, - "start": 332, - "end": 333, + "start": 320, + "end": 321, "loc": { "start": { "line": 13, @@ -29141,8 +29141,8 @@ "postfix": false, "binop": null }, - "start": 333, - "end": 334, + "start": 321, + "end": 322, "loc": { "start": { "line": 13, @@ -29167,8 +29167,8 @@ "binop": null, "updateContext": null }, - "start": 334, - "end": 335, + "start": 322, + "end": 323, "loc": { "start": { "line": 13, @@ -29182,9 +29182,9 @@ }, { "type": "CommentBlock", - "value": "*\r\n * The layer class.\r\n * @type {Layer}\r\n ", - "start": 341, - "end": 400, + "value": "*\n * The layer class.\n * @type {Layer}\n ", + "start": 328, + "end": 384, "loc": { "start": { "line": 14, @@ -29209,8 +29209,8 @@ "binop": null }, "value": "Layer", - "start": 406, - "end": 411, + "start": 389, + "end": 394, "loc": { "start": { "line": 18, @@ -29236,8 +29236,8 @@ "updateContext": null }, "value": "=", - "start": 412, - "end": 413, + "start": 395, + "end": 396, "loc": { "start": { "line": 18, @@ -29262,8 +29262,8 @@ "binop": null }, "value": "Layer", - "start": 414, - "end": 419, + "start": 397, + "end": 402, "loc": { "start": { "line": 18, @@ -29288,8 +29288,8 @@ "binop": null, "updateContext": null }, - "start": 419, - "end": 420, + "start": 402, + "end": 403, "loc": { "start": { "line": 18, @@ -29303,9 +29303,9 @@ }, { "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, + "value": "*\n * An set of instances that use the parallax system.\n * @private\n * @type {Set}\n ", + "start": 408, + "end": 511, "loc": { "start": { "line": 19, @@ -29330,8 +29330,8 @@ "binop": null }, "value": "instances", - "start": 539, - "end": 548, + "start": 516, + "end": 525, "loc": { "start": { "line": 24, @@ -29357,8 +29357,8 @@ "updateContext": null }, "value": "=", - "start": 549, - "end": 550, + "start": 526, + "end": 527, "loc": { "start": { "line": 24, @@ -29385,8 +29385,8 @@ "updateContext": null }, "value": "new", - "start": 551, - "end": 554, + "start": 528, + "end": 531, "loc": { "start": { "line": 24, @@ -29411,8 +29411,8 @@ "binop": null }, "value": "Set", - "start": 555, - "end": 558, + "start": 532, + "end": 535, "loc": { "start": { "line": 24, @@ -29436,8 +29436,8 @@ "postfix": false, "binop": null }, - "start": 558, - "end": 559, + "start": 535, + "end": 536, "loc": { "start": { "line": 24, @@ -29461,8 +29461,8 @@ "postfix": false, "binop": null }, - "start": 559, - "end": 560, + "start": 536, + "end": 537, "loc": { "start": { "line": 24, @@ -29487,8 +29487,8 @@ "binop": null, "updateContext": null }, - "start": 560, - "end": 561, + "start": 537, + "end": 538, "loc": { "start": { "line": 24, @@ -29502,9 +29502,9 @@ }, { "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, + "value": "*\n * Weakmap to store info on instances used in this module.\n * @private\n * @type {WeakMap}\n ", + "start": 543, + "end": 656, "loc": { "start": { "line": 25, @@ -29529,8 +29529,8 @@ "binop": null }, "value": "instanceWeakMap", - "start": 690, - "end": 705, + "start": 661, + "end": 676, "loc": { "start": { "line": 30, @@ -29556,8 +29556,8 @@ "updateContext": null }, "value": "=", - "start": 706, - "end": 707, + "start": 677, + "end": 678, "loc": { "start": { "line": 30, @@ -29584,8 +29584,8 @@ "updateContext": null }, "value": "new", - "start": 708, - "end": 711, + "start": 679, + "end": 682, "loc": { "start": { "line": 30, @@ -29610,8 +29610,8 @@ "binop": null }, "value": "WeakMap", - "start": 712, - "end": 719, + "start": 683, + "end": 690, "loc": { "start": { "line": 30, @@ -29635,8 +29635,8 @@ "postfix": false, "binop": null }, - "start": 719, - "end": 720, + "start": 690, + "end": 691, "loc": { "start": { "line": 30, @@ -29660,8 +29660,8 @@ "postfix": false, "binop": null }, - "start": 720, - "end": 721, + "start": 691, + "end": 692, "loc": { "start": { "line": 30, @@ -29686,8 +29686,8 @@ "binop": null, "updateContext": null }, - "start": 721, - "end": 722, + "start": 692, + "end": 693, "loc": { "start": { "line": 30, @@ -29701,9 +29701,9 @@ }, { "type": "CommentBlock", - "value": "*\r\n * The last position of the camera.\r\n * @private\r\n * @type {Object}\r\n ", - "start": 728, - "end": 821, + "value": "*\n * The last position of the camera.\n * @private\n * @type {Object}\n ", + "start": 698, + "end": 787, "loc": { "start": { "line": 31, @@ -29728,8 +29728,8 @@ "binop": null }, "value": "lastCamPos", - "start": 827, - "end": 837, + "start": 792, + "end": 802, "loc": { "start": { "line": 36, @@ -29755,8 +29755,8 @@ "updateContext": null }, "value": "=", - "start": 838, - "end": 839, + "start": 803, + "end": 804, "loc": { "start": { "line": 36, @@ -29780,8 +29780,8 @@ "postfix": false, "binop": null }, - "start": 840, - "end": 841, + "start": 805, + "end": 806, "loc": { "start": { "line": 36, @@ -29806,8 +29806,8 @@ "binop": null }, "value": "x", - "start": 852, - "end": 853, + "start": 816, + "end": 817, "loc": { "start": { "line": 37, @@ -29832,8 +29832,8 @@ "binop": null, "updateContext": null }, - "start": 853, - "end": 854, + "start": 817, + "end": 818, "loc": { "start": { "line": 37, @@ -29859,8 +29859,8 @@ "updateContext": null }, "value": 0, - "start": 855, - "end": 856, + "start": 819, + "end": 820, "loc": { "start": { "line": 37, @@ -29885,8 +29885,8 @@ "binop": null, "updateContext": null }, - "start": 856, - "end": 857, + "start": 820, + "end": 821, "loc": { "start": { "line": 37, @@ -29911,8 +29911,8 @@ "binop": null }, "value": "y", - "start": 867, - "end": 868, + "start": 830, + "end": 831, "loc": { "start": { "line": 38, @@ -29937,8 +29937,8 @@ "binop": null, "updateContext": null }, - "start": 868, - "end": 869, + "start": 831, + "end": 832, "loc": { "start": { "line": 38, @@ -29964,8 +29964,8 @@ "updateContext": null }, "value": 0, - "start": 870, - "end": 871, + "start": 833, + "end": 834, "loc": { "start": { "line": 38, @@ -29989,8 +29989,8 @@ "postfix": false, "binop": null }, - "start": 877, - "end": 878, + "start": 839, + "end": 840, "loc": { "start": { "line": 39, @@ -30004,9 +30004,9 @@ }, { "type": "CommentBlock", - "value": "*\r\n * @private\r\n ", - "start": 884, - "end": 913, + "value": "*\n * @private\n ", + "start": 845, + "end": 872, "loc": { "start": { "line": 40, @@ -30031,8 +30031,8 @@ "binop": null }, "value": "constructor", - "start": 916, - "end": 927, + "start": 874, + "end": 885, "loc": { "start": { "line": 43, @@ -30056,8 +30056,8 @@ "postfix": false, "binop": null }, - "start": 927, - "end": 928, + "start": 885, + "end": 886, "loc": { "start": { "line": 43, @@ -30081,8 +30081,8 @@ "postfix": false, "binop": null }, - "start": 928, - "end": 929, + "start": 886, + "end": 887, "loc": { "start": { "line": 43, @@ -30106,8 +30106,8 @@ "postfix": false, "binop": null }, - "start": 930, - "end": 931, + "start": 888, + "end": 889, "loc": { "start": { "line": 43, @@ -30134,8 +30134,8 @@ "updateContext": null }, "value": "this", - "start": 941, - "end": 945, + "start": 898, + "end": 902, "loc": { "start": { "line": 44, @@ -30160,8 +30160,8 @@ "binop": null, "updateContext": null }, - "start": 945, - "end": 946, + "start": 902, + "end": 903, "loc": { "start": { "line": 44, @@ -30186,8 +30186,8 @@ "binop": null }, "value": "logger", - "start": 946, - "end": 952, + "start": 903, + "end": 909, "loc": { "start": { "line": 44, @@ -30212,8 +30212,8 @@ "binop": null, "updateContext": null }, - "start": 952, - "end": 953, + "start": 909, + "end": 910, "loc": { "start": { "line": 44, @@ -30238,8 +30238,8 @@ "binop": null }, "value": "registerType", - "start": 953, - "end": 965, + "start": 910, + "end": 922, "loc": { "start": { "line": 44, @@ -30263,8 +30263,8 @@ "postfix": false, "binop": null }, - "start": 965, - "end": 966, + "start": 922, + "end": 923, "loc": { "start": { "line": 44, @@ -30290,8 +30290,8 @@ "updateContext": null }, "value": "Parallax-Module", - "start": 966, - "end": 983, + "start": 923, + "end": 940, "loc": { "start": { "line": 44, @@ -30316,8 +30316,8 @@ "binop": null, "updateContext": null }, - "start": 983, - "end": 984, + "start": 940, + "end": 941, "loc": { "start": { "line": 44, @@ -30343,8 +30343,8 @@ "updateContext": null }, "value": "#ff6600", - "start": 985, - "end": 994, + "start": 942, + "end": 951, "loc": { "start": { "line": 44, @@ -30368,8 +30368,8 @@ "postfix": false, "binop": null }, - "start": 994, - "end": 995, + "start": 951, + "end": 952, "loc": { "start": { "line": 44, @@ -30394,8 +30394,8 @@ "binop": null, "updateContext": null }, - "start": 995, - "end": 996, + "start": 952, + "end": 953, "loc": { "start": { "line": 44, @@ -30419,8 +30419,8 @@ "postfix": false, "binop": null }, - "start": 999, - "end": 1000, + "start": 955, + "end": 956, "loc": { "start": { "line": 45, @@ -30434,9 +30434,9 @@ }, { "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, + "value": "*\n * Adds an instance to the parallax system.\n * Call this first and then add your instance to the map.\n * @param {Object} pInstance - The instance to add to the parallax system.\n * @param {Object} pConfig - The parallax info that tells this module how to control this instance.\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.\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.\n * @prop {boolean} pConfig.loop - Whether this instance will loop endlessly.\n * @param {number} [pX] - The x position this instance will start at.\n * @param {number} [pY] - The y position this instance will start at.\n * @param {string} [pMap] - The map this instance will start at.\n * \n * ## The following is how the speed of the parallax multipliers are factored in. \n (x | y) < 1 = faster behind the camera eg: (-> Player goes this way = Instance goes this way <-) \n (x | y) > 1 faster against the camera eg: (-> Player goes this way = Instance goes this way ->) \n (x | y) = 0 = static to the camera eg: (-> Player goes this way = Instance does nothing, and moves with the camera) \n (x | y) = 1 = moves with the camera eg: (-> Player goes this way = Instance goes this way -> at position of camera) \n ", + "start": 961, + "end": 2439, "loc": { "start": { "line": 46, @@ -30461,8 +30461,8 @@ "binop": null }, "value": "add", - "start": 2507, - "end": 2510, + "start": 2444, + "end": 2447, "loc": { "start": { "line": 64, @@ -30486,8 +30486,8 @@ "postfix": false, "binop": null }, - "start": 2510, - "end": 2511, + "start": 2447, + "end": 2448, "loc": { "start": { "line": 64, @@ -30512,8 +30512,8 @@ "binop": null }, "value": "pInstance", - "start": 2511, - "end": 2520, + "start": 2448, + "end": 2457, "loc": { "start": { "line": 64, @@ -30538,8 +30538,8 @@ "binop": null, "updateContext": null }, - "start": 2520, - "end": 2521, + "start": 2457, + "end": 2458, "loc": { "start": { "line": 64, @@ -30564,8 +30564,8 @@ "binop": null }, "value": "pConfig", - "start": 2522, - "end": 2529, + "start": 2459, + "end": 2466, "loc": { "start": { "line": 64, @@ -30590,8 +30590,8 @@ "binop": null, "updateContext": null }, - "start": 2529, - "end": 2530, + "start": 2466, + "end": 2467, "loc": { "start": { "line": 64, @@ -30616,8 +30616,8 @@ "binop": null }, "value": "pX", - "start": 2531, - "end": 2533, + "start": 2468, + "end": 2470, "loc": { "start": { "line": 64, @@ -30642,8 +30642,8 @@ "binop": null, "updateContext": null }, - "start": 2533, - "end": 2534, + "start": 2470, + "end": 2471, "loc": { "start": { "line": 64, @@ -30668,8 +30668,8 @@ "binop": null }, "value": "pY", - "start": 2535, - "end": 2537, + "start": 2472, + "end": 2474, "loc": { "start": { "line": 64, @@ -30694,8 +30694,8 @@ "binop": null, "updateContext": null }, - "start": 2537, - "end": 2538, + "start": 2474, + "end": 2475, "loc": { "start": { "line": 64, @@ -30720,8 +30720,8 @@ "binop": null }, "value": "pMap", - "start": 2539, - "end": 2543, + "start": 2476, + "end": 2480, "loc": { "start": { "line": 64, @@ -30745,8 +30745,8 @@ "postfix": false, "binop": null }, - "start": 2543, - "end": 2544, + "start": 2480, + "end": 2481, "loc": { "start": { "line": 64, @@ -30770,8 +30770,8 @@ "postfix": false, "binop": null }, - "start": 2545, - "end": 2546, + "start": 2482, + "end": 2483, "loc": { "start": { "line": 64, @@ -30798,8 +30798,8 @@ "updateContext": null }, "value": "if", - "start": 2556, - "end": 2558, + "start": 2492, + "end": 2494, "loc": { "start": { "line": 65, @@ -30823,8 +30823,8 @@ "postfix": false, "binop": null }, - "start": 2559, - "end": 2560, + "start": 2495, + "end": 2496, "loc": { "start": { "line": 65, @@ -30850,8 +30850,8 @@ "updateContext": null }, "value": "!", - "start": 2560, - "end": 2561, + "start": 2496, + "end": 2497, "loc": { "start": { "line": 65, @@ -30876,8 +30876,8 @@ "binop": null }, "value": "pInstance", - "start": 2561, - "end": 2570, + "start": 2497, + "end": 2506, "loc": { "start": { "line": 65, @@ -30901,8 +30901,8 @@ "postfix": false, "binop": null }, - "start": 2570, - "end": 2571, + "start": 2506, + "end": 2507, "loc": { "start": { "line": 65, @@ -30926,8 +30926,8 @@ "postfix": false, "binop": null }, - "start": 2572, - "end": 2573, + "start": 2508, + "end": 2509, "loc": { "start": { "line": 65, @@ -30954,8 +30954,8 @@ "updateContext": null }, "value": "this", - "start": 2587, - "end": 2591, + "start": 2522, + "end": 2526, "loc": { "start": { "line": 66, @@ -30980,8 +30980,8 @@ "binop": null, "updateContext": null }, - "start": 2591, - "end": 2592, + "start": 2526, + "end": 2527, "loc": { "start": { "line": 66, @@ -31006,8 +31006,8 @@ "binop": null }, "value": "logger", - "start": 2592, - "end": 2598, + "start": 2527, + "end": 2533, "loc": { "start": { "line": 66, @@ -31032,8 +31032,8 @@ "binop": null, "updateContext": null }, - "start": 2598, - "end": 2599, + "start": 2533, + "end": 2534, "loc": { "start": { "line": 66, @@ -31058,8 +31058,8 @@ "binop": null }, "value": "prefix", - "start": 2599, - "end": 2605, + "start": 2534, + "end": 2540, "loc": { "start": { "line": 66, @@ -31083,8 +31083,8 @@ "postfix": false, "binop": null }, - "start": 2605, - "end": 2606, + "start": 2540, + "end": 2541, "loc": { "start": { "line": 66, @@ -31110,8 +31110,8 @@ "updateContext": null }, "value": "Parallax-Module", - "start": 2606, - "end": 2623, + "start": 2541, + "end": 2558, "loc": { "start": { "line": 66, @@ -31135,8 +31135,8 @@ "postfix": false, "binop": null }, - "start": 2623, - "end": 2624, + "start": 2558, + "end": 2559, "loc": { "start": { "line": 66, @@ -31161,8 +31161,8 @@ "binop": null, "updateContext": null }, - "start": 2624, - "end": 2625, + "start": 2559, + "end": 2560, "loc": { "start": { "line": 66, @@ -31187,8 +31187,8 @@ "binop": null }, "value": "error", - "start": 2625, - "end": 2630, + "start": 2560, + "end": 2565, "loc": { "start": { "line": 66, @@ -31212,8 +31212,8 @@ "postfix": false, "binop": null }, - "start": 2630, - "end": 2631, + "start": 2565, + "end": 2566, "loc": { "start": { "line": 66, @@ -31239,8 +31239,8 @@ "updateContext": null }, "value": "No pInstance passed!", - "start": 2631, - "end": 2653, + "start": 2566, + "end": 2588, "loc": { "start": { "line": 66, @@ -31264,8 +31264,8 @@ "postfix": false, "binop": null }, - "start": 2653, - "end": 2654, + "start": 2588, + "end": 2589, "loc": { "start": { "line": 66, @@ -31290,8 +31290,8 @@ "binop": null, "updateContext": null }, - "start": 2654, - "end": 2655, + "start": 2589, + "end": 2590, "loc": { "start": { "line": 66, @@ -31318,8 +31318,8 @@ "updateContext": null }, "value": "return", - "start": 2669, - "end": 2675, + "start": 2603, + "end": 2609, "loc": { "start": { "line": 67, @@ -31344,8 +31344,8 @@ "binop": null, "updateContext": null }, - "start": 2675, - "end": 2676, + "start": 2609, + "end": 2610, "loc": { "start": { "line": 67, @@ -31369,8 +31369,8 @@ "postfix": false, "binop": null }, - "start": 2686, - "end": 2687, + "start": 2619, + "end": 2620, "loc": { "start": { "line": 68, @@ -31397,8 +31397,8 @@ "updateContext": null }, "value": "if", - "start": 2699, - "end": 2701, + "start": 2630, + "end": 2632, "loc": { "start": { "line": 70, @@ -31422,8 +31422,8 @@ "postfix": false, "binop": null }, - "start": 2702, - "end": 2703, + "start": 2633, + "end": 2634, "loc": { "start": { "line": 70, @@ -31448,8 +31448,8 @@ "binop": null }, "value": "pConfig", - "start": 2703, - "end": 2710, + "start": 2634, + "end": 2641, "loc": { "start": { "line": 70, @@ -31476,8 +31476,8 @@ "updateContext": null }, "value": "instanceof", - "start": 2711, - "end": 2721, + "start": 2642, + "end": 2652, "loc": { "start": { "line": 70, @@ -31502,8 +31502,8 @@ "binop": null }, "value": "Object", - "start": 2722, - "end": 2728, + "start": 2653, + "end": 2659, "loc": { "start": { "line": 70, @@ -31527,8 +31527,8 @@ "postfix": false, "binop": null }, - "start": 2728, - "end": 2729, + "start": 2659, + "end": 2660, "loc": { "start": { "line": 70, @@ -31552,8 +31552,8 @@ "postfix": false, "binop": null }, - "start": 2730, - "end": 2731, + "start": 2661, + "end": 2662, "loc": { "start": { "line": 70, @@ -31580,8 +31580,8 @@ "updateContext": null }, "value": "if", - "start": 2745, - "end": 2747, + "start": 2675, + "end": 2677, "loc": { "start": { "line": 71, @@ -31605,8 +31605,8 @@ "postfix": false, "binop": null }, - "start": 2748, - "end": 2749, + "start": 2678, + "end": 2679, "loc": { "start": { "line": 71, @@ -31632,8 +31632,8 @@ "updateContext": null }, "value": "!", - "start": 2749, - "end": 2750, + "start": 2679, + "end": 2680, "loc": { "start": { "line": 71, @@ -31660,8 +31660,8 @@ "updateContext": null }, "value": "this", - "start": 2750, - "end": 2754, + "start": 2680, + "end": 2684, "loc": { "start": { "line": 71, @@ -31686,8 +31686,8 @@ "binop": null, "updateContext": null }, - "start": 2754, - "end": 2755, + "start": 2684, + "end": 2685, "loc": { "start": { "line": 71, @@ -31712,8 +31712,8 @@ "binop": null }, "value": "instances", - "start": 2755, - "end": 2764, + "start": 2685, + "end": 2694, "loc": { "start": { "line": 71, @@ -31738,8 +31738,8 @@ "binop": null, "updateContext": null }, - "start": 2764, - "end": 2765, + "start": 2694, + "end": 2695, "loc": { "start": { "line": 71, @@ -31764,8 +31764,8 @@ "binop": null }, "value": "has", - "start": 2765, - "end": 2768, + "start": 2695, + "end": 2698, "loc": { "start": { "line": 71, @@ -31789,8 +31789,8 @@ "postfix": false, "binop": null }, - "start": 2768, - "end": 2769, + "start": 2698, + "end": 2699, "loc": { "start": { "line": 71, @@ -31815,8 +31815,8 @@ "binop": null }, "value": "pInstance", - "start": 2769, - "end": 2778, + "start": 2699, + "end": 2708, "loc": { "start": { "line": 71, @@ -31840,8 +31840,8 @@ "postfix": false, "binop": null }, - "start": 2778, - "end": 2779, + "start": 2708, + "end": 2709, "loc": { "start": { "line": 71, @@ -31865,8 +31865,8 @@ "postfix": false, "binop": null }, - "start": 2779, - "end": 2780, + "start": 2709, + "end": 2710, "loc": { "start": { "line": 71, @@ -31890,8 +31890,8 @@ "postfix": false, "binop": null }, - "start": 2781, - "end": 2782, + "start": 2711, + "end": 2712, "loc": { "start": { "line": 71, @@ -31918,8 +31918,8 @@ "updateContext": null }, "value": "const", - "start": 2800, - "end": 2805, + "start": 2729, + "end": 2734, "loc": { "start": { "line": 72, @@ -31944,8 +31944,8 @@ "binop": null }, "value": "x", - "start": 2806, - "end": 2807, + "start": 2735, + "end": 2736, "loc": { "start": { "line": 72, @@ -31971,8 +31971,8 @@ "updateContext": null }, "value": "=", - "start": 2808, - "end": 2809, + "start": 2737, + "end": 2738, "loc": { "start": { "line": 72, @@ -31999,8 +31999,8 @@ "updateContext": null }, "value": "typeof", - "start": 2810, - "end": 2816, + "start": 2739, + "end": 2745, "loc": { "start": { "line": 72, @@ -32025,8 +32025,8 @@ "binop": null }, "value": "pX", - "start": 2817, - "end": 2819, + "start": 2746, + "end": 2748, "loc": { "start": { "line": 72, @@ -32052,8 +32052,8 @@ "updateContext": null }, "value": "===", - "start": 2820, - "end": 2823, + "start": 2749, + "end": 2752, "loc": { "start": { "line": 72, @@ -32079,8 +32079,8 @@ "updateContext": null }, "value": "number", - "start": 2824, - "end": 2832, + "start": 2753, + "end": 2761, "loc": { "start": { "line": 72, @@ -32105,8 +32105,8 @@ "binop": null, "updateContext": null }, - "start": 2833, - "end": 2834, + "start": 2762, + "end": 2763, "loc": { "start": { "line": 72, @@ -32131,8 +32131,8 @@ "binop": null }, "value": "pX", - "start": 2835, - "end": 2837, + "start": 2764, + "end": 2766, "loc": { "start": { "line": 72, @@ -32157,8 +32157,8 @@ "binop": null, "updateContext": null }, - "start": 2838, - "end": 2839, + "start": 2767, + "end": 2768, "loc": { "start": { "line": 72, @@ -32183,8 +32183,8 @@ "binop": null }, "value": "pInstance", - "start": 2840, - "end": 2849, + "start": 2769, + "end": 2778, "loc": { "start": { "line": 72, @@ -32209,8 +32209,8 @@ "binop": null, "updateContext": null }, - "start": 2849, - "end": 2850, + "start": 2778, + "end": 2779, "loc": { "start": { "line": 72, @@ -32235,8 +32235,8 @@ "binop": null }, "value": "x", - "start": 2850, - "end": 2851, + "start": 2779, + "end": 2780, "loc": { "start": { "line": 72, @@ -32261,8 +32261,8 @@ "binop": null, "updateContext": null }, - "start": 2851, - "end": 2852, + "start": 2780, + "end": 2781, "loc": { "start": { "line": 72, @@ -32289,8 +32289,8 @@ "updateContext": null }, "value": "const", - "start": 2870, - "end": 2875, + "start": 2798, + "end": 2803, "loc": { "start": { "line": 73, @@ -32315,8 +32315,8 @@ "binop": null }, "value": "y", - "start": 2876, - "end": 2877, + "start": 2804, + "end": 2805, "loc": { "start": { "line": 73, @@ -32342,8 +32342,8 @@ "updateContext": null }, "value": "=", - "start": 2878, - "end": 2879, + "start": 2806, + "end": 2807, "loc": { "start": { "line": 73, @@ -32370,8 +32370,8 @@ "updateContext": null }, "value": "typeof", - "start": 2880, - "end": 2886, + "start": 2808, + "end": 2814, "loc": { "start": { "line": 73, @@ -32396,8 +32396,8 @@ "binop": null }, "value": "pY", - "start": 2887, - "end": 2889, + "start": 2815, + "end": 2817, "loc": { "start": { "line": 73, @@ -32423,8 +32423,8 @@ "updateContext": null }, "value": "===", - "start": 2890, - "end": 2893, + "start": 2818, + "end": 2821, "loc": { "start": { "line": 73, @@ -32450,8 +32450,8 @@ "updateContext": null }, "value": "number", - "start": 2894, - "end": 2902, + "start": 2822, + "end": 2830, "loc": { "start": { "line": 73, @@ -32476,8 +32476,8 @@ "binop": null, "updateContext": null }, - "start": 2903, - "end": 2904, + "start": 2831, + "end": 2832, "loc": { "start": { "line": 73, @@ -32502,8 +32502,8 @@ "binop": null }, "value": "pY", - "start": 2905, - "end": 2907, + "start": 2833, + "end": 2835, "loc": { "start": { "line": 73, @@ -32528,8 +32528,8 @@ "binop": null, "updateContext": null }, - "start": 2908, - "end": 2909, + "start": 2836, + "end": 2837, "loc": { "start": { "line": 73, @@ -32554,8 +32554,8 @@ "binop": null }, "value": "pInstance", - "start": 2910, - "end": 2919, + "start": 2838, + "end": 2847, "loc": { "start": { "line": 73, @@ -32580,8 +32580,8 @@ "binop": null, "updateContext": null }, - "start": 2919, - "end": 2920, + "start": 2847, + "end": 2848, "loc": { "start": { "line": 73, @@ -32606,8 +32606,8 @@ "binop": null }, "value": "y", - "start": 2920, - "end": 2921, + "start": 2848, + "end": 2849, "loc": { "start": { "line": 73, @@ -32632,8 +32632,8 @@ "binop": null, "updateContext": null }, - "start": 2921, - "end": 2922, + "start": 2849, + "end": 2850, "loc": { "start": { "line": 73, @@ -32660,8 +32660,8 @@ "updateContext": null }, "value": "const", - "start": 2940, - "end": 2945, + "start": 2867, + "end": 2872, "loc": { "start": { "line": 74, @@ -32686,8 +32686,8 @@ "binop": null }, "value": "map", - "start": 2946, - "end": 2949, + "start": 2873, + "end": 2876, "loc": { "start": { "line": 74, @@ -32713,8 +32713,8 @@ "updateContext": null }, "value": "=", - "start": 2950, - "end": 2951, + "start": 2877, + "end": 2878, "loc": { "start": { "line": 74, @@ -32741,8 +32741,8 @@ "updateContext": null }, "value": "typeof", - "start": 2952, - "end": 2958, + "start": 2879, + "end": 2885, "loc": { "start": { "line": 74, @@ -32767,8 +32767,8 @@ "binop": null }, "value": "pMap", - "start": 2959, - "end": 2963, + "start": 2886, + "end": 2890, "loc": { "start": { "line": 74, @@ -32794,8 +32794,8 @@ "updateContext": null }, "value": "===", - "start": 2964, - "end": 2967, + "start": 2891, + "end": 2894, "loc": { "start": { "line": 74, @@ -32821,8 +32821,8 @@ "updateContext": null }, "value": "string", - "start": 2968, - "end": 2976, + "start": 2895, + "end": 2903, "loc": { "start": { "line": 74, @@ -32847,8 +32847,8 @@ "binop": null, "updateContext": null }, - "start": 2977, - "end": 2978, + "start": 2904, + "end": 2905, "loc": { "start": { "line": 74, @@ -32873,8 +32873,8 @@ "binop": null }, "value": "pMap", - "start": 2979, - "end": 2983, + "start": 2906, + "end": 2910, "loc": { "start": { "line": 74, @@ -32899,8 +32899,8 @@ "binop": null, "updateContext": null }, - "start": 2984, - "end": 2985, + "start": 2911, + "end": 2912, "loc": { "start": { "line": 74, @@ -32925,8 +32925,8 @@ "binop": null }, "value": "pInstance", - "start": 2986, - "end": 2995, + "start": 2913, + "end": 2922, "loc": { "start": { "line": 74, @@ -32951,8 +32951,8 @@ "binop": null, "updateContext": null }, - "start": 2995, - "end": 2996, + "start": 2922, + "end": 2923, "loc": { "start": { "line": 74, @@ -32977,8 +32977,8 @@ "binop": null }, "value": "mapName", - "start": 2996, - "end": 3003, + "start": 2923, + "end": 2930, "loc": { "start": { "line": 74, @@ -33003,8 +33003,8 @@ "binop": null, "updateContext": null }, - "start": 3003, - "end": 3004, + "start": 2930, + "end": 2931, "loc": { "start": { "line": 74, @@ -33019,8 +33019,8 @@ { "type": "CommentLine", "value": " Clone the parallax object", - "start": 3022, - "end": 3050, + "start": 2948, + "end": 2976, "loc": { "start": { "line": 75, @@ -33047,8 +33047,8 @@ "updateContext": null }, "value": "const", - "start": 3068, - "end": 3073, + "start": 2993, + "end": 2998, "loc": { "start": { "line": 76, @@ -33073,8 +33073,8 @@ "binop": null }, "value": "parallaxInfo", - "start": 3074, - "end": 3086, + "start": 2999, + "end": 3011, "loc": { "start": { "line": 76, @@ -33100,8 +33100,8 @@ "updateContext": null }, "value": "=", - "start": 3087, - "end": 3088, + "start": 3012, + "end": 3013, "loc": { "start": { "line": 76, @@ -33125,8 +33125,8 @@ "postfix": false, "binop": null }, - "start": 3089, - "end": 3090, + "start": 3014, + "end": 3015, "loc": { "start": { "line": 76, @@ -33151,8 +33151,8 @@ "binop": null, "updateContext": null }, - "start": 3091, - "end": 3094, + "start": 3016, + "end": 3019, "loc": { "start": { "line": 76, @@ -33177,8 +33177,8 @@ "binop": null }, "value": "pConfig", - "start": 3094, - "end": 3101, + "start": 3019, + "end": 3026, "loc": { "start": { "line": 76, @@ -33202,8 +33202,8 @@ "postfix": false, "binop": null }, - "start": 3102, - "end": 3103, + "start": 3027, + "end": 3028, "loc": { "start": { "line": 76, @@ -33228,8 +33228,8 @@ "binop": null, "updateContext": null }, - "start": 3103, - "end": 3104, + "start": 3028, + "end": 3029, "loc": { "start": { "line": 76, @@ -33256,8 +33256,8 @@ "updateContext": null }, "value": "this", - "start": 3122, - "end": 3126, + "start": 3046, + "end": 3050, "loc": { "start": { "line": 77, @@ -33282,8 +33282,8 @@ "binop": null, "updateContext": null }, - "start": 3126, - "end": 3127, + "start": 3050, + "end": 3051, "loc": { "start": { "line": 77, @@ -33308,8 +33308,8 @@ "binop": null }, "value": "init", - "start": 3127, - "end": 3131, + "start": 3051, + "end": 3055, "loc": { "start": { "line": 77, @@ -33333,8 +33333,8 @@ "postfix": false, "binop": null }, - "start": 3131, - "end": 3132, + "start": 3055, + "end": 3056, "loc": { "start": { "line": 77, @@ -33359,8 +33359,8 @@ "binop": null }, "value": "pInstance", - "start": 3132, - "end": 3141, + "start": 3056, + "end": 3065, "loc": { "start": { "line": 77, @@ -33385,8 +33385,8 @@ "binop": null, "updateContext": null }, - "start": 3141, - "end": 3142, + "start": 3065, + "end": 3066, "loc": { "start": { "line": 77, @@ -33411,8 +33411,8 @@ "binop": null }, "value": "parallaxInfo", - "start": 3143, - "end": 3155, + "start": 3067, + "end": 3079, "loc": { "start": { "line": 77, @@ -33437,8 +33437,8 @@ "binop": null, "updateContext": null }, - "start": 3155, - "end": 3156, + "start": 3079, + "end": 3080, "loc": { "start": { "line": 77, @@ -33463,8 +33463,8 @@ "binop": null }, "value": "x", - "start": 3157, - "end": 3158, + "start": 3081, + "end": 3082, "loc": { "start": { "line": 77, @@ -33489,8 +33489,8 @@ "binop": null, "updateContext": null }, - "start": 3158, - "end": 3159, + "start": 3082, + "end": 3083, "loc": { "start": { "line": 77, @@ -33515,8 +33515,8 @@ "binop": null }, "value": "y", - "start": 3160, - "end": 3161, + "start": 3084, + "end": 3085, "loc": { "start": { "line": 77, @@ -33541,8 +33541,8 @@ "binop": null, "updateContext": null }, - "start": 3161, - "end": 3162, + "start": 3085, + "end": 3086, "loc": { "start": { "line": 77, @@ -33567,8 +33567,8 @@ "binop": null }, "value": "map", - "start": 3163, - "end": 3166, + "start": 3087, + "end": 3090, "loc": { "start": { "line": 77, @@ -33592,8 +33592,8 @@ "postfix": false, "binop": null }, - "start": 3166, - "end": 3167, + "start": 3090, + "end": 3091, "loc": { "start": { "line": 77, @@ -33618,8 +33618,8 @@ "binop": null, "updateContext": null }, - "start": 3167, - "end": 3168, + "start": 3091, + "end": 3092, "loc": { "start": { "line": 77, @@ -33634,8 +33634,8 @@ { "type": "CommentLine", "value": " Set the parallax info to the instance", - "start": 3186, - "end": 3226, + "start": 3109, + "end": 3149, "loc": { "start": { "line": 78, @@ -33662,8 +33662,8 @@ "updateContext": null }, "value": "this", - "start": 3244, - "end": 3248, + "start": 3166, + "end": 3170, "loc": { "start": { "line": 79, @@ -33688,8 +33688,8 @@ "binop": null, "updateContext": null }, - "start": 3248, - "end": 3249, + "start": 3170, + "end": 3171, "loc": { "start": { "line": 79, @@ -33714,8 +33714,8 @@ "binop": null }, "value": "instanceWeakMap", - "start": 3249, - "end": 3264, + "start": 3171, + "end": 3186, "loc": { "start": { "line": 79, @@ -33740,8 +33740,8 @@ "binop": null, "updateContext": null }, - "start": 3264, - "end": 3265, + "start": 3186, + "end": 3187, "loc": { "start": { "line": 79, @@ -33766,8 +33766,8 @@ "binop": null }, "value": "set", - "start": 3265, - "end": 3268, + "start": 3187, + "end": 3190, "loc": { "start": { "line": 79, @@ -33791,8 +33791,8 @@ "postfix": false, "binop": null }, - "start": 3268, - "end": 3269, + "start": 3190, + "end": 3191, "loc": { "start": { "line": 79, @@ -33817,8 +33817,8 @@ "binop": null }, "value": "pInstance", - "start": 3269, - "end": 3278, + "start": 3191, + "end": 3200, "loc": { "start": { "line": 79, @@ -33843,8 +33843,8 @@ "binop": null, "updateContext": null }, - "start": 3278, - "end": 3279, + "start": 3200, + "end": 3201, "loc": { "start": { "line": 79, @@ -33869,8 +33869,8 @@ "binop": null }, "value": "parallaxInfo", - "start": 3280, - "end": 3292, + "start": 3202, + "end": 3214, "loc": { "start": { "line": 79, @@ -33894,8 +33894,8 @@ "postfix": false, "binop": null }, - "start": 3292, - "end": 3293, + "start": 3214, + "end": 3215, "loc": { "start": { "line": 79, @@ -33920,8 +33920,8 @@ "binop": null, "updateContext": null }, - "start": 3293, - "end": 3294, + "start": 3215, + "end": 3216, "loc": { "start": { "line": 79, @@ -33948,8 +33948,8 @@ "updateContext": null }, "value": "this", - "start": 3312, - "end": 3316, + "start": 3233, + "end": 3237, "loc": { "start": { "line": 80, @@ -33974,8 +33974,8 @@ "binop": null, "updateContext": null }, - "start": 3316, - "end": 3317, + "start": 3237, + "end": 3238, "loc": { "start": { "line": 80, @@ -34000,8 +34000,8 @@ "binop": null }, "value": "instances", - "start": 3317, - "end": 3326, + "start": 3238, + "end": 3247, "loc": { "start": { "line": 80, @@ -34026,8 +34026,8 @@ "binop": null, "updateContext": null }, - "start": 3326, - "end": 3327, + "start": 3247, + "end": 3248, "loc": { "start": { "line": 80, @@ -34052,8 +34052,8 @@ "binop": null }, "value": "add", - "start": 3327, - "end": 3330, + "start": 3248, + "end": 3251, "loc": { "start": { "line": 80, @@ -34077,8 +34077,8 @@ "postfix": false, "binop": null }, - "start": 3330, - "end": 3331, + "start": 3251, + "end": 3252, "loc": { "start": { "line": 80, @@ -34103,8 +34103,8 @@ "binop": null }, "value": "pInstance", - "start": 3331, - "end": 3340, + "start": 3252, + "end": 3261, "loc": { "start": { "line": 80, @@ -34128,8 +34128,8 @@ "postfix": false, "binop": null }, - "start": 3340, - "end": 3341, + "start": 3261, + "end": 3262, "loc": { "start": { "line": 80, @@ -34154,8 +34154,8 @@ "binop": null, "updateContext": null }, - "start": 3341, - "end": 3342, + "start": 3262, + "end": 3263, "loc": { "start": { "line": 80, @@ -34179,8 +34179,8 @@ "postfix": false, "binop": null }, - "start": 3356, - "end": 3357, + "start": 3276, + "end": 3277, "loc": { "start": { "line": 81, @@ -34204,8 +34204,8 @@ "postfix": false, "binop": null }, - "start": 3367, - "end": 3368, + "start": 3286, + "end": 3287, "loc": { "start": { "line": 82, @@ -34232,8 +34232,8 @@ "updateContext": null }, "value": "else", - "start": 3369, - "end": 3373, + "start": 3288, + "end": 3292, "loc": { "start": { "line": 82, @@ -34257,8 +34257,8 @@ "postfix": false, "binop": null }, - "start": 3374, - "end": 3375, + "start": 3293, + "end": 3294, "loc": { "start": { "line": 82, @@ -34285,8 +34285,8 @@ "updateContext": null }, "value": "this", - "start": 3389, - "end": 3393, + "start": 3307, + "end": 3311, "loc": { "start": { "line": 83, @@ -34311,8 +34311,8 @@ "binop": null, "updateContext": null }, - "start": 3393, - "end": 3394, + "start": 3311, + "end": 3312, "loc": { "start": { "line": 83, @@ -34337,8 +34337,8 @@ "binop": null }, "value": "logger", - "start": 3394, - "end": 3400, + "start": 3312, + "end": 3318, "loc": { "start": { "line": 83, @@ -34363,8 +34363,8 @@ "binop": null, "updateContext": null }, - "start": 3400, - "end": 3401, + "start": 3318, + "end": 3319, "loc": { "start": { "line": 83, @@ -34389,8 +34389,8 @@ "binop": null }, "value": "prefix", - "start": 3401, - "end": 3407, + "start": 3319, + "end": 3325, "loc": { "start": { "line": 83, @@ -34414,8 +34414,8 @@ "postfix": false, "binop": null }, - "start": 3407, - "end": 3408, + "start": 3325, + "end": 3326, "loc": { "start": { "line": 83, @@ -34441,8 +34441,8 @@ "updateContext": null }, "value": "Parallax-Module", - "start": 3408, - "end": 3425, + "start": 3326, + "end": 3343, "loc": { "start": { "line": 83, @@ -34466,8 +34466,8 @@ "postfix": false, "binop": null }, - "start": 3425, - "end": 3426, + "start": 3343, + "end": 3344, "loc": { "start": { "line": 83, @@ -34492,8 +34492,8 @@ "binop": null, "updateContext": null }, - "start": 3426, - "end": 3427, + "start": 3344, + "end": 3345, "loc": { "start": { "line": 83, @@ -34518,8 +34518,8 @@ "binop": null }, "value": "error", - "start": 3427, - "end": 3432, + "start": 3345, + "end": 3350, "loc": { "start": { "line": 83, @@ -34543,8 +34543,8 @@ "postfix": false, "binop": null }, - "start": 3432, - "end": 3433, + "start": 3350, + "end": 3351, "loc": { "start": { "line": 83, @@ -34570,8 +34570,8 @@ "updateContext": null }, "value": "No pConfig passed or invalid type found!", - "start": 3433, - "end": 3475, + "start": 3351, + "end": 3393, "loc": { "start": { "line": 83, @@ -34595,8 +34595,8 @@ "postfix": false, "binop": null }, - "start": 3475, - "end": 3476, + "start": 3393, + "end": 3394, "loc": { "start": { "line": 83, @@ -34621,8 +34621,8 @@ "binop": null, "updateContext": null }, - "start": 3476, - "end": 3477, + "start": 3394, + "end": 3395, "loc": { "start": { "line": 83, @@ -34646,8 +34646,8 @@ "postfix": false, "binop": null }, - "start": 3487, - "end": 3488, + "start": 3404, + "end": 3405, "loc": { "start": { "line": 84, @@ -34671,8 +34671,8 @@ "postfix": false, "binop": null }, - "start": 3494, - "end": 3495, + "start": 3410, + "end": 3411, "loc": { "start": { "line": 85, @@ -34686,9 +34686,9 @@ }, { "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, + "value": "*\n * Initializes this instance.\n * @param {Object} pInstance - The instance to initialize.\n * @param {Object} pConfig - The parallax info that tells this module how to control this instance.\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.\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.\n * @prop {boolean} pConfig.loop - Whether this instance will loop endlessly.\n * @param {number} pX - The x position this parallax will start at.\n * @param {number} pY - The y position this parallax will start at.\n * @param {string} pMap - The map this instance will start at.\n * @private\n ", + "start": 3416, + "end": 4262, "loc": { "start": { "line": 86, @@ -34713,8 +34713,8 @@ "binop": null }, "value": "init", - "start": 4364, - "end": 4368, + "start": 4267, + "end": 4271, "loc": { "start": { "line": 98, @@ -34738,8 +34738,8 @@ "postfix": false, "binop": null }, - "start": 4368, - "end": 4369, + "start": 4271, + "end": 4272, "loc": { "start": { "line": 98, @@ -34764,8 +34764,8 @@ "binop": null }, "value": "pInstance", - "start": 4369, - "end": 4378, + "start": 4272, + "end": 4281, "loc": { "start": { "line": 98, @@ -34790,8 +34790,8 @@ "binop": null, "updateContext": null }, - "start": 4378, - "end": 4379, + "start": 4281, + "end": 4282, "loc": { "start": { "line": 98, @@ -34816,8 +34816,8 @@ "binop": null }, "value": "pConfig", - "start": 4380, - "end": 4387, + "start": 4283, + "end": 4290, "loc": { "start": { "line": 98, @@ -34842,8 +34842,8 @@ "binop": null, "updateContext": null }, - "start": 4387, - "end": 4388, + "start": 4290, + "end": 4291, "loc": { "start": { "line": 98, @@ -34868,8 +34868,8 @@ "binop": null }, "value": "pX", - "start": 4389, - "end": 4391, + "start": 4292, + "end": 4294, "loc": { "start": { "line": 98, @@ -34894,8 +34894,8 @@ "binop": null, "updateContext": null }, - "start": 4391, - "end": 4392, + "start": 4294, + "end": 4295, "loc": { "start": { "line": 98, @@ -34920,8 +34920,8 @@ "binop": null }, "value": "pY", - "start": 4393, - "end": 4395, + "start": 4296, + "end": 4298, "loc": { "start": { "line": 98, @@ -34946,8 +34946,8 @@ "binop": null, "updateContext": null }, - "start": 4395, - "end": 4396, + "start": 4298, + "end": 4299, "loc": { "start": { "line": 98, @@ -34972,8 +34972,8 @@ "binop": null }, "value": "pMap", - "start": 4397, - "end": 4401, + "start": 4300, + "end": 4304, "loc": { "start": { "line": 98, @@ -34997,8 +34997,8 @@ "postfix": false, "binop": null }, - "start": 4401, - "end": 4402, + "start": 4304, + "end": 4305, "loc": { "start": { "line": 98, @@ -35022,8 +35022,8 @@ "postfix": false, "binop": null }, - "start": 4403, - "end": 4404, + "start": 4306, + "end": 4307, "loc": { "start": { "line": 98, @@ -35050,8 +35050,8 @@ "updateContext": null }, "value": "if", - "start": 4414, - "end": 4416, + "start": 4316, + "end": 4318, "loc": { "start": { "line": 99, @@ -35075,8 +35075,8 @@ "postfix": false, "binop": null }, - "start": 4417, - "end": 4418, + "start": 4319, + "end": 4320, "loc": { "start": { "line": 99, @@ -35102,8 +35102,8 @@ "updateContext": null }, "value": "!", - "start": 4418, - "end": 4419, + "start": 4320, + "end": 4321, "loc": { "start": { "line": 99, @@ -35128,8 +35128,8 @@ "binop": null }, "value": "VYLO", - "start": 4419, - "end": 4423, + "start": 4321, + "end": 4325, "loc": { "start": { "line": 99, @@ -35153,8 +35153,8 @@ "postfix": false, "binop": null }, - "start": 4423, - "end": 4424, + "start": 4325, + "end": 4326, "loc": { "start": { "line": 99, @@ -35178,8 +35178,8 @@ "postfix": false, "binop": null }, - "start": 4425, - "end": 4426, + "start": 4327, + "end": 4328, "loc": { "start": { "line": 99, @@ -35206,8 +35206,8 @@ "updateContext": null }, "value": "this", - "start": 4440, - "end": 4444, + "start": 4341, + "end": 4345, "loc": { "start": { "line": 100, @@ -35232,8 +35232,8 @@ "binop": null, "updateContext": null }, - "start": 4444, - "end": 4445, + "start": 4345, + "end": 4346, "loc": { "start": { "line": 100, @@ -35258,8 +35258,8 @@ "binop": null }, "value": "logger", - "start": 4445, - "end": 4451, + "start": 4346, + "end": 4352, "loc": { "start": { "line": 100, @@ -35284,8 +35284,8 @@ "binop": null, "updateContext": null }, - "start": 4451, - "end": 4452, + "start": 4352, + "end": 4353, "loc": { "start": { "line": 100, @@ -35310,8 +35310,8 @@ "binop": null }, "value": "prefix", - "start": 4452, - "end": 4458, + "start": 4353, + "end": 4359, "loc": { "start": { "line": 100, @@ -35335,8 +35335,8 @@ "postfix": false, "binop": null }, - "start": 4458, - "end": 4459, + "start": 4359, + "end": 4360, "loc": { "start": { "line": 100, @@ -35362,8 +35362,8 @@ "updateContext": null }, "value": "Parallax-Module", - "start": 4459, - "end": 4476, + "start": 4360, + "end": 4377, "loc": { "start": { "line": 100, @@ -35387,8 +35387,8 @@ "postfix": false, "binop": null }, - "start": 4476, - "end": 4477, + "start": 4377, + "end": 4378, "loc": { "start": { "line": 100, @@ -35413,8 +35413,8 @@ "binop": null, "updateContext": null }, - "start": 4477, - "end": 4478, + "start": 4378, + "end": 4379, "loc": { "start": { "line": 100, @@ -35439,8 +35439,8 @@ "binop": null }, "value": "error", - "start": 4478, - "end": 4483, + "start": 4379, + "end": 4384, "loc": { "start": { "line": 100, @@ -35464,8 +35464,8 @@ "postfix": false, "binop": null }, - "start": 4483, - "end": 4484, + "start": 4384, + "end": 4385, "loc": { "start": { "line": 100, @@ -35491,8 +35491,8 @@ "updateContext": null }, "value": "VYLO not found! This module depends on the VYLO object being in the global name space.", - "start": 4484, - "end": 4572, + "start": 4385, + "end": 4473, "loc": { "start": { "line": 100, @@ -35516,8 +35516,8 @@ "postfix": false, "binop": null }, - "start": 4572, - "end": 4573, + "start": 4473, + "end": 4474, "loc": { "start": { "line": 100, @@ -35542,8 +35542,8 @@ "binop": null, "updateContext": null }, - "start": 4573, - "end": 4574, + "start": 4474, + "end": 4475, "loc": { "start": { "line": 100, @@ -35570,8 +35570,8 @@ "updateContext": null }, "value": "return", - "start": 4588, - "end": 4594, + "start": 4488, + "end": 4494, "loc": { "start": { "line": 101, @@ -35596,8 +35596,8 @@ "binop": null, "updateContext": null }, - "start": 4594, - "end": 4595, + "start": 4494, + "end": 4495, "loc": { "start": { "line": 101, @@ -35621,8 +35621,8 @@ "postfix": false, "binop": null }, - "start": 4605, - "end": 4606, + "start": 4504, + "end": 4505, "loc": { "start": { "line": 102, @@ -35637,8 +35637,8 @@ { "type": "CommentLine", "value": " If this instance is set to loop, then it needs a left and right clone", - "start": 4618, - "end": 4690, + "start": 4515, + "end": 4587, "loc": { "start": { "line": 104, @@ -35665,8 +35665,8 @@ "updateContext": null }, "value": "if", - "start": 4700, - "end": 4702, + "start": 4596, + "end": 4598, "loc": { "start": { "line": 105, @@ -35690,8 +35690,8 @@ "postfix": false, "binop": null }, - "start": 4703, - "end": 4704, + "start": 4599, + "end": 4600, "loc": { "start": { "line": 105, @@ -35716,8 +35716,8 @@ "binop": null }, "value": "pConfig", - "start": 4704, - "end": 4711, + "start": 4600, + "end": 4607, "loc": { "start": { "line": 105, @@ -35742,8 +35742,8 @@ "binop": null, "updateContext": null }, - "start": 4711, - "end": 4712, + "start": 4607, + "end": 4608, "loc": { "start": { "line": 105, @@ -35768,8 +35768,8 @@ "binop": null }, "value": "loop", - "start": 4712, - "end": 4716, + "start": 4608, + "end": 4612, "loc": { "start": { "line": 105, @@ -35793,8 +35793,8 @@ "postfix": false, "binop": null }, - "start": 4716, - "end": 4717, + "start": 4612, + "end": 4613, "loc": { "start": { "line": 105, @@ -35818,8 +35818,8 @@ "postfix": false, "binop": null }, - "start": 4718, - "end": 4719, + "start": 4614, + "end": 4615, "loc": { "start": { "line": 105, @@ -35834,8 +35834,8 @@ { "type": "CommentLine", "value": " Create a left and right clone", - "start": 4733, - "end": 4765, + "start": 4628, + "end": 4660, "loc": { "start": { "line": 106, @@ -35862,8 +35862,8 @@ "updateContext": null }, "value": "const", - "start": 4779, - "end": 4784, + "start": 4673, + "end": 4678, "loc": { "start": { "line": 107, @@ -35888,8 +35888,8 @@ "binop": null }, "value": "left", - "start": 4785, - "end": 4789, + "start": 4679, + "end": 4683, "loc": { "start": { "line": 107, @@ -35915,8 +35915,8 @@ "updateContext": null }, "value": "=", - "start": 4790, - "end": 4791, + "start": 4684, + "end": 4685, "loc": { "start": { "line": 107, @@ -35941,8 +35941,8 @@ "binop": null }, "value": "VYLO", - "start": 4792, - "end": 4796, + "start": 4686, + "end": 4690, "loc": { "start": { "line": 107, @@ -35967,8 +35967,8 @@ "binop": null, "updateContext": null }, - "start": 4796, - "end": 4797, + "start": 4690, + "end": 4691, "loc": { "start": { "line": 107, @@ -35993,8 +35993,8 @@ "binop": null }, "value": "newDiob", - "start": 4797, - "end": 4804, + "start": 4691, + "end": 4698, "loc": { "start": { "line": 107, @@ -36018,8 +36018,8 @@ "postfix": false, "binop": null }, - "start": 4804, - "end": 4805, + "start": 4698, + "end": 4699, "loc": { "start": { "line": 107, @@ -36045,8 +36045,8 @@ "updateContext": null }, "value": "MapObject", - "start": 4805, - "end": 4816, + "start": 4699, + "end": 4710, "loc": { "start": { "line": 107, @@ -36070,8 +36070,8 @@ "postfix": false, "binop": null }, - "start": 4816, - "end": 4817, + "start": 4710, + "end": 4711, "loc": { "start": { "line": 107, @@ -36096,8 +36096,8 @@ "binop": null, "updateContext": null }, - "start": 4817, - "end": 4818, + "start": 4711, + "end": 4712, "loc": { "start": { "line": 107, @@ -36124,8 +36124,8 @@ "updateContext": null }, "value": "const", - "start": 4832, - "end": 4837, + "start": 4725, + "end": 4730, "loc": { "start": { "line": 108, @@ -36150,8 +36150,8 @@ "binop": null }, "value": "right", - "start": 4838, - "end": 4843, + "start": 4731, + "end": 4736, "loc": { "start": { "line": 108, @@ -36177,8 +36177,8 @@ "updateContext": null }, "value": "=", - "start": 4844, - "end": 4845, + "start": 4737, + "end": 4738, "loc": { "start": { "line": 108, @@ -36203,8 +36203,8 @@ "binop": null }, "value": "VYLO", - "start": 4846, - "end": 4850, + "start": 4739, + "end": 4743, "loc": { "start": { "line": 108, @@ -36229,8 +36229,8 @@ "binop": null, "updateContext": null }, - "start": 4850, - "end": 4851, + "start": 4743, + "end": 4744, "loc": { "start": { "line": 108, @@ -36255,8 +36255,8 @@ "binop": null }, "value": "newDiob", - "start": 4851, - "end": 4858, + "start": 4744, + "end": 4751, "loc": { "start": { "line": 108, @@ -36280,8 +36280,8 @@ "postfix": false, "binop": null }, - "start": 4858, - "end": 4859, + "start": 4751, + "end": 4752, "loc": { "start": { "line": 108, @@ -36307,8 +36307,8 @@ "updateContext": null }, "value": "MapObject", - "start": 4859, - "end": 4870, + "start": 4752, + "end": 4763, "loc": { "start": { "line": 108, @@ -36332,8 +36332,8 @@ "postfix": false, "binop": null }, - "start": 4870, - "end": 4871, + "start": 4763, + "end": 4764, "loc": { "start": { "line": 108, @@ -36358,8 +36358,8 @@ "binop": null, "updateContext": null }, - "start": 4871, - "end": 4872, + "start": 4764, + "end": 4765, "loc": { "start": { "line": 108, @@ -36374,8 +36374,8 @@ { "type": "CommentLine", "value": " Make the left and right clone particle look the same as the initial instance", - "start": 4888, - "end": 4967, + "start": 4779, + "end": 4858, "loc": { "start": { "line": 110, @@ -36400,8 +36400,8 @@ "binop": null }, "value": "left", - "start": 4981, - "end": 4985, + "start": 4871, + "end": 4875, "loc": { "start": { "line": 111, @@ -36426,8 +36426,8 @@ "binop": null, "updateContext": null }, - "start": 4985, - "end": 4986, + "start": 4875, + "end": 4876, "loc": { "start": { "line": 111, @@ -36452,8 +36452,8 @@ "binop": null }, "value": "setAppearance", - "start": 4986, - "end": 4999, + "start": 4876, + "end": 4889, "loc": { "start": { "line": 111, @@ -36477,8 +36477,8 @@ "postfix": false, "binop": null }, - "start": 4999, - "end": 5000, + "start": 4889, + "end": 4890, "loc": { "start": { "line": 111, @@ -36503,8 +36503,8 @@ "binop": null }, "value": "pInstance", - "start": 5000, - "end": 5009, + "start": 4890, + "end": 4899, "loc": { "start": { "line": 111, @@ -36528,8 +36528,8 @@ "postfix": false, "binop": null }, - "start": 5009, - "end": 5010, + "start": 4899, + "end": 4900, "loc": { "start": { "line": 111, @@ -36554,8 +36554,8 @@ "binop": null, "updateContext": null }, - "start": 5010, - "end": 5011, + "start": 4900, + "end": 4901, "loc": { "start": { "line": 111, @@ -36580,8 +36580,8 @@ "binop": null }, "value": "right", - "start": 5025, - "end": 5030, + "start": 4914, + "end": 4919, "loc": { "start": { "line": 112, @@ -36606,8 +36606,8 @@ "binop": null, "updateContext": null }, - "start": 5030, - "end": 5031, + "start": 4919, + "end": 4920, "loc": { "start": { "line": 112, @@ -36632,8 +36632,8 @@ "binop": null }, "value": "setAppearance", - "start": 5031, - "end": 5044, + "start": 4920, + "end": 4933, "loc": { "start": { "line": 112, @@ -36657,8 +36657,8 @@ "postfix": false, "binop": null }, - "start": 5044, - "end": 5045, + "start": 4933, + "end": 4934, "loc": { "start": { "line": 112, @@ -36683,8 +36683,8 @@ "binop": null }, "value": "pInstance", - "start": 5045, - "end": 5054, + "start": 4934, + "end": 4943, "loc": { "start": { "line": 112, @@ -36708,8 +36708,8 @@ "postfix": false, "binop": null }, - "start": 5054, - "end": 5055, + "start": 4943, + "end": 4944, "loc": { "start": { "line": 112, @@ -36734,8 +36734,8 @@ "binop": null, "updateContext": null }, - "start": 5055, - "end": 5056, + "start": 4944, + "end": 4945, "loc": { "start": { "line": 112, @@ -36750,8 +36750,8 @@ { "type": "CommentLine", "value": " Force the renderer to render it, as if its placed offscreen its not rendered.", - "start": 5072, - "end": 5152, + "start": 4959, + "end": 5039, "loc": { "start": { "line": 114, @@ -36776,8 +36776,8 @@ "binop": null }, "value": "left", - "start": 5166, - "end": 5170, + "start": 5052, + "end": 5056, "loc": { "start": { "line": 115, @@ -36802,8 +36802,8 @@ "binop": null, "updateContext": null }, - "start": 5170, - "end": 5171, + "start": 5056, + "end": 5057, "loc": { "start": { "line": 115, @@ -36828,8 +36828,8 @@ "binop": null }, "value": "setPos", - "start": 5171, - "end": 5177, + "start": 5057, + "end": 5063, "loc": { "start": { "line": 115, @@ -36853,8 +36853,8 @@ "postfix": false, "binop": null }, - "start": 5177, - "end": 5178, + "start": 5063, + "end": 5064, "loc": { "start": { "line": 115, @@ -36879,8 +36879,8 @@ "binop": null }, "value": "pX", - "start": 5178, - "end": 5180, + "start": 5064, + "end": 5066, "loc": { "start": { "line": 115, @@ -36905,8 +36905,8 @@ "binop": null, "updateContext": null }, - "start": 5180, - "end": 5181, + "start": 5066, + "end": 5067, "loc": { "start": { "line": 115, @@ -36931,8 +36931,8 @@ "binop": null }, "value": "pY", - "start": 5182, - "end": 5184, + "start": 5068, + "end": 5070, "loc": { "start": { "line": 115, @@ -36957,8 +36957,8 @@ "binop": null, "updateContext": null }, - "start": 5184, - "end": 5185, + "start": 5070, + "end": 5071, "loc": { "start": { "line": 115, @@ -36983,8 +36983,8 @@ "binop": null }, "value": "pMap", - "start": 5186, - "end": 5190, + "start": 5072, + "end": 5076, "loc": { "start": { "line": 115, @@ -37008,8 +37008,8 @@ "postfix": false, "binop": null }, - "start": 5190, - "end": 5191, + "start": 5076, + "end": 5077, "loc": { "start": { "line": 115, @@ -37034,8 +37034,8 @@ "binop": null, "updateContext": null }, - "start": 5191, - "end": 5192, + "start": 5077, + "end": 5078, "loc": { "start": { "line": 115, @@ -37060,8 +37060,8 @@ "binop": null }, "value": "right", - "start": 5206, - "end": 5211, + "start": 5091, + "end": 5096, "loc": { "start": { "line": 116, @@ -37086,8 +37086,8 @@ "binop": null, "updateContext": null }, - "start": 5211, - "end": 5212, + "start": 5096, + "end": 5097, "loc": { "start": { "line": 116, @@ -37112,8 +37112,8 @@ "binop": null }, "value": "setPos", - "start": 5212, - "end": 5218, + "start": 5097, + "end": 5103, "loc": { "start": { "line": 116, @@ -37137,8 +37137,8 @@ "postfix": false, "binop": null }, - "start": 5218, - "end": 5219, + "start": 5103, + "end": 5104, "loc": { "start": { "line": 116, @@ -37163,8 +37163,8 @@ "binop": null }, "value": "pX", - "start": 5219, - "end": 5221, + "start": 5104, + "end": 5106, "loc": { "start": { "line": 116, @@ -37189,8 +37189,8 @@ "binop": null, "updateContext": null }, - "start": 5221, - "end": 5222, + "start": 5106, + "end": 5107, "loc": { "start": { "line": 116, @@ -37215,8 +37215,8 @@ "binop": null }, "value": "pY", - "start": 5223, - "end": 5225, + "start": 5108, + "end": 5110, "loc": { "start": { "line": 116, @@ -37241,8 +37241,8 @@ "binop": null, "updateContext": null }, - "start": 5225, - "end": 5226, + "start": 5110, + "end": 5111, "loc": { "start": { "line": 116, @@ -37267,8 +37267,8 @@ "binop": null }, "value": "pMap", - "start": 5227, - "end": 5231, + "start": 5112, + "end": 5116, "loc": { "start": { "line": 116, @@ -37292,8 +37292,8 @@ "postfix": false, "binop": null }, - "start": 5231, - "end": 5232, + "start": 5116, + "end": 5117, "loc": { "start": { "line": 116, @@ -37318,8 +37318,8 @@ "binop": null, "updateContext": null }, - "start": 5232, - "end": 5233, + "start": 5117, + "end": 5118, "loc": { "start": { "line": 116, @@ -37334,8 +37334,8 @@ { "type": "CommentLine", "value": " Position the left clone", - "start": 5249, - "end": 5275, + "start": 5132, + "end": 5158, "loc": { "start": { "line": 118, @@ -37360,8 +37360,8 @@ "binop": null }, "value": "left", - "start": 5289, - "end": 5293, + "start": 5171, + "end": 5175, "loc": { "start": { "line": 119, @@ -37386,8 +37386,8 @@ "binop": null, "updateContext": null }, - "start": 5293, - "end": 5294, + "start": 5175, + "end": 5176, "loc": { "start": { "line": 119, @@ -37412,8 +37412,8 @@ "binop": null }, "value": "x", - "start": 5294, - "end": 5295, + "start": 5176, + "end": 5177, "loc": { "start": { "line": 119, @@ -37439,8 +37439,8 @@ "updateContext": null }, "value": "=", - "start": 5296, - "end": 5297, + "start": 5178, + "end": 5179, "loc": { "start": { "line": 119, @@ -37465,8 +37465,8 @@ "binop": null }, "value": "pX", - "start": 5298, - "end": 5300, + "start": 5180, + "end": 5182, "loc": { "start": { "line": 119, @@ -37492,8 +37492,8 @@ "updateContext": null }, "value": "-", - "start": 5301, - "end": 5302, + "start": 5183, + "end": 5184, "loc": { "start": { "line": 119, @@ -37518,8 +37518,8 @@ "binop": null }, "value": "pInstance", - "start": 5303, - "end": 5312, + "start": 5185, + "end": 5194, "loc": { "start": { "line": 119, @@ -37544,8 +37544,8 @@ "binop": null, "updateContext": null }, - "start": 5312, - "end": 5313, + "start": 5194, + "end": 5195, "loc": { "start": { "line": 119, @@ -37570,8 +37570,8 @@ "binop": null }, "value": "icon", - "start": 5313, - "end": 5317, + "start": 5195, + "end": 5199, "loc": { "start": { "line": 119, @@ -37596,8 +37596,8 @@ "binop": null, "updateContext": null }, - "start": 5317, - "end": 5318, + "start": 5199, + "end": 5200, "loc": { "start": { "line": 119, @@ -37622,8 +37622,8 @@ "binop": null }, "value": "width", - "start": 5318, - "end": 5323, + "start": 5200, + "end": 5205, "loc": { "start": { "line": 119, @@ -37648,8 +37648,8 @@ "binop": null, "updateContext": null }, - "start": 5323, - "end": 5324, + "start": 5205, + "end": 5206, "loc": { "start": { "line": 119, @@ -37674,8 +37674,8 @@ "binop": null }, "value": "left", - "start": 5338, - "end": 5342, + "start": 5219, + "end": 5223, "loc": { "start": { "line": 120, @@ -37700,8 +37700,8 @@ "binop": null, "updateContext": null }, - "start": 5342, - "end": 5343, + "start": 5223, + "end": 5224, "loc": { "start": { "line": 120, @@ -37726,8 +37726,8 @@ "binop": null }, "value": "y", - "start": 5343, - "end": 5344, + "start": 5224, + "end": 5225, "loc": { "start": { "line": 120, @@ -37753,8 +37753,8 @@ "updateContext": null }, "value": "=", - "start": 5345, - "end": 5346, + "start": 5226, + "end": 5227, "loc": { "start": { "line": 120, @@ -37779,8 +37779,8 @@ "binop": null }, "value": "pY", - "start": 5347, - "end": 5349, + "start": 5228, + "end": 5230, "loc": { "start": { "line": 120, @@ -37805,8 +37805,8 @@ "binop": null, "updateContext": null }, - "start": 5349, - "end": 5350, + "start": 5230, + "end": 5231, "loc": { "start": { "line": 120, @@ -37821,8 +37821,8 @@ { "type": "CommentLine", "value": " Position the right clone", - "start": 5364, - "end": 5391, + "start": 5244, + "end": 5271, "loc": { "start": { "line": 121, @@ -37847,8 +37847,8 @@ "binop": null }, "value": "right", - "start": 5405, - "end": 5410, + "start": 5284, + "end": 5289, "loc": { "start": { "line": 122, @@ -37873,8 +37873,8 @@ "binop": null, "updateContext": null }, - "start": 5410, - "end": 5411, + "start": 5289, + "end": 5290, "loc": { "start": { "line": 122, @@ -37899,8 +37899,8 @@ "binop": null }, "value": "x", - "start": 5411, - "end": 5412, + "start": 5290, + "end": 5291, "loc": { "start": { "line": 122, @@ -37926,8 +37926,8 @@ "updateContext": null }, "value": "=", - "start": 5413, - "end": 5414, + "start": 5292, + "end": 5293, "loc": { "start": { "line": 122, @@ -37952,8 +37952,8 @@ "binop": null }, "value": "pX", - "start": 5415, - "end": 5417, + "start": 5294, + "end": 5296, "loc": { "start": { "line": 122, @@ -37979,8 +37979,8 @@ "updateContext": null }, "value": "+", - "start": 5418, - "end": 5419, + "start": 5297, + "end": 5298, "loc": { "start": { "line": 122, @@ -38005,8 +38005,8 @@ "binop": null }, "value": "pInstance", - "start": 5420, - "end": 5429, + "start": 5299, + "end": 5308, "loc": { "start": { "line": 122, @@ -38031,8 +38031,8 @@ "binop": null, "updateContext": null }, - "start": 5429, - "end": 5430, + "start": 5308, + "end": 5309, "loc": { "start": { "line": 122, @@ -38057,8 +38057,8 @@ "binop": null }, "value": "icon", - "start": 5430, - "end": 5434, + "start": 5309, + "end": 5313, "loc": { "start": { "line": 122, @@ -38083,8 +38083,8 @@ "binop": null, "updateContext": null }, - "start": 5434, - "end": 5435, + "start": 5313, + "end": 5314, "loc": { "start": { "line": 122, @@ -38109,8 +38109,8 @@ "binop": null }, "value": "width", - "start": 5435, - "end": 5440, + "start": 5314, + "end": 5319, "loc": { "start": { "line": 122, @@ -38135,8 +38135,8 @@ "binop": null, "updateContext": null }, - "start": 5440, - "end": 5441, + "start": 5319, + "end": 5320, "loc": { "start": { "line": 122, @@ -38161,8 +38161,8 @@ "binop": null }, "value": "right", - "start": 5455, - "end": 5460, + "start": 5333, + "end": 5338, "loc": { "start": { "line": 123, @@ -38187,8 +38187,8 @@ "binop": null, "updateContext": null }, - "start": 5460, - "end": 5461, + "start": 5338, + "end": 5339, "loc": { "start": { "line": 123, @@ -38213,8 +38213,8 @@ "binop": null }, "value": "y", - "start": 5461, - "end": 5462, + "start": 5339, + "end": 5340, "loc": { "start": { "line": 123, @@ -38240,8 +38240,8 @@ "updateContext": null }, "value": "=", - "start": 5463, - "end": 5464, + "start": 5341, + "end": 5342, "loc": { "start": { "line": 123, @@ -38266,8 +38266,8 @@ "binop": null }, "value": "pY", - "start": 5465, - "end": 5467, + "start": 5343, + "end": 5345, "loc": { "start": { "line": 123, @@ -38292,8 +38292,8 @@ "binop": null, "updateContext": null }, - "start": 5467, - "end": 5468, + "start": 5345, + "end": 5346, "loc": { "start": { "line": 123, @@ -38308,8 +38308,8 @@ { "type": "CommentLine", "value": " Store the clones in a temporary array", - "start": 5482, - "end": 5522, + "start": 5359, + "end": 5399, "loc": { "start": { "line": 124, @@ -38336,8 +38336,8 @@ "updateContext": null }, "value": "const", - "start": 5536, - "end": 5541, + "start": 5412, + "end": 5417, "loc": { "start": { "line": 125, @@ -38362,8 +38362,8 @@ "binop": null }, "value": "children", - "start": 5542, - "end": 5550, + "start": 5418, + "end": 5426, "loc": { "start": { "line": 125, @@ -38389,8 +38389,8 @@ "updateContext": null }, "value": "=", - "start": 5551, - "end": 5552, + "start": 5427, + "end": 5428, "loc": { "start": { "line": 125, @@ -38415,8 +38415,8 @@ "binop": null, "updateContext": null }, - "start": 5553, - "end": 5554, + "start": 5429, + "end": 5430, "loc": { "start": { "line": 125, @@ -38441,8 +38441,8 @@ "binop": null }, "value": "left", - "start": 5554, - "end": 5558, + "start": 5430, + "end": 5434, "loc": { "start": { "line": 125, @@ -38467,8 +38467,8 @@ "binop": null, "updateContext": null }, - "start": 5558, - "end": 5559, + "start": 5434, + "end": 5435, "loc": { "start": { "line": 125, @@ -38493,8 +38493,8 @@ "binop": null }, "value": "right", - "start": 5560, - "end": 5565, + "start": 5436, + "end": 5441, "loc": { "start": { "line": 125, @@ -38519,8 +38519,8 @@ "binop": null, "updateContext": null }, - "start": 5565, - "end": 5566, + "start": 5441, + "end": 5442, "loc": { "start": { "line": 125, @@ -38545,8 +38545,8 @@ "binop": null, "updateContext": null }, - "start": 5566, - "end": 5567, + "start": 5442, + "end": 5443, "loc": { "start": { "line": 125, @@ -38561,8 +38561,8 @@ { "type": "CommentLine", "value": " Loop the clones and store their relative positions to the main instance", - "start": 5581, - "end": 5655, + "start": 5456, + "end": 5530, "loc": { "start": { "line": 126, @@ -38587,8 +38587,8 @@ "binop": null }, "value": "children", - "start": 5669, - "end": 5677, + "start": 5543, + "end": 5551, "loc": { "start": { "line": 127, @@ -38613,8 +38613,8 @@ "binop": null, "updateContext": null }, - "start": 5677, - "end": 5678, + "start": 5551, + "end": 5552, "loc": { "start": { "line": 127, @@ -38639,8 +38639,8 @@ "binop": null }, "value": "forEach", - "start": 5678, - "end": 5685, + "start": 5552, + "end": 5559, "loc": { "start": { "line": 127, @@ -38664,8 +38664,8 @@ "postfix": false, "binop": null }, - "start": 5685, - "end": 5686, + "start": 5559, + "end": 5560, "loc": { "start": { "line": 127, @@ -38689,8 +38689,8 @@ "postfix": false, "binop": null }, - "start": 5686, - "end": 5687, + "start": 5560, + "end": 5561, "loc": { "start": { "line": 127, @@ -38715,8 +38715,8 @@ "binop": null }, "value": "pChild", - "start": 5687, - "end": 5693, + "start": 5561, + "end": 5567, "loc": { "start": { "line": 127, @@ -38740,8 +38740,8 @@ "postfix": false, "binop": null }, - "start": 5693, - "end": 5694, + "start": 5567, + "end": 5568, "loc": { "start": { "line": 127, @@ -38766,8 +38766,8 @@ "binop": null, "updateContext": null }, - "start": 5695, - "end": 5697, + "start": 5569, + "end": 5571, "loc": { "start": { "line": 127, @@ -38791,8 +38791,8 @@ "postfix": false, "binop": null }, - "start": 5698, - "end": 5699, + "start": 5572, + "end": 5573, "loc": { "start": { "line": 127, @@ -38817,8 +38817,8 @@ "binop": null }, "value": "pChild", - "start": 5717, - "end": 5723, + "start": 5590, + "end": 5596, "loc": { "start": { "line": 128, @@ -38843,8 +38843,8 @@ "binop": null, "updateContext": null }, - "start": 5723, - "end": 5724, + "start": 5596, + "end": 5597, "loc": { "start": { "line": 128, @@ -38869,8 +38869,8 @@ "binop": null }, "value": "relativeX", - "start": 5724, - "end": 5733, + "start": 5597, + "end": 5606, "loc": { "start": { "line": 128, @@ -38896,8 +38896,8 @@ "updateContext": null }, "value": "=", - "start": 5734, - "end": 5735, + "start": 5607, + "end": 5608, "loc": { "start": { "line": 128, @@ -38922,8 +38922,8 @@ "binop": null }, "value": "pChild", - "start": 5736, - "end": 5742, + "start": 5609, + "end": 5615, "loc": { "start": { "line": 128, @@ -38948,8 +38948,8 @@ "binop": null, "updateContext": null }, - "start": 5742, - "end": 5743, + "start": 5615, + "end": 5616, "loc": { "start": { "line": 128, @@ -38974,8 +38974,8 @@ "binop": null }, "value": "x", - "start": 5743, - "end": 5744, + "start": 5616, + "end": 5617, "loc": { "start": { "line": 128, @@ -39001,8 +39001,8 @@ "updateContext": null }, "value": "-", - "start": 5745, - "end": 5746, + "start": 5618, + "end": 5619, "loc": { "start": { "line": 128, @@ -39027,8 +39027,8 @@ "binop": null }, "value": "pX", - "start": 5747, - "end": 5749, + "start": 5620, + "end": 5622, "loc": { "start": { "line": 128, @@ -39053,8 +39053,8 @@ "binop": null, "updateContext": null }, - "start": 5749, - "end": 5750, + "start": 5622, + "end": 5623, "loc": { "start": { "line": 128, @@ -39079,8 +39079,8 @@ "binop": null }, "value": "pChild", - "start": 5768, - "end": 5774, + "start": 5640, + "end": 5646, "loc": { "start": { "line": 129, @@ -39105,8 +39105,8 @@ "binop": null, "updateContext": null }, - "start": 5774, - "end": 5775, + "start": 5646, + "end": 5647, "loc": { "start": { "line": 129, @@ -39131,8 +39131,8 @@ "binop": null }, "value": "relativeY", - "start": 5775, - "end": 5784, + "start": 5647, + "end": 5656, "loc": { "start": { "line": 129, @@ -39158,8 +39158,8 @@ "updateContext": null }, "value": "=", - "start": 5785, - "end": 5786, + "start": 5657, + "end": 5658, "loc": { "start": { "line": 129, @@ -39184,8 +39184,8 @@ "binop": null }, "value": "pChild", - "start": 5787, - "end": 5793, + "start": 5659, + "end": 5665, "loc": { "start": { "line": 129, @@ -39210,8 +39210,8 @@ "binop": null, "updateContext": null }, - "start": 5793, - "end": 5794, + "start": 5665, + "end": 5666, "loc": { "start": { "line": 129, @@ -39236,8 +39236,8 @@ "binop": null }, "value": "y", - "start": 5794, - "end": 5795, + "start": 5666, + "end": 5667, "loc": { "start": { "line": 129, @@ -39263,8 +39263,8 @@ "updateContext": null }, "value": "-", - "start": 5796, - "end": 5797, + "start": 5668, + "end": 5669, "loc": { "start": { "line": 129, @@ -39289,8 +39289,8 @@ "binop": null }, "value": "pY", - "start": 5798, - "end": 5800, + "start": 5670, + "end": 5672, "loc": { "start": { "line": 129, @@ -39315,8 +39315,8 @@ "binop": null, "updateContext": null }, - "start": 5800, - "end": 5801, + "start": 5672, + "end": 5673, "loc": { "start": { "line": 129, @@ -39340,8 +39340,8 @@ "postfix": false, "binop": null }, - "start": 5815, - "end": 5816, + "start": 5686, + "end": 5687, "loc": { "start": { "line": 130, @@ -39365,8 +39365,8 @@ "postfix": false, "binop": null }, - "start": 5816, - "end": 5817, + "start": 5687, + "end": 5688, "loc": { "start": { "line": 130, @@ -39391,8 +39391,8 @@ "binop": null, "updateContext": null }, - "start": 5817, - "end": 5818, + "start": 5688, + "end": 5689, "loc": { "start": { "line": 130, @@ -39407,8 +39407,8 @@ { "type": "CommentLine", "value": " Do not mutate event if one is found. Call alongside it.", - "start": 5834, - "end": 5892, + "start": 5703, + "end": 5761, "loc": { "start": { "line": 132, @@ -39435,8 +39435,8 @@ "updateContext": null }, "value": "const", - "start": 5906, - "end": 5911, + "start": 5774, + "end": 5779, "loc": { "start": { "line": 133, @@ -39461,8 +39461,8 @@ "binop": null }, "value": "oldRelocatedEvent", - "start": 5912, - "end": 5929, + "start": 5780, + "end": 5797, "loc": { "start": { "line": 133, @@ -39488,8 +39488,8 @@ "updateContext": null }, "value": "=", - "start": 5930, - "end": 5931, + "start": 5798, + "end": 5799, "loc": { "start": { "line": 133, @@ -39514,8 +39514,8 @@ "binop": null }, "value": "pInstance", - "start": 5932, - "end": 5941, + "start": 5800, + "end": 5809, "loc": { "start": { "line": 133, @@ -39540,8 +39540,8 @@ "binop": null, "updateContext": null }, - "start": 5941, - "end": 5942, + "start": 5809, + "end": 5810, "loc": { "start": { "line": 133, @@ -39566,8 +39566,8 @@ "binop": null }, "value": "onRelocated", - "start": 5942, - "end": 5953, + "start": 5810, + "end": 5821, "loc": { "start": { "line": 133, @@ -39592,8 +39592,8 @@ "binop": null, "updateContext": null }, - "start": 5953, - "end": 5954, + "start": 5821, + "end": 5822, "loc": { "start": { "line": 133, @@ -39608,8 +39608,8 @@ { "type": "CommentLine", "value": " When the main instance moves, move the clones with their relative position to it.", - "start": 5968, - "end": 6052, + "start": 5835, + "end": 5919, "loc": { "start": { "line": 134, @@ -39636,8 +39636,8 @@ "updateContext": null }, "value": "if", - "start": 6066, - "end": 6068, + "start": 5932, + "end": 5934, "loc": { "start": { "line": 135, @@ -39661,8 +39661,8 @@ "postfix": false, "binop": null }, - "start": 6069, - "end": 6070, + "start": 5935, + "end": 5936, "loc": { "start": { "line": 135, @@ -39689,8 +39689,8 @@ "updateContext": null }, "value": "typeof", - "start": 6070, - "end": 6076, + "start": 5936, + "end": 5942, "loc": { "start": { "line": 135, @@ -39715,8 +39715,8 @@ "binop": null }, "value": "oldRelocatedEvent", - "start": 6077, - "end": 6094, + "start": 5943, + "end": 5960, "loc": { "start": { "line": 135, @@ -39742,8 +39742,8 @@ "updateContext": null }, "value": "===", - "start": 6095, - "end": 6098, + "start": 5961, + "end": 5964, "loc": { "start": { "line": 135, @@ -39769,8 +39769,8 @@ "updateContext": null }, "value": "function", - "start": 6099, - "end": 6109, + "start": 5965, + "end": 5975, "loc": { "start": { "line": 135, @@ -39794,8 +39794,8 @@ "postfix": false, "binop": null }, - "start": 6109, - "end": 6110, + "start": 5975, + "end": 5976, "loc": { "start": { "line": 135, @@ -39819,8 +39819,8 @@ "postfix": false, "binop": null }, - "start": 6111, - "end": 6112, + "start": 5977, + "end": 5978, "loc": { "start": { "line": 135, @@ -39845,8 +39845,8 @@ "binop": null }, "value": "pInstance", - "start": 6130, - "end": 6139, + "start": 5995, + "end": 6004, "loc": { "start": { "line": 136, @@ -39871,8 +39871,8 @@ "binop": null, "updateContext": null }, - "start": 6139, - "end": 6140, + "start": 6004, + "end": 6005, "loc": { "start": { "line": 136, @@ -39897,8 +39897,8 @@ "binop": null }, "value": "onRelocated", - "start": 6140, - "end": 6151, + "start": 6005, + "end": 6016, "loc": { "start": { "line": 136, @@ -39924,8 +39924,8 @@ "updateContext": null }, "value": "=", - "start": 6152, - "end": 6153, + "start": 6017, + "end": 6018, "loc": { "start": { "line": 136, @@ -39949,8 +39949,8 @@ "postfix": false, "binop": null }, - "start": 6154, - "end": 6155, + "start": 6019, + "end": 6020, "loc": { "start": { "line": 136, @@ -39975,8 +39975,8 @@ "binop": null }, "value": "pX", - "start": 6155, - "end": 6157, + "start": 6020, + "end": 6022, "loc": { "start": { "line": 136, @@ -40001,8 +40001,8 @@ "binop": null, "updateContext": null }, - "start": 6157, - "end": 6158, + "start": 6022, + "end": 6023, "loc": { "start": { "line": 136, @@ -40027,8 +40027,8 @@ "binop": null }, "value": "pY", - "start": 6159, - "end": 6161, + "start": 6024, + "end": 6026, "loc": { "start": { "line": 136, @@ -40052,8 +40052,8 @@ "postfix": false, "binop": null }, - "start": 6161, - "end": 6162, + "start": 6026, + "end": 6027, "loc": { "start": { "line": 136, @@ -40078,8 +40078,8 @@ "binop": null, "updateContext": null }, - "start": 6163, - "end": 6165, + "start": 6028, + "end": 6030, "loc": { "start": { "line": 136, @@ -40103,8 +40103,8 @@ "postfix": false, "binop": null }, - "start": 6166, - "end": 6167, + "start": 6031, + "end": 6032, "loc": { "start": { "line": 136, @@ -40129,8 +40129,8 @@ "binop": null }, "value": "oldRelocatedEvent", - "start": 6189, - "end": 6206, + "start": 6053, + "end": 6070, "loc": { "start": { "line": 137, @@ -40155,8 +40155,8 @@ "binop": null, "updateContext": null }, - "start": 6206, - "end": 6207, + "start": 6070, + "end": 6071, "loc": { "start": { "line": 137, @@ -40181,8 +40181,8 @@ "binop": null }, "value": "call", - "start": 6207, - "end": 6211, + "start": 6071, + "end": 6075, "loc": { "start": { "line": 137, @@ -40206,8 +40206,8 @@ "postfix": false, "binop": null }, - "start": 6211, - "end": 6212, + "start": 6075, + "end": 6076, "loc": { "start": { "line": 137, @@ -40232,8 +40232,8 @@ "binop": null }, "value": "pInstance", - "start": 6212, - "end": 6221, + "start": 6076, + "end": 6085, "loc": { "start": { "line": 137, @@ -40258,8 +40258,8 @@ "binop": null, "updateContext": null }, - "start": 6221, - "end": 6222, + "start": 6085, + "end": 6086, "loc": { "start": { "line": 137, @@ -40284,8 +40284,8 @@ "binop": null }, "value": "pX", - "start": 6223, - "end": 6225, + "start": 6087, + "end": 6089, "loc": { "start": { "line": 137, @@ -40310,8 +40310,8 @@ "binop": null, "updateContext": null }, - "start": 6225, - "end": 6226, + "start": 6089, + "end": 6090, "loc": { "start": { "line": 137, @@ -40336,8 +40336,8 @@ "binop": null }, "value": "pY", - "start": 6227, - "end": 6229, + "start": 6091, + "end": 6093, "loc": { "start": { "line": 137, @@ -40361,8 +40361,8 @@ "postfix": false, "binop": null }, - "start": 6229, - "end": 6230, + "start": 6093, + "end": 6094, "loc": { "start": { "line": 137, @@ -40387,8 +40387,8 @@ "binop": null, "updateContext": null }, - "start": 6230, - "end": 6231, + "start": 6094, + "end": 6095, "loc": { "start": { "line": 137, @@ -40415,8 +40415,8 @@ "updateContext": null }, "value": "this", - "start": 6253, - "end": 6257, + "start": 6116, + "end": 6120, "loc": { "start": { "line": 138, @@ -40441,8 +40441,8 @@ "binop": null, "updateContext": null }, - "start": 6257, - "end": 6258, + "start": 6120, + "end": 6121, "loc": { "start": { "line": 138, @@ -40467,8 +40467,8 @@ "binop": null }, "value": "handleOnRelocated", - "start": 6258, - "end": 6275, + "start": 6121, + "end": 6138, "loc": { "start": { "line": 138, @@ -40492,8 +40492,8 @@ "postfix": false, "binop": null }, - "start": 6275, - "end": 6276, + "start": 6138, + "end": 6139, "loc": { "start": { "line": 138, @@ -40518,8 +40518,8 @@ "binop": null }, "value": "pInstance", - "start": 6276, - "end": 6285, + "start": 6139, + "end": 6148, "loc": { "start": { "line": 138, @@ -40544,8 +40544,8 @@ "binop": null, "updateContext": null }, - "start": 6285, - "end": 6286, + "start": 6148, + "end": 6149, "loc": { "start": { "line": 138, @@ -40570,8 +40570,8 @@ "binop": null }, "value": "children", - "start": 6287, - "end": 6295, + "start": 6150, + "end": 6158, "loc": { "start": { "line": 138, @@ -40595,8 +40595,8 @@ "postfix": false, "binop": null }, - "start": 6295, - "end": 6296, + "start": 6158, + "end": 6159, "loc": { "start": { "line": 138, @@ -40621,8 +40621,8 @@ "binop": null, "updateContext": null }, - "start": 6296, - "end": 6297, + "start": 6159, + "end": 6160, "loc": { "start": { "line": 138, @@ -40646,8 +40646,8 @@ "postfix": false, "binop": null }, - "start": 6315, - "end": 6316, + "start": 6177, + "end": 6178, "loc": { "start": { "line": 139, @@ -40671,8 +40671,8 @@ "postfix": false, "binop": null }, - "start": 6330, - "end": 6331, + "start": 6191, + "end": 6192, "loc": { "start": { "line": 140, @@ -40699,8 +40699,8 @@ "updateContext": null }, "value": "else", - "start": 6332, - "end": 6336, + "start": 6193, + "end": 6197, "loc": { "start": { "line": 140, @@ -40724,8 +40724,8 @@ "postfix": false, "binop": null }, - "start": 6337, - "end": 6338, + "start": 6198, + "end": 6199, "loc": { "start": { "line": 140, @@ -40750,8 +40750,8 @@ "binop": null }, "value": "pInstance", - "start": 6356, - "end": 6365, + "start": 6216, + "end": 6225, "loc": { "start": { "line": 141, @@ -40776,8 +40776,8 @@ "binop": null, "updateContext": null }, - "start": 6365, - "end": 6366, + "start": 6225, + "end": 6226, "loc": { "start": { "line": 141, @@ -40802,8 +40802,8 @@ "binop": null }, "value": "onRelocated", - "start": 6366, - "end": 6377, + "start": 6226, + "end": 6237, "loc": { "start": { "line": 141, @@ -40829,8 +40829,8 @@ "updateContext": null }, "value": "=", - "start": 6378, - "end": 6379, + "start": 6238, + "end": 6239, "loc": { "start": { "line": 141, @@ -40854,8 +40854,8 @@ "postfix": false, "binop": null }, - "start": 6380, - "end": 6381, + "start": 6240, + "end": 6241, "loc": { "start": { "line": 141, @@ -40880,8 +40880,8 @@ "binop": null }, "value": "pX", - "start": 6381, - "end": 6383, + "start": 6241, + "end": 6243, "loc": { "start": { "line": 141, @@ -40906,8 +40906,8 @@ "binop": null, "updateContext": null }, - "start": 6383, - "end": 6384, + "start": 6243, + "end": 6244, "loc": { "start": { "line": 141, @@ -40932,8 +40932,8 @@ "binop": null }, "value": "pY", - "start": 6385, - "end": 6387, + "start": 6245, + "end": 6247, "loc": { "start": { "line": 141, @@ -40957,8 +40957,8 @@ "postfix": false, "binop": null }, - "start": 6387, - "end": 6388, + "start": 6247, + "end": 6248, "loc": { "start": { "line": 141, @@ -40983,8 +40983,8 @@ "binop": null, "updateContext": null }, - "start": 6389, - "end": 6391, + "start": 6249, + "end": 6251, "loc": { "start": { "line": 141, @@ -41008,8 +41008,8 @@ "postfix": false, "binop": null }, - "start": 6392, - "end": 6393, + "start": 6252, + "end": 6253, "loc": { "start": { "line": 141, @@ -41036,8 +41036,8 @@ "updateContext": null }, "value": "this", - "start": 6415, - "end": 6419, + "start": 6274, + "end": 6278, "loc": { "start": { "line": 142, @@ -41062,8 +41062,8 @@ "binop": null, "updateContext": null }, - "start": 6419, - "end": 6420, + "start": 6278, + "end": 6279, "loc": { "start": { "line": 142, @@ -41088,8 +41088,8 @@ "binop": null }, "value": "handleOnRelocated", - "start": 6420, - "end": 6437, + "start": 6279, + "end": 6296, "loc": { "start": { "line": 142, @@ -41113,8 +41113,8 @@ "postfix": false, "binop": null }, - "start": 6437, - "end": 6438, + "start": 6296, + "end": 6297, "loc": { "start": { "line": 142, @@ -41139,8 +41139,8 @@ "binop": null }, "value": "pInstance", - "start": 6438, - "end": 6447, + "start": 6297, + "end": 6306, "loc": { "start": { "line": 142, @@ -41165,8 +41165,8 @@ "binop": null, "updateContext": null }, - "start": 6447, - "end": 6448, + "start": 6306, + "end": 6307, "loc": { "start": { "line": 142, @@ -41191,8 +41191,8 @@ "binop": null }, "value": "children", - "start": 6449, - "end": 6457, + "start": 6308, + "end": 6316, "loc": { "start": { "line": 142, @@ -41216,8 +41216,8 @@ "postfix": false, "binop": null }, - "start": 6457, - "end": 6458, + "start": 6316, + "end": 6317, "loc": { "start": { "line": 142, @@ -41242,8 +41242,8 @@ "binop": null, "updateContext": null }, - "start": 6458, - "end": 6459, + "start": 6317, + "end": 6318, "loc": { "start": { "line": 142, @@ -41267,8 +41267,8 @@ "postfix": false, "binop": null }, - "start": 6477, - "end": 6478, + "start": 6335, + "end": 6336, "loc": { "start": { "line": 143, @@ -41292,8 +41292,8 @@ "postfix": false, "binop": null }, - "start": 6492, - "end": 6493, + "start": 6349, + "end": 6350, "loc": { "start": { "line": 144, @@ -41317,8 +41317,8 @@ "postfix": false, "binop": null }, - "start": 6503, - "end": 6504, + "start": 6359, + "end": 6360, "loc": { "start": { "line": 145, @@ -41345,8 +41345,8 @@ "updateContext": null }, "value": "const", - "start": 6514, - "end": 6519, + "start": 6369, + "end": 6374, "loc": { "start": { "line": 146, @@ -41371,8 +41371,8 @@ "binop": null }, "value": "viewEye", - "start": 6520, - "end": 6527, + "start": 6375, + "end": 6382, "loc": { "start": { "line": 146, @@ -41398,8 +41398,8 @@ "updateContext": null }, "value": "=", - "start": 6528, - "end": 6529, + "start": 6383, + "end": 6384, "loc": { "start": { "line": 146, @@ -41424,8 +41424,8 @@ "binop": null }, "value": "VYLO", - "start": 6530, - "end": 6534, + "start": 6385, + "end": 6389, "loc": { "start": { "line": 146, @@ -41450,8 +41450,8 @@ "binop": null, "updateContext": null }, - "start": 6534, - "end": 6535, + "start": 6389, + "end": 6390, "loc": { "start": { "line": 146, @@ -41476,8 +41476,8 @@ "binop": null }, "value": "Client", - "start": 6535, - "end": 6541, + "start": 6390, + "end": 6396, "loc": { "start": { "line": 146, @@ -41502,8 +41502,8 @@ "binop": null, "updateContext": null }, - "start": 6541, - "end": 6542, + "start": 6396, + "end": 6397, "loc": { "start": { "line": 146, @@ -41528,8 +41528,8 @@ "binop": null }, "value": "getViewEye", - "start": 6542, - "end": 6552, + "start": 6397, + "end": 6407, "loc": { "start": { "line": 146, @@ -41553,8 +41553,8 @@ "postfix": false, "binop": null }, - "start": 6552, - "end": 6553, + "start": 6407, + "end": 6408, "loc": { "start": { "line": 146, @@ -41578,8 +41578,8 @@ "postfix": false, "binop": null }, - "start": 6553, - "end": 6554, + "start": 6408, + "end": 6409, "loc": { "start": { "line": 146, @@ -41604,8 +41604,8 @@ "binop": null, "updateContext": null }, - "start": 6554, - "end": 6555, + "start": 6409, + "end": 6410, "loc": { "start": { "line": 146, @@ -41632,8 +41632,8 @@ "updateContext": null }, "value": "let", - "start": 6565, - "end": 6568, + "start": 6419, + "end": 6422, "loc": { "start": { "line": 147, @@ -41658,8 +41658,8 @@ "binop": null }, "value": "lastCamX", - "start": 6569, - "end": 6577, + "start": 6423, + "end": 6431, "loc": { "start": { "line": 147, @@ -41685,8 +41685,8 @@ "updateContext": null }, "value": "=", - "start": 6578, - "end": 6579, + "start": 6432, + "end": 6433, "loc": { "start": { "line": 147, @@ -41712,8 +41712,8 @@ "updateContext": null }, "value": 0, - "start": 6580, - "end": 6581, + "start": 6434, + "end": 6435, "loc": { "start": { "line": 147, @@ -41738,8 +41738,8 @@ "binop": null, "updateContext": null }, - "start": 6581, - "end": 6582, + "start": 6435, + "end": 6436, "loc": { "start": { "line": 147, @@ -41766,8 +41766,8 @@ "updateContext": null }, "value": "let", - "start": 6592, - "end": 6595, + "start": 6445, + "end": 6448, "loc": { "start": { "line": 148, @@ -41792,8 +41792,8 @@ "binop": null }, "value": "lastCamY", - "start": 6596, - "end": 6604, + "start": 6449, + "end": 6457, "loc": { "start": { "line": 148, @@ -41819,8 +41819,8 @@ "updateContext": null }, "value": "=", - "start": 6605, - "end": 6606, + "start": 6458, + "end": 6459, "loc": { "start": { "line": 148, @@ -41846,8 +41846,8 @@ "updateContext": null }, "value": 0, - "start": 6607, - "end": 6608, + "start": 6460, + "end": 6461, "loc": { "start": { "line": 148, @@ -41872,8 +41872,8 @@ "binop": null, "updateContext": null }, - "start": 6608, - "end": 6609, + "start": 6461, + "end": 6462, "loc": { "start": { "line": 148, @@ -41900,8 +41900,8 @@ "updateContext": null }, "value": "if", - "start": 6619, - "end": 6621, + "start": 6471, + "end": 6473, "loc": { "start": { "line": 149, @@ -41925,8 +41925,8 @@ "postfix": false, "binop": null }, - "start": 6622, - "end": 6623, + "start": 6474, + "end": 6475, "loc": { "start": { "line": 149, @@ -41951,8 +41951,8 @@ "binop": null }, "value": "viewEye", - "start": 6623, - "end": 6630, + "start": 6475, + "end": 6482, "loc": { "start": { "line": 149, @@ -41976,8 +41976,8 @@ "postfix": false, "binop": null }, - "start": 6630, - "end": 6631, + "start": 6482, + "end": 6483, "loc": { "start": { "line": 149, @@ -42001,8 +42001,8 @@ "postfix": false, "binop": null }, - "start": 6632, - "end": 6633, + "start": 6484, + "end": 6485, "loc": { "start": { "line": 149, @@ -42027,8 +42027,8 @@ "binop": null }, "value": "lastCamX", - "start": 6647, - "end": 6655, + "start": 6498, + "end": 6506, "loc": { "start": { "line": 150, @@ -42054,8 +42054,8 @@ "updateContext": null }, "value": "=", - "start": 6656, - "end": 6657, + "start": 6507, + "end": 6508, "loc": { "start": { "line": 150, @@ -42080,8 +42080,8 @@ "binop": null }, "value": "viewEye", - "start": 6658, - "end": 6665, + "start": 6509, + "end": 6516, "loc": { "start": { "line": 150, @@ -42106,8 +42106,8 @@ "binop": null, "updateContext": null }, - "start": 6665, - "end": 6666, + "start": 6516, + "end": 6517, "loc": { "start": { "line": 150, @@ -42132,8 +42132,8 @@ "binop": null }, "value": "x", - "start": 6666, - "end": 6667, + "start": 6517, + "end": 6518, "loc": { "start": { "line": 150, @@ -42158,8 +42158,8 @@ "binop": null, "updateContext": null }, - "start": 6667, - "end": 6668, + "start": 6518, + "end": 6519, "loc": { "start": { "line": 150, @@ -42184,8 +42184,8 @@ "binop": null }, "value": "lastCamY", - "start": 6682, - "end": 6690, + "start": 6532, + "end": 6540, "loc": { "start": { "line": 151, @@ -42211,8 +42211,8 @@ "updateContext": null }, "value": "=", - "start": 6691, - "end": 6692, + "start": 6541, + "end": 6542, "loc": { "start": { "line": 151, @@ -42237,8 +42237,8 @@ "binop": null }, "value": "viewEye", - "start": 6693, - "end": 6700, + "start": 6543, + "end": 6550, "loc": { "start": { "line": 151, @@ -42263,8 +42263,8 @@ "binop": null, "updateContext": null }, - "start": 6700, - "end": 6701, + "start": 6550, + "end": 6551, "loc": { "start": { "line": 151, @@ -42289,8 +42289,8 @@ "binop": null }, "value": "y", - "start": 6701, - "end": 6702, + "start": 6551, + "end": 6552, "loc": { "start": { "line": 151, @@ -42315,8 +42315,8 @@ "binop": null, "updateContext": null }, - "start": 6702, - "end": 6703, + "start": 6552, + "end": 6553, "loc": { "start": { "line": 151, @@ -42340,8 +42340,8 @@ "postfix": false, "binop": null }, - "start": 6713, - "end": 6714, + "start": 6562, + "end": 6563, "loc": { "start": { "line": 152, @@ -42368,8 +42368,8 @@ "updateContext": null }, "value": "this", - "start": 6724, - "end": 6728, + "start": 6572, + "end": 6576, "loc": { "start": { "line": 153, @@ -42394,8 +42394,8 @@ "binop": null, "updateContext": null }, - "start": 6728, - "end": 6729, + "start": 6576, + "end": 6577, "loc": { "start": { "line": 153, @@ -42420,8 +42420,8 @@ "binop": null }, "value": "lastCamPos", - "start": 6729, - "end": 6739, + "start": 6577, + "end": 6587, "loc": { "start": { "line": 153, @@ -42446,8 +42446,8 @@ "binop": null, "updateContext": null }, - "start": 6739, - "end": 6740, + "start": 6587, + "end": 6588, "loc": { "start": { "line": 153, @@ -42472,8 +42472,8 @@ "binop": null }, "value": "x", - "start": 6740, - "end": 6741, + "start": 6588, + "end": 6589, "loc": { "start": { "line": 153, @@ -42499,8 +42499,8 @@ "updateContext": null }, "value": "=", - "start": 6742, - "end": 6743, + "start": 6590, + "end": 6591, "loc": { "start": { "line": 153, @@ -42525,8 +42525,8 @@ "binop": null }, "value": "lastCamX", - "start": 6744, - "end": 6752, + "start": 6592, + "end": 6600, "loc": { "start": { "line": 153, @@ -42551,8 +42551,8 @@ "binop": null, "updateContext": null }, - "start": 6752, - "end": 6753, + "start": 6600, + "end": 6601, "loc": { "start": { "line": 153, @@ -42579,8 +42579,8 @@ "updateContext": null }, "value": "this", - "start": 6763, - "end": 6767, + "start": 6610, + "end": 6614, "loc": { "start": { "line": 154, @@ -42605,8 +42605,8 @@ "binop": null, "updateContext": null }, - "start": 6767, - "end": 6768, + "start": 6614, + "end": 6615, "loc": { "start": { "line": 154, @@ -42631,8 +42631,8 @@ "binop": null }, "value": "lastCamPos", - "start": 6768, - "end": 6778, + "start": 6615, + "end": 6625, "loc": { "start": { "line": 154, @@ -42657,8 +42657,8 @@ "binop": null, "updateContext": null }, - "start": 6778, - "end": 6779, + "start": 6625, + "end": 6626, "loc": { "start": { "line": 154, @@ -42683,8 +42683,8 @@ "binop": null }, "value": "y", - "start": 6779, - "end": 6780, + "start": 6626, + "end": 6627, "loc": { "start": { "line": 154, @@ -42710,8 +42710,8 @@ "updateContext": null }, "value": "=", - "start": 6781, - "end": 6782, + "start": 6628, + "end": 6629, "loc": { "start": { "line": 154, @@ -42736,8 +42736,8 @@ "binop": null }, "value": "lastCamY", - "start": 6783, - "end": 6791, + "start": 6630, + "end": 6638, "loc": { "start": { "line": 154, @@ -42762,8 +42762,8 @@ "binop": null, "updateContext": null }, - "start": 6791, - "end": 6792, + "start": 6638, + "end": 6639, "loc": { "start": { "line": 154, @@ -42788,8 +42788,8 @@ "binop": null }, "value": "pInstance", - "start": 6802, - "end": 6811, + "start": 6648, + "end": 6657, "loc": { "start": { "line": 155, @@ -42814,8 +42814,8 @@ "binop": null, "updateContext": null }, - "start": 6811, - "end": 6812, + "start": 6657, + "end": 6658, "loc": { "start": { "line": 155, @@ -42840,8 +42840,8 @@ "binop": null }, "value": "setPos", - "start": 6812, - "end": 6818, + "start": 6658, + "end": 6664, "loc": { "start": { "line": 155, @@ -42865,8 +42865,8 @@ "postfix": false, "binop": null }, - "start": 6818, - "end": 6819, + "start": 6664, + "end": 6665, "loc": { "start": { "line": 155, @@ -42891,8 +42891,8 @@ "binop": null }, "value": "pX", - "start": 6819, - "end": 6821, + "start": 6665, + "end": 6667, "loc": { "start": { "line": 155, @@ -42917,8 +42917,8 @@ "binop": null, "updateContext": null }, - "start": 6821, - "end": 6822, + "start": 6667, + "end": 6668, "loc": { "start": { "line": 155, @@ -42943,8 +42943,8 @@ "binop": null }, "value": "pY", - "start": 6823, - "end": 6825, + "start": 6669, + "end": 6671, "loc": { "start": { "line": 155, @@ -42969,8 +42969,8 @@ "binop": null, "updateContext": null }, - "start": 6825, - "end": 6826, + "start": 6671, + "end": 6672, "loc": { "start": { "line": 155, @@ -42995,8 +42995,8 @@ "binop": null }, "value": "pMap", - "start": 6827, - "end": 6831, + "start": 6673, + "end": 6677, "loc": { "start": { "line": 155, @@ -43020,8 +43020,8 @@ "postfix": false, "binop": null }, - "start": 6831, - "end": 6832, + "start": 6677, + "end": 6678, "loc": { "start": { "line": 155, @@ -43046,8 +43046,8 @@ "binop": null, "updateContext": null }, - "start": 6832, - "end": 6833, + "start": 6678, + "end": 6679, "loc": { "start": { "line": 155, @@ -43071,8 +43071,8 @@ "postfix": false, "binop": null }, - "start": 6839, - "end": 6840, + "start": 6684, + "end": 6685, "loc": { "start": { "line": 156, @@ -43086,9 +43086,9 @@ }, { "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, + "value": "*\n * Removes an instance to the parallax system.\n * @param {Object} pInstance - The instance to remove to the parallax system.\n ", + "start": 6690, + "end": 6834, "loc": { "start": { "line": 157, @@ -43113,8 +43113,8 @@ "binop": null }, "value": "remove", - "start": 6999, - "end": 7005, + "start": 6839, + "end": 6845, "loc": { "start": { "line": 161, @@ -43138,8 +43138,8 @@ "postfix": false, "binop": null }, - "start": 7005, - "end": 7006, + "start": 6845, + "end": 6846, "loc": { "start": { "line": 161, @@ -43164,8 +43164,8 @@ "binop": null }, "value": "pInstance", - "start": 7006, - "end": 7015, + "start": 6846, + "end": 6855, "loc": { "start": { "line": 161, @@ -43189,8 +43189,8 @@ "postfix": false, "binop": null }, - "start": 7015, - "end": 7016, + "start": 6855, + "end": 6856, "loc": { "start": { "line": 161, @@ -43214,8 +43214,8 @@ "postfix": false, "binop": null }, - "start": 7017, - "end": 7018, + "start": 6857, + "end": 6858, "loc": { "start": { "line": 161, @@ -43242,8 +43242,8 @@ "updateContext": null }, "value": "if", - "start": 7028, - "end": 7030, + "start": 6867, + "end": 6869, "loc": { "start": { "line": 162, @@ -43267,8 +43267,8 @@ "postfix": false, "binop": null }, - "start": 7031, - "end": 7032, + "start": 6870, + "end": 6871, "loc": { "start": { "line": 162, @@ -43294,8 +43294,8 @@ "updateContext": null }, "value": "!", - "start": 7032, - "end": 7033, + "start": 6871, + "end": 6872, "loc": { "start": { "line": 162, @@ -43320,8 +43320,8 @@ "binop": null }, "value": "pInstance", - "start": 7033, - "end": 7042, + "start": 6872, + "end": 6881, "loc": { "start": { "line": 162, @@ -43345,8 +43345,8 @@ "postfix": false, "binop": null }, - "start": 7042, - "end": 7043, + "start": 6881, + "end": 6882, "loc": { "start": { "line": 162, @@ -43370,8 +43370,8 @@ "postfix": false, "binop": null }, - "start": 7044, - "end": 7045, + "start": 6883, + "end": 6884, "loc": { "start": { "line": 162, @@ -43398,8 +43398,8 @@ "updateContext": null }, "value": "this", - "start": 7059, - "end": 7063, + "start": 6897, + "end": 6901, "loc": { "start": { "line": 163, @@ -43424,8 +43424,8 @@ "binop": null, "updateContext": null }, - "start": 7063, - "end": 7064, + "start": 6901, + "end": 6902, "loc": { "start": { "line": 163, @@ -43450,8 +43450,8 @@ "binop": null }, "value": "logger", - "start": 7064, - "end": 7070, + "start": 6902, + "end": 6908, "loc": { "start": { "line": 163, @@ -43476,8 +43476,8 @@ "binop": null, "updateContext": null }, - "start": 7070, - "end": 7071, + "start": 6908, + "end": 6909, "loc": { "start": { "line": 163, @@ -43502,8 +43502,8 @@ "binop": null }, "value": "prefix", - "start": 7071, - "end": 7077, + "start": 6909, + "end": 6915, "loc": { "start": { "line": 163, @@ -43527,8 +43527,8 @@ "postfix": false, "binop": null }, - "start": 7077, - "end": 7078, + "start": 6915, + "end": 6916, "loc": { "start": { "line": 163, @@ -43554,8 +43554,8 @@ "updateContext": null }, "value": "Parallax-Module", - "start": 7078, - "end": 7095, + "start": 6916, + "end": 6933, "loc": { "start": { "line": 163, @@ -43579,8 +43579,8 @@ "postfix": false, "binop": null }, - "start": 7095, - "end": 7096, + "start": 6933, + "end": 6934, "loc": { "start": { "line": 163, @@ -43605,8 +43605,8 @@ "binop": null, "updateContext": null }, - "start": 7096, - "end": 7097, + "start": 6934, + "end": 6935, "loc": { "start": { "line": 163, @@ -43631,8 +43631,8 @@ "binop": null }, "value": "error", - "start": 7097, - "end": 7102, + "start": 6935, + "end": 6940, "loc": { "start": { "line": 163, @@ -43656,8 +43656,8 @@ "postfix": false, "binop": null }, - "start": 7102, - "end": 7103, + "start": 6940, + "end": 6941, "loc": { "start": { "line": 163, @@ -43683,8 +43683,8 @@ "updateContext": null }, "value": "No pInstance passed!", - "start": 7103, - "end": 7125, + "start": 6941, + "end": 6963, "loc": { "start": { "line": 163, @@ -43708,8 +43708,8 @@ "postfix": false, "binop": null }, - "start": 7125, - "end": 7126, + "start": 6963, + "end": 6964, "loc": { "start": { "line": 163, @@ -43734,8 +43734,8 @@ "binop": null, "updateContext": null }, - "start": 7126, - "end": 7127, + "start": 6964, + "end": 6965, "loc": { "start": { "line": 163, @@ -43762,8 +43762,8 @@ "updateContext": null }, "value": "return", - "start": 7141, - "end": 7147, + "start": 6978, + "end": 6984, "loc": { "start": { "line": 164, @@ -43788,8 +43788,8 @@ "binop": null, "updateContext": null }, - "start": 7147, - "end": 7148, + "start": 6984, + "end": 6985, "loc": { "start": { "line": 164, @@ -43813,8 +43813,8 @@ "postfix": false, "binop": null }, - "start": 7158, - "end": 7159, + "start": 6994, + "end": 6995, "loc": { "start": { "line": 165, @@ -43841,8 +43841,8 @@ "updateContext": null }, "value": "if", - "start": 7171, - "end": 7173, + "start": 7005, + "end": 7007, "loc": { "start": { "line": 167, @@ -43866,8 +43866,8 @@ "postfix": false, "binop": null }, - "start": 7174, - "end": 7175, + "start": 7008, + "end": 7009, "loc": { "start": { "line": 167, @@ -43894,8 +43894,8 @@ "updateContext": null }, "value": "this", - "start": 7175, - "end": 7179, + "start": 7009, + "end": 7013, "loc": { "start": { "line": 167, @@ -43920,8 +43920,8 @@ "binop": null, "updateContext": null }, - "start": 7179, - "end": 7180, + "start": 7013, + "end": 7014, "loc": { "start": { "line": 167, @@ -43946,8 +43946,8 @@ "binop": null }, "value": "instances", - "start": 7180, - "end": 7189, + "start": 7014, + "end": 7023, "loc": { "start": { "line": 167, @@ -43972,8 +43972,8 @@ "binop": null, "updateContext": null }, - "start": 7189, - "end": 7190, + "start": 7023, + "end": 7024, "loc": { "start": { "line": 167, @@ -43998,8 +43998,8 @@ "binop": null }, "value": "has", - "start": 7190, - "end": 7193, + "start": 7024, + "end": 7027, "loc": { "start": { "line": 167, @@ -44023,8 +44023,8 @@ "postfix": false, "binop": null }, - "start": 7193, - "end": 7194, + "start": 7027, + "end": 7028, "loc": { "start": { "line": 167, @@ -44049,8 +44049,8 @@ "binop": null }, "value": "pInstance", - "start": 7194, - "end": 7203, + "start": 7028, + "end": 7037, "loc": { "start": { "line": 167, @@ -44074,8 +44074,8 @@ "postfix": false, "binop": null }, - "start": 7203, - "end": 7204, + "start": 7037, + "end": 7038, "loc": { "start": { "line": 167, @@ -44099,8 +44099,8 @@ "postfix": false, "binop": null }, - "start": 7204, - "end": 7205, + "start": 7038, + "end": 7039, "loc": { "start": { "line": 167, @@ -44124,8 +44124,8 @@ "postfix": false, "binop": null }, - "start": 7206, - "end": 7207, + "start": 7040, + "end": 7041, "loc": { "start": { "line": 167, @@ -44152,8 +44152,8 @@ "updateContext": null }, "value": "this", - "start": 7221, - "end": 7225, + "start": 7054, + "end": 7058, "loc": { "start": { "line": 168, @@ -44178,8 +44178,8 @@ "binop": null, "updateContext": null }, - "start": 7225, - "end": 7226, + "start": 7058, + "end": 7059, "loc": { "start": { "line": 168, @@ -44204,8 +44204,8 @@ "binop": null }, "value": "instances", - "start": 7226, - "end": 7235, + "start": 7059, + "end": 7068, "loc": { "start": { "line": 168, @@ -44230,8 +44230,8 @@ "binop": null, "updateContext": null }, - "start": 7235, - "end": 7236, + "start": 7068, + "end": 7069, "loc": { "start": { "line": 168, @@ -44258,8 +44258,8 @@ "updateContext": null }, "value": "delete", - "start": 7236, - "end": 7242, + "start": 7069, + "end": 7075, "loc": { "start": { "line": 168, @@ -44283,8 +44283,8 @@ "postfix": false, "binop": null }, - "start": 7242, - "end": 7243, + "start": 7075, + "end": 7076, "loc": { "start": { "line": 168, @@ -44309,8 +44309,8 @@ "binop": null }, "value": "pInstance", - "start": 7243, - "end": 7252, + "start": 7076, + "end": 7085, "loc": { "start": { "line": 168, @@ -44334,8 +44334,8 @@ "postfix": false, "binop": null }, - "start": 7252, - "end": 7253, + "start": 7085, + "end": 7086, "loc": { "start": { "line": 168, @@ -44360,8 +44360,8 @@ "binop": null, "updateContext": null }, - "start": 7253, - "end": 7254, + "start": 7086, + "end": 7087, "loc": { "start": { "line": 168, @@ -44388,8 +44388,8 @@ "updateContext": null }, "value": "this", - "start": 7268, - "end": 7272, + "start": 7100, + "end": 7104, "loc": { "start": { "line": 169, @@ -44414,8 +44414,8 @@ "binop": null, "updateContext": null }, - "start": 7272, - "end": 7273, + "start": 7104, + "end": 7105, "loc": { "start": { "line": 169, @@ -44440,8 +44440,8 @@ "binop": null }, "value": "instanceWeakMap", - "start": 7273, - "end": 7288, + "start": 7105, + "end": 7120, "loc": { "start": { "line": 169, @@ -44466,8 +44466,8 @@ "binop": null, "updateContext": null }, - "start": 7288, - "end": 7289, + "start": 7120, + "end": 7121, "loc": { "start": { "line": 169, @@ -44494,8 +44494,8 @@ "updateContext": null }, "value": "delete", - "start": 7289, - "end": 7295, + "start": 7121, + "end": 7127, "loc": { "start": { "line": 169, @@ -44519,8 +44519,8 @@ "postfix": false, "binop": null }, - "start": 7295, - "end": 7296, + "start": 7127, + "end": 7128, "loc": { "start": { "line": 169, @@ -44545,8 +44545,8 @@ "binop": null }, "value": "pInstance", - "start": 7296, - "end": 7305, + "start": 7128, + "end": 7137, "loc": { "start": { "line": 169, @@ -44570,8 +44570,8 @@ "postfix": false, "binop": null }, - "start": 7305, - "end": 7306, + "start": 7137, + "end": 7138, "loc": { "start": { "line": 169, @@ -44596,8 +44596,8 @@ "binop": null, "updateContext": null }, - "start": 7306, - "end": 7307, + "start": 7138, + "end": 7139, "loc": { "start": { "line": 169, @@ -44621,8 +44621,8 @@ "postfix": false, "binop": null }, - "start": 7317, - "end": 7318, + "start": 7148, + "end": 7149, "loc": { "start": { "line": 170, @@ -44646,8 +44646,8 @@ "postfix": false, "binop": null }, - "start": 7324, - "end": 7325, + "start": 7154, + "end": 7155, "loc": { "start": { "line": 171, @@ -44661,9 +44661,9 @@ }, { "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, + "value": "*\n * Updates the parallax system.\n * @param {number} pCameraX - The x position of the camera.\n * @param {number} pCameraY - The y position of the camera.\n ", + "start": 7160, + "end": 7335, "loc": { "start": { "line": 172, @@ -44688,8 +44688,8 @@ "binop": null }, "value": "update", - "start": 7516, - "end": 7522, + "start": 7340, + "end": 7346, "loc": { "start": { "line": 177, @@ -44713,8 +44713,8 @@ "postfix": false, "binop": null }, - "start": 7522, - "end": 7523, + "start": 7346, + "end": 7347, "loc": { "start": { "line": 177, @@ -44739,8 +44739,8 @@ "binop": null }, "value": "pCameraX", - "start": 7523, - "end": 7531, + "start": 7347, + "end": 7355, "loc": { "start": { "line": 177, @@ -44766,8 +44766,8 @@ "updateContext": null }, "value": "=", - "start": 7532, - "end": 7533, + "start": 7356, + "end": 7357, "loc": { "start": { "line": 177, @@ -44793,8 +44793,8 @@ "updateContext": null }, "value": 0, - "start": 7534, - "end": 7535, + "start": 7358, + "end": 7359, "loc": { "start": { "line": 177, @@ -44819,8 +44819,8 @@ "binop": null, "updateContext": null }, - "start": 7535, - "end": 7536, + "start": 7359, + "end": 7360, "loc": { "start": { "line": 177, @@ -44845,8 +44845,8 @@ "binop": null }, "value": "pCameraY", - "start": 7537, - "end": 7545, + "start": 7361, + "end": 7369, "loc": { "start": { "line": 177, @@ -44872,8 +44872,8 @@ "updateContext": null }, "value": "=", - "start": 7546, - "end": 7547, + "start": 7370, + "end": 7371, "loc": { "start": { "line": 177, @@ -44899,8 +44899,8 @@ "updateContext": null }, "value": 0, - "start": 7548, - "end": 7549, + "start": 7372, + "end": 7373, "loc": { "start": { "line": 177, @@ -44924,8 +44924,8 @@ "postfix": false, "binop": null }, - "start": 7549, - "end": 7550, + "start": 7373, + "end": 7374, "loc": { "start": { "line": 177, @@ -44949,8 +44949,8 @@ "postfix": false, "binop": null }, - "start": 7551, - "end": 7552, + "start": 7375, + "end": 7376, "loc": { "start": { "line": 177, @@ -44965,8 +44965,8 @@ { "type": "CommentLine", "value": " The camera's x position.", - "start": 7562, - "end": 7589, + "start": 7385, + "end": 7412, "loc": { "start": { "line": 178, @@ -44993,8 +44993,8 @@ "updateContext": null }, "value": "let", - "start": 7599, - "end": 7602, + "start": 7421, + "end": 7424, "loc": { "start": { "line": 179, @@ -45019,8 +45019,8 @@ "binop": null }, "value": "cameraX", - "start": 7603, - "end": 7610, + "start": 7425, + "end": 7432, "loc": { "start": { "line": 179, @@ -45046,8 +45046,8 @@ "updateContext": null }, "value": "=", - "start": 7611, - "end": 7612, + "start": 7433, + "end": 7434, "loc": { "start": { "line": 179, @@ -45072,8 +45072,8 @@ "binop": null }, "value": "pCameraX", - "start": 7613, - "end": 7621, + "start": 7435, + "end": 7443, "loc": { "start": { "line": 179, @@ -45098,8 +45098,8 @@ "binop": null, "updateContext": null }, - "start": 7621, - "end": 7622, + "start": 7443, + "end": 7444, "loc": { "start": { "line": 179, @@ -45114,8 +45114,8 @@ { "type": "CommentLine", "value": " The camera's x position.", - "start": 7632, - "end": 7659, + "start": 7453, + "end": 7480, "loc": { "start": { "line": 180, @@ -45142,8 +45142,8 @@ "updateContext": null }, "value": "let", - "start": 7669, - "end": 7672, + "start": 7489, + "end": 7492, "loc": { "start": { "line": 181, @@ -45168,8 +45168,8 @@ "binop": null }, "value": "cameraY", - "start": 7673, - "end": 7680, + "start": 7493, + "end": 7500, "loc": { "start": { "line": 181, @@ -45195,8 +45195,8 @@ "updateContext": null }, "value": "=", - "start": 7681, - "end": 7682, + "start": 7501, + "end": 7502, "loc": { "start": { "line": 181, @@ -45221,8 +45221,8 @@ "binop": null }, "value": "pCameraY", - "start": 7683, - "end": 7691, + "start": 7503, + "end": 7511, "loc": { "start": { "line": 181, @@ -45247,8 +45247,8 @@ "binop": null, "updateContext": null }, - "start": 7691, - "end": 7692, + "start": 7511, + "end": 7512, "loc": { "start": { "line": 181, @@ -45275,8 +45275,8 @@ "updateContext": null }, "value": "this", - "start": 7702, - "end": 7706, + "start": 7521, + "end": 7525, "loc": { "start": { "line": 182, @@ -45301,8 +45301,8 @@ "binop": null, "updateContext": null }, - "start": 7706, - "end": 7707, + "start": 7525, + "end": 7526, "loc": { "start": { "line": 182, @@ -45327,8 +45327,8 @@ "binop": null }, "value": "instances", - "start": 7707, - "end": 7716, + "start": 7526, + "end": 7535, "loc": { "start": { "line": 182, @@ -45353,8 +45353,8 @@ "binop": null, "updateContext": null }, - "start": 7716, - "end": 7717, + "start": 7535, + "end": 7536, "loc": { "start": { "line": 182, @@ -45379,8 +45379,8 @@ "binop": null }, "value": "forEach", - "start": 7717, - "end": 7724, + "start": 7536, + "end": 7543, "loc": { "start": { "line": 182, @@ -45404,8 +45404,8 @@ "postfix": false, "binop": null }, - "start": 7724, - "end": 7725, + "start": 7543, + "end": 7544, "loc": { "start": { "line": 182, @@ -45429,8 +45429,8 @@ "postfix": false, "binop": null }, - "start": 7725, - "end": 7726, + "start": 7544, + "end": 7545, "loc": { "start": { "line": 182, @@ -45455,8 +45455,8 @@ "binop": null }, "value": "pInstance", - "start": 7726, - "end": 7735, + "start": 7545, + "end": 7554, "loc": { "start": { "line": 182, @@ -45480,8 +45480,8 @@ "postfix": false, "binop": null }, - "start": 7735, - "end": 7736, + "start": 7554, + "end": 7555, "loc": { "start": { "line": 182, @@ -45506,8 +45506,8 @@ "binop": null, "updateContext": null }, - "start": 7737, - "end": 7739, + "start": 7556, + "end": 7558, "loc": { "start": { "line": 182, @@ -45531,8 +45531,8 @@ "postfix": false, "binop": null }, - "start": 7740, - "end": 7741, + "start": 7559, + "end": 7560, "loc": { "start": { "line": 182, @@ -45559,8 +45559,8 @@ "updateContext": null }, "value": "const", - "start": 7755, - "end": 7760, + "start": 7573, + "end": 7578, "loc": { "start": { "line": 183, @@ -45585,8 +45585,8 @@ "binop": null }, "value": "parallaxInfo", - "start": 7761, - "end": 7773, + "start": 7579, + "end": 7591, "loc": { "start": { "line": 183, @@ -45612,8 +45612,8 @@ "updateContext": null }, "value": "=", - "start": 7774, - "end": 7775, + "start": 7592, + "end": 7593, "loc": { "start": { "line": 183, @@ -45640,8 +45640,8 @@ "updateContext": null }, "value": "this", - "start": 7776, - "end": 7780, + "start": 7594, + "end": 7598, "loc": { "start": { "line": 183, @@ -45666,8 +45666,8 @@ "binop": null, "updateContext": null }, - "start": 7780, - "end": 7781, + "start": 7598, + "end": 7599, "loc": { "start": { "line": 183, @@ -45692,8 +45692,8 @@ "binop": null }, "value": "instanceWeakMap", - "start": 7781, - "end": 7796, + "start": 7599, + "end": 7614, "loc": { "start": { "line": 183, @@ -45718,8 +45718,8 @@ "binop": null, "updateContext": null }, - "start": 7796, - "end": 7797, + "start": 7614, + "end": 7615, "loc": { "start": { "line": 183, @@ -45744,8 +45744,8 @@ "binop": null }, "value": "get", - "start": 7797, - "end": 7800, + "start": 7615, + "end": 7618, "loc": { "start": { "line": 183, @@ -45769,8 +45769,8 @@ "postfix": false, "binop": null }, - "start": 7800, - "end": 7801, + "start": 7618, + "end": 7619, "loc": { "start": { "line": 183, @@ -45795,8 +45795,8 @@ "binop": null }, "value": "pInstance", - "start": 7801, - "end": 7810, + "start": 7619, + "end": 7628, "loc": { "start": { "line": 183, @@ -45820,8 +45820,8 @@ "postfix": false, "binop": null }, - "start": 7810, - "end": 7811, + "start": 7628, + "end": 7629, "loc": { "start": { "line": 183, @@ -45846,8 +45846,8 @@ "binop": null, "updateContext": null }, - "start": 7811, - "end": 7812, + "start": 7629, + "end": 7630, "loc": { "start": { "line": 183, @@ -45862,8 +45862,8 @@ { "type": "CommentLine", "value": " Move the instance with the camera if the parallax is set to 0", - "start": 7828, - "end": 7892, + "start": 7644, + "end": 7708, "loc": { "start": { "line": 185, @@ -45890,8 +45890,8 @@ "updateContext": null }, "value": "const", - "start": 7906, - "end": 7911, + "start": 7721, + "end": 7726, "loc": { "start": { "line": 186, @@ -45916,8 +45916,8 @@ "binop": null }, "value": "isBackgroundX", - "start": 7912, - "end": 7925, + "start": 7727, + "end": 7740, "loc": { "start": { "line": 186, @@ -45943,8 +45943,8 @@ "updateContext": null }, "value": "=", - "start": 7926, - "end": 7927, + "start": 7741, + "end": 7742, "loc": { "start": { "line": 186, @@ -45969,8 +45969,8 @@ "binop": null }, "value": "parallaxInfo", - "start": 7928, - "end": 7940, + "start": 7743, + "end": 7755, "loc": { "start": { "line": 186, @@ -45995,8 +45995,8 @@ "binop": null, "updateContext": null }, - "start": 7940, - "end": 7941, + "start": 7755, + "end": 7756, "loc": { "start": { "line": 186, @@ -46021,8 +46021,8 @@ "binop": null }, "value": "x", - "start": 7941, - "end": 7942, + "start": 7756, + "end": 7757, "loc": { "start": { "line": 186, @@ -46048,8 +46048,8 @@ "updateContext": null }, "value": "===", - "start": 7943, - "end": 7946, + "start": 7758, + "end": 7761, "loc": { "start": { "line": 186, @@ -46075,8 +46075,8 @@ "updateContext": null }, "value": 0, - "start": 7947, - "end": 7948, + "start": 7762, + "end": 7763, "loc": { "start": { "line": 186, @@ -46101,8 +46101,8 @@ "binop": null, "updateContext": null }, - "start": 7948, - "end": 7949, + "start": 7763, + "end": 7764, "loc": { "start": { "line": 186, @@ -46129,8 +46129,8 @@ "updateContext": null }, "value": "const", - "start": 7963, - "end": 7968, + "start": 7777, + "end": 7782, "loc": { "start": { "line": 187, @@ -46155,8 +46155,8 @@ "binop": null }, "value": "isBackgroundY", - "start": 7969, - "end": 7982, + "start": 7783, + "end": 7796, "loc": { "start": { "line": 187, @@ -46182,8 +46182,8 @@ "updateContext": null }, "value": "=", - "start": 7983, - "end": 7984, + "start": 7797, + "end": 7798, "loc": { "start": { "line": 187, @@ -46208,8 +46208,8 @@ "binop": null }, "value": "parallaxInfo", - "start": 7985, - "end": 7997, + "start": 7799, + "end": 7811, "loc": { "start": { "line": 187, @@ -46234,8 +46234,8 @@ "binop": null, "updateContext": null }, - "start": 7997, - "end": 7998, + "start": 7811, + "end": 7812, "loc": { "start": { "line": 187, @@ -46260,8 +46260,8 @@ "binop": null }, "value": "y", - "start": 7998, - "end": 7999, + "start": 7812, + "end": 7813, "loc": { "start": { "line": 187, @@ -46287,8 +46287,8 @@ "updateContext": null }, "value": "===", - "start": 8000, - "end": 8003, + "start": 7814, + "end": 7817, "loc": { "start": { "line": 187, @@ -46314,8 +46314,8 @@ "updateContext": null }, "value": 0, - "start": 8004, - "end": 8005, + "start": 7818, + "end": 7819, "loc": { "start": { "line": 187, @@ -46340,8 +46340,8 @@ "binop": null, "updateContext": null }, - "start": 8005, - "end": 8006, + "start": 7819, + "end": 7820, "loc": { "start": { "line": 187, @@ -46356,8 +46356,8 @@ { "type": "CommentLine", "value": " Position to set the instance to.", - "start": 8022, - "end": 8057, + "start": 7834, + "end": 7869, "loc": { "start": { "line": 189, @@ -46384,8 +46384,8 @@ "updateContext": null }, "value": "let", - "start": 8071, - "end": 8074, + "start": 7882, + "end": 7885, "loc": { "start": { "line": 190, @@ -46410,8 +46410,8 @@ "binop": null }, "value": "x", - "start": 8075, - "end": 8076, + "start": 7886, + "end": 7887, "loc": { "start": { "line": 190, @@ -46436,8 +46436,8 @@ "binop": null, "updateContext": null }, - "start": 8076, - "end": 8077, + "start": 7887, + "end": 7888, "loc": { "start": { "line": 190, @@ -46464,8 +46464,8 @@ "updateContext": null }, "value": "let", - "start": 8091, - "end": 8094, + "start": 7901, + "end": 7904, "loc": { "start": { "line": 191, @@ -46490,8 +46490,8 @@ "binop": null }, "value": "y", - "start": 8095, - "end": 8096, + "start": 7905, + "end": 7906, "loc": { "start": { "line": 191, @@ -46516,8 +46516,8 @@ "binop": null, "updateContext": null }, - "start": 8096, - "end": 8097, + "start": 7906, + "end": 7907, "loc": { "start": { "line": 191, @@ -46544,8 +46544,8 @@ "updateContext": null }, "value": "if", - "start": 8113, - "end": 8115, + "start": 7921, + "end": 7923, "loc": { "start": { "line": 193, @@ -46569,8 +46569,8 @@ "postfix": false, "binop": null }, - "start": 8116, - "end": 8117, + "start": 7924, + "end": 7925, "loc": { "start": { "line": 193, @@ -46595,8 +46595,8 @@ "binop": null }, "value": "isBackgroundX", - "start": 8117, - "end": 8130, + "start": 7925, + "end": 7938, "loc": { "start": { "line": 193, @@ -46620,8 +46620,8 @@ "postfix": false, "binop": null }, - "start": 8130, - "end": 8131, + "start": 7938, + "end": 7939, "loc": { "start": { "line": 193, @@ -46645,8 +46645,8 @@ "postfix": false, "binop": null }, - "start": 8132, - "end": 8133, + "start": 7940, + "end": 7941, "loc": { "start": { "line": 193, @@ -46671,8 +46671,8 @@ "binop": null }, "value": "x", - "start": 8151, - "end": 8152, + "start": 7958, + "end": 7959, "loc": { "start": { "line": 194, @@ -46698,8 +46698,8 @@ "updateContext": null }, "value": "=", - "start": 8153, - "end": 8154, + "start": 7960, + "end": 7961, "loc": { "start": { "line": 194, @@ -46724,8 +46724,8 @@ "binop": null }, "value": "cameraX", - "start": 8155, - "end": 8162, + "start": 7962, + "end": 7969, "loc": { "start": { "line": 194, @@ -46751,8 +46751,8 @@ "updateContext": null }, "value": "-", - "start": 8163, - "end": 8164, + "start": 7970, + "end": 7971, "loc": { "start": { "line": 194, @@ -46777,8 +46777,8 @@ "binop": null }, "value": "pInstance", - "start": 8165, - "end": 8174, + "start": 7972, + "end": 7981, "loc": { "start": { "line": 194, @@ -46803,8 +46803,8 @@ "binop": null, "updateContext": null }, - "start": 8174, - "end": 8175, + "start": 7981, + "end": 7982, "loc": { "start": { "line": 194, @@ -46829,8 +46829,8 @@ "binop": null }, "value": "icon", - "start": 8175, - "end": 8179, + "start": 7982, + "end": 7986, "loc": { "start": { "line": 194, @@ -46855,8 +46855,8 @@ "binop": null, "updateContext": null }, - "start": 8179, - "end": 8180, + "start": 7986, + "end": 7987, "loc": { "start": { "line": 194, @@ -46881,8 +46881,8 @@ "binop": null }, "value": "width", - "start": 8180, - "end": 8185, + "start": 7987, + "end": 7992, "loc": { "start": { "line": 194, @@ -46908,8 +46908,8 @@ "updateContext": null }, "value": "/", - "start": 8186, - "end": 8187, + "start": 7993, + "end": 7994, "loc": { "start": { "line": 194, @@ -46935,8 +46935,8 @@ "updateContext": null }, "value": 2, - "start": 8188, - "end": 8189, + "start": 7995, + "end": 7996, "loc": { "start": { "line": 194, @@ -46961,8 +46961,8 @@ "binop": null, "updateContext": null }, - "start": 8189, - "end": 8190, + "start": 7996, + "end": 7997, "loc": { "start": { "line": 194, @@ -46986,8 +46986,8 @@ "postfix": false, "binop": null }, - "start": 8204, - "end": 8205, + "start": 8010, + "end": 8011, "loc": { "start": { "line": 195, @@ -47014,8 +47014,8 @@ "updateContext": null }, "value": "else", - "start": 8206, - "end": 8210, + "start": 8012, + "end": 8016, "loc": { "start": { "line": 195, @@ -47039,8 +47039,8 @@ "postfix": false, "binop": null }, - "start": 8211, - "end": 8212, + "start": 8017, + "end": 8018, "loc": { "start": { "line": 195, @@ -47067,8 +47067,8 @@ "updateContext": null }, "value": "let", - "start": 8230, - "end": 8233, + "start": 8035, + "end": 8038, "loc": { "start": { "line": 196, @@ -47093,8 +47093,8 @@ "binop": null }, "value": "deltaX", - "start": 8234, - "end": 8240, + "start": 8039, + "end": 8045, "loc": { "start": { "line": 196, @@ -47120,8 +47120,8 @@ "updateContext": null }, "value": "=", - "start": 8241, - "end": 8242, + "start": 8046, + "end": 8047, "loc": { "start": { "line": 196, @@ -47146,8 +47146,8 @@ "binop": null }, "value": "cameraX", - "start": 8243, - "end": 8250, + "start": 8048, + "end": 8055, "loc": { "start": { "line": 196, @@ -47173,8 +47173,8 @@ "updateContext": null }, "value": "-", - "start": 8251, - "end": 8252, + "start": 8056, + "end": 8057, "loc": { "start": { "line": 196, @@ -47201,8 +47201,8 @@ "updateContext": null }, "value": "this", - "start": 8253, - "end": 8257, + "start": 8058, + "end": 8062, "loc": { "start": { "line": 196, @@ -47227,8 +47227,8 @@ "binop": null, "updateContext": null }, - "start": 8257, - "end": 8258, + "start": 8062, + "end": 8063, "loc": { "start": { "line": 196, @@ -47253,8 +47253,8 @@ "binop": null }, "value": "lastCamPos", - "start": 8258, - "end": 8268, + "start": 8063, + "end": 8073, "loc": { "start": { "line": 196, @@ -47279,8 +47279,8 @@ "binop": null, "updateContext": null }, - "start": 8268, - "end": 8269, + "start": 8073, + "end": 8074, "loc": { "start": { "line": 196, @@ -47305,8 +47305,8 @@ "binop": null }, "value": "x", - "start": 8269, - "end": 8270, + "start": 8074, + "end": 8075, "loc": { "start": { "line": 196, @@ -47331,8 +47331,8 @@ "binop": null, "updateContext": null }, - "start": 8270, - "end": 8271, + "start": 8075, + "end": 8076, "loc": { "start": { "line": 196, @@ -47359,8 +47359,8 @@ "updateContext": null }, "value": "let", - "start": 8289, - "end": 8292, + "start": 8093, + "end": 8096, "loc": { "start": { "line": 197, @@ -47385,8 +47385,8 @@ "binop": null }, "value": "distX", - "start": 8293, - "end": 8298, + "start": 8097, + "end": 8102, "loc": { "start": { "line": 197, @@ -47412,8 +47412,8 @@ "updateContext": null }, "value": "=", - "start": 8299, - "end": 8300, + "start": 8103, + "end": 8104, "loc": { "start": { "line": 197, @@ -47438,8 +47438,8 @@ "binop": null }, "value": "deltaX", - "start": 8301, - "end": 8307, + "start": 8105, + "end": 8111, "loc": { "start": { "line": 197, @@ -47465,8 +47465,8 @@ "updateContext": null }, "value": "*", - "start": 8308, - "end": 8309, + "start": 8112, + "end": 8113, "loc": { "start": { "line": 197, @@ -47491,8 +47491,8 @@ "binop": null }, "value": "parallaxInfo", - "start": 8310, - "end": 8322, + "start": 8114, + "end": 8126, "loc": { "start": { "line": 197, @@ -47517,8 +47517,8 @@ "binop": null, "updateContext": null }, - "start": 8322, - "end": 8323, + "start": 8126, + "end": 8127, "loc": { "start": { "line": 197, @@ -47543,8 +47543,8 @@ "binop": null }, "value": "x", - "start": 8323, - "end": 8324, + "start": 8127, + "end": 8128, "loc": { "start": { "line": 197, @@ -47569,8 +47569,8 @@ "binop": null, "updateContext": null }, - "start": 8324, - "end": 8325, + "start": 8128, + "end": 8129, "loc": { "start": { "line": 197, @@ -47595,8 +47595,8 @@ "binop": null }, "value": "x", - "start": 8343, - "end": 8344, + "start": 8146, + "end": 8147, "loc": { "start": { "line": 198, @@ -47622,8 +47622,8 @@ "updateContext": null }, "value": "=", - "start": 8345, - "end": 8346, + "start": 8148, + "end": 8149, "loc": { "start": { "line": 198, @@ -47648,8 +47648,8 @@ "binop": null }, "value": "pInstance", - "start": 8347, - "end": 8356, + "start": 8150, + "end": 8159, "loc": { "start": { "line": 198, @@ -47674,8 +47674,8 @@ "binop": null, "updateContext": null }, - "start": 8356, - "end": 8357, + "start": 8159, + "end": 8160, "loc": { "start": { "line": 198, @@ -47700,8 +47700,8 @@ "binop": null }, "value": "x", - "start": 8357, - "end": 8358, + "start": 8160, + "end": 8161, "loc": { "start": { "line": 198, @@ -47727,8 +47727,8 @@ "updateContext": null }, "value": "+", - "start": 8359, - "end": 8360, + "start": 8162, + "end": 8163, "loc": { "start": { "line": 198, @@ -47753,8 +47753,8 @@ "binop": null }, "value": "distX", - "start": 8361, - "end": 8366, + "start": 8164, + "end": 8169, "loc": { "start": { "line": 198, @@ -47779,8 +47779,8 @@ "binop": null, "updateContext": null }, - "start": 8366, - "end": 8367, + "start": 8169, + "end": 8170, "loc": { "start": { "line": 198, @@ -47804,8 +47804,8 @@ "postfix": false, "binop": null }, - "start": 8381, - "end": 8382, + "start": 8183, + "end": 8184, "loc": { "start": { "line": 199, @@ -47832,8 +47832,8 @@ "updateContext": null }, "value": "if", - "start": 8398, - "end": 8400, + "start": 8198, + "end": 8200, "loc": { "start": { "line": 201, @@ -47857,8 +47857,8 @@ "postfix": false, "binop": null }, - "start": 8401, - "end": 8402, + "start": 8201, + "end": 8202, "loc": { "start": { "line": 201, @@ -47883,8 +47883,8 @@ "binop": null }, "value": "isBackgroundY", - "start": 8402, - "end": 8415, + "start": 8202, + "end": 8215, "loc": { "start": { "line": 201, @@ -47908,8 +47908,8 @@ "postfix": false, "binop": null }, - "start": 8415, - "end": 8416, + "start": 8215, + "end": 8216, "loc": { "start": { "line": 201, @@ -47933,8 +47933,8 @@ "postfix": false, "binop": null }, - "start": 8417, - "end": 8418, + "start": 8217, + "end": 8218, "loc": { "start": { "line": 201, @@ -47959,8 +47959,8 @@ "binop": null }, "value": "y", - "start": 8436, - "end": 8437, + "start": 8235, + "end": 8236, "loc": { "start": { "line": 202, @@ -47986,8 +47986,8 @@ "updateContext": null }, "value": "=", - "start": 8438, - "end": 8439, + "start": 8237, + "end": 8238, "loc": { "start": { "line": 202, @@ -48012,8 +48012,8 @@ "binop": null }, "value": "cameraY", - "start": 8440, - "end": 8447, + "start": 8239, + "end": 8246, "loc": { "start": { "line": 202, @@ -48039,8 +48039,8 @@ "updateContext": null }, "value": "-", - "start": 8448, - "end": 8449, + "start": 8247, + "end": 8248, "loc": { "start": { "line": 202, @@ -48065,8 +48065,8 @@ "binop": null }, "value": "pInstance", - "start": 8450, - "end": 8459, + "start": 8249, + "end": 8258, "loc": { "start": { "line": 202, @@ -48091,8 +48091,8 @@ "binop": null, "updateContext": null }, - "start": 8459, - "end": 8460, + "start": 8258, + "end": 8259, "loc": { "start": { "line": 202, @@ -48117,8 +48117,8 @@ "binop": null }, "value": "icon", - "start": 8460, - "end": 8464, + "start": 8259, + "end": 8263, "loc": { "start": { "line": 202, @@ -48143,8 +48143,8 @@ "binop": null, "updateContext": null }, - "start": 8464, - "end": 8465, + "start": 8263, + "end": 8264, "loc": { "start": { "line": 202, @@ -48169,8 +48169,8 @@ "binop": null }, "value": "height", - "start": 8465, - "end": 8471, + "start": 8264, + "end": 8270, "loc": { "start": { "line": 202, @@ -48196,8 +48196,8 @@ "updateContext": null }, "value": "/", - "start": 8472, - "end": 8473, + "start": 8271, + "end": 8272, "loc": { "start": { "line": 202, @@ -48223,8 +48223,8 @@ "updateContext": null }, "value": 2, - "start": 8474, - "end": 8475, + "start": 8273, + "end": 8274, "loc": { "start": { "line": 202, @@ -48249,8 +48249,8 @@ "binop": null, "updateContext": null }, - "start": 8475, - "end": 8476, + "start": 8274, + "end": 8275, "loc": { "start": { "line": 202, @@ -48274,8 +48274,8 @@ "postfix": false, "binop": null }, - "start": 8490, - "end": 8491, + "start": 8288, + "end": 8289, "loc": { "start": { "line": 203, @@ -48302,8 +48302,8 @@ "updateContext": null }, "value": "else", - "start": 8492, - "end": 8496, + "start": 8290, + "end": 8294, "loc": { "start": { "line": 203, @@ -48327,8 +48327,8 @@ "postfix": false, "binop": null }, - "start": 8497, - "end": 8498, + "start": 8295, + "end": 8296, "loc": { "start": { "line": 203, @@ -48355,8 +48355,8 @@ "updateContext": null }, "value": "let", - "start": 8516, - "end": 8519, + "start": 8313, + "end": 8316, "loc": { "start": { "line": 204, @@ -48381,8 +48381,8 @@ "binop": null }, "value": "deltaY", - "start": 8520, - "end": 8526, + "start": 8317, + "end": 8323, "loc": { "start": { "line": 204, @@ -48408,8 +48408,8 @@ "updateContext": null }, "value": "=", - "start": 8527, - "end": 8528, + "start": 8324, + "end": 8325, "loc": { "start": { "line": 204, @@ -48434,8 +48434,8 @@ "binop": null }, "value": "cameraY", - "start": 8529, - "end": 8536, + "start": 8326, + "end": 8333, "loc": { "start": { "line": 204, @@ -48461,8 +48461,8 @@ "updateContext": null }, "value": "-", - "start": 8537, - "end": 8538, + "start": 8334, + "end": 8335, "loc": { "start": { "line": 204, @@ -48489,8 +48489,8 @@ "updateContext": null }, "value": "this", - "start": 8539, - "end": 8543, + "start": 8336, + "end": 8340, "loc": { "start": { "line": 204, @@ -48515,8 +48515,8 @@ "binop": null, "updateContext": null }, - "start": 8543, - "end": 8544, + "start": 8340, + "end": 8341, "loc": { "start": { "line": 204, @@ -48541,8 +48541,8 @@ "binop": null }, "value": "lastCamPos", - "start": 8544, - "end": 8554, + "start": 8341, + "end": 8351, "loc": { "start": { "line": 204, @@ -48567,8 +48567,8 @@ "binop": null, "updateContext": null }, - "start": 8554, - "end": 8555, + "start": 8351, + "end": 8352, "loc": { "start": { "line": 204, @@ -48593,8 +48593,8 @@ "binop": null }, "value": "y", - "start": 8555, - "end": 8556, + "start": 8352, + "end": 8353, "loc": { "start": { "line": 204, @@ -48619,8 +48619,8 @@ "binop": null, "updateContext": null }, - "start": 8556, - "end": 8557, + "start": 8353, + "end": 8354, "loc": { "start": { "line": 204, @@ -48647,8 +48647,8 @@ "updateContext": null }, "value": "let", - "start": 8575, - "end": 8578, + "start": 8371, + "end": 8374, "loc": { "start": { "line": 205, @@ -48673,8 +48673,8 @@ "binop": null }, "value": "distY", - "start": 8579, - "end": 8584, + "start": 8375, + "end": 8380, "loc": { "start": { "line": 205, @@ -48700,8 +48700,8 @@ "updateContext": null }, "value": "=", - "start": 8585, - "end": 8586, + "start": 8381, + "end": 8382, "loc": { "start": { "line": 205, @@ -48726,8 +48726,8 @@ "binop": null }, "value": "deltaY", - "start": 8587, - "end": 8593, + "start": 8383, + "end": 8389, "loc": { "start": { "line": 205, @@ -48753,8 +48753,8 @@ "updateContext": null }, "value": "*", - "start": 8594, - "end": 8595, + "start": 8390, + "end": 8391, "loc": { "start": { "line": 205, @@ -48779,8 +48779,8 @@ "binop": null }, "value": "parallaxInfo", - "start": 8596, - "end": 8608, + "start": 8392, + "end": 8404, "loc": { "start": { "line": 205, @@ -48805,8 +48805,8 @@ "binop": null, "updateContext": null }, - "start": 8608, - "end": 8609, + "start": 8404, + "end": 8405, "loc": { "start": { "line": 205, @@ -48831,8 +48831,8 @@ "binop": null }, "value": "y", - "start": 8609, - "end": 8610, + "start": 8405, + "end": 8406, "loc": { "start": { "line": 205, @@ -48857,8 +48857,8 @@ "binop": null, "updateContext": null }, - "start": 8610, - "end": 8611, + "start": 8406, + "end": 8407, "loc": { "start": { "line": 205, @@ -48883,8 +48883,8 @@ "binop": null }, "value": "y", - "start": 8629, - "end": 8630, + "start": 8424, + "end": 8425, "loc": { "start": { "line": 206, @@ -48910,8 +48910,8 @@ "updateContext": null }, "value": "=", - "start": 8631, - "end": 8632, + "start": 8426, + "end": 8427, "loc": { "start": { "line": 206, @@ -48936,8 +48936,8 @@ "binop": null }, "value": "pInstance", - "start": 8633, - "end": 8642, + "start": 8428, + "end": 8437, "loc": { "start": { "line": 206, @@ -48962,8 +48962,8 @@ "binop": null, "updateContext": null }, - "start": 8642, - "end": 8643, + "start": 8437, + "end": 8438, "loc": { "start": { "line": 206, @@ -48988,8 +48988,8 @@ "binop": null }, "value": "y", - "start": 8643, - "end": 8644, + "start": 8438, + "end": 8439, "loc": { "start": { "line": 206, @@ -49015,8 +49015,8 @@ "updateContext": null }, "value": "+", - "start": 8645, - "end": 8646, + "start": 8440, + "end": 8441, "loc": { "start": { "line": 206, @@ -49041,8 +49041,8 @@ "binop": null }, "value": "distY", - "start": 8647, - "end": 8652, + "start": 8442, + "end": 8447, "loc": { "start": { "line": 206, @@ -49067,8 +49067,8 @@ "binop": null, "updateContext": null }, - "start": 8652, - "end": 8653, + "start": 8447, + "end": 8448, "loc": { "start": { "line": 206, @@ -49092,8 +49092,8 @@ "postfix": false, "binop": null }, - "start": 8667, - "end": 8668, + "start": 8461, + "end": 8462, "loc": { "start": { "line": 207, @@ -49108,8 +49108,8 @@ { "type": "CommentLine", "value": " Set the position", - "start": 8684, - "end": 8703, + "start": 8476, + "end": 8495, "loc": { "start": { "line": 209, @@ -49134,8 +49134,8 @@ "binop": null }, "value": "pInstance", - "start": 8717, - "end": 8726, + "start": 8508, + "end": 8517, "loc": { "start": { "line": 210, @@ -49160,8 +49160,8 @@ "binop": null, "updateContext": null }, - "start": 8726, - "end": 8727, + "start": 8517, + "end": 8518, "loc": { "start": { "line": 210, @@ -49186,8 +49186,8 @@ "binop": null }, "value": "x", - "start": 8727, - "end": 8728, + "start": 8518, + "end": 8519, "loc": { "start": { "line": 210, @@ -49213,8 +49213,8 @@ "updateContext": null }, "value": "=", - "start": 8729, - "end": 8730, + "start": 8520, + "end": 8521, "loc": { "start": { "line": 210, @@ -49239,8 +49239,8 @@ "binop": null }, "value": "x", - "start": 8731, - "end": 8732, + "start": 8522, + "end": 8523, "loc": { "start": { "line": 210, @@ -49265,8 +49265,8 @@ "binop": null, "updateContext": null }, - "start": 8732, - "end": 8733, + "start": 8523, + "end": 8524, "loc": { "start": { "line": 210, @@ -49291,8 +49291,8 @@ "binop": null }, "value": "pInstance", - "start": 8747, - "end": 8756, + "start": 8537, + "end": 8546, "loc": { "start": { "line": 211, @@ -49317,8 +49317,8 @@ "binop": null, "updateContext": null }, - "start": 8756, - "end": 8757, + "start": 8546, + "end": 8547, "loc": { "start": { "line": 211, @@ -49343,8 +49343,8 @@ "binop": null }, "value": "y", - "start": 8757, - "end": 8758, + "start": 8547, + "end": 8548, "loc": { "start": { "line": 211, @@ -49370,8 +49370,8 @@ "updateContext": null }, "value": "=", - "start": 8759, - "end": 8760, + "start": 8549, + "end": 8550, "loc": { "start": { "line": 211, @@ -49396,8 +49396,8 @@ "binop": null }, "value": "y", - "start": 8761, - "end": 8762, + "start": 8551, + "end": 8552, "loc": { "start": { "line": 211, @@ -49422,8 +49422,8 @@ "binop": null, "updateContext": null }, - "start": 8762, - "end": 8763, + "start": 8552, + "end": 8553, "loc": { "start": { "line": 211, @@ -49438,8 +49438,8 @@ { "type": "CommentLine", "value": " Logic cannot be ran on background instances as they should not loop", - "start": 8791, - "end": 8861, + "start": 8579, + "end": 8649, "loc": { "start": { "line": 213, @@ -49466,8 +49466,8 @@ "updateContext": null }, "value": "if", - "start": 8875, - "end": 8877, + "start": 8662, + "end": 8664, "loc": { "start": { "line": 214, @@ -49491,8 +49491,8 @@ "postfix": false, "binop": null }, - "start": 8878, - "end": 8879, + "start": 8665, + "end": 8666, "loc": { "start": { "line": 214, @@ -49518,8 +49518,8 @@ "updateContext": null }, "value": "!", - "start": 8879, - "end": 8880, + "start": 8666, + "end": 8667, "loc": { "start": { "line": 214, @@ -49544,8 +49544,8 @@ "binop": null }, "value": "isBackgroundX", - "start": 8880, - "end": 8893, + "start": 8667, + "end": 8680, "loc": { "start": { "line": 214, @@ -49571,8 +49571,8 @@ "updateContext": null }, "value": "&&", - "start": 8894, - "end": 8896, + "start": 8681, + "end": 8683, "loc": { "start": { "line": 214, @@ -49598,8 +49598,8 @@ "updateContext": null }, "value": "!", - "start": 8897, - "end": 8898, + "start": 8684, + "end": 8685, "loc": { "start": { "line": 214, @@ -49624,8 +49624,8 @@ "binop": null }, "value": "isBackgroundY", - "start": 8898, - "end": 8911, + "start": 8685, + "end": 8698, "loc": { "start": { "line": 214, @@ -49649,8 +49649,8 @@ "postfix": false, "binop": null }, - "start": 8911, - "end": 8912, + "start": 8698, + "end": 8699, "loc": { "start": { "line": 214, @@ -49674,8 +49674,8 @@ "postfix": false, "binop": null }, - "start": 8913, - "end": 8914, + "start": 8700, + "end": 8701, "loc": { "start": { "line": 214, @@ -49702,8 +49702,8 @@ "updateContext": null }, "value": "if", - "start": 8932, - "end": 8934, + "start": 8718, + "end": 8720, "loc": { "start": { "line": 215, @@ -49727,8 +49727,8 @@ "postfix": false, "binop": null }, - "start": 8935, - "end": 8936, + "start": 8721, + "end": 8722, "loc": { "start": { "line": 215, @@ -49753,8 +49753,8 @@ "binop": null }, "value": "parallaxInfo", - "start": 8936, - "end": 8948, + "start": 8722, + "end": 8734, "loc": { "start": { "line": 215, @@ -49779,8 +49779,8 @@ "binop": null, "updateContext": null }, - "start": 8948, - "end": 8949, + "start": 8734, + "end": 8735, "loc": { "start": { "line": 215, @@ -49805,8 +49805,8 @@ "binop": null }, "value": "loop", - "start": 8949, - "end": 8953, + "start": 8735, + "end": 8739, "loc": { "start": { "line": 215, @@ -49830,8 +49830,8 @@ "postfix": false, "binop": null }, - "start": 8953, - "end": 8954, + "start": 8739, + "end": 8740, "loc": { "start": { "line": 215, @@ -49855,8 +49855,8 @@ "postfix": false, "binop": null }, - "start": 8955, - "end": 8956, + "start": 8741, + "end": 8742, "loc": { "start": { "line": 215, @@ -49871,8 +49871,8 @@ { "type": "CommentLine", "value": " The start pos + total width", - "start": 8978, - "end": 9008, + "start": 8763, + "end": 8793, "loc": { "start": { "line": 216, @@ -49899,8 +49899,8 @@ "updateContext": null }, "value": "const", - "start": 9030, - "end": 9035, + "start": 8814, + "end": 8819, "loc": { "start": { "line": 217, @@ -49925,8 +49925,8 @@ "binop": null }, "value": "rightEnd", - "start": 9036, - "end": 9044, + "start": 8820, + "end": 8828, "loc": { "start": { "line": 217, @@ -49952,8 +49952,8 @@ "updateContext": null }, "value": "=", - "start": 9045, - "end": 9046, + "start": 8829, + "end": 8830, "loc": { "start": { "line": 217, @@ -49978,8 +49978,8 @@ "binop": null }, "value": "pInstance", - "start": 9047, - "end": 9056, + "start": 8831, + "end": 8840, "loc": { "start": { "line": 217, @@ -50004,8 +50004,8 @@ "binop": null, "updateContext": null }, - "start": 9056, - "end": 9057, + "start": 8840, + "end": 8841, "loc": { "start": { "line": 217, @@ -50030,8 +50030,8 @@ "binop": null }, "value": "x", - "start": 9057, - "end": 9058, + "start": 8841, + "end": 8842, "loc": { "start": { "line": 217, @@ -50057,8 +50057,8 @@ "updateContext": null }, "value": "+", - "start": 9059, - "end": 9060, + "start": 8843, + "end": 8844, "loc": { "start": { "line": 217, @@ -50083,8 +50083,8 @@ "binop": null }, "value": "pInstance", - "start": 9061, - "end": 9070, + "start": 8845, + "end": 8854, "loc": { "start": { "line": 217, @@ -50109,8 +50109,8 @@ "binop": null, "updateContext": null }, - "start": 9070, - "end": 9071, + "start": 8854, + "end": 8855, "loc": { "start": { "line": 217, @@ -50135,8 +50135,8 @@ "binop": null }, "value": "icon", - "start": 9071, - "end": 9075, + "start": 8855, + "end": 8859, "loc": { "start": { "line": 217, @@ -50161,8 +50161,8 @@ "binop": null, "updateContext": null }, - "start": 9075, - "end": 9076, + "start": 8859, + "end": 8860, "loc": { "start": { "line": 217, @@ -50187,8 +50187,8 @@ "binop": null }, "value": "width", - "start": 9076, - "end": 9081, + "start": 8860, + "end": 8865, "loc": { "start": { "line": 217, @@ -50213,8 +50213,8 @@ "binop": null, "updateContext": null }, - "start": 9081, - "end": 9082, + "start": 8865, + "end": 8866, "loc": { "start": { "line": 217, @@ -50229,8 +50229,8 @@ { "type": "CommentLine", "value": " The start pos - total width / 2", - "start": 9104, - "end": 9138, + "start": 8887, + "end": 8921, "loc": { "start": { "line": 218, @@ -50257,8 +50257,8 @@ "updateContext": null }, "value": "const", - "start": 9160, - "end": 9165, + "start": 8942, + "end": 8947, "loc": { "start": { "line": 219, @@ -50283,8 +50283,8 @@ "binop": null }, "value": "leftEnd", - "start": 9166, - "end": 9173, + "start": 8948, + "end": 8955, "loc": { "start": { "line": 219, @@ -50310,8 +50310,8 @@ "updateContext": null }, "value": "=", - "start": 9174, - "end": 9175, + "start": 8956, + "end": 8957, "loc": { "start": { "line": 219, @@ -50336,8 +50336,8 @@ "binop": null }, "value": "pInstance", - "start": 9176, - "end": 9185, + "start": 8958, + "end": 8967, "loc": { "start": { "line": 219, @@ -50362,8 +50362,8 @@ "binop": null, "updateContext": null }, - "start": 9185, - "end": 9186, + "start": 8967, + "end": 8968, "loc": { "start": { "line": 219, @@ -50388,8 +50388,8 @@ "binop": null }, "value": "x", - "start": 9186, - "end": 9187, + "start": 8968, + "end": 8969, "loc": { "start": { "line": 219, @@ -50415,8 +50415,8 @@ "updateContext": null }, "value": "-", - "start": 9188, - "end": 9189, + "start": 8970, + "end": 8971, "loc": { "start": { "line": 219, @@ -50441,8 +50441,8 @@ "binop": null }, "value": "pInstance", - "start": 9190, - "end": 9199, + "start": 8972, + "end": 8981, "loc": { "start": { "line": 219, @@ -50467,8 +50467,8 @@ "binop": null, "updateContext": null }, - "start": 9199, - "end": 9200, + "start": 8981, + "end": 8982, "loc": { "start": { "line": 219, @@ -50493,8 +50493,8 @@ "binop": null }, "value": "icon", - "start": 9200, - "end": 9204, + "start": 8982, + "end": 8986, "loc": { "start": { "line": 219, @@ -50519,8 +50519,8 @@ "binop": null, "updateContext": null }, - "start": 9204, - "end": 9205, + "start": 8986, + "end": 8987, "loc": { "start": { "line": 219, @@ -50545,8 +50545,8 @@ "binop": null }, "value": "width", - "start": 9205, - "end": 9210, + "start": 8987, + "end": 8992, "loc": { "start": { "line": 219, @@ -50572,8 +50572,8 @@ "updateContext": null }, "value": "/", - "start": 9211, - "end": 9212, + "start": 8993, + "end": 8994, "loc": { "start": { "line": 219, @@ -50599,8 +50599,8 @@ "updateContext": null }, "value": 6, - "start": 9213, - "end": 9214, + "start": 8995, + "end": 8996, "loc": { "start": { "line": 219, @@ -50625,8 +50625,8 @@ "binop": null, "updateContext": null }, - "start": 9214, - "end": 9215, + "start": 8996, + "end": 8997, "loc": { "start": { "line": 219, @@ -50653,8 +50653,8 @@ "updateContext": null }, "value": "if", - "start": 9237, - "end": 9239, + "start": 9018, + "end": 9020, "loc": { "start": { "line": 220, @@ -50678,8 +50678,8 @@ "postfix": false, "binop": null }, - "start": 9240, - "end": 9241, + "start": 9021, + "end": 9022, "loc": { "start": { "line": 220, @@ -50704,8 +50704,8 @@ "binop": null }, "value": "cameraX", - "start": 9241, - "end": 9248, + "start": 9022, + "end": 9029, "loc": { "start": { "line": 220, @@ -50731,8 +50731,8 @@ "updateContext": null }, "value": ">", - "start": 9249, - "end": 9250, + "start": 9030, + "end": 9031, "loc": { "start": { "line": 220, @@ -50757,8 +50757,8 @@ "binop": null }, "value": "rightEnd", - "start": 9251, - "end": 9259, + "start": 9032, + "end": 9040, "loc": { "start": { "line": 220, @@ -50782,8 +50782,8 @@ "postfix": false, "binop": null }, - "start": 9259, - "end": 9260, + "start": 9040, + "end": 9041, "loc": { "start": { "line": 220, @@ -50807,8 +50807,8 @@ "postfix": false, "binop": null }, - "start": 9261, - "end": 9262, + "start": 9042, + "end": 9043, "loc": { "start": { "line": 220, @@ -50833,8 +50833,8 @@ "binop": null }, "value": "pInstance", - "start": 9288, - "end": 9297, + "start": 9068, + "end": 9077, "loc": { "start": { "line": 221, @@ -50859,8 +50859,8 @@ "binop": null, "updateContext": null }, - "start": 9297, - "end": 9298, + "start": 9077, + "end": 9078, "loc": { "start": { "line": 221, @@ -50885,8 +50885,8 @@ "binop": null }, "value": "x", - "start": 9298, - "end": 9299, + "start": 9078, + "end": 9079, "loc": { "start": { "line": 221, @@ -50912,8 +50912,8 @@ "updateContext": null }, "value": "+=", - "start": 9300, - "end": 9302, + "start": 9080, + "end": 9082, "loc": { "start": { "line": 221, @@ -50938,8 +50938,8 @@ "binop": null }, "value": "pInstance", - "start": 9303, - "end": 9312, + "start": 9083, + "end": 9092, "loc": { "start": { "line": 221, @@ -50964,8 +50964,8 @@ "binop": null, "updateContext": null }, - "start": 9312, - "end": 9313, + "start": 9092, + "end": 9093, "loc": { "start": { "line": 221, @@ -50990,8 +50990,8 @@ "binop": null }, "value": "icon", - "start": 9313, - "end": 9317, + "start": 9093, + "end": 9097, "loc": { "start": { "line": 221, @@ -51016,8 +51016,8 @@ "binop": null, "updateContext": null }, - "start": 9317, - "end": 9318, + "start": 9097, + "end": 9098, "loc": { "start": { "line": 221, @@ -51042,8 +51042,8 @@ "binop": null }, "value": "width", - "start": 9318, - "end": 9323, + "start": 9098, + "end": 9103, "loc": { "start": { "line": 221, @@ -51068,8 +51068,8 @@ "binop": null, "updateContext": null }, - "start": 9323, - "end": 9324, + "start": 9103, + "end": 9104, "loc": { "start": { "line": 221, @@ -51093,8 +51093,8 @@ "postfix": false, "binop": null }, - "start": 9346, - "end": 9347, + "start": 9125, + "end": 9126, "loc": { "start": { "line": 222, @@ -51121,8 +51121,8 @@ "updateContext": null }, "value": "else", - "start": 9348, - "end": 9352, + "start": 9127, + "end": 9131, "loc": { "start": { "line": 222, @@ -51149,8 +51149,8 @@ "updateContext": null }, "value": "if", - "start": 9353, - "end": 9355, + "start": 9132, + "end": 9134, "loc": { "start": { "line": 222, @@ -51174,8 +51174,8 @@ "postfix": false, "binop": null }, - "start": 9356, - "end": 9357, + "start": 9135, + "end": 9136, "loc": { "start": { "line": 222, @@ -51200,8 +51200,8 @@ "binop": null }, "value": "cameraX", - "start": 9357, - "end": 9364, + "start": 9136, + "end": 9143, "loc": { "start": { "line": 222, @@ -51227,8 +51227,8 @@ "updateContext": null }, "value": "<", - "start": 9365, - "end": 9366, + "start": 9144, + "end": 9145, "loc": { "start": { "line": 222, @@ -51253,8 +51253,8 @@ "binop": null }, "value": "leftEnd", - "start": 9367, - "end": 9374, + "start": 9146, + "end": 9153, "loc": { "start": { "line": 222, @@ -51278,8 +51278,8 @@ "postfix": false, "binop": null }, - "start": 9374, - "end": 9375, + "start": 9153, + "end": 9154, "loc": { "start": { "line": 222, @@ -51303,8 +51303,8 @@ "postfix": false, "binop": null }, - "start": 9376, - "end": 9377, + "start": 9155, + "end": 9156, "loc": { "start": { "line": 222, @@ -51329,8 +51329,8 @@ "binop": null }, "value": "pInstance", - "start": 9403, - "end": 9412, + "start": 9181, + "end": 9190, "loc": { "start": { "line": 223, @@ -51355,8 +51355,8 @@ "binop": null, "updateContext": null }, - "start": 9412, - "end": 9413, + "start": 9190, + "end": 9191, "loc": { "start": { "line": 223, @@ -51381,8 +51381,8 @@ "binop": null }, "value": "x", - "start": 9413, - "end": 9414, + "start": 9191, + "end": 9192, "loc": { "start": { "line": 223, @@ -51408,8 +51408,8 @@ "updateContext": null }, "value": "-=", - "start": 9415, - "end": 9417, + "start": 9193, + "end": 9195, "loc": { "start": { "line": 223, @@ -51434,8 +51434,8 @@ "binop": null }, "value": "pInstance", - "start": 9418, - "end": 9427, + "start": 9196, + "end": 9205, "loc": { "start": { "line": 223, @@ -51460,8 +51460,8 @@ "binop": null, "updateContext": null }, - "start": 9427, - "end": 9428, + "start": 9205, + "end": 9206, "loc": { "start": { "line": 223, @@ -51486,8 +51486,8 @@ "binop": null }, "value": "icon", - "start": 9428, - "end": 9432, + "start": 9206, + "end": 9210, "loc": { "start": { "line": 223, @@ -51512,8 +51512,8 @@ "binop": null, "updateContext": null }, - "start": 9432, - "end": 9433, + "start": 9210, + "end": 9211, "loc": { "start": { "line": 223, @@ -51538,8 +51538,8 @@ "binop": null }, "value": "width", - "start": 9433, - "end": 9438, + "start": 9211, + "end": 9216, "loc": { "start": { "line": 223, @@ -51564,8 +51564,8 @@ "binop": null, "updateContext": null }, - "start": 9438, - "end": 9439, + "start": 9216, + "end": 9217, "loc": { "start": { "line": 223, @@ -51589,8 +51589,8 @@ "postfix": false, "binop": null }, - "start": 9461, - "end": 9462, + "start": 9238, + "end": 9239, "loc": { "start": { "line": 224, @@ -51614,8 +51614,8 @@ "postfix": false, "binop": null }, - "start": 9480, - "end": 9481, + "start": 9256, + "end": 9257, "loc": { "start": { "line": 225, @@ -51639,8 +51639,8 @@ "postfix": false, "binop": null }, - "start": 9495, - "end": 9496, + "start": 9270, + "end": 9271, "loc": { "start": { "line": 226, @@ -51664,8 +51664,8 @@ "postfix": false, "binop": null }, - "start": 9506, - "end": 9507, + "start": 9280, + "end": 9281, "loc": { "start": { "line": 227, @@ -51689,8 +51689,8 @@ "postfix": false, "binop": null }, - "start": 9507, - "end": 9508, + "start": 9281, + "end": 9282, "loc": { "start": { "line": 227, @@ -51715,8 +51715,8 @@ "binop": null, "updateContext": null }, - "start": 9508, - "end": 9509, + "start": 9282, + "end": 9283, "loc": { "start": { "line": 227, @@ -51743,8 +51743,8 @@ "updateContext": null }, "value": "this", - "start": 9519, - "end": 9523, + "start": 9292, + "end": 9296, "loc": { "start": { "line": 228, @@ -51769,8 +51769,8 @@ "binop": null, "updateContext": null }, - "start": 9523, - "end": 9524, + "start": 9296, + "end": 9297, "loc": { "start": { "line": 228, @@ -51795,8 +51795,8 @@ "binop": null }, "value": "lastCamPos", - "start": 9524, - "end": 9534, + "start": 9297, + "end": 9307, "loc": { "start": { "line": 228, @@ -51821,8 +51821,8 @@ "binop": null, "updateContext": null }, - "start": 9534, - "end": 9535, + "start": 9307, + "end": 9308, "loc": { "start": { "line": 228, @@ -51847,8 +51847,8 @@ "binop": null }, "value": "x", - "start": 9535, - "end": 9536, + "start": 9308, + "end": 9309, "loc": { "start": { "line": 228, @@ -51874,8 +51874,8 @@ "updateContext": null }, "value": "=", - "start": 9537, - "end": 9538, + "start": 9310, + "end": 9311, "loc": { "start": { "line": 228, @@ -51900,8 +51900,8 @@ "binop": null }, "value": "cameraX", - "start": 9539, - "end": 9546, + "start": 9312, + "end": 9319, "loc": { "start": { "line": 228, @@ -51926,8 +51926,8 @@ "binop": null, "updateContext": null }, - "start": 9546, - "end": 9547, + "start": 9319, + "end": 9320, "loc": { "start": { "line": 228, @@ -51954,8 +51954,8 @@ "updateContext": null }, "value": "this", - "start": 9557, - "end": 9561, + "start": 9329, + "end": 9333, "loc": { "start": { "line": 229, @@ -51980,8 +51980,8 @@ "binop": null, "updateContext": null }, - "start": 9561, - "end": 9562, + "start": 9333, + "end": 9334, "loc": { "start": { "line": 229, @@ -52006,8 +52006,8 @@ "binop": null }, "value": "lastCamPos", - "start": 9562, - "end": 9572, + "start": 9334, + "end": 9344, "loc": { "start": { "line": 229, @@ -52032,8 +52032,8 @@ "binop": null, "updateContext": null }, - "start": 9572, - "end": 9573, + "start": 9344, + "end": 9345, "loc": { "start": { "line": 229, @@ -52058,8 +52058,8 @@ "binop": null }, "value": "y", - "start": 9573, - "end": 9574, + "start": 9345, + "end": 9346, "loc": { "start": { "line": 229, @@ -52085,8 +52085,8 @@ "updateContext": null }, "value": "=", - "start": 9575, - "end": 9576, + "start": 9347, + "end": 9348, "loc": { "start": { "line": 229, @@ -52111,8 +52111,8 @@ "binop": null }, "value": "cameraY", - "start": 9577, - "end": 9584, + "start": 9349, + "end": 9356, "loc": { "start": { "line": 229, @@ -52137,8 +52137,8 @@ "binop": null, "updateContext": null }, - "start": 9584, - "end": 9585, + "start": 9356, + "end": 9357, "loc": { "start": { "line": 229, @@ -52162,8 +52162,8 @@ "postfix": false, "binop": null }, - "start": 9591, - "end": 9592, + "start": 9362, + "end": 9363, "loc": { "start": { "line": 230, @@ -52177,9 +52177,9 @@ }, { "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, + "value": "*\n * Handles the onRelocated event for instances. Moves their children in relativity to their position.\n * @param {Diob | MapObject} pInstance - The instance to handle the event for.\n * @param {MapObject[]} pChildren - An array of children belonging to the instance.\n ", + "start": 9368, + "end": 9656, "loc": { "start": { "line": 231, @@ -52204,8 +52204,8 @@ "binop": null }, "value": "handleOnRelocated", - "start": 9896, - "end": 9913, + "start": 9661, + "end": 9678, "loc": { "start": { "line": 236, @@ -52229,8 +52229,8 @@ "postfix": false, "binop": null }, - "start": 9913, - "end": 9914, + "start": 9678, + "end": 9679, "loc": { "start": { "line": 236, @@ -52255,8 +52255,8 @@ "binop": null }, "value": "pInstance", - "start": 9914, - "end": 9923, + "start": 9679, + "end": 9688, "loc": { "start": { "line": 236, @@ -52281,8 +52281,8 @@ "binop": null, "updateContext": null }, - "start": 9923, - "end": 9924, + "start": 9688, + "end": 9689, "loc": { "start": { "line": 236, @@ -52307,8 +52307,8 @@ "binop": null }, "value": "pChildren", - "start": 9925, - "end": 9934, + "start": 9690, + "end": 9699, "loc": { "start": { "line": 236, @@ -52332,8 +52332,8 @@ "postfix": false, "binop": null }, - "start": 9934, - "end": 9935, + "start": 9699, + "end": 9700, "loc": { "start": { "line": 236, @@ -52357,8 +52357,8 @@ "postfix": false, "binop": null }, - "start": 9936, - "end": 9937, + "start": 9701, + "end": 9702, "loc": { "start": { "line": 236, @@ -52373,8 +52373,8 @@ { "type": "CommentLine", "value": " Update the children's position when the parent moves", - "start": 9947, - "end": 10002, + "start": 9711, + "end": 9766, "loc": { "start": { "line": 237, @@ -52399,8 +52399,8 @@ "binop": null }, "value": "pChildren", - "start": 10012, - "end": 10021, + "start": 9775, + "end": 9784, "loc": { "start": { "line": 238, @@ -52425,8 +52425,8 @@ "binop": null, "updateContext": null }, - "start": 10021, - "end": 10022, + "start": 9784, + "end": 9785, "loc": { "start": { "line": 238, @@ -52451,8 +52451,8 @@ "binop": null }, "value": "forEach", - "start": 10022, - "end": 10029, + "start": 9785, + "end": 9792, "loc": { "start": { "line": 238, @@ -52476,8 +52476,8 @@ "postfix": false, "binop": null }, - "start": 10029, - "end": 10030, + "start": 9792, + "end": 9793, "loc": { "start": { "line": 238, @@ -52501,8 +52501,8 @@ "postfix": false, "binop": null }, - "start": 10030, - "end": 10031, + "start": 9793, + "end": 9794, "loc": { "start": { "line": 238, @@ -52527,8 +52527,8 @@ "binop": null }, "value": "pChild", - "start": 10031, - "end": 10037, + "start": 9794, + "end": 9800, "loc": { "start": { "line": 238, @@ -52552,8 +52552,8 @@ "postfix": false, "binop": null }, - "start": 10037, - "end": 10038, + "start": 9800, + "end": 9801, "loc": { "start": { "line": 238, @@ -52578,8 +52578,8 @@ "binop": null, "updateContext": null }, - "start": 10039, - "end": 10041, + "start": 9802, + "end": 9804, "loc": { "start": { "line": 238, @@ -52603,8 +52603,8 @@ "postfix": false, "binop": null }, - "start": 10042, - "end": 10043, + "start": 9805, + "end": 9806, "loc": { "start": { "line": 238, @@ -52629,8 +52629,8 @@ "binop": null }, "value": "pChild", - "start": 10057, - "end": 10063, + "start": 9819, + "end": 9825, "loc": { "start": { "line": 239, @@ -52655,8 +52655,8 @@ "binop": null, "updateContext": null }, - "start": 10063, - "end": 10064, + "start": 9825, + "end": 9826, "loc": { "start": { "line": 239, @@ -52681,8 +52681,8 @@ "binop": null }, "value": "x", - "start": 10064, - "end": 10065, + "start": 9826, + "end": 9827, "loc": { "start": { "line": 239, @@ -52708,8 +52708,8 @@ "updateContext": null }, "value": "=", - "start": 10066, - "end": 10067, + "start": 9828, + "end": 9829, "loc": { "start": { "line": 239, @@ -52734,8 +52734,8 @@ "binop": null }, "value": "pInstance", - "start": 10068, - "end": 10077, + "start": 9830, + "end": 9839, "loc": { "start": { "line": 239, @@ -52760,8 +52760,8 @@ "binop": null, "updateContext": null }, - "start": 10077, - "end": 10078, + "start": 9839, + "end": 9840, "loc": { "start": { "line": 239, @@ -52786,8 +52786,8 @@ "binop": null }, "value": "x", - "start": 10078, - "end": 10079, + "start": 9840, + "end": 9841, "loc": { "start": { "line": 239, @@ -52813,8 +52813,8 @@ "updateContext": null }, "value": "+", - "start": 10080, - "end": 10081, + "start": 9842, + "end": 9843, "loc": { "start": { "line": 239, @@ -52839,8 +52839,8 @@ "binop": null }, "value": "pChild", - "start": 10082, - "end": 10088, + "start": 9844, + "end": 9850, "loc": { "start": { "line": 239, @@ -52865,8 +52865,8 @@ "binop": null, "updateContext": null }, - "start": 10088, - "end": 10089, + "start": 9850, + "end": 9851, "loc": { "start": { "line": 239, @@ -52891,8 +52891,8 @@ "binop": null }, "value": "relativeX", - "start": 10089, - "end": 10098, + "start": 9851, + "end": 9860, "loc": { "start": { "line": 239, @@ -52917,8 +52917,8 @@ "binop": null, "updateContext": null }, - "start": 10098, - "end": 10099, + "start": 9860, + "end": 9861, "loc": { "start": { "line": 239, @@ -52943,8 +52943,8 @@ "binop": null }, "value": "pChild", - "start": 10113, - "end": 10119, + "start": 9874, + "end": 9880, "loc": { "start": { "line": 240, @@ -52969,8 +52969,8 @@ "binop": null, "updateContext": null }, - "start": 10119, - "end": 10120, + "start": 9880, + "end": 9881, "loc": { "start": { "line": 240, @@ -52995,8 +52995,8 @@ "binop": null }, "value": "y", - "start": 10120, - "end": 10121, + "start": 9881, + "end": 9882, "loc": { "start": { "line": 240, @@ -53022,8 +53022,8 @@ "updateContext": null }, "value": "=", - "start": 10122, - "end": 10123, + "start": 9883, + "end": 9884, "loc": { "start": { "line": 240, @@ -53048,8 +53048,8 @@ "binop": null }, "value": "pInstance", - "start": 10124, - "end": 10133, + "start": 9885, + "end": 9894, "loc": { "start": { "line": 240, @@ -53074,8 +53074,8 @@ "binop": null, "updateContext": null }, - "start": 10133, - "end": 10134, + "start": 9894, + "end": 9895, "loc": { "start": { "line": 240, @@ -53100,8 +53100,8 @@ "binop": null }, "value": "y", - "start": 10134, - "end": 10135, + "start": 9895, + "end": 9896, "loc": { "start": { "line": 240, @@ -53127,8 +53127,8 @@ "updateContext": null }, "value": "+", - "start": 10136, - "end": 10137, + "start": 9897, + "end": 9898, "loc": { "start": { "line": 240, @@ -53153,8 +53153,8 @@ "binop": null }, "value": "pChild", - "start": 10138, - "end": 10144, + "start": 9899, + "end": 9905, "loc": { "start": { "line": 240, @@ -53179,8 +53179,8 @@ "binop": null, "updateContext": null }, - "start": 10144, - "end": 10145, + "start": 9905, + "end": 9906, "loc": { "start": { "line": 240, @@ -53205,8 +53205,8 @@ "binop": null }, "value": "relativeY", - "start": 10145, - "end": 10154, + "start": 9906, + "end": 9915, "loc": { "start": { "line": 240, @@ -53231,8 +53231,8 @@ "binop": null, "updateContext": null }, - "start": 10154, - "end": 10155, + "start": 9915, + "end": 9916, "loc": { "start": { "line": 240, @@ -53257,8 +53257,8 @@ "binop": null }, "value": "pChild", - "start": 10169, - "end": 10175, + "start": 9929, + "end": 9935, "loc": { "start": { "line": 241, @@ -53283,8 +53283,8 @@ "binop": null, "updateContext": null }, - "start": 10175, - "end": 10176, + "start": 9935, + "end": 9936, "loc": { "start": { "line": 241, @@ -53309,8 +53309,8 @@ "binop": null }, "value": "mapName", - "start": 10176, - "end": 10183, + "start": 9936, + "end": 9943, "loc": { "start": { "line": 241, @@ -53336,8 +53336,8 @@ "updateContext": null }, "value": "=", - "start": 10184, - "end": 10185, + "start": 9944, + "end": 9945, "loc": { "start": { "line": 241, @@ -53362,8 +53362,8 @@ "binop": null }, "value": "pInstance", - "start": 10186, - "end": 10195, + "start": 9946, + "end": 9955, "loc": { "start": { "line": 241, @@ -53388,8 +53388,8 @@ "binop": null, "updateContext": null }, - "start": 10195, - "end": 10196, + "start": 9955, + "end": 9956, "loc": { "start": { "line": 241, @@ -53414,8 +53414,8 @@ "binop": null }, "value": "mapName", - "start": 10196, - "end": 10203, + "start": 9956, + "end": 9963, "loc": { "start": { "line": 241, @@ -53440,8 +53440,8 @@ "binop": null, "updateContext": null }, - "start": 10203, - "end": 10204, + "start": 9963, + "end": 9964, "loc": { "start": { "line": 241, @@ -53465,8 +53465,8 @@ "postfix": false, "binop": null }, - "start": 10214, - "end": 10215, + "start": 9973, + "end": 9974, "loc": { "start": { "line": 242, @@ -53490,8 +53490,8 @@ "postfix": false, "binop": null }, - "start": 10215, - "end": 10216, + "start": 9974, + "end": 9975, "loc": { "start": { "line": 242, @@ -53516,8 +53516,8 @@ "binop": null, "updateContext": null }, - "start": 10216, - "end": 10217, + "start": 9975, + "end": 9976, "loc": { "start": { "line": 242, @@ -53541,8 +53541,8 @@ "postfix": false, "binop": null }, - "start": 10223, - "end": 10224, + "start": 9981, + "end": 9982, "loc": { "start": { "line": 243, @@ -53566,8 +53566,8 @@ "postfix": false, "binop": null }, - "start": 10226, - "end": 10227, + "start": 9983, + "end": 9984, "loc": { "start": { "line": 244, @@ -53594,8 +53594,8 @@ "updateContext": null }, "value": "const", - "start": 10231, - "end": 10236, + "start": 9986, + "end": 9991, "loc": { "start": { "line": 246, @@ -53620,8 +53620,8 @@ "binop": null }, "value": "Parallax", - "start": 10237, - "end": 10245, + "start": 9992, + "end": 10000, "loc": { "start": { "line": 246, @@ -53647,8 +53647,8 @@ "updateContext": null }, "value": "=", - "start": 10246, - "end": 10247, + "start": 10001, + "end": 10002, "loc": { "start": { "line": 246, @@ -53675,8 +53675,8 @@ "updateContext": null }, "value": "new", - "start": 10248, - "end": 10251, + "start": 10003, + "end": 10006, "loc": { "start": { "line": 246, @@ -53701,8 +53701,8 @@ "binop": null }, "value": "ParallaxSingleton", - "start": 10252, - "end": 10269, + "start": 10007, + "end": 10024, "loc": { "start": { "line": 246, @@ -53726,8 +53726,8 @@ "postfix": false, "binop": null }, - "start": 10269, - "end": 10270, + "start": 10024, + "end": 10025, "loc": { "start": { "line": 246, @@ -53751,8 +53751,8 @@ "postfix": false, "binop": null }, - "start": 10270, - "end": 10271, + "start": 10025, + "end": 10026, "loc": { "start": { "line": 246, @@ -53777,8 +53777,8 @@ "binop": null, "updateContext": null }, - "start": 10271, - "end": 10272, + "start": 10026, + "end": 10027, "loc": { "start": { "line": 246, @@ -53805,8 +53805,8 @@ "updateContext": null }, "value": "export", - "start": 10274, - "end": 10280, + "start": 10028, + "end": 10034, "loc": { "start": { "line": 247, @@ -53830,8 +53830,8 @@ "postfix": false, "binop": null }, - "start": 10281, - "end": 10282, + "start": 10035, + "end": 10036, "loc": { "start": { "line": 247, @@ -53856,8 +53856,8 @@ "binop": null }, "value": "Parallax", - "start": 10283, - "end": 10291, + "start": 10037, + "end": 10045, "loc": { "start": { "line": 247, @@ -53881,8 +53881,8 @@ "postfix": false, "binop": null }, - "start": 10292, - "end": 10293, + "start": 10046, + "end": 10047, "loc": { "start": { "line": 247, @@ -53907,8 +53907,8 @@ "binop": null, "updateContext": null }, - "start": 10293, - "end": 10294, + "start": 10047, + "end": 10048, "loc": { "start": { "line": 247, @@ -53933,8 +53933,8 @@ "binop": null, "updateContext": null }, - "start": 10294, - "end": 10294, + "start": 10048, + "end": 10048, "loc": { "start": { "line": 247, diff --git a/docs/class/src/layer.mjs~Layer.html b/docs/class/src/layer.mjs~Layer.html index bd2435d..c309ced 100644 --- a/docs/class/src/layer.mjs~Layer.html +++ b/docs/class/src/layer.mjs~Layer.html @@ -481,7 +481,7 @@

- source + source

diff --git a/docs/file/src/layer.mjs.html b/docs/file/src/layer.mjs.html index a77cfca..dc6cb6f 100644 --- a/docs/file/src/layer.mjs.html +++ b/docs/file/src/layer.mjs.html @@ -180,11 +180,16 @@ if (this.config.instances.has(pInstance)) return; this.config.instances.add(pInstance); const config = pConfig - ? pConfig + ? { + x: this.config.horizontalSpeed, + y: this.config.verticalSpeed, + loop: pConfig.loop + } : { x: this.config.horizontalSpeed, y: this.config.verticalSpeed } + pInstance.plane = this.config.plane; Parallax.add(pInstance, config); } /** diff --git a/docs/index.json b/docs/index.json index da87a9a..d3104b3 100644 --- a/docs/index.json +++ b/docs/index.json @@ -567,9 +567,9 @@ "__docId__": 48, "kind": "file", "name": "src/layer.mjs", - "content": "import { Parallax } from './parallax.mjs';\r\n\r\nexport class Layer {\r\n /**\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 */\r\n config = {\r\n // Move the instance with the camera if the parallax is set to 0\r\n horizontalSpeed: 0,\r\n verticalSpeed: 0,\r\n plane: 1,\r\n backgrounds: new Set(),\r\n instances: new Set()\r\n }\r\n /**\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 */\r\n constructor(pConfig) {\r\n this.updateConfigSpeed(pConfig, true);\r\n\r\n if (!typeof pConfig.plane === 'number') {\r\n Parallax.logger.prefix('Parallax-Module').warn('Expected a number for \"pConfig.plane\", but received:', typeof pConfig.plane, '\\n Default plane of \"1\" used.');\r\n } else {\r\n this.config.plane = pConfig.plane;\r\n }\r\n\r\n const instanceConfig = {\r\n x: this.config.horizontalSpeed,\r\n y: this.config.verticalSpeed\r\n }\r\n\r\n if (Array.isArray(pConfig.instances)) {\r\n pConfig.instances.forEach(pInstance => {\r\n pInstance.plane = this.config.plane;\r\n this.add(pInstance, instanceConfig)\r\n });\r\n }\r\n\r\n if (Array.isArray(pConfig.backgrounds)) {\r\n // Backgrounds automatically loop\r\n instanceConfig.loop = true;\r\n pConfig.backgrounds.forEach(pInstance => {\r\n pInstance.plane = this.config.plane;\r\n this.add(pInstance, instanceConfig)\r\n });\r\n }\r\n }\r\n /**\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 */\r\n updateConfigSpeed(pConfig, pUpdateLayerConfigOnly) {\r\n this.updateHorizontalSpeed(pConfig.horizontalSpeed, pUpdateLayerConfigOnly);\r\n this.updateVerticalSpeed(pConfig.verticalSpeed, pUpdateLayerConfigOnly);\r\n }\r\n /**\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 */\r\n updateHorizontalSpeed(pHorizontalSpeed, pUpdateLayerConfigOnly) {\r\n const inValidHorizontal = pHorizontalSpeed && typeof pHorizontalSpeed !== 'number';\r\n\r\n if (inValidHorizontal) {\r\n Parallax.logger.prefix('Parallax-Module').warn('Expected a number for \"pHorizontalSpeed\", but received:', typeof pHorizontalSpeed);\r\n return\r\n }\r\n\r\n this.config.horizontalSpeed = pHorizontalSpeed;\r\n\r\n if (!pUpdateLayerConfigOnly) {\r\n const update = (pInstance) => {\r\n const parallaxInfo = Parallax.instanceWeakMap.get(pInstance);\r\n parallaxInfo.x = pVerticalSpeed;\r\n }\r\n\r\n this.instances.forEach(pInstance => {\r\n update(pInstance);\r\n });\r\n this.backgrounds.forEach(pInstance => {\r\n update(pInstance);\r\n });\r\n }\r\n }\r\n /**\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 */\r\n updateVerticalSpeed(pVerticalSpeed, pUpdateLayerConfigOnly) {\r\n const inValidVertical = pVerticalSpeed && typeof pVerticalSpeed !== 'number';\r\n\r\n if (inValidVertical) {\r\n Parallax.logger.prefix('Parallax-Module').warn('Expected a number for \"pVerticalSpeed\", but received:', typeof pVerticalSpeed);\r\n return\r\n }\r\n\r\n this.config.verticalSpeed = pVerticalSpeed;\r\n\r\n if (!pUpdateLayerConfigOnly) {\r\n const update = (pInstance) => {\r\n const parallaxInfo = Parallax.instanceWeakMap.get(pInstance);\r\n parallaxInfo.y = pVerticalSpeed;\r\n }\r\n\r\n this.instances.forEach(pInstance => {\r\n update(pInstance);\r\n });\r\n this.backgrounds.forEach(pInstance => {\r\n update(pInstance);\r\n });\r\n }\r\n }\r\n /**\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 */\r\n add(pInstance, pConfig) {\r\n if (this.config.instances.has(pInstance)) return;\r\n this.config.instances.add(pInstance);\r\n const config = pConfig \r\n ? pConfig\r\n : {\r\n x: this.config.horizontalSpeed,\r\n y: this.config.verticalSpeed\r\n }\r\n Parallax.add(pInstance, config);\r\n }\r\n /**\r\n * Removes the instance from the parallax layer.\r\n * @param {Diob} pInstance - The instance to remove from the layer.\r\n */\r\n remove(pInstance) {\r\n this.config.instances.delete(pInstance);\r\n Parallax.remove(pInstance);\r\n }\r\n}", + "content": "import { Parallax } from './parallax.mjs';\n\nexport class Layer {\n /**\n * The configuration object of this layer.\n * @private\n * @type {Object}\n * @param {number} horizontalSpeed - The horizontal speed of the layer.\n * @param {number} verticalSpeed - The vertical speed of the layer.\n * @param {number} plane - The plane this parallax layer will occupy.\n * @param {Diob[] | MapObject[]} backgrounds - An array of instances that will serve as the background. These are automatically toggled to repeat.\n * @param {Set} instances - A set of instances currently on the layer.\n */\n config = {\n // Move the instance with the camera if the parallax is set to 0\n horizontalSpeed: 0,\n verticalSpeed: 0,\n plane: 1,\n backgrounds: new Set(),\n instances: new Set()\n }\n /**\n * Creates a new Parallax layer with the supplied configuration.\n * When creating a layer, all instances and backgrounds should already be on the map.\n * @param {Object} pConfig - The configuration of the parallax layer.\n * @prop {number} pConfig.horizontalSpeed - The horizontal speed of the layer.\n * @prop {number} pConfig.verticalSpeed - The vertical speed of the layer. \n * @prop {number} pConfig.plane - The plane this layer will occupy.\n * @param {Diob[] | MapObject[]} pConfig.backgrounds - An array of instances that will serve as the background. These are automatically toggled to repeat.\n * @prop {Diob[] | MapObject[]} pConfig.instances - The instances that will be added to the layer. \n */\n constructor(pConfig) {\n this.updateConfigSpeed(pConfig, true);\n\n if (!typeof pConfig.plane === 'number') {\n Parallax.logger.prefix('Parallax-Module').warn('Expected a number for \"pConfig.plane\", but received:', typeof pConfig.plane, '\\n Default plane of \"1\" used.');\n } else {\n this.config.plane = pConfig.plane;\n }\n\n const instanceConfig = {\n x: this.config.horizontalSpeed,\n y: this.config.verticalSpeed\n }\n\n if (Array.isArray(pConfig.instances)) {\n pConfig.instances.forEach(pInstance => {\n pInstance.plane = this.config.plane;\n this.add(pInstance, instanceConfig)\n });\n }\n\n if (Array.isArray(pConfig.backgrounds)) {\n // Backgrounds automatically loop\n instanceConfig.loop = true;\n pConfig.backgrounds.forEach(pInstance => {\n pInstance.plane = this.config.plane;\n this.add(pInstance, instanceConfig)\n });\n }\n }\n /**\n * Updates the configuration speed of the layer.\n * @param {Object} pConfig - The speed configuration of the parallax layer.\n * @prop {number} pConfig.horizontalSpeed - The horizontal speed of the layer.\n * @prop {number} pConfig.verticalSpeed - The vertical speed of the layer. \n * @param {boolean} pUpdateLayerConfigOnly - If only to update the layer config and not the instance config.\n */\n updateConfigSpeed(pConfig, pUpdateLayerConfigOnly) {\n this.updateHorizontalSpeed(pConfig.horizontalSpeed, pUpdateLayerConfigOnly);\n this.updateVerticalSpeed(pConfig.verticalSpeed, pUpdateLayerConfigOnly);\n }\n /**\n * Updates the horizontal speed of this layer.\n * @param {number} pHorizontalSpeed - The new horizontal speed.\n * @param {boolean} pUpdateLayerConfigOnly - If only to update the layer config and not the instance config.\n */\n updateHorizontalSpeed(pHorizontalSpeed, pUpdateLayerConfigOnly) {\n const inValidHorizontal = pHorizontalSpeed && typeof pHorizontalSpeed !== 'number';\n\n if (inValidHorizontal) {\n Parallax.logger.prefix('Parallax-Module').warn('Expected a number for \"pHorizontalSpeed\", but received:', typeof pHorizontalSpeed);\n return\n }\n\n this.config.horizontalSpeed = pHorizontalSpeed;\n\n if (!pUpdateLayerConfigOnly) {\n const update = (pInstance) => {\n const parallaxInfo = Parallax.instanceWeakMap.get(pInstance);\n parallaxInfo.x = pVerticalSpeed;\n }\n\n this.instances.forEach(pInstance => {\n update(pInstance);\n });\n this.backgrounds.forEach(pInstance => {\n update(pInstance);\n });\n }\n }\n /**\n * Updates the vertical speed of the layer.\n * @param {number} pVerticalSpeed - The new vertical speed. \n * @param {boolean} pUpdateLayerConfigOnly - If only to update the layer config and not the instance config.\n */\n updateVerticalSpeed(pVerticalSpeed, pUpdateLayerConfigOnly) {\n const inValidVertical = pVerticalSpeed && typeof pVerticalSpeed !== 'number';\n\n if (inValidVertical) {\n Parallax.logger.prefix('Parallax-Module').warn('Expected a number for \"pVerticalSpeed\", but received:', typeof pVerticalSpeed);\n return\n }\n\n this.config.verticalSpeed = pVerticalSpeed;\n\n if (!pUpdateLayerConfigOnly) {\n const update = (pInstance) => {\n const parallaxInfo = Parallax.instanceWeakMap.get(pInstance);\n parallaxInfo.y = pVerticalSpeed;\n }\n\n this.instances.forEach(pInstance => {\n update(pInstance);\n });\n this.backgrounds.forEach(pInstance => {\n update(pInstance);\n });\n }\n }\n /**\n * Adds the instance to the parallax layer.\n * When using this API the instance should already be on the map.\n * @param {Diob} pInstance - The instance to add to the layer.\n * @param {Object} pConfig - The personal config of this instance. Akin to the parallax info passed via the `Parallax.add` API.\n * @prop {number} pConfig.x - The horizontal speed of this instance. (This will be ignored and the layer's speed will be used.)\n * @prop {number} pConfig.y - The vertical speed of this instance. (This will be ignored and the layer's speed will be used.)\n * @prop {boolean} pConfig.loop - Whether this instance will be treated as a background and loop seamlessly.\n */\n add(pInstance, pConfig) {\n if (this.config.instances.has(pInstance)) return;\n this.config.instances.add(pInstance);\n const config = pConfig \n ? {\n x: this.config.horizontalSpeed,\n y: this.config.verticalSpeed,\n loop: pConfig.loop\n }\n : {\n x: this.config.horizontalSpeed,\n y: this.config.verticalSpeed\n }\n pInstance.plane = this.config.plane;\n Parallax.add(pInstance, config);\n }\n /**\n * Removes the instance from the parallax layer.\n * @param {Diob} pInstance - The instance to remove from the layer.\n */\n remove(pInstance) {\n this.config.instances.delete(pInstance);\n Parallax.remove(pInstance);\n }\n}", "static": true, - "longname": "C:/Users/jared/Documents/Github/Parallax/src/layer.mjs", + "longname": "/Users/doubleactii/Documents/Github/Parallax/src/layer.mjs", "access": "public", "description": null, "lineNumber": 1 @@ -855,7 +855,7 @@ "longname": "src/layer.mjs~Layer#remove", "access": "public", "description": "Removes the instance from the parallax layer.", - "lineNumber": 155, + "lineNumber": 160, "params": [ { "nullable": null, @@ -874,9 +874,9 @@ "__docId__": 57, "kind": "file", "name": "src/parallax.mjs", - "content": "import { Logger } from './vendor/logger.min.mjs';\r\nimport { Layer } from './layer.mjs'\r\n\r\nclass ParallaxSingleton {\r\n\t/**\r\n\t * The version of the module.\r\n\t */\r\n\tversion = \"VERSION_REPLACE_ME\";\r\n /** The logger module this module uses to log errors / logs\r\n * @private\r\n * @type {Object}\r\n */\r\n logger = new Logger();\r\n /**\r\n * The layer class.\r\n * @type {Layer}\r\n */\r\n Layer = Layer;\r\n /**\r\n * An set of instances that use the parallax system.\r\n * @private\r\n * @type {Set}\r\n */\r\n instances = new Set();\r\n /**\r\n * Weakmap to store info on instances used in this module.\r\n * @private\r\n * @type {WeakMap}\r\n */\r\n instanceWeakMap = new WeakMap();\r\n /**\r\n * The last position of the camera.\r\n * @private\r\n * @type {Object}\r\n */\r\n lastCamPos = { \r\n x: 0,\r\n y: 0\r\n }\r\n /**\r\n * @private\r\n */\r\n\tconstructor() {\r\n this.logger.registerType('Parallax-Module', '#ff6600');\r\n\t}\r\n /**\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 */\r\n add(pInstance, pConfig, pX, pY, pMap) {\r\n if (!pInstance) {\r\n this.logger.prefix('Parallax-Module').error('No pInstance passed!');\r\n return;\r\n }\r\n\r\n if (pConfig instanceof Object) {\r\n if (!this.instances.has(pInstance)) {\r\n const x = typeof pX === 'number' ? pX : pInstance.x;\r\n const y = typeof pY === 'number' ? pY : pInstance.y;\r\n const map = typeof pMap === 'string' ? pMap : pInstance.mapName;\r\n // Clone the parallax object\r\n const parallaxInfo = { ...pConfig };\r\n this.init(pInstance, parallaxInfo, x, y, map);\r\n // Set the parallax info to the instance\r\n this.instanceWeakMap.set(pInstance, parallaxInfo);\r\n this.instances.add(pInstance);\r\n }\r\n } else {\r\n this.logger.prefix('Parallax-Module').error('No pConfig passed or invalid type found!');\r\n }\r\n }\r\n /**\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 */\r\n init(pInstance, pConfig, pX, pY, pMap) {\r\n if (!VYLO) {\r\n this.logger.prefix('Parallax-Module').error('VYLO not found! This module depends on the VYLO object being in the global name space.');\r\n return;\r\n }\r\n\r\n // If this instance is set to loop, then it needs a left and right clone\r\n if (pConfig.loop) {\r\n // Create a left and right clone\r\n const left = VYLO.newDiob('MapObject');\r\n const right = VYLO.newDiob('MapObject');\r\n\r\n // Make the left and right clone particle look the same as the initial instance\r\n left.setAppearance(pInstance);\r\n right.setAppearance(pInstance);\r\n\r\n // Force the renderer to render it, as if its placed offscreen its not rendered.\r\n left.setPos(pX, pY, pMap);\r\n right.setPos(pX, pY, pMap);\r\n\r\n // Position the left clone\r\n left.x = pX - pInstance.icon.width;\r\n left.y = pY;\r\n // Position the right clone\r\n right.x = pX + pInstance.icon.width;\r\n right.y = pY;\r\n // Store the clones in a temporary array\r\n const children = [left, right];\r\n // Loop the clones and store their relative positions to the main instance\r\n children.forEach((pChild) => {\r\n pChild.relativeX = pChild.x - pX;\r\n pChild.relativeY = pChild.y - pY;\r\n });\r\n\r\n // Do not mutate event if one is found. Call alongside it.\r\n const oldRelocatedEvent = pInstance.onRelocated;\r\n // When the main instance moves, move the clones with their relative position to it.\r\n if (typeof oldRelocatedEvent === 'function') {\r\n pInstance.onRelocated = (pX, pY) => {\r\n oldRelocatedEvent.call(pInstance, pX, pY);\r\n this.handleOnRelocated(pInstance, children);\r\n }\r\n } else {\r\n pInstance.onRelocated = (pX, pY) => {\r\n this.handleOnRelocated(pInstance, children);\r\n }\r\n }\r\n }\r\n const viewEye = VYLO.Client.getViewEye();\r\n let lastCamX = 0;\r\n let lastCamY = 0;\r\n if (viewEye) {\r\n lastCamX = viewEye.x;\r\n lastCamY = viewEye.y;\r\n }\r\n this.lastCamPos.x = lastCamX;\r\n this.lastCamPos.y = lastCamY;\r\n pInstance.setPos(pX, pY, pMap);\r\n }\r\n /**\r\n * Removes an instance to the parallax system.\r\n * @param {Object} pInstance - The instance to remove to the parallax system.\r\n */\r\n remove(pInstance) {\r\n if (!pInstance) {\r\n this.logger.prefix('Parallax-Module').error('No pInstance passed!');\r\n return;\r\n }\r\n\r\n if (this.instances.has(pInstance)) {\r\n this.instances.delete(pInstance);\r\n this.instanceWeakMap.delete(pInstance);\r\n }\r\n }\r\n /**\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 */\r\n update(pCameraX = 0, pCameraY = 0) {\r\n // The camera's x position.\r\n let cameraX = pCameraX;\r\n // The camera's x position.\r\n let cameraY = pCameraY;\r\n this.instances.forEach((pInstance) => {\r\n const parallaxInfo = this.instanceWeakMap.get(pInstance);\r\n\r\n // Move the instance with the camera if the parallax is set to 0\r\n const isBackgroundX = parallaxInfo.x === 0;\r\n const isBackgroundY = parallaxInfo.y === 0;\r\n\r\n // Position to set the instance to.\r\n let x;\r\n let y;\r\n\r\n if (isBackgroundX) {\r\n x = cameraX - pInstance.icon.width / 2;\r\n } else {\r\n let deltaX = cameraX - this.lastCamPos.x;\r\n let distX = deltaX * parallaxInfo.x;\r\n x = pInstance.x + distX;\r\n }\r\n\r\n if (isBackgroundY) {\r\n y = cameraY - pInstance.icon.height / 2;\r\n } else {\r\n let deltaY = cameraY - this.lastCamPos.y;\r\n let distY = deltaY * parallaxInfo.y;\r\n y = pInstance.y + distY;\r\n }\r\n\r\n // Set the position\r\n pInstance.x = x;\r\n pInstance.y = y;\r\n \r\n // Logic cannot be ran on background instances as they should not loop\r\n if (!isBackgroundX && !isBackgroundY) {\r\n if (parallaxInfo.loop) {\r\n // The start pos + total width\r\n const rightEnd = pInstance.x + pInstance.icon.width;\r\n // The start pos - total width / 2\r\n const leftEnd = pInstance.x - pInstance.icon.width / 6;\r\n if (cameraX > rightEnd) {\r\n pInstance.x += pInstance.icon.width;\r\n } else if (cameraX < leftEnd) {\r\n pInstance.x -= pInstance.icon.width;\r\n }\r\n }\r\n }\r\n });\r\n this.lastCamPos.x = cameraX;\r\n this.lastCamPos.y = cameraY;\r\n }\r\n /**\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 */\r\n handleOnRelocated(pInstance, pChildren) {\r\n // Update the children's position when the parent moves\r\n pChildren.forEach((pChild) => {\r\n pChild.x = pInstance.x + pChild.relativeX;\r\n pChild.y = pInstance.y + pChild.relativeY;\r\n pChild.mapName = pInstance.mapName;\r\n });\r\n }\r\n}\r\n\r\nconst Parallax = new ParallaxSingleton();\r\nexport { Parallax };", + "content": "import { Logger } from './vendor/logger.min.mjs';\nimport { Layer } from './layer.mjs'\n\nclass ParallaxSingleton {\n\t/**\n\t * The version of the module.\n\t */\n\tversion = \"VERSION_REPLACE_ME\";\n /** The logger module this module uses to log errors / logs\n * @private\n * @type {Object}\n */\n logger = new Logger();\n /**\n * The layer class.\n * @type {Layer}\n */\n Layer = Layer;\n /**\n * An set of instances that use the parallax system.\n * @private\n * @type {Set}\n */\n instances = new Set();\n /**\n * Weakmap to store info on instances used in this module.\n * @private\n * @type {WeakMap}\n */\n instanceWeakMap = new WeakMap();\n /**\n * The last position of the camera.\n * @private\n * @type {Object}\n */\n lastCamPos = { \n x: 0,\n y: 0\n }\n /**\n * @private\n */\n\tconstructor() {\n this.logger.registerType('Parallax-Module', '#ff6600');\n\t}\n /**\n * Adds an instance to the parallax system.\n * Call this first and then add your instance to the map.\n * @param {Object} pInstance - The instance to add to the parallax system.\n * @param {Object} pConfig - The parallax info that tells this module how to control this instance.\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.\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.\n * @prop {boolean} pConfig.loop - Whether this instance will loop endlessly.\n * @param {number} [pX] - The x position this instance will start at.\n * @param {number} [pY] - The y position this instance will start at.\n * @param {string} [pMap] - The map this instance will start at.\n * \n * ## The following is how the speed of the parallax multipliers are factored in. \n (x | y) < 1 = faster behind the camera eg: (-> Player goes this way = Instance goes this way <-) \n (x | y) > 1 faster against the camera eg: (-> Player goes this way = Instance goes this way ->) \n (x | y) = 0 = static to the camera eg: (-> Player goes this way = Instance does nothing, and moves with the camera) \n (x | y) = 1 = moves with the camera eg: (-> Player goes this way = Instance goes this way -> at position of camera) \n */\n add(pInstance, pConfig, pX, pY, pMap) {\n if (!pInstance) {\n this.logger.prefix('Parallax-Module').error('No pInstance passed!');\n return;\n }\n\n if (pConfig instanceof Object) {\n if (!this.instances.has(pInstance)) {\n const x = typeof pX === 'number' ? pX : pInstance.x;\n const y = typeof pY === 'number' ? pY : pInstance.y;\n const map = typeof pMap === 'string' ? pMap : pInstance.mapName;\n // Clone the parallax object\n const parallaxInfo = { ...pConfig };\n this.init(pInstance, parallaxInfo, x, y, map);\n // Set the parallax info to the instance\n this.instanceWeakMap.set(pInstance, parallaxInfo);\n this.instances.add(pInstance);\n }\n } else {\n this.logger.prefix('Parallax-Module').error('No pConfig passed or invalid type found!');\n }\n }\n /**\n * Initializes this instance.\n * @param {Object} pInstance - The instance to initialize.\n * @param {Object} pConfig - The parallax info that tells this module how to control this instance.\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.\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.\n * @prop {boolean} pConfig.loop - Whether this instance will loop endlessly.\n * @param {number} pX - The x position this parallax will start at.\n * @param {number} pY - The y position this parallax will start at.\n * @param {string} pMap - The map this instance will start at.\n * @private\n */\n init(pInstance, pConfig, pX, pY, pMap) {\n if (!VYLO) {\n this.logger.prefix('Parallax-Module').error('VYLO not found! This module depends on the VYLO object being in the global name space.');\n return;\n }\n\n // If this instance is set to loop, then it needs a left and right clone\n if (pConfig.loop) {\n // Create a left and right clone\n const left = VYLO.newDiob('MapObject');\n const right = VYLO.newDiob('MapObject');\n\n // Make the left and right clone particle look the same as the initial instance\n left.setAppearance(pInstance);\n right.setAppearance(pInstance);\n\n // Force the renderer to render it, as if its placed offscreen its not rendered.\n left.setPos(pX, pY, pMap);\n right.setPos(pX, pY, pMap);\n\n // Position the left clone\n left.x = pX - pInstance.icon.width;\n left.y = pY;\n // Position the right clone\n right.x = pX + pInstance.icon.width;\n right.y = pY;\n // Store the clones in a temporary array\n const children = [left, right];\n // Loop the clones and store their relative positions to the main instance\n children.forEach((pChild) => {\n pChild.relativeX = pChild.x - pX;\n pChild.relativeY = pChild.y - pY;\n });\n\n // Do not mutate event if one is found. Call alongside it.\n const oldRelocatedEvent = pInstance.onRelocated;\n // When the main instance moves, move the clones with their relative position to it.\n if (typeof oldRelocatedEvent === 'function') {\n pInstance.onRelocated = (pX, pY) => {\n oldRelocatedEvent.call(pInstance, pX, pY);\n this.handleOnRelocated(pInstance, children);\n }\n } else {\n pInstance.onRelocated = (pX, pY) => {\n this.handleOnRelocated(pInstance, children);\n }\n }\n }\n const viewEye = VYLO.Client.getViewEye();\n let lastCamX = 0;\n let lastCamY = 0;\n if (viewEye) {\n lastCamX = viewEye.x;\n lastCamY = viewEye.y;\n }\n this.lastCamPos.x = lastCamX;\n this.lastCamPos.y = lastCamY;\n pInstance.setPos(pX, pY, pMap);\n }\n /**\n * Removes an instance to the parallax system.\n * @param {Object} pInstance - The instance to remove to the parallax system.\n */\n remove(pInstance) {\n if (!pInstance) {\n this.logger.prefix('Parallax-Module').error('No pInstance passed!');\n return;\n }\n\n if (this.instances.has(pInstance)) {\n this.instances.delete(pInstance);\n this.instanceWeakMap.delete(pInstance);\n }\n }\n /**\n * Updates the parallax system.\n * @param {number} pCameraX - The x position of the camera.\n * @param {number} pCameraY - The y position of the camera.\n */\n update(pCameraX = 0, pCameraY = 0) {\n // The camera's x position.\n let cameraX = pCameraX;\n // The camera's x position.\n let cameraY = pCameraY;\n this.instances.forEach((pInstance) => {\n const parallaxInfo = this.instanceWeakMap.get(pInstance);\n\n // Move the instance with the camera if the parallax is set to 0\n const isBackgroundX = parallaxInfo.x === 0;\n const isBackgroundY = parallaxInfo.y === 0;\n\n // Position to set the instance to.\n let x;\n let y;\n\n if (isBackgroundX) {\n x = cameraX - pInstance.icon.width / 2;\n } else {\n let deltaX = cameraX - this.lastCamPos.x;\n let distX = deltaX * parallaxInfo.x;\n x = pInstance.x + distX;\n }\n\n if (isBackgroundY) {\n y = cameraY - pInstance.icon.height / 2;\n } else {\n let deltaY = cameraY - this.lastCamPos.y;\n let distY = deltaY * parallaxInfo.y;\n y = pInstance.y + distY;\n }\n\n // Set the position\n pInstance.x = x;\n pInstance.y = y;\n \n // Logic cannot be ran on background instances as they should not loop\n if (!isBackgroundX && !isBackgroundY) {\n if (parallaxInfo.loop) {\n // The start pos + total width\n const rightEnd = pInstance.x + pInstance.icon.width;\n // The start pos - total width / 2\n const leftEnd = pInstance.x - pInstance.icon.width / 6;\n if (cameraX > rightEnd) {\n pInstance.x += pInstance.icon.width;\n } else if (cameraX < leftEnd) {\n pInstance.x -= pInstance.icon.width;\n }\n }\n }\n });\n this.lastCamPos.x = cameraX;\n this.lastCamPos.y = cameraY;\n }\n /**\n * Handles the onRelocated event for instances. Moves their children in relativity to their position.\n * @param {Diob | MapObject} pInstance - The instance to handle the event for.\n * @param {MapObject[]} pChildren - An array of children belonging to the instance.\n */\n handleOnRelocated(pInstance, pChildren) {\n // Update the children's position when the parent moves\n pChildren.forEach((pChild) => {\n pChild.x = pInstance.x + pChild.relativeX;\n pChild.y = pInstance.y + pChild.relativeY;\n pChild.mapName = pInstance.mapName;\n });\n }\n}\n\nconst Parallax = new ParallaxSingleton();\nexport { Parallax };", "static": true, - "longname": "C:/Users/jared/Documents/Github/Parallax/src/parallax.mjs", + "longname": "/Users/doubleactii/Documents/Github/Parallax/src/parallax.mjs", "access": "public", "description": null, "lineNumber": 1 @@ -1304,16 +1304,16 @@ }, { "kind": "index", - "content": "# Parallax Module \r\nA parallax module that will enable effortless integration of depth effects into your game.\r\n\r\n## Installation\r\n\r\n### ES Module\r\n\r\n```js\r\nimport { Parallax } from './parallax.mjs';\r\n```\r\n\r\n### IIFE (Immediately Invoked Function Expression)\r\n\r\n```js\r\n;\r\n// ...\r\nwindow.ParallaxBundle.Parallax;\r\n```\r\n\r\n### Global Dependency\r\n\r\nParallax relies on the `VYLO` variable being globally accessible.\r\n", - "longname": "C:\\Users\\jared\\Documents\\Github\\Parallax\\README.md", + "content": "# Parallax Module \nA parallax module that will enable effortless integration of depth effects into your game.\n\n## Installation\n\n### ES Module\n\n```js\nimport { Parallax } from './parallax.mjs';\n```\n\n### IIFE (Immediately Invoked Function Expression)\n\n```js\n;\n// ...\nwindow.ParallaxBundle.Parallax;\n```\n\n### Global Dependency\n\nParallax relies on the `VYLO` variable being globally accessible.\n", + "longname": "/Users/doubleactii/Documents/Github/Parallax/README.md", "name": "./README.md", "static": true, "access": "public" }, { "kind": "packageJSON", - "content": "{\r\n \"name\": \"parallax\",\r\n \"version\": \"1.1.1\",\r\n \"description\": \"A parallax module that will enable effortless integration of depth effects into your game.\",\r\n \"main\": \"src/parallax.mjs\",\r\n \"scripts\": {\r\n \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\",\r\n \"build:rollup\": \"npx rollup -c\",\r\n \"build:docs\": \"esdoc -c esdoc.json\",\r\n \"build:dist\": \"npm run build:rollup && npm run build:docs\"\r\n },\r\n \"keywords\": [],\r\n \"author\": \"https://github.com/doubleactii\",\r\n \"license\": \"SEE LICENSE IN LICENSE.md\",\r\n \"repository\": {\r\n \"type\": \"git\",\r\n \"url\": \"https://github.com/EvitcaStudio/Parallax\"\r\n },\r\n \"devDependencies\": {\r\n \"@rollup/plugin-babel\": \"^6.0.4\",\r\n \"@rollup/plugin-terser\": \"^0.4.4\",\r\n \"esdoc\": \"^1.1.0\",\r\n \"esdoc-ecmascript-proposal-plugin\": \"^1.0.0\",\r\n \"esdoc-standard-plugin\": \"^1.0.0\",\r\n \"rollup\": \"^4.14.1\",\r\n \"rollup-plugin-banner2\": \"^1.2.3\",\r\n \"rollup-plugin-cleandir\": \"^2.0.0\",\r\n \"rollup-plugin-replace\": \"^2.2.0\"\r\n }\r\n}\r\n", - "longname": "C:\\Users\\jared\\Documents\\Github\\Parallax\\package.json", + "content": "{\n \"name\": \"parallax\",\n \"version\": \"1.1.1\",\n \"description\": \"A parallax module that will enable effortless integration of depth effects into your game.\",\n \"main\": \"src/parallax.mjs\",\n \"scripts\": {\n \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\",\n \"build:rollup\": \"npx rollup -c\",\n \"build:docs\": \"esdoc -c esdoc.json\",\n \"build:dist\": \"npm run build:rollup && npm run build:docs\"\n },\n \"keywords\": [],\n \"author\": \"https://github.com/doubleactii\",\n \"license\": \"SEE LICENSE IN LICENSE.md\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/EvitcaStudio/Parallax\"\n },\n \"devDependencies\": {\n \"@rollup/plugin-babel\": \"^6.0.4\",\n \"@rollup/plugin-terser\": \"^0.4.4\",\n \"esdoc\": \"^1.1.0\",\n \"esdoc-ecmascript-proposal-plugin\": \"^1.0.0\",\n \"esdoc-standard-plugin\": \"^1.0.0\",\n \"rollup\": \"^4.14.1\",\n \"rollup-plugin-banner2\": \"^1.2.3\",\n \"rollup-plugin-cleandir\": \"^2.0.0\",\n \"rollup-plugin-replace\": \"^2.2.0\"\n }\n}\n", + "longname": "/Users/doubleactii/Documents/Github/Parallax/package.json", "name": "package.json", "static": true, "access": "public" diff --git a/docs/script/prettify/prettify.js b/docs/script/prettify/prettify.js old mode 100644 new mode 100755 diff --git a/docs/source.html b/docs/source.html index 0a4f24d..9ee2eb0 100644 --- a/docs/source.html +++ b/docs/source.html @@ -55,18 +55,18 @@ src/layer.mjs Layer - - 6998 byte - 158 - 2024-11-05 18:40:36 (UTC) + 7022 byte + 163 + 2024-12-04 09:00:09 (UTC) src/parallax.mjs Parallax ParallaxSingleton - - 10294 byte + 10048 byte 246 - 2024-11-05 18:40:36 (UTC) + 2024-12-04 08:51:47 (UTC) diff --git a/package-lock.json b/package-lock.json index f66063d..40f3f17 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "parallax", - "version": "1.0.0", + "version": "1.1.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "parallax", - "version": "1.0.0", + "version": "1.1.1", "license": "SEE LICENSE IN LICENSE.md", "devDependencies": { "@rollup/plugin-babel": "^6.0.4", diff --git a/rollup.config.mjs b/rollup.config.mjs index 3859952..207efa5 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -2,7 +2,7 @@ import babel from '@rollup/plugin-babel'; import replace from 'rollup-plugin-replace'; import terser from '@rollup/plugin-terser'; import { cleandir } from 'rollup-plugin-cleandir'; -import packageJson from './package.json' assert { type: 'json' }; +import packageJson from './package.json' with { type: 'json' }; const fileName = packageJson.name; diff --git a/src/layer.mjs b/src/layer.mjs index 5561010..ed7fe03 100644 --- a/src/layer.mjs +++ b/src/layer.mjs @@ -141,11 +141,16 @@ export class Layer { if (this.config.instances.has(pInstance)) return; this.config.instances.add(pInstance); const config = pConfig - ? pConfig + ? { + x: this.config.horizontalSpeed, + y: this.config.verticalSpeed, + loop: pConfig.loop + } : { x: this.config.horizontalSpeed, y: this.config.verticalSpeed } + pInstance.plane = this.config.plane; Parallax.add(pInstance, config); } /**