From 3150cd5bc6495b9e4a2aac60c53673c30aa07d6e Mon Sep 17 00:00:00 2001 From: Active Date: Tue, 5 Mar 2024 09:59:08 -0600 Subject: [PATCH] remove: docs & dist from git. Add simulated positions to update API. --- .gitignore | 3 +- docs/ast/source/.external-ecmascript.js.json | 2802 - docs/ast/source/parallax.mjs.json | 44894 ---------------- .../src/parallax.mjs~ParallaxSingleton.html | 935 - docs/css/github.css | 83 - docs/css/identifiers.css | 37 - docs/css/manual.css | 134 - docs/css/prettify-tomorrow.css | 132 - docs/css/search.css | 84 - docs/css/source.css | 55 - docs/css/style.css | 608 - docs/css/test.css | 58 - docs/file/src/parallax.mjs.html | 227 - docs/identifiers.html | 127 - docs/image/badge.svg | 17 - docs/image/brand_logo.png | Bin 20934 -> 0 bytes docs/image/esdoc-logo-mini-black.png | Bin 5651 -> 0 bytes docs/image/esdoc-logo-mini.png | Bin 6504 -> 0 bytes docs/image/github.png | Bin 4268 -> 0 bytes docs/image/manual-badge.svg | 17 - docs/image/search.png | Bin 12704 -> 0 bytes docs/index.html | 54 - docs/index.json | 975 - docs/script/inherited-summary.js | 28 - docs/script/inner-link.js | 32 - docs/script/manual.js | 12 - docs/script/patch-for-local.js | 8 - docs/script/prettify/Apache-License-2.0.txt | 202 - docs/script/prettify/prettify.js | 46 - docs/script/pretty-print.js | 25 - docs/script/search.js | 117 - docs/script/search_index.js | 356 - docs/script/test-summary.js | 54 - docs/source.html | 78 - docs/variable/index.html | 134 - src/parallax.mjs | 31 +- 36 files changed, 19 insertions(+), 52346 deletions(-) delete mode 100644 docs/ast/source/.external-ecmascript.js.json delete mode 100644 docs/ast/source/parallax.mjs.json delete mode 100644 docs/class/src/parallax.mjs~ParallaxSingleton.html delete mode 100644 docs/css/github.css delete mode 100644 docs/css/identifiers.css delete mode 100644 docs/css/manual.css delete mode 100644 docs/css/prettify-tomorrow.css delete mode 100644 docs/css/search.css delete mode 100644 docs/css/source.css delete mode 100644 docs/css/style.css delete mode 100644 docs/css/test.css delete mode 100644 docs/file/src/parallax.mjs.html delete mode 100644 docs/identifiers.html delete mode 100644 docs/image/badge.svg delete mode 100644 docs/image/brand_logo.png delete mode 100644 docs/image/esdoc-logo-mini-black.png delete mode 100644 docs/image/esdoc-logo-mini.png delete mode 100644 docs/image/github.png delete mode 100644 docs/image/manual-badge.svg delete mode 100644 docs/image/search.png delete mode 100644 docs/index.html delete mode 100644 docs/index.json delete mode 100644 docs/script/inherited-summary.js delete mode 100644 docs/script/inner-link.js delete mode 100644 docs/script/manual.js delete mode 100644 docs/script/patch-for-local.js delete mode 100644 docs/script/prettify/Apache-License-2.0.txt delete mode 100644 docs/script/prettify/prettify.js delete mode 100644 docs/script/pretty-print.js delete mode 100644 docs/script/search.js delete mode 100644 docs/script/search_index.js delete mode 100644 docs/script/test-summary.js delete mode 100644 docs/source.html delete mode 100644 docs/variable/index.html diff --git a/.gitignore b/.gitignore index 04c01ba..6096c0d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules/ -dist/ \ No newline at end of file +dist/ +docs/ \ No newline at end of file diff --git a/docs/ast/source/.external-ecmascript.js.json b/docs/ast/source/.external-ecmascript.js.json deleted file mode 100644 index 21893b9..0000000 --- a/docs/ast/source/.external-ecmascript.js.json +++ /dev/null @@ -1,2802 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 6058, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 193, - "column": 0 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 6058, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 193, - "column": 0 - } - }, - "sourceType": "module", - "body": [], - "directives": [], - "leadingComments": null, - "innerComments": [ - { - "type": "CommentLine", - "value": " https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects", - "start": 0, - "end": 83, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 83 - } - } - }, - { - "type": "CommentLine", - "value": " Value properties", - "start": 85, - "end": 104, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 19 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Infinity} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity\n ", - "start": 105, - "end": 226, - "loc": { - "start": { - "line": 4, - "column": 0 - }, - "end": { - "line": 6, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {NaN} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN\n ", - "start": 228, - "end": 339, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 10, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {undefined} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined\n ", - "start": 341, - "end": 464, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 14, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {null} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null\n ", - "start": 466, - "end": 579, - "loc": { - "start": { - "line": 16, - "column": 0 - }, - "end": { - "line": 18, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Fundamental objects", - "start": 581, - "end": 603, - "loc": { - "start": { - "line": 20, - "column": 0 - }, - "end": { - "line": 20, - "column": 22 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Object} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\n ", - "start": 604, - "end": 721, - "loc": { - "start": { - "line": 21, - "column": 0 - }, - "end": { - "line": 23, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {object} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\n ", - "start": 722, - "end": 839, - "loc": { - "start": { - "line": 24, - "column": 0 - }, - "end": { - "line": 26, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Function} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function\n ", - "start": 841, - "end": 962, - "loc": { - "start": { - "line": 28, - "column": 0 - }, - "end": { - "line": 30, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {function} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function\n ", - "start": 963, - "end": 1084, - "loc": { - "start": { - "line": 31, - "column": 0 - }, - "end": { - "line": 33, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Boolean} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean\n ", - "start": 1086, - "end": 1205, - "loc": { - "start": { - "line": 35, - "column": 0 - }, - "end": { - "line": 37, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {boolean} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean\n ", - "start": 1206, - "end": 1325, - "loc": { - "start": { - "line": 38, - "column": 0 - }, - "end": { - "line": 40, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Symbol} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol\n ", - "start": 1327, - "end": 1444, - "loc": { - "start": { - "line": 42, - "column": 0 - }, - "end": { - "line": 44, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Error} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error\n ", - "start": 1446, - "end": 1561, - "loc": { - "start": { - "line": 46, - "column": 0 - }, - "end": { - "line": 48, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {EvalError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError\n ", - "start": 1563, - "end": 1686, - "loc": { - "start": { - "line": 50, - "column": 0 - }, - "end": { - "line": 52, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {InternalError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError\n ", - "start": 1688, - "end": 1819, - "loc": { - "start": { - "line": 54, - "column": 0 - }, - "end": { - "line": 56, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {RangeError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError\n ", - "start": 1821, - "end": 1946, - "loc": { - "start": { - "line": 58, - "column": 0 - }, - "end": { - "line": 60, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {ReferenceError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError\n ", - "start": 1948, - "end": 2081, - "loc": { - "start": { - "line": 62, - "column": 0 - }, - "end": { - "line": 64, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {SyntaxError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError\n ", - "start": 2083, - "end": 2210, - "loc": { - "start": { - "line": 66, - "column": 0 - }, - "end": { - "line": 68, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {TypeError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError\n ", - "start": 2212, - "end": 2335, - "loc": { - "start": { - "line": 70, - "column": 0 - }, - "end": { - "line": 72, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {URIError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError\n ", - "start": 2337, - "end": 2458, - "loc": { - "start": { - "line": 74, - "column": 0 - }, - "end": { - "line": 76, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Numbers and dates", - "start": 2460, - "end": 2480, - "loc": { - "start": { - "line": 78, - "column": 0 - }, - "end": { - "line": 78, - "column": 20 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Number} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number\n ", - "start": 2481, - "end": 2598, - "loc": { - "start": { - "line": 79, - "column": 0 - }, - "end": { - "line": 81, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {number} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number\n ", - "start": 2599, - "end": 2716, - "loc": { - "start": { - "line": 82, - "column": 0 - }, - "end": { - "line": 84, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Date} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date\n ", - "start": 2718, - "end": 2831, - "loc": { - "start": { - "line": 86, - "column": 0 - }, - "end": { - "line": 88, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Text processing", - "start": 2833, - "end": 2851, - "loc": { - "start": { - "line": 90, - "column": 0 - }, - "end": { - "line": 90, - "column": 18 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {String} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String\n ", - "start": 2852, - "end": 2969, - "loc": { - "start": { - "line": 91, - "column": 0 - }, - "end": { - "line": 93, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {string} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String\n ", - "start": 2970, - "end": 3087, - "loc": { - "start": { - "line": 94, - "column": 0 - }, - "end": { - "line": 96, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {RegExp} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp\n ", - "start": 3089, - "end": 3206, - "loc": { - "start": { - "line": 98, - "column": 0 - }, - "end": { - "line": 100, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Indexed collections", - "start": 3208, - "end": 3230, - "loc": { - "start": { - "line": 102, - "column": 0 - }, - "end": { - "line": 102, - "column": 22 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array\n ", - "start": 3231, - "end": 3346, - "loc": { - "start": { - "line": 103, - "column": 0 - }, - "end": { - "line": 105, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Int8Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array\n ", - "start": 3348, - "end": 3471, - "loc": { - "start": { - "line": 107, - "column": 0 - }, - "end": { - "line": 109, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Uint8Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array\n ", - "start": 3472, - "end": 3597, - "loc": { - "start": { - "line": 110, - "column": 0 - }, - "end": { - "line": 112, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Uint8ClampedArray} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray\n ", - "start": 3599, - "end": 3738, - "loc": { - "start": { - "line": 114, - "column": 0 - }, - "end": { - "line": 116, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Int16Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array\n ", - "start": 3740, - "end": 3865, - "loc": { - "start": { - "line": 118, - "column": 0 - }, - "end": { - "line": 120, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Uint16Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array\n ", - "start": 3867, - "end": 3994, - "loc": { - "start": { - "line": 122, - "column": 0 - }, - "end": { - "line": 124, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Int32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array\n ", - "start": 3996, - "end": 4121, - "loc": { - "start": { - "line": 126, - "column": 0 - }, - "end": { - "line": 128, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Uint32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array\n ", - "start": 4123, - "end": 4250, - "loc": { - "start": { - "line": 130, - "column": 0 - }, - "end": { - "line": 132, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Float32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array\n ", - "start": 4252, - "end": 4381, - "loc": { - "start": { - "line": 134, - "column": 0 - }, - "end": { - "line": 136, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Float64Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array\n ", - "start": 4383, - "end": 4512, - "loc": { - "start": { - "line": 138, - "column": 0 - }, - "end": { - "line": 140, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Keyed collections", - "start": 4514, - "end": 4534, - "loc": { - "start": { - "line": 142, - "column": 0 - }, - "end": { - "line": 142, - "column": 20 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Map} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map\n ", - "start": 4535, - "end": 4646, - "loc": { - "start": { - "line": 143, - "column": 0 - }, - "end": { - "line": 145, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Set} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set\n ", - "start": 4648, - "end": 4759, - "loc": { - "start": { - "line": 147, - "column": 0 - }, - "end": { - "line": 149, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {WeakMap} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap\n ", - "start": 4761, - "end": 4880, - "loc": { - "start": { - "line": 151, - "column": 0 - }, - "end": { - "line": 153, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {WeakSet} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet\n ", - "start": 4882, - "end": 5001, - "loc": { - "start": { - "line": 155, - "column": 0 - }, - "end": { - "line": 157, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Structured data", - "start": 5003, - "end": 5021, - "loc": { - "start": { - "line": 159, - "column": 0 - }, - "end": { - "line": 159, - "column": 18 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {ArrayBuffer} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer\n ", - "start": 5022, - "end": 5149, - "loc": { - "start": { - "line": 160, - "column": 0 - }, - "end": { - "line": 162, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {DataView} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView\n ", - "start": 5151, - "end": 5272, - "loc": { - "start": { - "line": 164, - "column": 0 - }, - "end": { - "line": 166, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {JSON} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON\n ", - "start": 5274, - "end": 5387, - "loc": { - "start": { - "line": 168, - "column": 0 - }, - "end": { - "line": 170, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Control abstraction objects", - "start": 5389, - "end": 5419, - "loc": { - "start": { - "line": 172, - "column": 0 - }, - "end": { - "line": 172, - "column": 30 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Promise} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise\n ", - "start": 5420, - "end": 5539, - "loc": { - "start": { - "line": 173, - "column": 0 - }, - "end": { - "line": 175, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Generator} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator\n ", - "start": 5541, - "end": 5664, - "loc": { - "start": { - "line": 177, - "column": 0 - }, - "end": { - "line": 179, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {GeneratorFunction} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction\n ", - "start": 5666, - "end": 5805, - "loc": { - "start": { - "line": 181, - "column": 0 - }, - "end": { - "line": 183, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Reflection", - "start": 5807, - "end": 5820, - "loc": { - "start": { - "line": 185, - "column": 0 - }, - "end": { - "line": 185, - "column": 13 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Reflect} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect\n ", - "start": 5821, - "end": 5940, - "loc": { - "start": { - "line": 186, - "column": 0 - }, - "end": { - "line": 188, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Proxy} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy\n ", - "start": 5942, - "end": 6057, - "loc": { - "start": { - "line": 190, - "column": 0 - }, - "end": { - "line": 192, - "column": 3 - } - } - } - ] - }, - "comments": [ - { - "type": "CommentLine", - "value": " https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects", - "start": 0, - "end": 83, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 83 - } - } - }, - { - "type": "CommentLine", - "value": " Value properties", - "start": 85, - "end": 104, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 19 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Infinity} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity\n ", - "start": 105, - "end": 226, - "loc": { - "start": { - "line": 4, - "column": 0 - }, - "end": { - "line": 6, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {NaN} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN\n ", - "start": 228, - "end": 339, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 10, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {undefined} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined\n ", - "start": 341, - "end": 464, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 14, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {null} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null\n ", - "start": 466, - "end": 579, - "loc": { - "start": { - "line": 16, - "column": 0 - }, - "end": { - "line": 18, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Fundamental objects", - "start": 581, - "end": 603, - "loc": { - "start": { - "line": 20, - "column": 0 - }, - "end": { - "line": 20, - "column": 22 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Object} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\n ", - "start": 604, - "end": 721, - "loc": { - "start": { - "line": 21, - "column": 0 - }, - "end": { - "line": 23, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {object} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\n ", - "start": 722, - "end": 839, - "loc": { - "start": { - "line": 24, - "column": 0 - }, - "end": { - "line": 26, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Function} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function\n ", - "start": 841, - "end": 962, - "loc": { - "start": { - "line": 28, - "column": 0 - }, - "end": { - "line": 30, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {function} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function\n ", - "start": 963, - "end": 1084, - "loc": { - "start": { - "line": 31, - "column": 0 - }, - "end": { - "line": 33, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Boolean} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean\n ", - "start": 1086, - "end": 1205, - "loc": { - "start": { - "line": 35, - "column": 0 - }, - "end": { - "line": 37, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {boolean} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean\n ", - "start": 1206, - "end": 1325, - "loc": { - "start": { - "line": 38, - "column": 0 - }, - "end": { - "line": 40, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Symbol} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol\n ", - "start": 1327, - "end": 1444, - "loc": { - "start": { - "line": 42, - "column": 0 - }, - "end": { - "line": 44, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Error} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error\n ", - "start": 1446, - "end": 1561, - "loc": { - "start": { - "line": 46, - "column": 0 - }, - "end": { - "line": 48, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {EvalError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError\n ", - "start": 1563, - "end": 1686, - "loc": { - "start": { - "line": 50, - "column": 0 - }, - "end": { - "line": 52, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {InternalError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError\n ", - "start": 1688, - "end": 1819, - "loc": { - "start": { - "line": 54, - "column": 0 - }, - "end": { - "line": 56, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {RangeError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError\n ", - "start": 1821, - "end": 1946, - "loc": { - "start": { - "line": 58, - "column": 0 - }, - "end": { - "line": 60, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {ReferenceError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError\n ", - "start": 1948, - "end": 2081, - "loc": { - "start": { - "line": 62, - "column": 0 - }, - "end": { - "line": 64, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {SyntaxError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError\n ", - "start": 2083, - "end": 2210, - "loc": { - "start": { - "line": 66, - "column": 0 - }, - "end": { - "line": 68, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {TypeError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError\n ", - "start": 2212, - "end": 2335, - "loc": { - "start": { - "line": 70, - "column": 0 - }, - "end": { - "line": 72, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {URIError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError\n ", - "start": 2337, - "end": 2458, - "loc": { - "start": { - "line": 74, - "column": 0 - }, - "end": { - "line": 76, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Numbers and dates", - "start": 2460, - "end": 2480, - "loc": { - "start": { - "line": 78, - "column": 0 - }, - "end": { - "line": 78, - "column": 20 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Number} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number\n ", - "start": 2481, - "end": 2598, - "loc": { - "start": { - "line": 79, - "column": 0 - }, - "end": { - "line": 81, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {number} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number\n ", - "start": 2599, - "end": 2716, - "loc": { - "start": { - "line": 82, - "column": 0 - }, - "end": { - "line": 84, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Date} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date\n ", - "start": 2718, - "end": 2831, - "loc": { - "start": { - "line": 86, - "column": 0 - }, - "end": { - "line": 88, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Text processing", - "start": 2833, - "end": 2851, - "loc": { - "start": { - "line": 90, - "column": 0 - }, - "end": { - "line": 90, - "column": 18 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {String} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String\n ", - "start": 2852, - "end": 2969, - "loc": { - "start": { - "line": 91, - "column": 0 - }, - "end": { - "line": 93, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {string} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String\n ", - "start": 2970, - "end": 3087, - "loc": { - "start": { - "line": 94, - "column": 0 - }, - "end": { - "line": 96, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {RegExp} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp\n ", - "start": 3089, - "end": 3206, - "loc": { - "start": { - "line": 98, - "column": 0 - }, - "end": { - "line": 100, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Indexed collections", - "start": 3208, - "end": 3230, - "loc": { - "start": { - "line": 102, - "column": 0 - }, - "end": { - "line": 102, - "column": 22 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array\n ", - "start": 3231, - "end": 3346, - "loc": { - "start": { - "line": 103, - "column": 0 - }, - "end": { - "line": 105, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Int8Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array\n ", - "start": 3348, - "end": 3471, - "loc": { - "start": { - "line": 107, - "column": 0 - }, - "end": { - "line": 109, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Uint8Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array\n ", - "start": 3472, - "end": 3597, - "loc": { - "start": { - "line": 110, - "column": 0 - }, - "end": { - "line": 112, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Uint8ClampedArray} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray\n ", - "start": 3599, - "end": 3738, - "loc": { - "start": { - "line": 114, - "column": 0 - }, - "end": { - "line": 116, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Int16Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array\n ", - "start": 3740, - "end": 3865, - "loc": { - "start": { - "line": 118, - "column": 0 - }, - "end": { - "line": 120, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Uint16Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array\n ", - "start": 3867, - "end": 3994, - "loc": { - "start": { - "line": 122, - "column": 0 - }, - "end": { - "line": 124, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Int32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array\n ", - "start": 3996, - "end": 4121, - "loc": { - "start": { - "line": 126, - "column": 0 - }, - "end": { - "line": 128, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Uint32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array\n ", - "start": 4123, - "end": 4250, - "loc": { - "start": { - "line": 130, - "column": 0 - }, - "end": { - "line": 132, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Float32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array\n ", - "start": 4252, - "end": 4381, - "loc": { - "start": { - "line": 134, - "column": 0 - }, - "end": { - "line": 136, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Float64Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array\n ", - "start": 4383, - "end": 4512, - "loc": { - "start": { - "line": 138, - "column": 0 - }, - "end": { - "line": 140, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Keyed collections", - "start": 4514, - "end": 4534, - "loc": { - "start": { - "line": 142, - "column": 0 - }, - "end": { - "line": 142, - "column": 20 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Map} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map\n ", - "start": 4535, - "end": 4646, - "loc": { - "start": { - "line": 143, - "column": 0 - }, - "end": { - "line": 145, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Set} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set\n ", - "start": 4648, - "end": 4759, - "loc": { - "start": { - "line": 147, - "column": 0 - }, - "end": { - "line": 149, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {WeakMap} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap\n ", - "start": 4761, - "end": 4880, - "loc": { - "start": { - "line": 151, - "column": 0 - }, - "end": { - "line": 153, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {WeakSet} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet\n ", - "start": 4882, - "end": 5001, - "loc": { - "start": { - "line": 155, - "column": 0 - }, - "end": { - "line": 157, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Structured data", - "start": 5003, - "end": 5021, - "loc": { - "start": { - "line": 159, - "column": 0 - }, - "end": { - "line": 159, - "column": 18 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {ArrayBuffer} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer\n ", - "start": 5022, - "end": 5149, - "loc": { - "start": { - "line": 160, - "column": 0 - }, - "end": { - "line": 162, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {DataView} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView\n ", - "start": 5151, - "end": 5272, - "loc": { - "start": { - "line": 164, - "column": 0 - }, - "end": { - "line": 166, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {JSON} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON\n ", - "start": 5274, - "end": 5387, - "loc": { - "start": { - "line": 168, - "column": 0 - }, - "end": { - "line": 170, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Control abstraction objects", - "start": 5389, - "end": 5419, - "loc": { - "start": { - "line": 172, - "column": 0 - }, - "end": { - "line": 172, - "column": 30 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Promise} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise\n ", - "start": 5420, - "end": 5539, - "loc": { - "start": { - "line": 173, - "column": 0 - }, - "end": { - "line": 175, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Generator} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator\n ", - "start": 5541, - "end": 5664, - "loc": { - "start": { - "line": 177, - "column": 0 - }, - "end": { - "line": 179, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {GeneratorFunction} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction\n ", - "start": 5666, - "end": 5805, - "loc": { - "start": { - "line": 181, - "column": 0 - }, - "end": { - "line": 183, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Reflection", - "start": 5807, - "end": 5820, - "loc": { - "start": { - "line": 185, - "column": 0 - }, - "end": { - "line": 185, - "column": 13 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Reflect} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect\n ", - "start": 5821, - "end": 5940, - "loc": { - "start": { - "line": 186, - "column": 0 - }, - "end": { - "line": 188, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Proxy} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy\n ", - "start": 5942, - "end": 6057, - "loc": { - "start": { - "line": 190, - "column": 0 - }, - "end": { - "line": 192, - "column": 3 - } - } - } - ], - "tokens": [ - { - "type": "CommentLine", - "value": " https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects", - "start": 0, - "end": 83, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 83 - } - } - }, - { - "type": "CommentLine", - "value": " Value properties", - "start": 85, - "end": 104, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 19 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Infinity} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity\n ", - "start": 105, - "end": 226, - "loc": { - "start": { - "line": 4, - "column": 0 - }, - "end": { - "line": 6, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {NaN} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN\n ", - "start": 228, - "end": 339, - "loc": { - "start": { - "line": 8, - "column": 0 - }, - "end": { - "line": 10, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {undefined} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined\n ", - "start": 341, - "end": 464, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 14, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {null} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null\n ", - "start": 466, - "end": 579, - "loc": { - "start": { - "line": 16, - "column": 0 - }, - "end": { - "line": 18, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Fundamental objects", - "start": 581, - "end": 603, - "loc": { - "start": { - "line": 20, - "column": 0 - }, - "end": { - "line": 20, - "column": 22 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Object} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\n ", - "start": 604, - "end": 721, - "loc": { - "start": { - "line": 21, - "column": 0 - }, - "end": { - "line": 23, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {object} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\n ", - "start": 722, - "end": 839, - "loc": { - "start": { - "line": 24, - "column": 0 - }, - "end": { - "line": 26, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Function} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function\n ", - "start": 841, - "end": 962, - "loc": { - "start": { - "line": 28, - "column": 0 - }, - "end": { - "line": 30, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {function} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function\n ", - "start": 963, - "end": 1084, - "loc": { - "start": { - "line": 31, - "column": 0 - }, - "end": { - "line": 33, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Boolean} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean\n ", - "start": 1086, - "end": 1205, - "loc": { - "start": { - "line": 35, - "column": 0 - }, - "end": { - "line": 37, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {boolean} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean\n ", - "start": 1206, - "end": 1325, - "loc": { - "start": { - "line": 38, - "column": 0 - }, - "end": { - "line": 40, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Symbol} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol\n ", - "start": 1327, - "end": 1444, - "loc": { - "start": { - "line": 42, - "column": 0 - }, - "end": { - "line": 44, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Error} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error\n ", - "start": 1446, - "end": 1561, - "loc": { - "start": { - "line": 46, - "column": 0 - }, - "end": { - "line": 48, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {EvalError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError\n ", - "start": 1563, - "end": 1686, - "loc": { - "start": { - "line": 50, - "column": 0 - }, - "end": { - "line": 52, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {InternalError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError\n ", - "start": 1688, - "end": 1819, - "loc": { - "start": { - "line": 54, - "column": 0 - }, - "end": { - "line": 56, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {RangeError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError\n ", - "start": 1821, - "end": 1946, - "loc": { - "start": { - "line": 58, - "column": 0 - }, - "end": { - "line": 60, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {ReferenceError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError\n ", - "start": 1948, - "end": 2081, - "loc": { - "start": { - "line": 62, - "column": 0 - }, - "end": { - "line": 64, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {SyntaxError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError\n ", - "start": 2083, - "end": 2210, - "loc": { - "start": { - "line": 66, - "column": 0 - }, - "end": { - "line": 68, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {TypeError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError\n ", - "start": 2212, - "end": 2335, - "loc": { - "start": { - "line": 70, - "column": 0 - }, - "end": { - "line": 72, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {URIError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError\n ", - "start": 2337, - "end": 2458, - "loc": { - "start": { - "line": 74, - "column": 0 - }, - "end": { - "line": 76, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Numbers and dates", - "start": 2460, - "end": 2480, - "loc": { - "start": { - "line": 78, - "column": 0 - }, - "end": { - "line": 78, - "column": 20 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Number} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number\n ", - "start": 2481, - "end": 2598, - "loc": { - "start": { - "line": 79, - "column": 0 - }, - "end": { - "line": 81, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {number} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number\n ", - "start": 2599, - "end": 2716, - "loc": { - "start": { - "line": 82, - "column": 0 - }, - "end": { - "line": 84, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Date} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date\n ", - "start": 2718, - "end": 2831, - "loc": { - "start": { - "line": 86, - "column": 0 - }, - "end": { - "line": 88, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Text processing", - "start": 2833, - "end": 2851, - "loc": { - "start": { - "line": 90, - "column": 0 - }, - "end": { - "line": 90, - "column": 18 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {String} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String\n ", - "start": 2852, - "end": 2969, - "loc": { - "start": { - "line": 91, - "column": 0 - }, - "end": { - "line": 93, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {string} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String\n ", - "start": 2970, - "end": 3087, - "loc": { - "start": { - "line": 94, - "column": 0 - }, - "end": { - "line": 96, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {RegExp} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp\n ", - "start": 3089, - "end": 3206, - "loc": { - "start": { - "line": 98, - "column": 0 - }, - "end": { - "line": 100, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Indexed collections", - "start": 3208, - "end": 3230, - "loc": { - "start": { - "line": 102, - "column": 0 - }, - "end": { - "line": 102, - "column": 22 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array\n ", - "start": 3231, - "end": 3346, - "loc": { - "start": { - "line": 103, - "column": 0 - }, - "end": { - "line": 105, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Int8Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array\n ", - "start": 3348, - "end": 3471, - "loc": { - "start": { - "line": 107, - "column": 0 - }, - "end": { - "line": 109, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Uint8Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array\n ", - "start": 3472, - "end": 3597, - "loc": { - "start": { - "line": 110, - "column": 0 - }, - "end": { - "line": 112, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Uint8ClampedArray} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray\n ", - "start": 3599, - "end": 3738, - "loc": { - "start": { - "line": 114, - "column": 0 - }, - "end": { - "line": 116, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Int16Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array\n ", - "start": 3740, - "end": 3865, - "loc": { - "start": { - "line": 118, - "column": 0 - }, - "end": { - "line": 120, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Uint16Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array\n ", - "start": 3867, - "end": 3994, - "loc": { - "start": { - "line": 122, - "column": 0 - }, - "end": { - "line": 124, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Int32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array\n ", - "start": 3996, - "end": 4121, - "loc": { - "start": { - "line": 126, - "column": 0 - }, - "end": { - "line": 128, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Uint32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array\n ", - "start": 4123, - "end": 4250, - "loc": { - "start": { - "line": 130, - "column": 0 - }, - "end": { - "line": 132, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Float32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array\n ", - "start": 4252, - "end": 4381, - "loc": { - "start": { - "line": 134, - "column": 0 - }, - "end": { - "line": 136, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Float64Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array\n ", - "start": 4383, - "end": 4512, - "loc": { - "start": { - "line": 138, - "column": 0 - }, - "end": { - "line": 140, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Keyed collections", - "start": 4514, - "end": 4534, - "loc": { - "start": { - "line": 142, - "column": 0 - }, - "end": { - "line": 142, - "column": 20 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Map} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map\n ", - "start": 4535, - "end": 4646, - "loc": { - "start": { - "line": 143, - "column": 0 - }, - "end": { - "line": 145, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Set} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set\n ", - "start": 4648, - "end": 4759, - "loc": { - "start": { - "line": 147, - "column": 0 - }, - "end": { - "line": 149, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {WeakMap} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap\n ", - "start": 4761, - "end": 4880, - "loc": { - "start": { - "line": 151, - "column": 0 - }, - "end": { - "line": 153, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {WeakSet} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet\n ", - "start": 4882, - "end": 5001, - "loc": { - "start": { - "line": 155, - "column": 0 - }, - "end": { - "line": 157, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Structured data", - "start": 5003, - "end": 5021, - "loc": { - "start": { - "line": 159, - "column": 0 - }, - "end": { - "line": 159, - "column": 18 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {ArrayBuffer} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer\n ", - "start": 5022, - "end": 5149, - "loc": { - "start": { - "line": 160, - "column": 0 - }, - "end": { - "line": 162, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {DataView} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView\n ", - "start": 5151, - "end": 5272, - "loc": { - "start": { - "line": 164, - "column": 0 - }, - "end": { - "line": 166, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {JSON} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON\n ", - "start": 5274, - "end": 5387, - "loc": { - "start": { - "line": 168, - "column": 0 - }, - "end": { - "line": 170, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Control abstraction objects", - "start": 5389, - "end": 5419, - "loc": { - "start": { - "line": 172, - "column": 0 - }, - "end": { - "line": 172, - "column": 30 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Promise} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise\n ", - "start": 5420, - "end": 5539, - "loc": { - "start": { - "line": 173, - "column": 0 - }, - "end": { - "line": 175, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Generator} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator\n ", - "start": 5541, - "end": 5664, - "loc": { - "start": { - "line": 177, - "column": 0 - }, - "end": { - "line": 179, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {GeneratorFunction} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction\n ", - "start": 5666, - "end": 5805, - "loc": { - "start": { - "line": 181, - "column": 0 - }, - "end": { - "line": 183, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Reflection", - "start": 5807, - "end": 5820, - "loc": { - "start": { - "line": 185, - "column": 0 - }, - "end": { - "line": 185, - "column": 13 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Reflect} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect\n ", - "start": 5821, - "end": 5940, - "loc": { - "start": { - "line": 186, - "column": 0 - }, - "end": { - "line": 188, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @external {Proxy} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy\n ", - "start": 5942, - "end": 6057, - "loc": { - "start": { - "line": 190, - "column": 0 - }, - "end": { - "line": 192, - "column": 3 - } - } - }, - { - "type": { - "label": "eof", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6058, - "end": 6058, - "loc": { - "start": { - "line": 193, - "column": 0 - }, - "end": { - "line": 193, - "column": 0 - } - } - } - ] -} \ No newline at end of file diff --git a/docs/ast/source/parallax.mjs.json b/docs/ast/source/parallax.mjs.json deleted file mode 100644 index 7b6c2e0..0000000 --- a/docs/ast/source/parallax.mjs.json +++ /dev/null @@ -1,44894 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 8404, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 173, - "column": 20 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 8404, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 173, - "column": 20 - } - }, - "sourceType": "module", - "body": [ - { - "type": "ImportDeclaration", - "start": 0, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "specifiers": [ - { - "type": "ImportSpecifier", - "start": 9, - "end": 15, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 15 - } - }, - "imported": { - "type": "Identifier", - "start": 9, - "end": 15, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 15 - }, - "identifierName": "Logger" - }, - "name": "Logger" - }, - "local": { - "type": "Identifier", - "start": 9, - "end": 15, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 15 - }, - "identifierName": "Logger" - }, - "name": "Logger" - } - } - ], - "source": { - "type": "StringLiteral", - "start": 23, - "end": 48, - "loc": { - "start": { - "line": 1, - "column": 23 - }, - "end": { - "line": 1, - "column": 48 - } - }, - "extra": { - "rawValue": "./vendor/logger.min.mjs", - "raw": "'./vendor/logger.min.mjs'" - }, - "value": "./vendor/logger.min.mjs" - } - }, - { - "type": "Identifier", - "start": 53, - "end": 8337, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 170, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 59, - "end": 76, - "loc": { - "start": { - "line": 3, - "column": 6 - }, - "end": { - "line": 3, - "column": 23 - }, - "identifierName": "ParallaxSingleton" - }, - "name": "ParallaxSingleton" - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 77, - "end": 8337, - "loc": { - "start": { - "line": 3, - "column": 24 - }, - "end": { - "line": 170, - "column": 1 - } - }, - "body": [ - { - "type": "ClassProperty", - "start": 125, - "end": 156, - "loc": { - "start": { - "line": 7, - "column": 1 - }, - "end": { - "line": 7, - "column": 32 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 125, - "end": 132, - "loc": { - "start": { - "line": 7, - "column": 1 - }, - "end": { - "line": 7, - "column": 8 - }, - "identifierName": "version" - }, - "name": "version", - "leadingComments": null - }, - "value": { - "type": "StringLiteral", - "start": 135, - "end": 155, - "loc": { - "start": { - "line": 7, - "column": 11 - }, - "end": { - "line": 7, - "column": 31 - } - }, - "extra": { - "rawValue": "VERSION_REPLACE_ME", - "raw": "\"VERSION_REPLACE_ME\"" - }, - "value": "VERSION_REPLACE_ME" - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * The version of the module.\r\n\t ", - "start": 81, - "end": 122, - "loc": { - "start": { - "line": 4, - "column": 1 - }, - "end": { - "line": 6, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "* The logger module this module uses to log errors / logs\r\n * @private\r\n * @type {Object}\r\n ", - "start": 162, - "end": 270, - "loc": { - "start": { - "line": 8, - "column": 4 - }, - "end": { - "line": 11, - "column": 7 - } - } - } - ] - }, - { - "type": "ClassProperty", - "start": 276, - "end": 298, - "loc": { - "start": { - "line": 12, - "column": 4 - }, - "end": { - "line": 12, - "column": 26 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 276, - "end": 282, - "loc": { - "start": { - "line": 12, - "column": 4 - }, - "end": { - "line": 12, - "column": 10 - }, - "identifierName": "logger" - }, - "name": "logger", - "leadingComments": null - }, - "value": { - "type": "NewExpression", - "start": 285, - "end": 297, - "loc": { - "start": { - "line": 12, - "column": 13 - }, - "end": { - "line": 12, - "column": 25 - } - }, - "callee": { - "type": "Identifier", - "start": 289, - "end": 295, - "loc": { - "start": { - "line": 12, - "column": 17 - }, - "end": { - "line": 12, - "column": 23 - }, - "identifierName": "Logger" - }, - "name": "Logger" - }, - "arguments": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "* The logger module this module uses to log errors / logs\r\n * @private\r\n * @type {Object}\r\n ", - "start": 162, - "end": 270, - "loc": { - "start": { - "line": 8, - "column": 4 - }, - "end": { - "line": 11, - "column": 7 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 301, - "end": 385, - "loc": { - "start": { - "line": 13, - "column": 1 - }, - "end": { - "line": 15, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 301, - "end": 312, - "loc": { - "start": { - "line": 13, - "column": 1 - }, - "end": { - "line": 13, - "column": 12 - }, - "identifierName": "constructor" - }, - "name": "constructor" - }, - "kind": "constructor", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 315, - "end": 385, - "loc": { - "start": { - "line": 13, - "column": 15 - }, - "end": { - "line": 15, - "column": 2 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 326, - "end": 381, - "loc": { - "start": { - "line": 14, - "column": 8 - }, - "end": { - "line": 14, - "column": 63 - } - }, - "expression": { - "type": "CallExpression", - "start": 326, - "end": 380, - "loc": { - "start": { - "line": 14, - "column": 8 - }, - "end": { - "line": 14, - "column": 62 - } - }, - "callee": { - "type": "MemberExpression", - "start": 326, - "end": 350, - "loc": { - "start": { - "line": 14, - "column": 8 - }, - "end": { - "line": 14, - "column": 32 - } - }, - "object": { - "type": "MemberExpression", - "start": 326, - "end": 337, - "loc": { - "start": { - "line": 14, - "column": 8 - }, - "end": { - "line": 14, - "column": 19 - } - }, - "object": { - "type": "ThisExpression", - "start": 326, - "end": 330, - "loc": { - "start": { - "line": 14, - "column": 8 - }, - "end": { - "line": 14, - "column": 12 - } - } - }, - "property": { - "type": "Identifier", - "start": 331, - "end": 337, - "loc": { - "start": { - "line": 14, - "column": 13 - }, - "end": { - "line": 14, - "column": 19 - }, - "identifierName": "logger" - }, - "name": "logger" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 338, - "end": 350, - "loc": { - "start": { - "line": 14, - "column": 20 - }, - "end": { - "line": 14, - "column": 32 - }, - "identifierName": "registerType" - }, - "name": "registerType" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 351, - "end": 368, - "loc": { - "start": { - "line": 14, - "column": 33 - }, - "end": { - "line": 14, - "column": 50 - } - }, - "extra": { - "rawValue": "Parallax-Module", - "raw": "'Parallax-Module'" - }, - "value": "Parallax-Module" - }, - { - "type": "StringLiteral", - "start": 370, - "end": 379, - "loc": { - "start": { - "line": 14, - "column": 52 - }, - "end": { - "line": 14, - "column": 61 - } - }, - "extra": { - "rawValue": "#ff6600", - "raw": "'#ff6600'" - }, - "value": "#ff6600" - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n * An array of instances that use the parallax system.\r\n * @type {Array}\r\n ", - "start": 391, - "end": 485, - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 19, - "column": 7 - } - } - } - ] - }, - { - "type": "ClassProperty", - "start": 491, - "end": 506, - "loc": { - "start": { - "line": 20, - "column": 4 - }, - "end": { - "line": 20, - "column": 19 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 491, - "end": 500, - "loc": { - "start": { - "line": 20, - "column": 4 - }, - "end": { - "line": 20, - "column": 13 - }, - "identifierName": "instances" - }, - "name": "instances", - "leadingComments": null - }, - "value": { - "type": "ArrayExpression", - "start": 503, - "end": 505, - "loc": { - "start": { - "line": 20, - "column": 16 - }, - "end": { - "line": 20, - "column": 18 - } - }, - "elements": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n * An array of instances that use the parallax system.\r\n * @type {Array}\r\n ", - "start": 391, - "end": 485, - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 19, - "column": 7 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n * Weakmap to store info on instances used in this module.\r\n * @type {WeakMap}\r\n ", - "start": 512, - "end": 612, - "loc": { - "start": { - "line": 21, - "column": 4 - }, - "end": { - "line": 24, - "column": 7 - } - } - } - ] - }, - { - "type": "ClassProperty", - "start": 618, - "end": 650, - "loc": { - "start": { - "line": 25, - "column": 4 - }, - "end": { - "line": 25, - "column": 36 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 618, - "end": 633, - "loc": { - "start": { - "line": 25, - "column": 4 - }, - "end": { - "line": 25, - "column": 19 - }, - "identifierName": "instanceWeakMap" - }, - "name": "instanceWeakMap", - "leadingComments": null - }, - "value": { - "type": "NewExpression", - "start": 636, - "end": 649, - "loc": { - "start": { - "line": 25, - "column": 22 - }, - "end": { - "line": 25, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 640, - "end": 647, - "loc": { - "start": { - "line": 25, - "column": 26 - }, - "end": { - "line": 25, - "column": 33 - }, - "identifierName": "WeakMap" - }, - "name": "WeakMap" - }, - "arguments": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n * Weakmap to store info on instances used in this module.\r\n * @type {WeakMap}\r\n ", - "start": 512, - "end": 612, - "loc": { - "start": { - "line": 21, - "column": 4 - }, - "end": { - "line": 24, - "column": 7 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n * Adds an instance to the parallax system.\r\n * Call this first and then add your instance to the map.\r\n * @param {Object} pInstance - The instance to add to the parallax system.\r\n * @param {Object} pParallaxInfo - The parallax info that tells this module how to control this instance.\r\n * @property {number} pParallaxInfo.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {number} pParallaxInfo.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {boolean} pParallaxInfo.loop - Whether this instance will loop endlessly.\r\n * @param {number} [pX] - The x position this instance will start at.\r\n * @param {number} [pY] - The y position this instance will start at.\r\n * @param {string} [pMap] - The map this instance will start at.\r\n ", - "start": 656, - "end": 1631, - "loc": { - "start": { - "line": 26, - "column": 4 - }, - "end": { - "line": 37, - "column": 7 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 1637, - "end": 2712, - "loc": { - "start": { - "line": 38, - "column": 4 - }, - "end": { - "line": 58, - "column": 5 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1637, - "end": 1640, - "loc": { - "start": { - "line": 38, - "column": 4 - }, - "end": { - "line": 38, - "column": 7 - }, - "identifierName": "add" - }, - "name": "add", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1641, - "end": 1650, - "loc": { - "start": { - "line": 38, - "column": 8 - }, - "end": { - "line": 38, - "column": 17 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - { - "type": "Identifier", - "start": 1652, - "end": 1665, - "loc": { - "start": { - "line": 38, - "column": 19 - }, - "end": { - "line": 38, - "column": 32 - }, - "identifierName": "pParallaxInfo" - }, - "name": "pParallaxInfo" - }, - { - "type": "Identifier", - "start": 1667, - "end": 1669, - "loc": { - "start": { - "line": 38, - "column": 34 - }, - "end": { - "line": 38, - "column": 36 - }, - "identifierName": "pX" - }, - "name": "pX" - }, - { - "type": "Identifier", - "start": 1671, - "end": 1673, - "loc": { - "start": { - "line": 38, - "column": 38 - }, - "end": { - "line": 38, - "column": 40 - }, - "identifierName": "pY" - }, - "name": "pY" - }, - { - "type": "Identifier", - "start": 1675, - "end": 1679, - "loc": { - "start": { - "line": 38, - "column": 42 - }, - "end": { - "line": 38, - "column": 46 - }, - "identifierName": "pMap" - }, - "name": "pMap" - } - ], - "body": { - "type": "BlockStatement", - "start": 1681, - "end": 2712, - "loc": { - "start": { - "line": 38, - "column": 48 - }, - "end": { - "line": 58, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 1692, - "end": 2705, - "loc": { - "start": { - "line": 39, - "column": 8 - }, - "end": { - "line": 57, - "column": 9 - } - }, - "test": { - "type": "Identifier", - "start": 1696, - "end": 1705, - "loc": { - "start": { - "line": 39, - "column": 12 - }, - "end": { - "line": 39, - "column": 21 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "consequent": { - "type": "BlockStatement", - "start": 1707, - "end": 2605, - "loc": { - "start": { - "line": 39, - "column": 23 - }, - "end": { - "line": 55, - "column": 9 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 1722, - "end": 2594, - "loc": { - "start": { - "line": 40, - "column": 12 - }, - "end": { - "line": 54, - "column": 13 - } - }, - "test": { - "type": "BinaryExpression", - "start": 1726, - "end": 1757, - "loc": { - "start": { - "line": 40, - "column": 16 - }, - "end": { - "line": 40, - "column": 47 - } - }, - "left": { - "type": "Identifier", - "start": 1726, - "end": 1739, - "loc": { - "start": { - "line": 40, - "column": 16 - }, - "end": { - "line": 40, - "column": 29 - }, - "identifierName": "pParallaxInfo" - }, - "name": "pParallaxInfo" - }, - "operator": "instanceof", - "right": { - "type": "Identifier", - "start": 1751, - "end": 1757, - "loc": { - "start": { - "line": 40, - "column": 41 - }, - "end": { - "line": 40, - "column": 47 - }, - "identifierName": "Object" - }, - "name": "Object" - } - }, - "consequent": { - "type": "BlockStatement", - "start": 1759, - "end": 2460, - "loc": { - "start": { - "line": 40, - "column": 49 - }, - "end": { - "line": 52, - "column": 13 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 1778, - "end": 2445, - "loc": { - "start": { - "line": 41, - "column": 16 - }, - "end": { - "line": 51, - "column": 17 - } - }, - "test": { - "type": "UnaryExpression", - "start": 1782, - "end": 1817, - "loc": { - "start": { - "line": 41, - "column": 20 - }, - "end": { - "line": 41, - "column": 55 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "CallExpression", - "start": 1783, - "end": 1817, - "loc": { - "start": { - "line": 41, - "column": 21 - }, - "end": { - "line": 41, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1783, - "end": 1806, - "loc": { - "start": { - "line": 41, - "column": 21 - }, - "end": { - "line": 41, - "column": 44 - } - }, - "object": { - "type": "MemberExpression", - "start": 1783, - "end": 1797, - "loc": { - "start": { - "line": 41, - "column": 21 - }, - "end": { - "line": 41, - "column": 35 - } - }, - "object": { - "type": "ThisExpression", - "start": 1783, - "end": 1787, - "loc": { - "start": { - "line": 41, - "column": 21 - }, - "end": { - "line": 41, - "column": 25 - } - } - }, - "property": { - "type": "Identifier", - "start": 1788, - "end": 1797, - "loc": { - "start": { - "line": 41, - "column": 26 - }, - "end": { - "line": 41, - "column": 35 - }, - "identifierName": "instances" - }, - "name": "instances" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 1798, - "end": 1806, - "loc": { - "start": { - "line": 41, - "column": 36 - }, - "end": { - "line": 41, - "column": 44 - }, - "identifierName": "includes" - }, - "name": "includes" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1807, - "end": 1816, - "loc": { - "start": { - "line": 41, - "column": 45 - }, - "end": { - "line": 41, - "column": 54 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - } - ] - }, - "extra": { - "parenthesizedArgument": false - } - }, - "consequent": { - "type": "BlockStatement", - "start": 1819, - "end": 2445, - "loc": { - "start": { - "line": 41, - "column": 57 - }, - "end": { - "line": 51, - "column": 17 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1842, - "end": 1895, - "loc": { - "start": { - "line": 42, - "column": 20 - }, - "end": { - "line": 42, - "column": 73 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1848, - "end": 1894, - "loc": { - "start": { - "line": 42, - "column": 26 - }, - "end": { - "line": 42, - "column": 72 - } - }, - "id": { - "type": "Identifier", - "start": 1848, - "end": 1849, - "loc": { - "start": { - "line": 42, - "column": 26 - }, - "end": { - "line": 42, - "column": 27 - }, - "identifierName": "x" - }, - "name": "x" - }, - "init": { - "type": "ConditionalExpression", - "start": 1852, - "end": 1894, - "loc": { - "start": { - "line": 42, - "column": 30 - }, - "end": { - "line": 42, - "column": 72 - } - }, - "test": { - "type": "BinaryExpression", - "start": 1852, - "end": 1875, - "loc": { - "start": { - "line": 42, - "column": 30 - }, - "end": { - "line": 42, - "column": 53 - } - }, - "left": { - "type": "UnaryExpression", - "start": 1852, - "end": 1862, - "loc": { - "start": { - "line": 42, - "column": 30 - }, - "end": { - "line": 42, - "column": 40 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 1859, - "end": 1861, - "loc": { - "start": { - "line": 42, - "column": 37 - }, - "end": { - "line": 42, - "column": 39 - }, - "identifierName": "pX" - }, - "name": "pX", - "extra": { - "parenthesized": true, - "parenStart": 1858 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 1867, - "end": 1875, - "loc": { - "start": { - "line": 42, - "column": 45 - }, - "end": { - "line": 42, - "column": 53 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" - }, - "value": "number" - } - }, - "consequent": { - "type": "Identifier", - "start": 1878, - "end": 1880, - "loc": { - "start": { - "line": 42, - "column": 56 - }, - "end": { - "line": 42, - "column": 58 - }, - "identifierName": "pX" - }, - "name": "pX" - }, - "alternate": { - "type": "MemberExpression", - "start": 1883, - "end": 1894, - "loc": { - "start": { - "line": 42, - "column": 61 - }, - "end": { - "line": 42, - "column": 72 - } - }, - "object": { - "type": "Identifier", - "start": 1883, - "end": 1892, - "loc": { - "start": { - "line": 42, - "column": 61 - }, - "end": { - "line": 42, - "column": 70 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 1893, - "end": 1894, - "loc": { - "start": { - "line": 42, - "column": 71 - }, - "end": { - "line": 42, - "column": 72 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1917, - "end": 1970, - "loc": { - "start": { - "line": 43, - "column": 20 - }, - "end": { - "line": 43, - "column": 73 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1923, - "end": 1969, - "loc": { - "start": { - "line": 43, - "column": 26 - }, - "end": { - "line": 43, - "column": 72 - } - }, - "id": { - "type": "Identifier", - "start": 1923, - "end": 1924, - "loc": { - "start": { - "line": 43, - "column": 26 - }, - "end": { - "line": 43, - "column": 27 - }, - "identifierName": "y" - }, - "name": "y" - }, - "init": { - "type": "ConditionalExpression", - "start": 1927, - "end": 1969, - "loc": { - "start": { - "line": 43, - "column": 30 - }, - "end": { - "line": 43, - "column": 72 - } - }, - "test": { - "type": "BinaryExpression", - "start": 1927, - "end": 1950, - "loc": { - "start": { - "line": 43, - "column": 30 - }, - "end": { - "line": 43, - "column": 53 - } - }, - "left": { - "type": "UnaryExpression", - "start": 1927, - "end": 1937, - "loc": { - "start": { - "line": 43, - "column": 30 - }, - "end": { - "line": 43, - "column": 40 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 1934, - "end": 1936, - "loc": { - "start": { - "line": 43, - "column": 37 - }, - "end": { - "line": 43, - "column": 39 - }, - "identifierName": "pY" - }, - "name": "pY", - "extra": { - "parenthesized": true, - "parenStart": 1933 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 1942, - "end": 1950, - "loc": { - "start": { - "line": 43, - "column": 45 - }, - "end": { - "line": 43, - "column": 53 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" - }, - "value": "number" - } - }, - "consequent": { - "type": "Identifier", - "start": 1953, - "end": 1955, - "loc": { - "start": { - "line": 43, - "column": 56 - }, - "end": { - "line": 43, - "column": 58 - }, - "identifierName": "pY" - }, - "name": "pY" - }, - "alternate": { - "type": "MemberExpression", - "start": 1958, - "end": 1969, - "loc": { - "start": { - "line": 43, - "column": 61 - }, - "end": { - "line": 43, - "column": 72 - } - }, - "object": { - "type": "Identifier", - "start": 1958, - "end": 1967, - "loc": { - "start": { - "line": 43, - "column": 61 - }, - "end": { - "line": 43, - "column": 70 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 1968, - "end": 1969, - "loc": { - "start": { - "line": 43, - "column": 71 - }, - "end": { - "line": 43, - "column": 72 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1992, - "end": 2057, - "loc": { - "start": { - "line": 44, - "column": 20 - }, - "end": { - "line": 44, - "column": 85 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1998, - "end": 2056, - "loc": { - "start": { - "line": 44, - "column": 26 - }, - "end": { - "line": 44, - "column": 84 - } - }, - "id": { - "type": "Identifier", - "start": 1998, - "end": 2001, - "loc": { - "start": { - "line": 44, - "column": 26 - }, - "end": { - "line": 44, - "column": 29 - }, - "identifierName": "map" - }, - "name": "map" - }, - "init": { - "type": "ConditionalExpression", - "start": 2004, - "end": 2056, - "loc": { - "start": { - "line": 44, - "column": 32 - }, - "end": { - "line": 44, - "column": 84 - } - }, - "test": { - "type": "BinaryExpression", - "start": 2004, - "end": 2029, - "loc": { - "start": { - "line": 44, - "column": 32 - }, - "end": { - "line": 44, - "column": 57 - } - }, - "left": { - "type": "UnaryExpression", - "start": 2004, - "end": 2016, - "loc": { - "start": { - "line": 44, - "column": 32 - }, - "end": { - "line": 44, - "column": 44 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 2011, - "end": 2015, - "loc": { - "start": { - "line": 44, - "column": 39 - }, - "end": { - "line": 44, - "column": 43 - }, - "identifierName": "pMap" - }, - "name": "pMap", - "extra": { - "parenthesized": true, - "parenStart": 2010 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 2021, - "end": 2029, - "loc": { - "start": { - "line": 44, - "column": 49 - }, - "end": { - "line": 44, - "column": 57 - } - }, - "extra": { - "rawValue": "string", - "raw": "'string'" - }, - "value": "string" - } - }, - "consequent": { - "type": "Identifier", - "start": 2032, - "end": 2036, - "loc": { - "start": { - "line": 44, - "column": 60 - }, - "end": { - "line": 44, - "column": 64 - }, - "identifierName": "pMap" - }, - "name": "pMap" - }, - "alternate": { - "type": "MemberExpression", - "start": 2039, - "end": 2056, - "loc": { - "start": { - "line": 44, - "column": 67 - }, - "end": { - "line": 44, - "column": 84 - } - }, - "object": { - "type": "Identifier", - "start": 2039, - "end": 2048, - "loc": { - "start": { - "line": 44, - "column": 67 - }, - "end": { - "line": 44, - "column": 76 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 2049, - "end": 2056, - "loc": { - "start": { - "line": 44, - "column": 77 - }, - "end": { - "line": 44, - "column": 84 - }, - "identifierName": "mapName" - }, - "name": "mapName" - }, - "computed": false - } - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " Clone the parallax object", - "start": 2079, - "end": 2107, - "loc": { - "start": { - "line": 45, - "column": 20 - }, - "end": { - "line": 45, - "column": 48 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 2129, - "end": 2171, - "loc": { - "start": { - "line": 46, - "column": 20 - }, - "end": { - "line": 46, - "column": 62 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2135, - "end": 2170, - "loc": { - "start": { - "line": 46, - "column": 26 - }, - "end": { - "line": 46, - "column": 61 - } - }, - "id": { - "type": "Identifier", - "start": 2135, - "end": 2147, - "loc": { - "start": { - "line": 46, - "column": 26 - }, - "end": { - "line": 46, - "column": 38 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo", - "leadingComments": null - }, - "init": { - "type": "ObjectExpression", - "start": 2150, - "end": 2170, - "loc": { - "start": { - "line": 46, - "column": 41 - }, - "end": { - "line": 46, - "column": 61 - } - }, - "properties": [ - { - "type": "SpreadProperty", - "start": 2152, - "end": 2168, - "loc": { - "start": { - "line": 46, - "column": 43 - }, - "end": { - "line": 46, - "column": 59 - } - }, - "argument": { - "type": "Identifier", - "start": 2155, - "end": 2168, - "loc": { - "start": { - "line": 46, - "column": 46 - }, - "end": { - "line": 46, - "column": 59 - }, - "identifierName": "pParallaxInfo" - }, - "name": "pParallaxInfo" - } - } - ] - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " Clone the parallax object", - "start": 2079, - "end": 2107, - "loc": { - "start": { - "line": 45, - "column": 20 - }, - "end": { - "line": 45, - "column": 48 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 2193, - "end": 2239, - "loc": { - "start": { - "line": 47, - "column": 20 - }, - "end": { - "line": 47, - "column": 66 - } - }, - "expression": { - "type": "CallExpression", - "start": 2193, - "end": 2238, - "loc": { - "start": { - "line": 47, - "column": 20 - }, - "end": { - "line": 47, - "column": 65 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2193, - "end": 2202, - "loc": { - "start": { - "line": 47, - "column": 20 - }, - "end": { - "line": 47, - "column": 29 - } - }, - "object": { - "type": "ThisExpression", - "start": 2193, - "end": 2197, - "loc": { - "start": { - "line": 47, - "column": 20 - }, - "end": { - "line": 47, - "column": 24 - } - } - }, - "property": { - "type": "Identifier", - "start": 2198, - "end": 2202, - "loc": { - "start": { - "line": 47, - "column": 25 - }, - "end": { - "line": 47, - "column": 29 - }, - "identifierName": "init" - }, - "name": "init" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2203, - "end": 2212, - "loc": { - "start": { - "line": 47, - "column": 30 - }, - "end": { - "line": 47, - "column": 39 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - { - "type": "Identifier", - "start": 2214, - "end": 2226, - "loc": { - "start": { - "line": 47, - "column": 41 - }, - "end": { - "line": 47, - "column": 53 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - { - "type": "Identifier", - "start": 2228, - "end": 2229, - "loc": { - "start": { - "line": 47, - "column": 55 - }, - "end": { - "line": 47, - "column": 56 - }, - "identifierName": "x" - }, - "name": "x" - }, - { - "type": "Identifier", - "start": 2231, - "end": 2232, - "loc": { - "start": { - "line": 47, - "column": 58 - }, - "end": { - "line": 47, - "column": 59 - }, - "identifierName": "y" - }, - "name": "y" - }, - { - "type": "Identifier", - "start": 2234, - "end": 2237, - "loc": { - "start": { - "line": 47, - "column": 61 - }, - "end": { - "line": 47, - "column": 64 - }, - "identifierName": "map" - }, - "name": "map" - } - ] - }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " Set the parallax info to the instance", - "start": 2261, - "end": 2301, - "loc": { - "start": { - "line": 48, - "column": 20 - }, - "end": { - "line": 48, - "column": 60 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 2323, - "end": 2373, - "loc": { - "start": { - "line": 49, - "column": 20 - }, - "end": { - "line": 49, - "column": 70 - } - }, - "expression": { - "type": "CallExpression", - "start": 2323, - "end": 2372, - "loc": { - "start": { - "line": 49, - "column": 20 - }, - "end": { - "line": 49, - "column": 69 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2323, - "end": 2347, - "loc": { - "start": { - "line": 49, - "column": 20 - }, - "end": { - "line": 49, - "column": 44 - } - }, - "object": { - "type": "MemberExpression", - "start": 2323, - "end": 2343, - "loc": { - "start": { - "line": 49, - "column": 20 - }, - "end": { - "line": 49, - "column": 40 - } - }, - "object": { - "type": "ThisExpression", - "start": 2323, - "end": 2327, - "loc": { - "start": { - "line": 49, - "column": 20 - }, - "end": { - "line": 49, - "column": 24 - } - }, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 2328, - "end": 2343, - "loc": { - "start": { - "line": 49, - "column": 25 - }, - "end": { - "line": 49, - "column": 40 - }, - "identifierName": "instanceWeakMap" - }, - "name": "instanceWeakMap" - }, - "computed": false, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 2344, - "end": 2347, - "loc": { - "start": { - "line": 49, - "column": 41 - }, - "end": { - "line": 49, - "column": 44 - }, - "identifierName": "set" - }, - "name": "set" - }, - "computed": false, - "leadingComments": null - }, - "arguments": [ - { - "type": "Identifier", - "start": 2348, - "end": 2357, - "loc": { - "start": { - "line": 49, - "column": 45 - }, - "end": { - "line": 49, - "column": 54 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - { - "type": "Identifier", - "start": 2359, - "end": 2371, - "loc": { - "start": { - "line": 49, - "column": 56 - }, - "end": { - "line": 49, - "column": 68 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - } - ], - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Set the parallax info to the instance", - "start": 2261, - "end": 2301, - "loc": { - "start": { - "line": 48, - "column": 20 - }, - "end": { - "line": 48, - "column": 60 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 2395, - "end": 2426, - "loc": { - "start": { - "line": 50, - "column": 20 - }, - "end": { - "line": 50, - "column": 51 - } - }, - "expression": { - "type": "CallExpression", - "start": 2395, - "end": 2425, - "loc": { - "start": { - "line": 50, - "column": 20 - }, - "end": { - "line": 50, - "column": 50 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2395, - "end": 2414, - "loc": { - "start": { - "line": 50, - "column": 20 - }, - "end": { - "line": 50, - "column": 39 - } - }, - "object": { - "type": "MemberExpression", - "start": 2395, - "end": 2409, - "loc": { - "start": { - "line": 50, - "column": 20 - }, - "end": { - "line": 50, - "column": 34 - } - }, - "object": { - "type": "ThisExpression", - "start": 2395, - "end": 2399, - "loc": { - "start": { - "line": 50, - "column": 20 - }, - "end": { - "line": 50, - "column": 24 - } - } - }, - "property": { - "type": "Identifier", - "start": 2400, - "end": 2409, - "loc": { - "start": { - "line": 50, - "column": 25 - }, - "end": { - "line": 50, - "column": 34 - }, - "identifierName": "instances" - }, - "name": "instances" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 2410, - "end": 2414, - "loc": { - "start": { - "line": 50, - "column": 35 - }, - "end": { - "line": 50, - "column": 39 - }, - "identifierName": "push" - }, - "name": "push" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2415, - "end": 2424, - "loc": { - "start": { - "line": 50, - "column": 40 - }, - "end": { - "line": 50, - "column": 49 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - } - ] - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 2466, - "end": 2594, - "loc": { - "start": { - "line": 52, - "column": 19 - }, - "end": { - "line": 54, - "column": 13 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2485, - "end": 2579, - "loc": { - "start": { - "line": 53, - "column": 16 - }, - "end": { - "line": 53, - "column": 110 - } - }, - "expression": { - "type": "CallExpression", - "start": 2485, - "end": 2578, - "loc": { - "start": { - "line": 53, - "column": 16 - }, - "end": { - "line": 53, - "column": 109 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2485, - "end": 2528, - "loc": { - "start": { - "line": 53, - "column": 16 - }, - "end": { - "line": 53, - "column": 59 - } - }, - "object": { - "type": "CallExpression", - "start": 2485, - "end": 2522, - "loc": { - "start": { - "line": 53, - "column": 16 - }, - "end": { - "line": 53, - "column": 53 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2485, - "end": 2503, - "loc": { - "start": { - "line": 53, - "column": 16 - }, - "end": { - "line": 53, - "column": 34 - } - }, - "object": { - "type": "MemberExpression", - "start": 2485, - "end": 2496, - "loc": { - "start": { - "line": 53, - "column": 16 - }, - "end": { - "line": 53, - "column": 27 - } - }, - "object": { - "type": "ThisExpression", - "start": 2485, - "end": 2489, - "loc": { - "start": { - "line": 53, - "column": 16 - }, - "end": { - "line": 53, - "column": 20 - } - } - }, - "property": { - "type": "Identifier", - "start": 2490, - "end": 2496, - "loc": { - "start": { - "line": 53, - "column": 21 - }, - "end": { - "line": 53, - "column": 27 - }, - "identifierName": "logger" - }, - "name": "logger" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 2497, - "end": 2503, - "loc": { - "start": { - "line": 53, - "column": 28 - }, - "end": { - "line": 53, - "column": 34 - }, - "identifierName": "prefix" - }, - "name": "prefix" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2504, - "end": 2521, - "loc": { - "start": { - "line": 53, - "column": 35 - }, - "end": { - "line": 53, - "column": 52 - } - }, - "extra": { - "rawValue": "Parallax-Module", - "raw": "'Parallax-Module'" - }, - "value": "Parallax-Module" - } - ] - }, - "property": { - "type": "Identifier", - "start": 2523, - "end": 2528, - "loc": { - "start": { - "line": 53, - "column": 54 - }, - "end": { - "line": 53, - "column": 59 - }, - "identifierName": "error" - }, - "name": "error" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2529, - "end": 2577, - "loc": { - "start": { - "line": 53, - "column": 60 - }, - "end": { - "line": 53, - "column": 108 - } - }, - "extra": { - "rawValue": "No pParallaxInfo passed or invalid type found!", - "raw": "'No pParallaxInfo passed or invalid type found!'" - }, - "value": "No pParallaxInfo passed or invalid type found!" - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 2611, - "end": 2705, - "loc": { - "start": { - "line": 55, - "column": 15 - }, - "end": { - "line": 57, - "column": 9 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2626, - "end": 2694, - "loc": { - "start": { - "line": 56, - "column": 12 - }, - "end": { - "line": 56, - "column": 80 - } - }, - "expression": { - "type": "CallExpression", - "start": 2626, - "end": 2693, - "loc": { - "start": { - "line": 56, - "column": 12 - }, - "end": { - "line": 56, - "column": 79 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2626, - "end": 2669, - "loc": { - "start": { - "line": 56, - "column": 12 - }, - "end": { - "line": 56, - "column": 55 - } - }, - "object": { - "type": "CallExpression", - "start": 2626, - "end": 2663, - "loc": { - "start": { - "line": 56, - "column": 12 - }, - "end": { - "line": 56, - "column": 49 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2626, - "end": 2644, - "loc": { - "start": { - "line": 56, - "column": 12 - }, - "end": { - "line": 56, - "column": 30 - } - }, - "object": { - "type": "MemberExpression", - "start": 2626, - "end": 2637, - "loc": { - "start": { - "line": 56, - "column": 12 - }, - "end": { - "line": 56, - "column": 23 - } - }, - "object": { - "type": "ThisExpression", - "start": 2626, - "end": 2630, - "loc": { - "start": { - "line": 56, - "column": 12 - }, - "end": { - "line": 56, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 2631, - "end": 2637, - "loc": { - "start": { - "line": 56, - "column": 17 - }, - "end": { - "line": 56, - "column": 23 - }, - "identifierName": "logger" - }, - "name": "logger" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 2638, - "end": 2644, - "loc": { - "start": { - "line": 56, - "column": 24 - }, - "end": { - "line": 56, - "column": 30 - }, - "identifierName": "prefix" - }, - "name": "prefix" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2645, - "end": 2662, - "loc": { - "start": { - "line": 56, - "column": 31 - }, - "end": { - "line": 56, - "column": 48 - } - }, - "extra": { - "rawValue": "Parallax-Module", - "raw": "'Parallax-Module'" - }, - "value": "Parallax-Module" - } - ] - }, - "property": { - "type": "Identifier", - "start": 2664, - "end": 2669, - "loc": { - "start": { - "line": 56, - "column": 50 - }, - "end": { - "line": 56, - "column": 55 - }, - "identifierName": "error" - }, - "name": "error" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2670, - "end": 2692, - "loc": { - "start": { - "line": 56, - "column": 56 - }, - "end": { - "line": 56, - "column": 78 - } - }, - "extra": { - "rawValue": "No pInstance passed!", - "raw": "'No pInstance passed!'" - }, - "value": "No pInstance passed!" - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n * Adds an instance to the parallax system.\r\n * Call this first and then add your instance to the map.\r\n * @param {Object} pInstance - The instance to add to the parallax system.\r\n * @param {Object} pParallaxInfo - The parallax info that tells this module how to control this instance.\r\n * @property {number} pParallaxInfo.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {number} pParallaxInfo.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {boolean} pParallaxInfo.loop - Whether this instance will loop endlessly.\r\n * @param {number} [pX] - The x position this instance will start at.\r\n * @param {number} [pY] - The y position this instance will start at.\r\n * @param {string} [pMap] - The map this instance will start at.\r\n ", - "start": 656, - "end": 1631, - "loc": { - "start": { - "line": 26, - "column": 4 - }, - "end": { - "line": 37, - "column": 7 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n * Initializes this instance.\r\n * @param {Object} pInstance - The instance to initialize.\r\n * @param {Object} pParallaxInfo - The parallax info that tells this module how to control this instance.\r\n * @property {number} pParallaxInfo.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {number} pParallaxInfo.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {boolean} pParallaxInfo.loop - Whether this instance will loop endlessly.\r\n * @param {number} pX - The x position this parallax will start at.\r\n * @param {number} pY - The y position this parallax will start at.\r\n * @param {string} pMap - The map this instance will start at.\r\n * @private\r\n ", - "start": 2718, - "end": 3611, - "loc": { - "start": { - "line": 59, - "column": 4 - }, - "end": { - "line": 70, - "column": 7 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 3617, - "end": 5869, - "loc": { - "start": { - "line": 71, - "column": 4 - }, - "end": { - "line": 112, - "column": 5 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3617, - "end": 3621, - "loc": { - "start": { - "line": 71, - "column": 4 - }, - "end": { - "line": 71, - "column": 8 - }, - "identifierName": "init" - }, - "name": "init", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 3622, - "end": 3631, - "loc": { - "start": { - "line": 71, - "column": 9 - }, - "end": { - "line": 71, - "column": 18 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - { - "type": "Identifier", - "start": 3633, - "end": 3646, - "loc": { - "start": { - "line": 71, - "column": 20 - }, - "end": { - "line": 71, - "column": 33 - }, - "identifierName": "pParallaxInfo" - }, - "name": "pParallaxInfo" - }, - { - "type": "Identifier", - "start": 3648, - "end": 3650, - "loc": { - "start": { - "line": 71, - "column": 35 - }, - "end": { - "line": 71, - "column": 37 - }, - "identifierName": "pX" - }, - "name": "pX" - }, - { - "type": "Identifier", - "start": 3652, - "end": 3654, - "loc": { - "start": { - "line": 71, - "column": 39 - }, - "end": { - "line": 71, - "column": 41 - }, - "identifierName": "pY" - }, - "name": "pY" - }, - { - "type": "Identifier", - "start": 3656, - "end": 3660, - "loc": { - "start": { - "line": 71, - "column": 43 - }, - "end": { - "line": 71, - "column": 47 - }, - "identifierName": "pMap" - }, - "name": "pMap" - } - ], - "body": { - "type": "BlockStatement", - "start": 3662, - "end": 5869, - "loc": { - "start": { - "line": 71, - "column": 49 - }, - "end": { - "line": 112, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 3673, - "end": 5862, - "loc": { - "start": { - "line": 72, - "column": 8 - }, - "end": { - "line": 111, - "column": 9 - } - }, - "test": { - "type": "Identifier", - "start": 3677, - "end": 3681, - "loc": { - "start": { - "line": 72, - "column": 12 - }, - "end": { - "line": 72, - "column": 16 - }, - "identifierName": "VYLO" - }, - "name": "VYLO" - }, - "consequent": { - "type": "BlockStatement", - "start": 3683, - "end": 5696, - "loc": { - "start": { - "line": 72, - "column": 18 - }, - "end": { - "line": 109, - "column": 9 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 3740, - "end": 3785, - "loc": { - "start": { - "line": 74, - "column": 12 - }, - "end": { - "line": 74, - "column": 57 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 3740, - "end": 3784, - "loc": { - "start": { - "line": 74, - "column": 12 - }, - "end": { - "line": 74, - "column": 56 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 3740, - "end": 3765, - "loc": { - "start": { - "line": 74, - "column": 12 - }, - "end": { - "line": 74, - "column": 37 - } - }, - "object": { - "type": "Identifier", - "start": 3740, - "end": 3753, - "loc": { - "start": { - "line": 74, - "column": 12 - }, - "end": { - "line": 74, - "column": 25 - }, - "identifierName": "pParallaxInfo" - }, - "name": "pParallaxInfo", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 3754, - "end": 3765, - "loc": { - "start": { - "line": 74, - "column": 26 - }, - "end": { - "line": 74, - "column": 37 - }, - "identifierName": "_initialPos" - }, - "name": "_initialPos" - }, - "computed": false, - "leadingComments": null - }, - "right": { - "type": "ObjectExpression", - "start": 3768, - "end": 3784, - "loc": { - "start": { - "line": 74, - "column": 40 - }, - "end": { - "line": 74, - "column": 56 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3770, - "end": 3775, - "loc": { - "start": { - "line": 74, - "column": 42 - }, - "end": { - "line": 74, - "column": 47 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3770, - "end": 3771, - "loc": { - "start": { - "line": 74, - "column": 42 - }, - "end": { - "line": 74, - "column": 43 - }, - "identifierName": "x" - }, - "name": "x" - }, - "value": { - "type": "Identifier", - "start": 3773, - "end": 3775, - "loc": { - "start": { - "line": 74, - "column": 45 - }, - "end": { - "line": 74, - "column": 47 - }, - "identifierName": "pX" - }, - "name": "pX" - } - }, - { - "type": "ObjectProperty", - "start": 3777, - "end": 3782, - "loc": { - "start": { - "line": 74, - "column": 49 - }, - "end": { - "line": 74, - "column": 54 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3777, - "end": 3778, - "loc": { - "start": { - "line": 74, - "column": 49 - }, - "end": { - "line": 74, - "column": 50 - }, - "identifierName": "y" - }, - "name": "y" - }, - "value": { - "type": "Identifier", - "start": 3780, - "end": 3782, - "loc": { - "start": { - "line": 74, - "column": 52 - }, - "end": { - "line": 74, - "column": 54 - }, - "identifierName": "pY" - }, - "name": "pY" - } - } - ] - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Set the initial position.", - "start": 3698, - "end": 3726, - "loc": { - "start": { - "line": 73, - "column": 12 - }, - "end": { - "line": 73, - "column": 40 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " If this instance is set to loop, then it needs a left and right clone", - "start": 3799, - "end": 3871, - "loc": { - "start": { - "line": 75, - "column": 12 - }, - "end": { - "line": 75, - "column": 84 - } - } - } - ] - }, - { - "type": "IfStatement", - "start": 3885, - "end": 5584, - "loc": { - "start": { - "line": 76, - "column": 12 - }, - "end": { - "line": 105, - "column": 13 - } - }, - "test": { - "type": "MemberExpression", - "start": 3889, - "end": 3907, - "loc": { - "start": { - "line": 76, - "column": 16 - }, - "end": { - "line": 76, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 3889, - "end": 3902, - "loc": { - "start": { - "line": 76, - "column": 16 - }, - "end": { - "line": 76, - "column": 29 - }, - "identifierName": "pParallaxInfo" - }, - "name": "pParallaxInfo", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 3903, - "end": 3907, - "loc": { - "start": { - "line": 76, - "column": 30 - }, - "end": { - "line": 76, - "column": 34 - }, - "identifierName": "loop" - }, - "name": "loop" - }, - "computed": false, - "leadingComments": null - }, - "consequent": { - "type": "BlockStatement", - "start": 3909, - "end": 5584, - "loc": { - "start": { - "line": 76, - "column": 36 - }, - "end": { - "line": 105, - "column": 13 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 3978, - "end": 4016, - "loc": { - "start": { - "line": 78, - "column": 16 - }, - "end": { - "line": 78, - "column": 54 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3984, - "end": 4015, - "loc": { - "start": { - "line": 78, - "column": 22 - }, - "end": { - "line": 78, - "column": 53 - } - }, - "id": { - "type": "Identifier", - "start": 3984, - "end": 3988, - "loc": { - "start": { - "line": 78, - "column": 22 - }, - "end": { - "line": 78, - "column": 26 - }, - "identifierName": "left" - }, - "name": "left", - "leadingComments": null - }, - "init": { - "type": "CallExpression", - "start": 3991, - "end": 4015, - "loc": { - "start": { - "line": 78, - "column": 29 - }, - "end": { - "line": 78, - "column": 53 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3991, - "end": 4003, - "loc": { - "start": { - "line": 78, - "column": 29 - }, - "end": { - "line": 78, - "column": 41 - } - }, - "object": { - "type": "Identifier", - "start": 3991, - "end": 3995, - "loc": { - "start": { - "line": 78, - "column": 29 - }, - "end": { - "line": 78, - "column": 33 - }, - "identifierName": "VYLO" - }, - "name": "VYLO" - }, - "property": { - "type": "Identifier", - "start": 3996, - "end": 4003, - "loc": { - "start": { - "line": 78, - "column": 34 - }, - "end": { - "line": 78, - "column": 41 - }, - "identifierName": "newDiob" - }, - "name": "newDiob" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 4004, - "end": 4014, - "loc": { - "start": { - "line": 78, - "column": 42 - }, - "end": { - "line": 78, - "column": 52 - } - }, - "extra": { - "rawValue": "Particle", - "raw": "'Particle'" - }, - "value": "Particle" - } - ] - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " Create a left and right clone", - "start": 3928, - "end": 3960, - "loc": { - "start": { - "line": 77, - "column": 16 - }, - "end": { - "line": 77, - "column": 48 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 4034, - "end": 4073, - "loc": { - "start": { - "line": 79, - "column": 16 - }, - "end": { - "line": 79, - "column": 55 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4040, - "end": 4072, - "loc": { - "start": { - "line": 79, - "column": 22 - }, - "end": { - "line": 79, - "column": 54 - } - }, - "id": { - "type": "Identifier", - "start": 4040, - "end": 4045, - "loc": { - "start": { - "line": 79, - "column": 22 - }, - "end": { - "line": 79, - "column": 27 - }, - "identifierName": "right" - }, - "name": "right" - }, - "init": { - "type": "CallExpression", - "start": 4048, - "end": 4072, - "loc": { - "start": { - "line": 79, - "column": 30 - }, - "end": { - "line": 79, - "column": 54 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4048, - "end": 4060, - "loc": { - "start": { - "line": 79, - "column": 30 - }, - "end": { - "line": 79, - "column": 42 - } - }, - "object": { - "type": "Identifier", - "start": 4048, - "end": 4052, - "loc": { - "start": { - "line": 79, - "column": 30 - }, - "end": { - "line": 79, - "column": 34 - }, - "identifierName": "VYLO" - }, - "name": "VYLO" - }, - "property": { - "type": "Identifier", - "start": 4053, - "end": 4060, - "loc": { - "start": { - "line": 79, - "column": 35 - }, - "end": { - "line": 79, - "column": 42 - }, - "identifierName": "newDiob" - }, - "name": "newDiob" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 4061, - "end": 4071, - "loc": { - "start": { - "line": 79, - "column": 43 - }, - "end": { - "line": 79, - "column": 53 - } - }, - "extra": { - "rawValue": "Particle", - "raw": "'Particle'" - }, - "value": "Particle" - } - ] - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " Make the left and right clone particle look the same as the initial instance", - "start": 4091, - "end": 4170, - "loc": { - "start": { - "line": 80, - "column": 16 - }, - "end": { - "line": 80, - "column": 95 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 4188, - "end": 4218, - "loc": { - "start": { - "line": 81, - "column": 16 - }, - "end": { - "line": 81, - "column": 46 - } - }, - "expression": { - "type": "CallExpression", - "start": 4188, - "end": 4217, - "loc": { - "start": { - "line": 81, - "column": 16 - }, - "end": { - "line": 81, - "column": 45 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4188, - "end": 4206, - "loc": { - "start": { - "line": 81, - "column": 16 - }, - "end": { - "line": 81, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 4188, - "end": 4192, - "loc": { - "start": { - "line": 81, - "column": 16 - }, - "end": { - "line": 81, - "column": 20 - }, - "identifierName": "left" - }, - "name": "left", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 4193, - "end": 4206, - "loc": { - "start": { - "line": 81, - "column": 21 - }, - "end": { - "line": 81, - "column": 34 - }, - "identifierName": "setAppearance" - }, - "name": "setAppearance" - }, - "computed": false, - "leadingComments": null - }, - "arguments": [ - { - "type": "Identifier", - "start": 4207, - "end": 4216, - "loc": { - "start": { - "line": 81, - "column": 35 - }, - "end": { - "line": 81, - "column": 44 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - } - ], - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Make the left and right clone particle look the same as the initial instance", - "start": 4091, - "end": 4170, - "loc": { - "start": { - "line": 80, - "column": 16 - }, - "end": { - "line": 80, - "column": 95 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 4236, - "end": 4267, - "loc": { - "start": { - "line": 82, - "column": 16 - }, - "end": { - "line": 82, - "column": 47 - } - }, - "expression": { - "type": "CallExpression", - "start": 4236, - "end": 4266, - "loc": { - "start": { - "line": 82, - "column": 16 - }, - "end": { - "line": 82, - "column": 46 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4236, - "end": 4255, - "loc": { - "start": { - "line": 82, - "column": 16 - }, - "end": { - "line": 82, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 4236, - "end": 4241, - "loc": { - "start": { - "line": 82, - "column": 16 - }, - "end": { - "line": 82, - "column": 21 - }, - "identifierName": "right" - }, - "name": "right" - }, - "property": { - "type": "Identifier", - "start": 4242, - "end": 4255, - "loc": { - "start": { - "line": 82, - "column": 22 - }, - "end": { - "line": 82, - "column": 35 - }, - "identifierName": "setAppearance" - }, - "name": "setAppearance" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4256, - "end": 4265, - "loc": { - "start": { - "line": 82, - "column": 36 - }, - "end": { - "line": 82, - "column": 45 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - } - ] - }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " Position the left clone", - "start": 4285, - "end": 4311, - "loc": { - "start": { - "line": 83, - "column": 16 - }, - "end": { - "line": 83, - "column": 42 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 4329, - "end": 4389, - "loc": { - "start": { - "line": 84, - "column": 16 - }, - "end": { - "line": 84, - "column": 76 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 4329, - "end": 4388, - "loc": { - "start": { - "line": 84, - "column": 16 - }, - "end": { - "line": 84, - "column": 75 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 4329, - "end": 4335, - "loc": { - "start": { - "line": 84, - "column": 16 - }, - "end": { - "line": 84, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 4329, - "end": 4333, - "loc": { - "start": { - "line": 84, - "column": 16 - }, - "end": { - "line": 84, - "column": 20 - }, - "identifierName": "left" - }, - "name": "left", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 4334, - "end": 4335, - "loc": { - "start": { - "line": 84, - "column": 21 - }, - "end": { - "line": 84, - "column": 22 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false, - "leadingComments": null - }, - "right": { - "type": "BinaryExpression", - "start": 4338, - "end": 4388, - "loc": { - "start": { - "line": 84, - "column": 25 - }, - "end": { - "line": 84, - "column": 75 - } - }, - "left": { - "type": "MemberExpression", - "start": 4338, - "end": 4365, - "loc": { - "start": { - "line": 84, - "column": 25 - }, - "end": { - "line": 84, - "column": 52 - } - }, - "object": { - "type": "MemberExpression", - "start": 4338, - "end": 4363, - "loc": { - "start": { - "line": 84, - "column": 25 - }, - "end": { - "line": 84, - "column": 50 - } - }, - "object": { - "type": "Identifier", - "start": 4338, - "end": 4351, - "loc": { - "start": { - "line": 84, - "column": 25 - }, - "end": { - "line": 84, - "column": 38 - }, - "identifierName": "pParallaxInfo" - }, - "name": "pParallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 4352, - "end": 4363, - "loc": { - "start": { - "line": 84, - "column": 39 - }, - "end": { - "line": 84, - "column": 50 - }, - "identifierName": "_initialPos" - }, - "name": "_initialPos" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 4364, - "end": 4365, - "loc": { - "start": { - "line": 84, - "column": 51 - }, - "end": { - "line": 84, - "column": 52 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 4368, - "end": 4388, - "loc": { - "start": { - "line": 84, - "column": 55 - }, - "end": { - "line": 84, - "column": 75 - } - }, - "object": { - "type": "MemberExpression", - "start": 4368, - "end": 4382, - "loc": { - "start": { - "line": 84, - "column": 55 - }, - "end": { - "line": 84, - "column": 69 - } - }, - "object": { - "type": "Identifier", - "start": 4368, - "end": 4377, - "loc": { - "start": { - "line": 84, - "column": 55 - }, - "end": { - "line": 84, - "column": 64 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 4378, - "end": 4382, - "loc": { - "start": { - "line": 84, - "column": 65 - }, - "end": { - "line": 84, - "column": 69 - }, - "identifierName": "icon" - }, - "name": "icon" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 4383, - "end": 4388, - "loc": { - "start": { - "line": 84, - "column": 70 - }, - "end": { - "line": 84, - "column": 75 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - } - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Position the left clone", - "start": 4285, - "end": 4311, - "loc": { - "start": { - "line": 83, - "column": 16 - }, - "end": { - "line": 83, - "column": 42 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 4407, - "end": 4444, - "loc": { - "start": { - "line": 85, - "column": 16 - }, - "end": { - "line": 85, - "column": 53 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 4407, - "end": 4443, - "loc": { - "start": { - "line": 85, - "column": 16 - }, - "end": { - "line": 85, - "column": 52 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 4407, - "end": 4413, - "loc": { - "start": { - "line": 85, - "column": 16 - }, - "end": { - "line": 85, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 4407, - "end": 4411, - "loc": { - "start": { - "line": 85, - "column": 16 - }, - "end": { - "line": 85, - "column": 20 - }, - "identifierName": "left" - }, - "name": "left" - }, - "property": { - "type": "Identifier", - "start": 4412, - "end": 4413, - "loc": { - "start": { - "line": 85, - "column": 21 - }, - "end": { - "line": 85, - "column": 22 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 4416, - "end": 4443, - "loc": { - "start": { - "line": 85, - "column": 25 - }, - "end": { - "line": 85, - "column": 52 - } - }, - "object": { - "type": "MemberExpression", - "start": 4416, - "end": 4441, - "loc": { - "start": { - "line": 85, - "column": 25 - }, - "end": { - "line": 85, - "column": 50 - } - }, - "object": { - "type": "Identifier", - "start": 4416, - "end": 4429, - "loc": { - "start": { - "line": 85, - "column": 25 - }, - "end": { - "line": 85, - "column": 38 - }, - "identifierName": "pParallaxInfo" - }, - "name": "pParallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 4430, - "end": 4441, - "loc": { - "start": { - "line": 85, - "column": 39 - }, - "end": { - "line": 85, - "column": 50 - }, - "identifierName": "_initialPos" - }, - "name": "_initialPos" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 4442, - "end": 4443, - "loc": { - "start": { - "line": 85, - "column": 51 - }, - "end": { - "line": 85, - "column": 52 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " Position the right clone", - "start": 4462, - "end": 4489, - "loc": { - "start": { - "line": 86, - "column": 16 - }, - "end": { - "line": 86, - "column": 43 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 4507, - "end": 4568, - "loc": { - "start": { - "line": 87, - "column": 16 - }, - "end": { - "line": 87, - "column": 77 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 4507, - "end": 4567, - "loc": { - "start": { - "line": 87, - "column": 16 - }, - "end": { - "line": 87, - "column": 76 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 4507, - "end": 4514, - "loc": { - "start": { - "line": 87, - "column": 16 - }, - "end": { - "line": 87, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 4507, - "end": 4512, - "loc": { - "start": { - "line": 87, - "column": 16 - }, - "end": { - "line": 87, - "column": 21 - }, - "identifierName": "right" - }, - "name": "right", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 4513, - "end": 4514, - "loc": { - "start": { - "line": 87, - "column": 22 - }, - "end": { - "line": 87, - "column": 23 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false, - "leadingComments": null - }, - "right": { - "type": "BinaryExpression", - "start": 4517, - "end": 4567, - "loc": { - "start": { - "line": 87, - "column": 26 - }, - "end": { - "line": 87, - "column": 76 - } - }, - "left": { - "type": "MemberExpression", - "start": 4517, - "end": 4544, - "loc": { - "start": { - "line": 87, - "column": 26 - }, - "end": { - "line": 87, - "column": 53 - } - }, - "object": { - "type": "MemberExpression", - "start": 4517, - "end": 4542, - "loc": { - "start": { - "line": 87, - "column": 26 - }, - "end": { - "line": 87, - "column": 51 - } - }, - "object": { - "type": "Identifier", - "start": 4517, - "end": 4530, - "loc": { - "start": { - "line": 87, - "column": 26 - }, - "end": { - "line": 87, - "column": 39 - }, - "identifierName": "pParallaxInfo" - }, - "name": "pParallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 4531, - "end": 4542, - "loc": { - "start": { - "line": 87, - "column": 40 - }, - "end": { - "line": 87, - "column": 51 - }, - "identifierName": "_initialPos" - }, - "name": "_initialPos" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 4543, - "end": 4544, - "loc": { - "start": { - "line": 87, - "column": 52 - }, - "end": { - "line": 87, - "column": 53 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 4547, - "end": 4567, - "loc": { - "start": { - "line": 87, - "column": 56 - }, - "end": { - "line": 87, - "column": 76 - } - }, - "object": { - "type": "MemberExpression", - "start": 4547, - "end": 4561, - "loc": { - "start": { - "line": 87, - "column": 56 - }, - "end": { - "line": 87, - "column": 70 - } - }, - "object": { - "type": "Identifier", - "start": 4547, - "end": 4556, - "loc": { - "start": { - "line": 87, - "column": 56 - }, - "end": { - "line": 87, - "column": 65 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 4557, - "end": 4561, - "loc": { - "start": { - "line": 87, - "column": 66 - }, - "end": { - "line": 87, - "column": 70 - }, - "identifierName": "icon" - }, - "name": "icon" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 4562, - "end": 4567, - "loc": { - "start": { - "line": 87, - "column": 71 - }, - "end": { - "line": 87, - "column": 76 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - } - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Position the right clone", - "start": 4462, - "end": 4489, - "loc": { - "start": { - "line": 86, - "column": 16 - }, - "end": { - "line": 86, - "column": 43 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 4586, - "end": 4624, - "loc": { - "start": { - "line": 88, - "column": 16 - }, - "end": { - "line": 88, - "column": 54 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 4586, - "end": 4623, - "loc": { - "start": { - "line": 88, - "column": 16 - }, - "end": { - "line": 88, - "column": 53 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 4586, - "end": 4593, - "loc": { - "start": { - "line": 88, - "column": 16 - }, - "end": { - "line": 88, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 4586, - "end": 4591, - "loc": { - "start": { - "line": 88, - "column": 16 - }, - "end": { - "line": 88, - "column": 21 - }, - "identifierName": "right" - }, - "name": "right" - }, - "property": { - "type": "Identifier", - "start": 4592, - "end": 4593, - "loc": { - "start": { - "line": 88, - "column": 22 - }, - "end": { - "line": 88, - "column": 23 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 4596, - "end": 4623, - "loc": { - "start": { - "line": 88, - "column": 26 - }, - "end": { - "line": 88, - "column": 53 - } - }, - "object": { - "type": "MemberExpression", - "start": 4596, - "end": 4621, - "loc": { - "start": { - "line": 88, - "column": 26 - }, - "end": { - "line": 88, - "column": 51 - } - }, - "object": { - "type": "Identifier", - "start": 4596, - "end": 4609, - "loc": { - "start": { - "line": 88, - "column": 26 - }, - "end": { - "line": 88, - "column": 39 - }, - "identifierName": "pParallaxInfo" - }, - "name": "pParallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 4610, - "end": 4621, - "loc": { - "start": { - "line": 88, - "column": 40 - }, - "end": { - "line": 88, - "column": 51 - }, - "identifierName": "_initialPos" - }, - "name": "_initialPos" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 4622, - "end": 4623, - "loc": { - "start": { - "line": 88, - "column": 52 - }, - "end": { - "line": 88, - "column": 53 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " Store the clones in a temporary array", - "start": 4642, - "end": 4682, - "loc": { - "start": { - "line": 89, - "column": 16 - }, - "end": { - "line": 89, - "column": 56 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 4700, - "end": 4731, - "loc": { - "start": { - "line": 90, - "column": 16 - }, - "end": { - "line": 90, - "column": 47 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4706, - "end": 4730, - "loc": { - "start": { - "line": 90, - "column": 22 - }, - "end": { - "line": 90, - "column": 46 - } - }, - "id": { - "type": "Identifier", - "start": 4706, - "end": 4714, - "loc": { - "start": { - "line": 90, - "column": 22 - }, - "end": { - "line": 90, - "column": 30 - }, - "identifierName": "children" - }, - "name": "children", - "leadingComments": null - }, - "init": { - "type": "ArrayExpression", - "start": 4717, - "end": 4730, - "loc": { - "start": { - "line": 90, - "column": 33 - }, - "end": { - "line": 90, - "column": 46 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 4718, - "end": 4722, - "loc": { - "start": { - "line": 90, - "column": 34 - }, - "end": { - "line": 90, - "column": 38 - }, - "identifierName": "left" - }, - "name": "left" - }, - { - "type": "Identifier", - "start": 4724, - "end": 4729, - "loc": { - "start": { - "line": 90, - "column": 40 - }, - "end": { - "line": 90, - "column": 45 - }, - "identifierName": "right" - }, - "name": "right" - } - ] - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " Store the clones in a temporary array", - "start": 4642, - "end": 4682, - "loc": { - "start": { - "line": 89, - "column": 16 - }, - "end": { - "line": 89, - "column": 56 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " Loop the clones and store their relative positions to the main instance", - "start": 4749, - "end": 4823, - "loc": { - "start": { - "line": 91, - "column": 16 - }, - "end": { - "line": 91, - "column": 90 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 4841, - "end": 5052, - "loc": { - "start": { - "line": 92, - "column": 16 - }, - "end": { - "line": 95, - "column": 19 - } - }, - "expression": { - "type": "CallExpression", - "start": 4841, - "end": 5051, - "loc": { - "start": { - "line": 92, - "column": 16 - }, - "end": { - "line": 95, - "column": 18 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4841, - "end": 4857, - "loc": { - "start": { - "line": 92, - "column": 16 - }, - "end": { - "line": 92, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 4841, - "end": 4849, - "loc": { - "start": { - "line": 92, - "column": 16 - }, - "end": { - "line": 92, - "column": 24 - }, - "identifierName": "children" - }, - "name": "children", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 4850, - "end": 4857, - "loc": { - "start": { - "line": 92, - "column": 25 - }, - "end": { - "line": 92, - "column": 32 - }, - "identifierName": "forEach" - }, - "name": "forEach" - }, - "computed": false, - "leadingComments": null - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 4858, - "end": 5050, - "loc": { - "start": { - "line": 92, - "column": 33 - }, - "end": { - "line": 95, - "column": 17 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 4859, - "end": 4865, - "loc": { - "start": { - "line": 92, - "column": 34 - }, - "end": { - "line": 92, - "column": 40 - }, - "identifierName": "pChild" - }, - "name": "pChild" - } - ], - "body": { - "type": "BlockStatement", - "start": 4870, - "end": 5050, - "loc": { - "start": { - "line": 92, - "column": 45 - }, - "end": { - "line": 95, - "column": 17 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 4893, - "end": 4951, - "loc": { - "start": { - "line": 93, - "column": 20 - }, - "end": { - "line": 93, - "column": 78 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 4893, - "end": 4950, - "loc": { - "start": { - "line": 93, - "column": 20 - }, - "end": { - "line": 93, - "column": 77 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 4893, - "end": 4909, - "loc": { - "start": { - "line": 93, - "column": 20 - }, - "end": { - "line": 93, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 4893, - "end": 4899, - "loc": { - "start": { - "line": 93, - "column": 20 - }, - "end": { - "line": 93, - "column": 26 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 4900, - "end": 4909, - "loc": { - "start": { - "line": 93, - "column": 27 - }, - "end": { - "line": 93, - "column": 36 - }, - "identifierName": "relativeX" - }, - "name": "relativeX" - }, - "computed": false - }, - "right": { - "type": "BinaryExpression", - "start": 4912, - "end": 4950, - "loc": { - "start": { - "line": 93, - "column": 39 - }, - "end": { - "line": 93, - "column": 77 - } - }, - "left": { - "type": "MemberExpression", - "start": 4912, - "end": 4920, - "loc": { - "start": { - "line": 93, - "column": 39 - }, - "end": { - "line": 93, - "column": 47 - } - }, - "object": { - "type": "Identifier", - "start": 4912, - "end": 4918, - "loc": { - "start": { - "line": 93, - "column": 39 - }, - "end": { - "line": 93, - "column": 45 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 4919, - "end": 4920, - "loc": { - "start": { - "line": 93, - "column": 46 - }, - "end": { - "line": 93, - "column": 47 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 4923, - "end": 4950, - "loc": { - "start": { - "line": 93, - "column": 50 - }, - "end": { - "line": 93, - "column": 77 - } - }, - "object": { - "type": "MemberExpression", - "start": 4923, - "end": 4948, - "loc": { - "start": { - "line": 93, - "column": 50 - }, - "end": { - "line": 93, - "column": 75 - } - }, - "object": { - "type": "Identifier", - "start": 4923, - "end": 4936, - "loc": { - "start": { - "line": 93, - "column": 50 - }, - "end": { - "line": 93, - "column": 63 - }, - "identifierName": "pParallaxInfo" - }, - "name": "pParallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 4937, - "end": 4948, - "loc": { - "start": { - "line": 93, - "column": 64 - }, - "end": { - "line": 93, - "column": 75 - }, - "identifierName": "_initialPos" - }, - "name": "_initialPos" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 4949, - "end": 4950, - "loc": { - "start": { - "line": 93, - "column": 76 - }, - "end": { - "line": 93, - "column": 77 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 4973, - "end": 5031, - "loc": { - "start": { - "line": 94, - "column": 20 - }, - "end": { - "line": 94, - "column": 78 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 4973, - "end": 5030, - "loc": { - "start": { - "line": 94, - "column": 20 - }, - "end": { - "line": 94, - "column": 77 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 4973, - "end": 4989, - "loc": { - "start": { - "line": 94, - "column": 20 - }, - "end": { - "line": 94, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 4973, - "end": 4979, - "loc": { - "start": { - "line": 94, - "column": 20 - }, - "end": { - "line": 94, - "column": 26 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 4980, - "end": 4989, - "loc": { - "start": { - "line": 94, - "column": 27 - }, - "end": { - "line": 94, - "column": 36 - }, - "identifierName": "relativeY" - }, - "name": "relativeY" - }, - "computed": false - }, - "right": { - "type": "BinaryExpression", - "start": 4992, - "end": 5030, - "loc": { - "start": { - "line": 94, - "column": 39 - }, - "end": { - "line": 94, - "column": 77 - } - }, - "left": { - "type": "MemberExpression", - "start": 4992, - "end": 5000, - "loc": { - "start": { - "line": 94, - "column": 39 - }, - "end": { - "line": 94, - "column": 47 - } - }, - "object": { - "type": "Identifier", - "start": 4992, - "end": 4998, - "loc": { - "start": { - "line": 94, - "column": 39 - }, - "end": { - "line": 94, - "column": 45 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 4999, - "end": 5000, - "loc": { - "start": { - "line": 94, - "column": 46 - }, - "end": { - "line": 94, - "column": 47 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 5003, - "end": 5030, - "loc": { - "start": { - "line": 94, - "column": 50 - }, - "end": { - "line": 94, - "column": 77 - } - }, - "object": { - "type": "MemberExpression", - "start": 5003, - "end": 5028, - "loc": { - "start": { - "line": 94, - "column": 50 - }, - "end": { - "line": 94, - "column": 75 - } - }, - "object": { - "type": "Identifier", - "start": 5003, - "end": 5016, - "loc": { - "start": { - "line": 94, - "column": 50 - }, - "end": { - "line": 94, - "column": 63 - }, - "identifierName": "pParallaxInfo" - }, - "name": "pParallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 5017, - "end": 5028, - "loc": { - "start": { - "line": 94, - "column": 64 - }, - "end": { - "line": 94, - "column": 75 - }, - "identifierName": "_initialPos" - }, - "name": "_initialPos" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 5029, - "end": 5030, - "loc": { - "start": { - "line": 94, - "column": 76 - }, - "end": { - "line": 94, - "column": 77 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - } - } - } - ], - "directives": [] - } - } - ], - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Loop the clones and store their relative positions to the main instance", - "start": 4749, - "end": 4823, - "loc": { - "start": { - "line": 91, - "column": 16 - }, - "end": { - "line": 91, - "column": 90 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " When the main instance moves, move the clones with their relative position to it.", - "start": 5070, - "end": 5154, - "loc": { - "start": { - "line": 96, - "column": 16 - }, - "end": { - "line": 96, - "column": 100 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 5172, - "end": 5569, - "loc": { - "start": { - "line": 97, - "column": 16 - }, - "end": { - "line": 104, - "column": 17 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 5172, - "end": 5569, - "loc": { - "start": { - "line": 97, - "column": 16 - }, - "end": { - "line": 104, - "column": 17 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 5172, - "end": 5193, - "loc": { - "start": { - "line": 97, - "column": 16 - }, - "end": { - "line": 97, - "column": 37 - } - }, - "object": { - "type": "Identifier", - "start": 5172, - "end": 5181, - "loc": { - "start": { - "line": 97, - "column": 16 - }, - "end": { - "line": 97, - "column": 25 - }, - "identifierName": "pInstance" - }, - "name": "pInstance", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 5182, - "end": 5193, - "loc": { - "start": { - "line": 97, - "column": 26 - }, - "end": { - "line": 97, - "column": 37 - }, - "identifierName": "onRelocated" - }, - "name": "onRelocated" - }, - "computed": false, - "leadingComments": null - }, - "right": { - "type": "FunctionExpression", - "start": 5196, - "end": 5569, - "loc": { - "start": { - "line": 97, - "column": 40 - }, - "end": { - "line": 104, - "column": 17 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 5205, - "end": 5207, - "loc": { - "start": { - "line": 97, - "column": 49 - }, - "end": { - "line": 97, - "column": 51 - }, - "identifierName": "pX" - }, - "name": "pX" - }, - { - "type": "Identifier", - "start": 5209, - "end": 5211, - "loc": { - "start": { - "line": 97, - "column": 53 - }, - "end": { - "line": 97, - "column": 55 - }, - "identifierName": "pY" - }, - "name": "pY" - } - ], - "body": { - "type": "BlockStatement", - "start": 5213, - "end": 5569, - "loc": { - "start": { - "line": 97, - "column": 57 - }, - "end": { - "line": 104, - "column": 17 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 5313, - "end": 5550, - "loc": { - "start": { - "line": 99, - "column": 20 - }, - "end": { - "line": 103, - "column": 23 - } - }, - "expression": { - "type": "CallExpression", - "start": 5313, - "end": 5549, - "loc": { - "start": { - "line": 99, - "column": 20 - }, - "end": { - "line": 103, - "column": 22 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5313, - "end": 5329, - "loc": { - "start": { - "line": 99, - "column": 20 - }, - "end": { - "line": 99, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 5313, - "end": 5321, - "loc": { - "start": { - "line": 99, - "column": 20 - }, - "end": { - "line": 99, - "column": 28 - }, - "identifierName": "children" - }, - "name": "children", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 5322, - "end": 5329, - "loc": { - "start": { - "line": 99, - "column": 29 - }, - "end": { - "line": 99, - "column": 36 - }, - "identifierName": "forEach" - }, - "name": "forEach" - }, - "computed": false, - "leadingComments": null - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 5330, - "end": 5548, - "loc": { - "start": { - "line": 99, - "column": 37 - }, - "end": { - "line": 103, - "column": 21 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 5331, - "end": 5337, - "loc": { - "start": { - "line": 99, - "column": 38 - }, - "end": { - "line": 99, - "column": 44 - }, - "identifierName": "pChild" - }, - "name": "pChild" - } - ], - "body": { - "type": "BlockStatement", - "start": 5342, - "end": 5548, - "loc": { - "start": { - "line": 99, - "column": 49 - }, - "end": { - "line": 103, - "column": 21 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 5369, - "end": 5406, - "loc": { - "start": { - "line": 100, - "column": 24 - }, - "end": { - "line": 100, - "column": 61 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 5369, - "end": 5405, - "loc": { - "start": { - "line": 100, - "column": 24 - }, - "end": { - "line": 100, - "column": 60 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 5369, - "end": 5377, - "loc": { - "start": { - "line": 100, - "column": 24 - }, - "end": { - "line": 100, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 5369, - "end": 5375, - "loc": { - "start": { - "line": 100, - "column": 24 - }, - "end": { - "line": 100, - "column": 30 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 5376, - "end": 5377, - "loc": { - "start": { - "line": 100, - "column": 31 - }, - "end": { - "line": 100, - "column": 32 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "right": { - "type": "BinaryExpression", - "start": 5380, - "end": 5405, - "loc": { - "start": { - "line": 100, - "column": 35 - }, - "end": { - "line": 100, - "column": 60 - } - }, - "left": { - "type": "MemberExpression", - "start": 5380, - "end": 5386, - "loc": { - "start": { - "line": 100, - "column": 35 - }, - "end": { - "line": 100, - "column": 41 - } - }, - "object": { - "type": "ThisExpression", - "start": 5380, - "end": 5384, - "loc": { - "start": { - "line": 100, - "column": 35 - }, - "end": { - "line": 100, - "column": 39 - } - } - }, - "property": { - "type": "Identifier", - "start": 5385, - "end": 5386, - "loc": { - "start": { - "line": 100, - "column": 40 - }, - "end": { - "line": 100, - "column": 41 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 5389, - "end": 5405, - "loc": { - "start": { - "line": 100, - "column": 44 - }, - "end": { - "line": 100, - "column": 60 - } - }, - "object": { - "type": "Identifier", - "start": 5389, - "end": 5395, - "loc": { - "start": { - "line": 100, - "column": 44 - }, - "end": { - "line": 100, - "column": 50 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 5396, - "end": 5405, - "loc": { - "start": { - "line": 100, - "column": 51 - }, - "end": { - "line": 100, - "column": 60 - }, - "identifierName": "relativeX" - }, - "name": "relativeX" - }, - "computed": false - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 5432, - "end": 5469, - "loc": { - "start": { - "line": 101, - "column": 24 - }, - "end": { - "line": 101, - "column": 61 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 5432, - "end": 5468, - "loc": { - "start": { - "line": 101, - "column": 24 - }, - "end": { - "line": 101, - "column": 60 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 5432, - "end": 5440, - "loc": { - "start": { - "line": 101, - "column": 24 - }, - "end": { - "line": 101, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 5432, - "end": 5438, - "loc": { - "start": { - "line": 101, - "column": 24 - }, - "end": { - "line": 101, - "column": 30 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 5439, - "end": 5440, - "loc": { - "start": { - "line": 101, - "column": 31 - }, - "end": { - "line": 101, - "column": 32 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "right": { - "type": "BinaryExpression", - "start": 5443, - "end": 5468, - "loc": { - "start": { - "line": 101, - "column": 35 - }, - "end": { - "line": 101, - "column": 60 - } - }, - "left": { - "type": "MemberExpression", - "start": 5443, - "end": 5449, - "loc": { - "start": { - "line": 101, - "column": 35 - }, - "end": { - "line": 101, - "column": 41 - } - }, - "object": { - "type": "ThisExpression", - "start": 5443, - "end": 5447, - "loc": { - "start": { - "line": 101, - "column": 35 - }, - "end": { - "line": 101, - "column": 39 - } - } - }, - "property": { - "type": "Identifier", - "start": 5448, - "end": 5449, - "loc": { - "start": { - "line": 101, - "column": 40 - }, - "end": { - "line": 101, - "column": 41 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 5452, - "end": 5468, - "loc": { - "start": { - "line": 101, - "column": 44 - }, - "end": { - "line": 101, - "column": 60 - } - }, - "object": { - "type": "Identifier", - "start": 5452, - "end": 5458, - "loc": { - "start": { - "line": 101, - "column": 44 - }, - "end": { - "line": 101, - "column": 50 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 5459, - "end": 5468, - "loc": { - "start": { - "line": 101, - "column": 51 - }, - "end": { - "line": 101, - "column": 60 - }, - "identifierName": "relativeY" - }, - "name": "relativeY" - }, - "computed": false - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 5495, - "end": 5525, - "loc": { - "start": { - "line": 102, - "column": 24 - }, - "end": { - "line": 102, - "column": 54 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 5495, - "end": 5524, - "loc": { - "start": { - "line": 102, - "column": 24 - }, - "end": { - "line": 102, - "column": 53 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 5495, - "end": 5509, - "loc": { - "start": { - "line": 102, - "column": 24 - }, - "end": { - "line": 102, - "column": 38 - } - }, - "object": { - "type": "Identifier", - "start": 5495, - "end": 5501, - "loc": { - "start": { - "line": 102, - "column": 24 - }, - "end": { - "line": 102, - "column": 30 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 5502, - "end": 5509, - "loc": { - "start": { - "line": 102, - "column": 31 - }, - "end": { - "line": 102, - "column": 38 - }, - "identifierName": "mapName" - }, - "name": "mapName" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 5512, - "end": 5524, - "loc": { - "start": { - "line": 102, - "column": 41 - }, - "end": { - "line": 102, - "column": 53 - } - }, - "object": { - "type": "ThisExpression", - "start": 5512, - "end": 5516, - "loc": { - "start": { - "line": 102, - "column": 41 - }, - "end": { - "line": 102, - "column": 45 - } - } - }, - "property": { - "type": "Identifier", - "start": 5517, - "end": 5524, - "loc": { - "start": { - "line": 102, - "column": 46 - }, - "end": { - "line": 102, - "column": 53 - }, - "identifierName": "mapName" - }, - "name": "mapName" - }, - "computed": false - } - } - } - ], - "directives": [] - } - } - ], - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Update the children's position when the parent moves", - "start": 5236, - "end": 5291, - "loc": { - "start": { - "line": 98, - "column": 20 - }, - "end": { - "line": 98, - "column": 75 - } - } - } - ] - } - ], - "directives": [] - } - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " When the main instance moves, move the clones with their relative position to it.", - "start": 5070, - "end": 5154, - "loc": { - "start": { - "line": 96, - "column": 16 - }, - "end": { - "line": 96, - "column": 100 - } - } - } - ] - } - ], - "directives": [] - }, - "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " If this instance is set to loop, then it needs a left and right clone", - "start": 3799, - "end": 3871, - "loc": { - "start": { - "line": 75, - "column": 12 - }, - "end": { - "line": 75, - "column": 84 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 5598, - "end": 5615, - "loc": { - "start": { - "line": 106, - "column": 12 - }, - "end": { - "line": 106, - "column": 29 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 5598, - "end": 5614, - "loc": { - "start": { - "line": 106, - "column": 12 - }, - "end": { - "line": 106, - "column": 28 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 5598, - "end": 5609, - "loc": { - "start": { - "line": 106, - "column": 12 - }, - "end": { - "line": 106, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 5598, - "end": 5607, - "loc": { - "start": { - "line": 106, - "column": 12 - }, - "end": { - "line": 106, - "column": 21 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 5608, - "end": 5609, - "loc": { - "start": { - "line": 106, - "column": 22 - }, - "end": { - "line": 106, - "column": 23 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "right": { - "type": "Identifier", - "start": 5612, - "end": 5614, - "loc": { - "start": { - "line": 106, - "column": 26 - }, - "end": { - "line": 106, - "column": 28 - }, - "identifierName": "pX" - }, - "name": "pX" - } - } - }, - { - "type": "ExpressionStatement", - "start": 5629, - "end": 5646, - "loc": { - "start": { - "line": 107, - "column": 12 - }, - "end": { - "line": 107, - "column": 29 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 5629, - "end": 5645, - "loc": { - "start": { - "line": 107, - "column": 12 - }, - "end": { - "line": 107, - "column": 28 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 5629, - "end": 5640, - "loc": { - "start": { - "line": 107, - "column": 12 - }, - "end": { - "line": 107, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 5629, - "end": 5638, - "loc": { - "start": { - "line": 107, - "column": 12 - }, - "end": { - "line": 107, - "column": 21 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 5639, - "end": 5640, - "loc": { - "start": { - "line": 107, - "column": 22 - }, - "end": { - "line": 107, - "column": 23 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "right": { - "type": "Identifier", - "start": 5643, - "end": 5645, - "loc": { - "start": { - "line": 107, - "column": 26 - }, - "end": { - "line": 107, - "column": 28 - }, - "identifierName": "pY" - }, - "name": "pY" - } - } - }, - { - "type": "ExpressionStatement", - "start": 5660, - "end": 5685, - "loc": { - "start": { - "line": 108, - "column": 12 - }, - "end": { - "line": 108, - "column": 37 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 5660, - "end": 5684, - "loc": { - "start": { - "line": 108, - "column": 12 - }, - "end": { - "line": 108, - "column": 36 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 5660, - "end": 5677, - "loc": { - "start": { - "line": 108, - "column": 12 - }, - "end": { - "line": 108, - "column": 29 - } - }, - "object": { - "type": "Identifier", - "start": 5660, - "end": 5669, - "loc": { - "start": { - "line": 108, - "column": 12 - }, - "end": { - "line": 108, - "column": 21 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 5670, - "end": 5677, - "loc": { - "start": { - "line": 108, - "column": 22 - }, - "end": { - "line": 108, - "column": 29 - }, - "identifierName": "mapName" - }, - "name": "mapName" - }, - "computed": false - }, - "right": { - "type": "Identifier", - "start": 5680, - "end": 5684, - "loc": { - "start": { - "line": 108, - "column": 32 - }, - "end": { - "line": 108, - "column": 36 - }, - "identifierName": "pMap" - }, - "name": "pMap" - } - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 5702, - "end": 5862, - "loc": { - "start": { - "line": 109, - "column": 15 - }, - "end": { - "line": 111, - "column": 9 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 5717, - "end": 5851, - "loc": { - "start": { - "line": 110, - "column": 12 - }, - "end": { - "line": 110, - "column": 146 - } - }, - "expression": { - "type": "CallExpression", - "start": 5717, - "end": 5850, - "loc": { - "start": { - "line": 110, - "column": 12 - }, - "end": { - "line": 110, - "column": 145 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5717, - "end": 5760, - "loc": { - "start": { - "line": 110, - "column": 12 - }, - "end": { - "line": 110, - "column": 55 - } - }, - "object": { - "type": "CallExpression", - "start": 5717, - "end": 5754, - "loc": { - "start": { - "line": 110, - "column": 12 - }, - "end": { - "line": 110, - "column": 49 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5717, - "end": 5735, - "loc": { - "start": { - "line": 110, - "column": 12 - }, - "end": { - "line": 110, - "column": 30 - } - }, - "object": { - "type": "MemberExpression", - "start": 5717, - "end": 5728, - "loc": { - "start": { - "line": 110, - "column": 12 - }, - "end": { - "line": 110, - "column": 23 - } - }, - "object": { - "type": "ThisExpression", - "start": 5717, - "end": 5721, - "loc": { - "start": { - "line": 110, - "column": 12 - }, - "end": { - "line": 110, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 5722, - "end": 5728, - "loc": { - "start": { - "line": 110, - "column": 17 - }, - "end": { - "line": 110, - "column": 23 - }, - "identifierName": "logger" - }, - "name": "logger" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 5729, - "end": 5735, - "loc": { - "start": { - "line": 110, - "column": 24 - }, - "end": { - "line": 110, - "column": 30 - }, - "identifierName": "prefix" - }, - "name": "prefix" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 5736, - "end": 5753, - "loc": { - "start": { - "line": 110, - "column": 31 - }, - "end": { - "line": 110, - "column": 48 - } - }, - "extra": { - "rawValue": "Parallax-Module", - "raw": "'Parallax-Module'" - }, - "value": "Parallax-Module" - } - ] - }, - "property": { - "type": "Identifier", - "start": 5755, - "end": 5760, - "loc": { - "start": { - "line": 110, - "column": 50 - }, - "end": { - "line": 110, - "column": 55 - }, - "identifierName": "error" - }, - "name": "error" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 5761, - "end": 5849, - "loc": { - "start": { - "line": 110, - "column": 56 - }, - "end": { - "line": 110, - "column": 144 - } - }, - "extra": { - "rawValue": "VYLO not found! This module depends on the VYLO object being in the global name space.", - "raw": "'VYLO not found! This module depends on the VYLO object being in the global name space.'" - }, - "value": "VYLO not found! This module depends on the VYLO object being in the global name space." - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n * Initializes this instance.\r\n * @param {Object} pInstance - The instance to initialize.\r\n * @param {Object} pParallaxInfo - The parallax info that tells this module how to control this instance.\r\n * @property {number} pParallaxInfo.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {number} pParallaxInfo.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {boolean} pParallaxInfo.loop - Whether this instance will loop endlessly.\r\n * @param {number} pX - The x position this parallax will start at.\r\n * @param {number} pY - The y position this parallax will start at.\r\n * @param {string} pMap - The map this instance will start at.\r\n * @private\r\n ", - "start": 2718, - "end": 3611, - "loc": { - "start": { - "line": 59, - "column": 4 - }, - "end": { - "line": 70, - "column": 7 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n * Removes an instance to the parallax system.\r\n * @param {Object} pInstance - The instance to remove to the parallax system.\r\n ", - "start": 5875, - "end": 6022, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 116, - "column": 7 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 6028, - "end": 6339, - "loc": { - "start": { - "line": 117, - "column": 4 - }, - "end": { - "line": 125, - "column": 5 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6028, - "end": 6034, - "loc": { - "start": { - "line": 117, - "column": 4 - }, - "end": { - "line": 117, - "column": 10 - }, - "identifierName": "remove" - }, - "name": "remove", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 6035, - "end": 6044, - "loc": { - "start": { - "line": 117, - "column": 11 - }, - "end": { - "line": 117, - "column": 20 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - } - ], - "body": { - "type": "BlockStatement", - "start": 6046, - "end": 6339, - "loc": { - "start": { - "line": 117, - "column": 22 - }, - "end": { - "line": 125, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 6057, - "end": 6332, - "loc": { - "start": { - "line": 118, - "column": 8 - }, - "end": { - "line": 124, - "column": 9 - } - }, - "test": { - "type": "Identifier", - "start": 6061, - "end": 6070, - "loc": { - "start": { - "line": 118, - "column": 12 - }, - "end": { - "line": 118, - "column": 21 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "consequent": { - "type": "BlockStatement", - "start": 6072, - "end": 6232, - "loc": { - "start": { - "line": 118, - "column": 23 - }, - "end": { - "line": 122, - "column": 9 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 6087, - "end": 6221, - "loc": { - "start": { - "line": 119, - "column": 12 - }, - "end": { - "line": 121, - "column": 13 - } - }, - "test": { - "type": "CallExpression", - "start": 6091, - "end": 6125, - "loc": { - "start": { - "line": 119, - "column": 16 - }, - "end": { - "line": 119, - "column": 50 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6091, - "end": 6114, - "loc": { - "start": { - "line": 119, - "column": 16 - }, - "end": { - "line": 119, - "column": 39 - } - }, - "object": { - "type": "MemberExpression", - "start": 6091, - "end": 6105, - "loc": { - "start": { - "line": 119, - "column": 16 - }, - "end": { - "line": 119, - "column": 30 - } - }, - "object": { - "type": "ThisExpression", - "start": 6091, - "end": 6095, - "loc": { - "start": { - "line": 119, - "column": 16 - }, - "end": { - "line": 119, - "column": 20 - } - } - }, - "property": { - "type": "Identifier", - "start": 6096, - "end": 6105, - "loc": { - "start": { - "line": 119, - "column": 21 - }, - "end": { - "line": 119, - "column": 30 - }, - "identifierName": "instances" - }, - "name": "instances" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 6106, - "end": 6114, - "loc": { - "start": { - "line": 119, - "column": 31 - }, - "end": { - "line": 119, - "column": 39 - }, - "identifierName": "includes" - }, - "name": "includes" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 6115, - "end": 6124, - "loc": { - "start": { - "line": 119, - "column": 40 - }, - "end": { - "line": 119, - "column": 49 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - } - ] - }, - "consequent": { - "type": "BlockStatement", - "start": 6127, - "end": 6221, - "loc": { - "start": { - "line": 119, - "column": 52 - }, - "end": { - "line": 121, - "column": 13 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 6146, - "end": 6206, - "loc": { - "start": { - "line": 120, - "column": 16 - }, - "end": { - "line": 120, - "column": 76 - } - }, - "expression": { - "type": "CallExpression", - "start": 6146, - "end": 6205, - "loc": { - "start": { - "line": 120, - "column": 16 - }, - "end": { - "line": 120, - "column": 75 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6146, - "end": 6167, - "loc": { - "start": { - "line": 120, - "column": 16 - }, - "end": { - "line": 120, - "column": 37 - } - }, - "object": { - "type": "MemberExpression", - "start": 6146, - "end": 6160, - "loc": { - "start": { - "line": 120, - "column": 16 - }, - "end": { - "line": 120, - "column": 30 - } - }, - "object": { - "type": "ThisExpression", - "start": 6146, - "end": 6150, - "loc": { - "start": { - "line": 120, - "column": 16 - }, - "end": { - "line": 120, - "column": 20 - } - } - }, - "property": { - "type": "Identifier", - "start": 6151, - "end": 6160, - "loc": { - "start": { - "line": 120, - "column": 21 - }, - "end": { - "line": 120, - "column": 30 - }, - "identifierName": "instances" - }, - "name": "instances" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 6161, - "end": 6167, - "loc": { - "start": { - "line": 120, - "column": 31 - }, - "end": { - "line": 120, - "column": 37 - }, - "identifierName": "splice" - }, - "name": "splice" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 6168, - "end": 6201, - "loc": { - "start": { - "line": 120, - "column": 38 - }, - "end": { - "line": 120, - "column": 71 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6168, - "end": 6190, - "loc": { - "start": { - "line": 120, - "column": 38 - }, - "end": { - "line": 120, - "column": 60 - } - }, - "object": { - "type": "MemberExpression", - "start": 6168, - "end": 6182, - "loc": { - "start": { - "line": 120, - "column": 38 - }, - "end": { - "line": 120, - "column": 52 - } - }, - "object": { - "type": "ThisExpression", - "start": 6168, - "end": 6172, - "loc": { - "start": { - "line": 120, - "column": 38 - }, - "end": { - "line": 120, - "column": 42 - } - } - }, - "property": { - "type": "Identifier", - "start": 6173, - "end": 6182, - "loc": { - "start": { - "line": 120, - "column": 43 - }, - "end": { - "line": 120, - "column": 52 - }, - "identifierName": "instances" - }, - "name": "instances" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 6183, - "end": 6190, - "loc": { - "start": { - "line": 120, - "column": 53 - }, - "end": { - "line": 120, - "column": 60 - }, - "identifierName": "indexOf" - }, - "name": "indexOf" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 6191, - "end": 6200, - "loc": { - "start": { - "line": 120, - "column": 61 - }, - "end": { - "line": 120, - "column": 70 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - } - ] - }, - { - "type": "NumericLiteral", - "start": 6203, - "end": 6204, - "loc": { - "start": { - "line": 120, - "column": 73 - }, - "end": { - "line": 120, - "column": 74 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - ] - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 6238, - "end": 6332, - "loc": { - "start": { - "line": 122, - "column": 15 - }, - "end": { - "line": 124, - "column": 9 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 6253, - "end": 6321, - "loc": { - "start": { - "line": 123, - "column": 12 - }, - "end": { - "line": 123, - "column": 80 - } - }, - "expression": { - "type": "CallExpression", - "start": 6253, - "end": 6320, - "loc": { - "start": { - "line": 123, - "column": 12 - }, - "end": { - "line": 123, - "column": 79 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6253, - "end": 6296, - "loc": { - "start": { - "line": 123, - "column": 12 - }, - "end": { - "line": 123, - "column": 55 - } - }, - "object": { - "type": "CallExpression", - "start": 6253, - "end": 6290, - "loc": { - "start": { - "line": 123, - "column": 12 - }, - "end": { - "line": 123, - "column": 49 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6253, - "end": 6271, - "loc": { - "start": { - "line": 123, - "column": 12 - }, - "end": { - "line": 123, - "column": 30 - } - }, - "object": { - "type": "MemberExpression", - "start": 6253, - "end": 6264, - "loc": { - "start": { - "line": 123, - "column": 12 - }, - "end": { - "line": 123, - "column": 23 - } - }, - "object": { - "type": "ThisExpression", - "start": 6253, - "end": 6257, - "loc": { - "start": { - "line": 123, - "column": 12 - }, - "end": { - "line": 123, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 6258, - "end": 6264, - "loc": { - "start": { - "line": 123, - "column": 17 - }, - "end": { - "line": 123, - "column": 23 - }, - "identifierName": "logger" - }, - "name": "logger" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 6265, - "end": 6271, - "loc": { - "start": { - "line": 123, - "column": 24 - }, - "end": { - "line": 123, - "column": 30 - }, - "identifierName": "prefix" - }, - "name": "prefix" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 6272, - "end": 6289, - "loc": { - "start": { - "line": 123, - "column": 31 - }, - "end": { - "line": 123, - "column": 48 - } - }, - "extra": { - "rawValue": "Parallax-Module", - "raw": "'Parallax-Module'" - }, - "value": "Parallax-Module" - } - ] - }, - "property": { - "type": "Identifier", - "start": 6291, - "end": 6296, - "loc": { - "start": { - "line": 123, - "column": 50 - }, - "end": { - "line": 123, - "column": 55 - }, - "identifierName": "error" - }, - "name": "error" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 6297, - "end": 6319, - "loc": { - "start": { - "line": 123, - "column": 56 - }, - "end": { - "line": 123, - "column": 78 - } - }, - "extra": { - "rawValue": "No pInstance passed!", - "raw": "'No pInstance passed!'" - }, - "value": "No pInstance passed!" - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n * Removes an instance to the parallax system.\r\n * @param {Object} pInstance - The instance to remove to the parallax system.\r\n ", - "start": 5875, - "end": 6022, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 116, - "column": 7 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n * Updates the parallax system\r\n * @param {number} pCameraX - The x position of the camera.\r\n * @param {number} pCameraY - The y position of the camera.\r\n ", - "start": 6345, - "end": 6523, - "loc": { - "start": { - "line": 126, - "column": 4 - }, - "end": { - "line": 130, - "column": 7 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 6529, - "end": 8334, - "loc": { - "start": { - "line": 131, - "column": 4 - }, - "end": { - "line": 169, - "column": 5 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6529, - "end": 6535, - "loc": { - "start": { - "line": 131, - "column": 4 - }, - "end": { - "line": 131, - "column": 10 - }, - "identifierName": "update" - }, - "name": "update", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "AssignmentPattern", - "start": 6536, - "end": 6548, - "loc": { - "start": { - "line": 131, - "column": 11 - }, - "end": { - "line": 131, - "column": 23 - } - }, - "left": { - "type": "Identifier", - "start": 6536, - "end": 6544, - "loc": { - "start": { - "line": 131, - "column": 11 - }, - "end": { - "line": 131, - "column": 19 - }, - "identifierName": "pCameraX" - }, - "name": "pCameraX" - }, - "right": { - "type": "NumericLiteral", - "start": 6547, - "end": 6548, - "loc": { - "start": { - "line": 131, - "column": 22 - }, - "end": { - "line": 131, - "column": 23 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - { - "type": "AssignmentPattern", - "start": 6550, - "end": 6562, - "loc": { - "start": { - "line": 131, - "column": 25 - }, - "end": { - "line": 131, - "column": 37 - } - }, - "left": { - "type": "Identifier", - "start": 6550, - "end": 6558, - "loc": { - "start": { - "line": 131, - "column": 25 - }, - "end": { - "line": 131, - "column": 33 - }, - "identifierName": "pCameraY" - }, - "name": "pCameraY" - }, - "right": { - "type": "NumericLiteral", - "start": 6561, - "end": 6562, - "loc": { - "start": { - "line": 131, - "column": 36 - }, - "end": { - "line": 131, - "column": 37 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 6564, - "end": 8334, - "loc": { - "start": { - "line": 131, - "column": 39 - }, - "end": { - "line": 169, - "column": 5 - } - }, - "body": [ - { - "type": "ForOfStatement", - "start": 6575, - "end": 8319, - "loc": { - "start": { - "line": 132, - "column": 8 - }, - "end": { - "line": 168, - "column": 9 - } - }, - "left": { - "type": "VariableDeclaration", - "start": 6580, - "end": 6594, - "loc": { - "start": { - "line": 132, - "column": 13 - }, - "end": { - "line": 132, - "column": 27 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6586, - "end": 6594, - "loc": { - "start": { - "line": 132, - "column": 19 - }, - "end": { - "line": 132, - "column": 27 - } - }, - "id": { - "type": "Identifier", - "start": 6586, - "end": 6594, - "loc": { - "start": { - "line": 132, - "column": 19 - }, - "end": { - "line": 132, - "column": 27 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "init": null - } - ], - "kind": "const" - }, - "right": { - "type": "MemberExpression", - "start": 6598, - "end": 6612, - "loc": { - "start": { - "line": 132, - "column": 31 - }, - "end": { - "line": 132, - "column": 45 - } - }, - "object": { - "type": "ThisExpression", - "start": 6598, - "end": 6602, - "loc": { - "start": { - "line": 132, - "column": 31 - }, - "end": { - "line": 132, - "column": 35 - } - } - }, - "property": { - "type": "Identifier", - "start": 6603, - "end": 6612, - "loc": { - "start": { - "line": 132, - "column": 36 - }, - "end": { - "line": 132, - "column": 45 - }, - "identifierName": "instances" - }, - "name": "instances" - }, - "computed": false - }, - "body": { - "type": "BlockStatement", - "start": 6614, - "end": 8319, - "loc": { - "start": { - "line": 132, - "column": 47 - }, - "end": { - "line": 168, - "column": 9 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 6629, - "end": 6685, - "loc": { - "start": { - "line": 133, - "column": 12 - }, - "end": { - "line": 133, - "column": 68 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6635, - "end": 6684, - "loc": { - "start": { - "line": 133, - "column": 18 - }, - "end": { - "line": 133, - "column": 67 - } - }, - "id": { - "type": "Identifier", - "start": 6635, - "end": 6647, - "loc": { - "start": { - "line": 133, - "column": 18 - }, - "end": { - "line": 133, - "column": 30 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "init": { - "type": "CallExpression", - "start": 6650, - "end": 6684, - "loc": { - "start": { - "line": 133, - "column": 33 - }, - "end": { - "line": 133, - "column": 67 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6650, - "end": 6674, - "loc": { - "start": { - "line": 133, - "column": 33 - }, - "end": { - "line": 133, - "column": 57 - } - }, - "object": { - "type": "MemberExpression", - "start": 6650, - "end": 6670, - "loc": { - "start": { - "line": 133, - "column": 33 - }, - "end": { - "line": 133, - "column": 53 - } - }, - "object": { - "type": "ThisExpression", - "start": 6650, - "end": 6654, - "loc": { - "start": { - "line": 133, - "column": 33 - }, - "end": { - "line": 133, - "column": 37 - } - } - }, - "property": { - "type": "Identifier", - "start": 6655, - "end": 6670, - "loc": { - "start": { - "line": 133, - "column": 38 - }, - "end": { - "line": 133, - "column": 53 - }, - "identifierName": "instanceWeakMap" - }, - "name": "instanceWeakMap" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 6671, - "end": 6674, - "loc": { - "start": { - "line": 133, - "column": 54 - }, - "end": { - "line": 133, - "column": 57 - }, - "identifierName": "get" - }, - "name": "get" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 6675, - "end": 6683, - "loc": { - "start": { - "line": 133, - "column": 58 - }, - "end": { - "line": 133, - "column": 66 - }, - "identifierName": "instance" - }, - "name": "instance" - } - ] - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " How far we moved from the start point", - "start": 6699, - "end": 6739, - "loc": { - "start": { - "line": 134, - "column": 12 - }, - "end": { - "line": 134, - "column": 52 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 6753, - "end": 6793, - "loc": { - "start": { - "line": 135, - "column": 12 - }, - "end": { - "line": 135, - "column": 52 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6759, - "end": 6792, - "loc": { - "start": { - "line": 135, - "column": 18 - }, - "end": { - "line": 135, - "column": 51 - } - }, - "id": { - "type": "Identifier", - "start": 6759, - "end": 6764, - "loc": { - "start": { - "line": 135, - "column": 18 - }, - "end": { - "line": 135, - "column": 23 - }, - "identifierName": "distX" - }, - "name": "distX", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 6767, - "end": 6792, - "loc": { - "start": { - "line": 135, - "column": 26 - }, - "end": { - "line": 135, - "column": 51 - } - }, - "left": { - "type": "Identifier", - "start": 6767, - "end": 6775, - "loc": { - "start": { - "line": 135, - "column": 26 - }, - "end": { - "line": 135, - "column": 34 - }, - "identifierName": "pCameraX" - }, - "name": "pCameraX" - }, - "operator": "*", - "right": { - "type": "MemberExpression", - "start": 6778, - "end": 6792, - "loc": { - "start": { - "line": 135, - "column": 37 - }, - "end": { - "line": 135, - "column": 51 - } - }, - "object": { - "type": "Identifier", - "start": 6778, - "end": 6790, - "loc": { - "start": { - "line": 135, - "column": 37 - }, - "end": { - "line": 135, - "column": 49 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 6791, - "end": 6792, - "loc": { - "start": { - "line": 135, - "column": 50 - }, - "end": { - "line": 135, - "column": 51 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " How far we moved from the start point", - "start": 6699, - "end": 6739, - "loc": { - "start": { - "line": 134, - "column": 12 - }, - "end": { - "line": 134, - "column": 52 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 6807, - "end": 6847, - "loc": { - "start": { - "line": 136, - "column": 12 - }, - "end": { - "line": 136, - "column": 52 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6813, - "end": 6846, - "loc": { - "start": { - "line": 136, - "column": 18 - }, - "end": { - "line": 136, - "column": 51 - } - }, - "id": { - "type": "Identifier", - "start": 6813, - "end": 6818, - "loc": { - "start": { - "line": 136, - "column": 18 - }, - "end": { - "line": 136, - "column": 23 - }, - "identifierName": "distY" - }, - "name": "distY" - }, - "init": { - "type": "BinaryExpression", - "start": 6821, - "end": 6846, - "loc": { - "start": { - "line": 136, - "column": 26 - }, - "end": { - "line": 136, - "column": 51 - } - }, - "left": { - "type": "Identifier", - "start": 6821, - "end": 6829, - "loc": { - "start": { - "line": 136, - "column": 26 - }, - "end": { - "line": 136, - "column": 34 - }, - "identifierName": "pCameraY" - }, - "name": "pCameraY" - }, - "operator": "*", - "right": { - "type": "MemberExpression", - "start": 6832, - "end": 6846, - "loc": { - "start": { - "line": 136, - "column": 37 - }, - "end": { - "line": 136, - "column": 51 - } - }, - "object": { - "type": "Identifier", - "start": 6832, - "end": 6844, - "loc": { - "start": { - "line": 136, - "column": 37 - }, - "end": { - "line": 136, - "column": 49 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 6845, - "end": 6846, - "loc": { - "start": { - "line": 136, - "column": 50 - }, - "end": { - "line": 136, - "column": 51 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " Position to set the instance to", - "start": 6861, - "end": 6895, - "loc": { - "start": { - "line": 137, - "column": 12 - }, - "end": { - "line": 137, - "column": 46 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 6909, - "end": 6952, - "loc": { - "start": { - "line": 138, - "column": 12 - }, - "end": { - "line": 138, - "column": 55 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6913, - "end": 6951, - "loc": { - "start": { - "line": 138, - "column": 16 - }, - "end": { - "line": 138, - "column": 54 - } - }, - "id": { - "type": "Identifier", - "start": 6913, - "end": 6914, - "loc": { - "start": { - "line": 138, - "column": 16 - }, - "end": { - "line": 138, - "column": 17 - }, - "identifierName": "x" - }, - "name": "x", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 6917, - "end": 6951, - "loc": { - "start": { - "line": 138, - "column": 20 - }, - "end": { - "line": 138, - "column": 54 - } - }, - "left": { - "type": "MemberExpression", - "start": 6917, - "end": 6943, - "loc": { - "start": { - "line": 138, - "column": 20 - }, - "end": { - "line": 138, - "column": 46 - } - }, - "object": { - "type": "MemberExpression", - "start": 6917, - "end": 6941, - "loc": { - "start": { - "line": 138, - "column": 20 - }, - "end": { - "line": 138, - "column": 44 - } - }, - "object": { - "type": "Identifier", - "start": 6917, - "end": 6929, - "loc": { - "start": { - "line": 138, - "column": 20 - }, - "end": { - "line": 138, - "column": 32 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 6930, - "end": 6941, - "loc": { - "start": { - "line": 138, - "column": 33 - }, - "end": { - "line": 138, - "column": 44 - }, - "identifierName": "_initialPos" - }, - "name": "_initialPos" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 6942, - "end": 6943, - "loc": { - "start": { - "line": 138, - "column": 45 - }, - "end": { - "line": 138, - "column": 46 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 6946, - "end": 6951, - "loc": { - "start": { - "line": 138, - "column": 49 - }, - "end": { - "line": 138, - "column": 54 - }, - "identifierName": "distX" - }, - "name": "distX" - } - }, - "leadingComments": null - } - ], - "kind": "let", - "leadingComments": [ - { - "type": "CommentLine", - "value": " Position to set the instance to", - "start": 6861, - "end": 6895, - "loc": { - "start": { - "line": 137, - "column": 12 - }, - "end": { - "line": 137, - "column": 46 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 6966, - "end": 7009, - "loc": { - "start": { - "line": 139, - "column": 12 - }, - "end": { - "line": 139, - "column": 55 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6970, - "end": 7008, - "loc": { - "start": { - "line": 139, - "column": 16 - }, - "end": { - "line": 139, - "column": 54 - } - }, - "id": { - "type": "Identifier", - "start": 6970, - "end": 6971, - "loc": { - "start": { - "line": 139, - "column": 16 - }, - "end": { - "line": 139, - "column": 17 - }, - "identifierName": "y" - }, - "name": "y" - }, - "init": { - "type": "BinaryExpression", - "start": 6974, - "end": 7008, - "loc": { - "start": { - "line": 139, - "column": 20 - }, - "end": { - "line": 139, - "column": 54 - } - }, - "left": { - "type": "MemberExpression", - "start": 6974, - "end": 7000, - "loc": { - "start": { - "line": 139, - "column": 20 - }, - "end": { - "line": 139, - "column": 46 - } - }, - "object": { - "type": "MemberExpression", - "start": 6974, - "end": 6998, - "loc": { - "start": { - "line": 139, - "column": 20 - }, - "end": { - "line": 139, - "column": 44 - } - }, - "object": { - "type": "Identifier", - "start": 6974, - "end": 6986, - "loc": { - "start": { - "line": 139, - "column": 20 - }, - "end": { - "line": 139, - "column": 32 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 6987, - "end": 6998, - "loc": { - "start": { - "line": 139, - "column": 33 - }, - "end": { - "line": 139, - "column": 44 - }, - "identifierName": "_initialPos" - }, - "name": "_initialPos" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 6999, - "end": 7000, - "loc": { - "start": { - "line": 139, - "column": 45 - }, - "end": { - "line": 139, - "column": 46 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 7003, - "end": 7008, - "loc": { - "start": { - "line": 139, - "column": 49 - }, - "end": { - "line": 139, - "column": 54 - }, - "identifierName": "distY" - }, - "name": "distY" - } - } - } - ], - "kind": "let", - "trailingComments": [ - { - "type": "CommentLine", - "value": " Move the instance with the camera if the parallax is set to 1", - "start": 7023, - "end": 7087, - "loc": { - "start": { - "line": 140, - "column": 12 - }, - "end": { - "line": 140, - "column": 76 - } - } - } - ] - }, - { - "type": "IfStatement", - "start": 7101, - "end": 7200, - "loc": { - "start": { - "line": 141, - "column": 12 - }, - "end": { - "line": 143, - "column": 13 - } - }, - "test": { - "type": "BinaryExpression", - "start": 7105, - "end": 7125, - "loc": { - "start": { - "line": 141, - "column": 16 - }, - "end": { - "line": 141, - "column": 36 - } - }, - "left": { - "type": "MemberExpression", - "start": 7105, - "end": 7119, - "loc": { - "start": { - "line": 141, - "column": 16 - }, - "end": { - "line": 141, - "column": 30 - } - }, - "object": { - "type": "Identifier", - "start": 7105, - "end": 7117, - "loc": { - "start": { - "line": 141, - "column": 16 - }, - "end": { - "line": 141, - "column": 28 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 7118, - "end": 7119, - "loc": { - "start": { - "line": 141, - "column": 29 - }, - "end": { - "line": 141, - "column": 30 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false, - "leadingComments": null - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 7124, - "end": 7125, - "loc": { - "start": { - "line": 141, - "column": 35 - }, - "end": { - "line": 141, - "column": 36 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "leadingComments": null - }, - "consequent": { - "type": "BlockStatement", - "start": 7127, - "end": 7200, - "loc": { - "start": { - "line": 141, - "column": 38 - }, - "end": { - "line": 143, - "column": 13 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7146, - "end": 7185, - "loc": { - "start": { - "line": 142, - "column": 16 - }, - "end": { - "line": 142, - "column": 55 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 7146, - "end": 7184, - "loc": { - "start": { - "line": 142, - "column": 16 - }, - "end": { - "line": 142, - "column": 54 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 7146, - "end": 7147, - "loc": { - "start": { - "line": 142, - "column": 16 - }, - "end": { - "line": 142, - "column": 17 - }, - "identifierName": "x" - }, - "name": "x" - }, - "right": { - "type": "BinaryExpression", - "start": 7150, - "end": 7184, - "loc": { - "start": { - "line": 142, - "column": 20 - }, - "end": { - "line": 142, - "column": 54 - } - }, - "left": { - "type": "Identifier", - "start": 7150, - "end": 7158, - "loc": { - "start": { - "line": 142, - "column": 20 - }, - "end": { - "line": 142, - "column": 28 - }, - "identifierName": "pCameraX" - }, - "name": "pCameraX" - }, - "operator": "-", - "right": { - "type": "BinaryExpression", - "start": 7161, - "end": 7184, - "loc": { - "start": { - "line": 142, - "column": 31 - }, - "end": { - "line": 142, - "column": 54 - } - }, - "left": { - "type": "MemberExpression", - "start": 7161, - "end": 7180, - "loc": { - "start": { - "line": 142, - "column": 31 - }, - "end": { - "line": 142, - "column": 50 - } - }, - "object": { - "type": "MemberExpression", - "start": 7161, - "end": 7174, - "loc": { - "start": { - "line": 142, - "column": 31 - }, - "end": { - "line": 142, - "column": 44 - } - }, - "object": { - "type": "Identifier", - "start": 7161, - "end": 7169, - "loc": { - "start": { - "line": 142, - "column": 31 - }, - "end": { - "line": 142, - "column": 39 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 7170, - "end": 7174, - "loc": { - "start": { - "line": 142, - "column": 40 - }, - "end": { - "line": 142, - "column": 44 - }, - "identifierName": "icon" - }, - "name": "icon" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 7175, - "end": 7180, - "loc": { - "start": { - "line": 142, - "column": 45 - }, - "end": { - "line": 142, - "column": 50 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 7183, - "end": 7184, - "loc": { - "start": { - "line": 142, - "column": 53 - }, - "end": { - "line": 142, - "column": 54 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - } - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Move the instance with the camera if the parallax is set to 1", - "start": 7023, - "end": 7087, - "loc": { - "start": { - "line": 140, - "column": 12 - }, - "end": { - "line": 140, - "column": 76 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " Move the instance with the camera if the parallax is set to 1", - "start": 7214, - "end": 7278, - "loc": { - "start": { - "line": 144, - "column": 12 - }, - "end": { - "line": 144, - "column": 76 - } - } - } - ] - }, - { - "type": "IfStatement", - "start": 7292, - "end": 7392, - "loc": { - "start": { - "line": 145, - "column": 12 - }, - "end": { - "line": 147, - "column": 13 - } - }, - "test": { - "type": "BinaryExpression", - "start": 7296, - "end": 7316, - "loc": { - "start": { - "line": 145, - "column": 16 - }, - "end": { - "line": 145, - "column": 36 - } - }, - "left": { - "type": "MemberExpression", - "start": 7296, - "end": 7310, - "loc": { - "start": { - "line": 145, - "column": 16 - }, - "end": { - "line": 145, - "column": 30 - } - }, - "object": { - "type": "Identifier", - "start": 7296, - "end": 7308, - "loc": { - "start": { - "line": 145, - "column": 16 - }, - "end": { - "line": 145, - "column": 28 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 7309, - "end": 7310, - "loc": { - "start": { - "line": 145, - "column": 29 - }, - "end": { - "line": 145, - "column": 30 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false, - "leadingComments": null - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 7315, - "end": 7316, - "loc": { - "start": { - "line": 145, - "column": 35 - }, - "end": { - "line": 145, - "column": 36 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "leadingComments": null - }, - "consequent": { - "type": "BlockStatement", - "start": 7318, - "end": 7392, - "loc": { - "start": { - "line": 145, - "column": 38 - }, - "end": { - "line": 147, - "column": 13 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7337, - "end": 7377, - "loc": { - "start": { - "line": 146, - "column": 16 - }, - "end": { - "line": 146, - "column": 56 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 7337, - "end": 7376, - "loc": { - "start": { - "line": 146, - "column": 16 - }, - "end": { - "line": 146, - "column": 55 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 7337, - "end": 7338, - "loc": { - "start": { - "line": 146, - "column": 16 - }, - "end": { - "line": 146, - "column": 17 - }, - "identifierName": "y" - }, - "name": "y" - }, - "right": { - "type": "BinaryExpression", - "start": 7341, - "end": 7376, - "loc": { - "start": { - "line": 146, - "column": 20 - }, - "end": { - "line": 146, - "column": 55 - } - }, - "left": { - "type": "Identifier", - "start": 7341, - "end": 7349, - "loc": { - "start": { - "line": 146, - "column": 20 - }, - "end": { - "line": 146, - "column": 28 - }, - "identifierName": "pCameraY" - }, - "name": "pCameraY" - }, - "operator": "-", - "right": { - "type": "BinaryExpression", - "start": 7352, - "end": 7376, - "loc": { - "start": { - "line": 146, - "column": 31 - }, - "end": { - "line": 146, - "column": 55 - } - }, - "left": { - "type": "MemberExpression", - "start": 7352, - "end": 7372, - "loc": { - "start": { - "line": 146, - "column": 31 - }, - "end": { - "line": 146, - "column": 51 - } - }, - "object": { - "type": "MemberExpression", - "start": 7352, - "end": 7365, - "loc": { - "start": { - "line": 146, - "column": 31 - }, - "end": { - "line": 146, - "column": 44 - } - }, - "object": { - "type": "Identifier", - "start": 7352, - "end": 7360, - "loc": { - "start": { - "line": 146, - "column": 31 - }, - "end": { - "line": 146, - "column": 39 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 7361, - "end": 7365, - "loc": { - "start": { - "line": 146, - "column": 40 - }, - "end": { - "line": 146, - "column": 44 - }, - "identifierName": "icon" - }, - "name": "icon" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 7366, - "end": 7372, - "loc": { - "start": { - "line": 146, - "column": 45 - }, - "end": { - "line": 146, - "column": 51 - }, - "identifierName": "height" - }, - "name": "height" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 7375, - "end": 7376, - "loc": { - "start": { - "line": 146, - "column": 54 - }, - "end": { - "line": 146, - "column": 55 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - } - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Move the instance with the camera if the parallax is set to 1", - "start": 7214, - "end": 7278, - "loc": { - "start": { - "line": 144, - "column": 12 - }, - "end": { - "line": 144, - "column": 76 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " Set the position", - "start": 7408, - "end": 7427, - "loc": { - "start": { - "line": 149, - "column": 12 - }, - "end": { - "line": 149, - "column": 31 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 7441, - "end": 7456, - "loc": { - "start": { - "line": 150, - "column": 12 - }, - "end": { - "line": 150, - "column": 27 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 7441, - "end": 7455, - "loc": { - "start": { - "line": 150, - "column": 12 - }, - "end": { - "line": 150, - "column": 26 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 7441, - "end": 7451, - "loc": { - "start": { - "line": 150, - "column": 12 - }, - "end": { - "line": 150, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 7441, - "end": 7449, - "loc": { - "start": { - "line": 150, - "column": 12 - }, - "end": { - "line": 150, - "column": 20 - }, - "identifierName": "instance" - }, - "name": "instance", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 7450, - "end": 7451, - "loc": { - "start": { - "line": 150, - "column": 21 - }, - "end": { - "line": 150, - "column": 22 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false, - "leadingComments": null - }, - "right": { - "type": "Identifier", - "start": 7454, - "end": 7455, - "loc": { - "start": { - "line": 150, - "column": 25 - }, - "end": { - "line": 150, - "column": 26 - }, - "identifierName": "x" - }, - "name": "x" - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Set the position", - "start": 7408, - "end": 7427, - "loc": { - "start": { - "line": 149, - "column": 12 - }, - "end": { - "line": 149, - "column": 31 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 7470, - "end": 7485, - "loc": { - "start": { - "line": 151, - "column": 12 - }, - "end": { - "line": 151, - "column": 27 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 7470, - "end": 7484, - "loc": { - "start": { - "line": 151, - "column": 12 - }, - "end": { - "line": 151, - "column": 26 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 7470, - "end": 7480, - "loc": { - "start": { - "line": 151, - "column": 12 - }, - "end": { - "line": 151, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 7470, - "end": 7478, - "loc": { - "start": { - "line": 151, - "column": 12 - }, - "end": { - "line": 151, - "column": 20 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 7479, - "end": 7480, - "loc": { - "start": { - "line": 151, - "column": 21 - }, - "end": { - "line": 151, - "column": 22 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "right": { - "type": "Identifier", - "start": 7483, - "end": 7484, - "loc": { - "start": { - "line": 151, - "column": 25 - }, - "end": { - "line": 151, - "column": 26 - }, - "identifierName": "y" - }, - "name": "y" - } - } - }, - { - "type": "IfStatement", - "start": 7501, - "end": 8308, - "loc": { - "start": { - "line": 153, - "column": 12 - }, - "end": { - "line": 167, - "column": 13 - } - }, - "test": { - "type": "MemberExpression", - "start": 7505, - "end": 7522, - "loc": { - "start": { - "line": 153, - "column": 16 - }, - "end": { - "line": 153, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 7505, - "end": 7517, - "loc": { - "start": { - "line": 153, - "column": 16 - }, - "end": { - "line": 153, - "column": 28 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 7518, - "end": 7522, - "loc": { - "start": { - "line": 153, - "column": 29 - }, - "end": { - "line": 153, - "column": 33 - }, - "identifierName": "loop" - }, - "name": "loop" - }, - "computed": false - }, - "consequent": { - "type": "BlockStatement", - "start": 7524, - "end": 8308, - "loc": { - "start": { - "line": 153, - "column": 35 - }, - "end": { - "line": 167, - "column": 13 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 7543, - "end": 8293, - "loc": { - "start": { - "line": 154, - "column": 16 - }, - "end": { - "line": 166, - "column": 17 - } - }, - "test": { - "type": "BinaryExpression", - "start": 7547, - "end": 7567, - "loc": { - "start": { - "line": 154, - "column": 20 - }, - "end": { - "line": 154, - "column": 40 - } - }, - "left": { - "type": "MemberExpression", - "start": 7547, - "end": 7561, - "loc": { - "start": { - "line": 154, - "column": 20 - }, - "end": { - "line": 154, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 7547, - "end": 7559, - "loc": { - "start": { - "line": 154, - "column": 20 - }, - "end": { - "line": 154, - "column": 32 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 7560, - "end": 7561, - "loc": { - "start": { - "line": 154, - "column": 33 - }, - "end": { - "line": 154, - "column": 34 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "!==", - "right": { - "type": "NumericLiteral", - "start": 7566, - "end": 7567, - "loc": { - "start": { - "line": 154, - "column": 39 - }, - "end": { - "line": 154, - "column": 40 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - }, - "consequent": { - "type": "BlockStatement", - "start": 7569, - "end": 8293, - "loc": { - "start": { - "line": 154, - "column": 42 - }, - "end": { - "line": 166, - "column": 17 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 7656, - "end": 7706, - "loc": { - "start": { - "line": 156, - "column": 20 - }, - "end": { - "line": 156, - "column": 70 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7662, - "end": 7705, - "loc": { - "start": { - "line": 156, - "column": 26 - }, - "end": { - "line": 156, - "column": 69 - } - }, - "id": { - "type": "Identifier", - "start": 7662, - "end": 7671, - "loc": { - "start": { - "line": 156, - "column": 26 - }, - "end": { - "line": 156, - "column": 35 - }, - "identifierName": "relativeX" - }, - "name": "relativeX", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 7674, - "end": 7705, - "loc": { - "start": { - "line": 156, - "column": 38 - }, - "end": { - "line": 156, - "column": 69 - } - }, - "left": { - "type": "Identifier", - "start": 7674, - "end": 7682, - "loc": { - "start": { - "line": 156, - "column": 38 - }, - "end": { - "line": 156, - "column": 46 - }, - "identifierName": "pCameraX" - }, - "name": "pCameraX" - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 7686, - "end": 7704, - "loc": { - "start": { - "line": 156, - "column": 50 - }, - "end": { - "line": 156, - "column": 68 - } - }, - "left": { - "type": "NumericLiteral", - "start": 7686, - "end": 7687, - "loc": { - "start": { - "line": 156, - "column": 50 - }, - "end": { - "line": 156, - "column": 51 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 7690, - "end": 7704, - "loc": { - "start": { - "line": 156, - "column": 54 - }, - "end": { - "line": 156, - "column": 68 - } - }, - "object": { - "type": "Identifier", - "start": 7690, - "end": 7702, - "loc": { - "start": { - "line": 156, - "column": 54 - }, - "end": { - "line": 156, - "column": 66 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 7703, - "end": 7704, - "loc": { - "start": { - "line": 156, - "column": 67 - }, - "end": { - "line": 156, - "column": 68 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "extra": { - "parenthesized": true, - "parenStart": 7685 - } - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " How far we moved relative to the camera", - "start": 7592, - "end": 7634, - "loc": { - "start": { - "line": 155, - "column": 20 - }, - "end": { - "line": 155, - "column": 62 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " The start pos + total width", - "start": 7728, - "end": 7758, - "loc": { - "start": { - "line": 157, - "column": 20 - }, - "end": { - "line": 157, - "column": 50 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 7780, - "end": 7842, - "loc": { - "start": { - "line": 158, - "column": 20 - }, - "end": { - "line": 158, - "column": 82 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7786, - "end": 7841, - "loc": { - "start": { - "line": 158, - "column": 26 - }, - "end": { - "line": 158, - "column": 81 - } - }, - "id": { - "type": "Identifier", - "start": 7786, - "end": 7790, - "loc": { - "start": { - "line": 158, - "column": 26 - }, - "end": { - "line": 158, - "column": 30 - }, - "identifierName": "endX" - }, - "name": "endX", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 7793, - "end": 7841, - "loc": { - "start": { - "line": 158, - "column": 33 - }, - "end": { - "line": 158, - "column": 81 - } - }, - "left": { - "type": "MemberExpression", - "start": 7793, - "end": 7819, - "loc": { - "start": { - "line": 158, - "column": 33 - }, - "end": { - "line": 158, - "column": 59 - } - }, - "object": { - "type": "MemberExpression", - "start": 7793, - "end": 7817, - "loc": { - "start": { - "line": 158, - "column": 33 - }, - "end": { - "line": 158, - "column": 57 - } - }, - "object": { - "type": "Identifier", - "start": 7793, - "end": 7805, - "loc": { - "start": { - "line": 158, - "column": 33 - }, - "end": { - "line": 158, - "column": 45 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 7806, - "end": 7817, - "loc": { - "start": { - "line": 158, - "column": 46 - }, - "end": { - "line": 158, - "column": 57 - }, - "identifierName": "_initialPos" - }, - "name": "_initialPos" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 7818, - "end": 7819, - "loc": { - "start": { - "line": 158, - "column": 58 - }, - "end": { - "line": 158, - "column": 59 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 7822, - "end": 7841, - "loc": { - "start": { - "line": 158, - "column": 62 - }, - "end": { - "line": 158, - "column": 81 - } - }, - "object": { - "type": "MemberExpression", - "start": 7822, - "end": 7835, - "loc": { - "start": { - "line": 158, - "column": 62 - }, - "end": { - "line": 158, - "column": 75 - } - }, - "object": { - "type": "Identifier", - "start": 7822, - "end": 7830, - "loc": { - "start": { - "line": 158, - "column": 62 - }, - "end": { - "line": 158, - "column": 70 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 7831, - "end": 7835, - "loc": { - "start": { - "line": 158, - "column": 71 - }, - "end": { - "line": 158, - "column": 75 - }, - "identifierName": "icon" - }, - "name": "icon" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 7836, - "end": 7841, - "loc": { - "start": { - "line": 158, - "column": 76 - }, - "end": { - "line": 158, - "column": 81 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " The start pos + total width", - "start": 7728, - "end": 7758, - "loc": { - "start": { - "line": 157, - "column": 20 - }, - "end": { - "line": 157, - "column": 50 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " The start pos - total width / 2", - "start": 7864, - "end": 7898, - "loc": { - "start": { - "line": 159, - "column": 20 - }, - "end": { - "line": 159, - "column": 54 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 7920, - "end": 7994, - "loc": { - "start": { - "line": 160, - "column": 20 - }, - "end": { - "line": 160, - "column": 94 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7926, - "end": 7993, - "loc": { - "start": { - "line": 160, - "column": 26 - }, - "end": { - "line": 160, - "column": 93 - } - }, - "id": { - "type": "Identifier", - "start": 7926, - "end": 7938, - "loc": { - "start": { - "line": 160, - "column": 26 - }, - "end": { - "line": 160, - "column": 38 - }, - "identifierName": "negativeEndX" - }, - "name": "negativeEndX", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 7941, - "end": 7993, - "loc": { - "start": { - "line": 160, - "column": 41 - }, - "end": { - "line": 160, - "column": 93 - } - }, - "left": { - "type": "MemberExpression", - "start": 7941, - "end": 7967, - "loc": { - "start": { - "line": 160, - "column": 41 - }, - "end": { - "line": 160, - "column": 67 - } - }, - "object": { - "type": "MemberExpression", - "start": 7941, - "end": 7965, - "loc": { - "start": { - "line": 160, - "column": 41 - }, - "end": { - "line": 160, - "column": 65 - } - }, - "object": { - "type": "Identifier", - "start": 7941, - "end": 7953, - "loc": { - "start": { - "line": 160, - "column": 41 - }, - "end": { - "line": 160, - "column": 53 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 7954, - "end": 7965, - "loc": { - "start": { - "line": 160, - "column": 54 - }, - "end": { - "line": 160, - "column": 65 - }, - "identifierName": "_initialPos" - }, - "name": "_initialPos" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 7966, - "end": 7967, - "loc": { - "start": { - "line": 160, - "column": 66 - }, - "end": { - "line": 160, - "column": 67 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "BinaryExpression", - "start": 7970, - "end": 7993, - "loc": { - "start": { - "line": 160, - "column": 70 - }, - "end": { - "line": 160, - "column": 93 - } - }, - "left": { - "type": "MemberExpression", - "start": 7970, - "end": 7989, - "loc": { - "start": { - "line": 160, - "column": 70 - }, - "end": { - "line": 160, - "column": 89 - } - }, - "object": { - "type": "MemberExpression", - "start": 7970, - "end": 7983, - "loc": { - "start": { - "line": 160, - "column": 70 - }, - "end": { - "line": 160, - "column": 83 - } - }, - "object": { - "type": "Identifier", - "start": 7970, - "end": 7978, - "loc": { - "start": { - "line": 160, - "column": 70 - }, - "end": { - "line": 160, - "column": 78 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 7979, - "end": 7983, - "loc": { - "start": { - "line": 160, - "column": 79 - }, - "end": { - "line": 160, - "column": 83 - }, - "identifierName": "icon" - }, - "name": "icon" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 7984, - "end": 7989, - "loc": { - "start": { - "line": 160, - "column": 84 - }, - "end": { - "line": 160, - "column": 89 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 7992, - "end": 7993, - "loc": { - "start": { - "line": 160, - "column": 92 - }, - "end": { - "line": 160, - "column": 93 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - } - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " The start pos - total width / 2", - "start": 7864, - "end": 7898, - "loc": { - "start": { - "line": 159, - "column": 20 - }, - "end": { - "line": 159, - "column": 54 - } - } - } - ] - }, - { - "type": "IfStatement", - "start": 8016, - "end": 8274, - "loc": { - "start": { - "line": 161, - "column": 20 - }, - "end": { - "line": 165, - "column": 21 - } - }, - "test": { - "type": "BinaryExpression", - "start": 8020, - "end": 8036, - "loc": { - "start": { - "line": 161, - "column": 24 - }, - "end": { - "line": 161, - "column": 40 - } - }, - "left": { - "type": "Identifier", - "start": 8020, - "end": 8029, - "loc": { - "start": { - "line": 161, - "column": 24 - }, - "end": { - "line": 161, - "column": 33 - }, - "identifierName": "relativeX" - }, - "name": "relativeX" - }, - "operator": ">", - "right": { - "type": "Identifier", - "start": 8032, - "end": 8036, - "loc": { - "start": { - "line": 161, - "column": 36 - }, - "end": { - "line": 161, - "column": 40 - }, - "identifierName": "endX" - }, - "name": "endX" - } - }, - "consequent": { - "type": "BlockStatement", - "start": 8038, - "end": 8138, - "loc": { - "start": { - "line": 161, - "column": 42 - }, - "end": { - "line": 163, - "column": 21 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 8065, - "end": 8115, - "loc": { - "start": { - "line": 162, - "column": 24 - }, - "end": { - "line": 162, - "column": 74 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 8065, - "end": 8114, - "loc": { - "start": { - "line": 162, - "column": 24 - }, - "end": { - "line": 162, - "column": 73 - } - }, - "operator": "+=", - "left": { - "type": "MemberExpression", - "start": 8065, - "end": 8091, - "loc": { - "start": { - "line": 162, - "column": 24 - }, - "end": { - "line": 162, - "column": 50 - } - }, - "object": { - "type": "MemberExpression", - "start": 8065, - "end": 8089, - "loc": { - "start": { - "line": 162, - "column": 24 - }, - "end": { - "line": 162, - "column": 48 - } - }, - "object": { - "type": "Identifier", - "start": 8065, - "end": 8077, - "loc": { - "start": { - "line": 162, - "column": 24 - }, - "end": { - "line": 162, - "column": 36 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 8078, - "end": 8089, - "loc": { - "start": { - "line": 162, - "column": 37 - }, - "end": { - "line": 162, - "column": 48 - }, - "identifierName": "_initialPos" - }, - "name": "_initialPos" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 8090, - "end": 8091, - "loc": { - "start": { - "line": 162, - "column": 49 - }, - "end": { - "line": 162, - "column": 50 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 8095, - "end": 8114, - "loc": { - "start": { - "line": 162, - "column": 54 - }, - "end": { - "line": 162, - "column": 73 - } - }, - "object": { - "type": "MemberExpression", - "start": 8095, - "end": 8108, - "loc": { - "start": { - "line": 162, - "column": 54 - }, - "end": { - "line": 162, - "column": 67 - } - }, - "object": { - "type": "Identifier", - "start": 8095, - "end": 8103, - "loc": { - "start": { - "line": 162, - "column": 54 - }, - "end": { - "line": 162, - "column": 62 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 8104, - "end": 8108, - "loc": { - "start": { - "line": 162, - "column": 63 - }, - "end": { - "line": 162, - "column": 67 - }, - "identifierName": "icon" - }, - "name": "icon" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 8109, - "end": 8114, - "loc": { - "start": { - "line": 162, - "column": 68 - }, - "end": { - "line": 162, - "column": 73 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - } - } - } - ], - "directives": [] - }, - "alternate": { - "type": "IfStatement", - "start": 8144, - "end": 8274, - "loc": { - "start": { - "line": 163, - "column": 27 - }, - "end": { - "line": 165, - "column": 21 - } - }, - "test": { - "type": "BinaryExpression", - "start": 8148, - "end": 8172, - "loc": { - "start": { - "line": 163, - "column": 31 - }, - "end": { - "line": 163, - "column": 55 - } - }, - "left": { - "type": "Identifier", - "start": 8148, - "end": 8157, - "loc": { - "start": { - "line": 163, - "column": 31 - }, - "end": { - "line": 163, - "column": 40 - }, - "identifierName": "relativeX" - }, - "name": "relativeX" - }, - "operator": "<", - "right": { - "type": "Identifier", - "start": 8160, - "end": 8172, - "loc": { - "start": { - "line": 163, - "column": 43 - }, - "end": { - "line": 163, - "column": 55 - }, - "identifierName": "negativeEndX" - }, - "name": "negativeEndX" - } - }, - "consequent": { - "type": "BlockStatement", - "start": 8174, - "end": 8274, - "loc": { - "start": { - "line": 163, - "column": 57 - }, - "end": { - "line": 165, - "column": 21 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 8201, - "end": 8251, - "loc": { - "start": { - "line": 164, - "column": 24 - }, - "end": { - "line": 164, - "column": 74 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 8201, - "end": 8250, - "loc": { - "start": { - "line": 164, - "column": 24 - }, - "end": { - "line": 164, - "column": 73 - } - }, - "operator": "-=", - "left": { - "type": "MemberExpression", - "start": 8201, - "end": 8227, - "loc": { - "start": { - "line": 164, - "column": 24 - }, - "end": { - "line": 164, - "column": 50 - } - }, - "object": { - "type": "MemberExpression", - "start": 8201, - "end": 8225, - "loc": { - "start": { - "line": 164, - "column": 24 - }, - "end": { - "line": 164, - "column": 48 - } - }, - "object": { - "type": "Identifier", - "start": 8201, - "end": 8213, - "loc": { - "start": { - "line": 164, - "column": 24 - }, - "end": { - "line": 164, - "column": 36 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 8214, - "end": 8225, - "loc": { - "start": { - "line": 164, - "column": 37 - }, - "end": { - "line": 164, - "column": 48 - }, - "identifierName": "_initialPos" - }, - "name": "_initialPos" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 8226, - "end": 8227, - "loc": { - "start": { - "line": 164, - "column": 49 - }, - "end": { - "line": 164, - "column": 50 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 8231, - "end": 8250, - "loc": { - "start": { - "line": 164, - "column": 54 - }, - "end": { - "line": 164, - "column": 73 - } - }, - "object": { - "type": "MemberExpression", - "start": 8231, - "end": 8244, - "loc": { - "start": { - "line": 164, - "column": 54 - }, - "end": { - "line": 164, - "column": 67 - } - }, - "object": { - "type": "Identifier", - "start": 8231, - "end": 8239, - "loc": { - "start": { - "line": 164, - "column": 54 - }, - "end": { - "line": 164, - "column": 62 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 8240, - "end": 8244, - "loc": { - "start": { - "line": 164, - "column": 63 - }, - "end": { - "line": 164, - "column": 67 - }, - "identifierName": "icon" - }, - "name": "icon" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 8245, - "end": 8250, - "loc": { - "start": { - "line": 164, - "column": 68 - }, - "end": { - "line": 164, - "column": 73 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - } - } - } - ], - "directives": [] - }, - "alternate": null - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n * Updates the parallax system\r\n * @param {number} pCameraX - The x position of the camera.\r\n * @param {number} pCameraY - The y position of the camera.\r\n ", - "start": 6345, - "end": 6523, - "loc": { - "start": { - "line": 126, - "column": 4 - }, - "end": { - "line": 130, - "column": 7 - } - } - } - ] - } - ] - }, - "name": "_", - "leadingComments": [], - "trailingComments": [] - }, - { - "type": "Identifier", - "start": 8341, - "end": 8382, - "loc": { - "start": { - "line": 172, - "column": 0 - }, - "end": { - "line": 172, - "column": 41 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8347, - "end": 8381, - "loc": { - "start": { - "line": 172, - "column": 6 - }, - "end": { - "line": 172, - "column": 40 - } - }, - "id": { - "type": "Identifier", - "start": 8347, - "end": 8355, - "loc": { - "start": { - "line": 172, - "column": 6 - }, - "end": { - "line": 172, - "column": 14 - }, - "identifierName": "Parallax" - }, - "name": "Parallax" - }, - "init": { - "type": "NewExpression", - "start": 8358, - "end": 8381, - "loc": { - "start": { - "line": 172, - "column": 17 - }, - "end": { - "line": 172, - "column": 40 - } - }, - "callee": { - "type": "Identifier", - "start": 8362, - "end": 8379, - "loc": { - "start": { - "line": 172, - "column": 21 - }, - "end": { - "line": 172, - "column": 38 - }, - "identifierName": "ParallaxSingleton" - }, - "name": "ParallaxSingleton" - }, - "arguments": [] - } - } - ], - "kind": "const", - "name": "_", - "leadingComments": [], - "trailingComments": [] - }, - { - "type": "ExportNamedDeclaration", - "start": 8384, - "end": 8404, - "loc": { - "start": { - "line": 173, - "column": 0 - }, - "end": { - "line": 173, - "column": 20 - } - }, - "declaration": null, - "specifiers": [ - { - "type": "ExportSpecifier", - "start": 8393, - "end": 8401, - "loc": { - "start": { - "line": 173, - "column": 9 - }, - "end": { - "line": 173, - "column": 17 - } - }, - "local": { - "type": "Identifier", - "start": 8393, - "end": 8401, - "loc": { - "start": { - "line": 173, - "column": 9 - }, - "end": { - "line": 173, - "column": 17 - }, - "identifierName": "Parallax" - }, - "name": "Parallax" - }, - "exported": { - "type": "Identifier", - "start": 8393, - "end": 8401, - "loc": { - "start": { - "line": 173, - "column": 9 - }, - "end": { - "line": 173, - "column": 17 - }, - "identifierName": "Parallax" - }, - "name": "Parallax" - } - } - ], - "source": null - }, - { - "type": "ExportNamedDeclaration", - "start": 8384, - "end": 8404, - "loc": { - "start": { - "line": 173, - "column": 0 - }, - "end": { - "line": 173, - "column": 20 - } - }, - "declaration": { - "type": "VariableDeclaration", - "start": 8341, - "end": 8382, - "loc": { - "start": { - "line": 172, - "column": 0 - }, - "end": { - "line": 172, - "column": 41 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8347, - "end": 8381, - "loc": { - "start": { - "line": 172, - "column": 6 - }, - "end": { - "line": 172, - "column": 40 - } - }, - "id": { - "type": "Identifier", - "start": 8347, - "end": 8355, - "loc": { - "start": { - "line": 172, - "column": 6 - }, - "end": { - "line": 172, - "column": 14 - }, - "identifierName": "Parallax" - }, - "name": "Parallax" - }, - "init": { - "type": "NewExpression", - "start": 8358, - "end": 8381, - "loc": { - "start": { - "line": 172, - "column": 17 - }, - "end": { - "line": 172, - "column": 40 - } - }, - "callee": { - "type": "Identifier", - "start": 8362, - "end": 8379, - "loc": { - "start": { - "line": 172, - "column": 21 - }, - "end": { - "line": 172, - "column": 38 - }, - "identifierName": "ParallaxSingleton" - }, - "name": "ParallaxSingleton" - }, - "arguments": [] - } - } - ], - "kind": "const", - "leadingComments": [], - "trailingComments": [] - }, - "specifiers": null, - "source": null - }, - { - "type": "ExportNamedDeclaration", - "start": 8384, - "end": 8404, - "loc": { - "start": { - "line": 173, - "column": 0 - }, - "end": { - "line": 173, - "column": 20 - } - }, - "declaration": { - "type": "ClassDeclaration", - "start": 53, - "end": 8337, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 170, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 59, - "end": 76, - "loc": { - "start": { - "line": 3, - "column": 6 - }, - "end": { - "line": 3, - "column": 23 - }, - "identifierName": "ParallaxSingleton" - }, - "name": "ParallaxSingleton" - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 77, - "end": 8337, - "loc": { - "start": { - "line": 3, - "column": 24 - }, - "end": { - "line": 170, - "column": 1 - } - }, - "body": [ - { - "type": "ClassProperty", - "start": 125, - "end": 156, - "loc": { - "start": { - "line": 7, - "column": 1 - }, - "end": { - "line": 7, - "column": 32 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 125, - "end": 132, - "loc": { - "start": { - "line": 7, - "column": 1 - }, - "end": { - "line": 7, - "column": 8 - }, - "identifierName": "version" - }, - "name": "version", - "leadingComments": null - }, - "value": { - "type": "StringLiteral", - "start": 135, - "end": 155, - "loc": { - "start": { - "line": 7, - "column": 11 - }, - "end": { - "line": 7, - "column": 31 - } - }, - "extra": { - "rawValue": "VERSION_REPLACE_ME", - "raw": "\"VERSION_REPLACE_ME\"" - }, - "value": "VERSION_REPLACE_ME" - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * The version of the module.\r\n\t ", - "start": 81, - "end": 122, - "loc": { - "start": { - "line": 4, - "column": 1 - }, - "end": { - "line": 6, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "* The logger module this module uses to log errors / logs\r\n * @private\r\n * @type {Object}\r\n ", - "start": 162, - "end": 270, - "loc": { - "start": { - "line": 8, - "column": 4 - }, - "end": { - "line": 11, - "column": 7 - } - } - } - ] - }, - { - "type": "ClassProperty", - "start": 276, - "end": 298, - "loc": { - "start": { - "line": 12, - "column": 4 - }, - "end": { - "line": 12, - "column": 26 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 276, - "end": 282, - "loc": { - "start": { - "line": 12, - "column": 4 - }, - "end": { - "line": 12, - "column": 10 - }, - "identifierName": "logger" - }, - "name": "logger", - "leadingComments": null - }, - "value": { - "type": "NewExpression", - "start": 285, - "end": 297, - "loc": { - "start": { - "line": 12, - "column": 13 - }, - "end": { - "line": 12, - "column": 25 - } - }, - "callee": { - "type": "Identifier", - "start": 289, - "end": 295, - "loc": { - "start": { - "line": 12, - "column": 17 - }, - "end": { - "line": 12, - "column": 23 - }, - "identifierName": "Logger" - }, - "name": "Logger" - }, - "arguments": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "* The logger module this module uses to log errors / logs\r\n * @private\r\n * @type {Object}\r\n ", - "start": 162, - "end": 270, - "loc": { - "start": { - "line": 8, - "column": 4 - }, - "end": { - "line": 11, - "column": 7 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 301, - "end": 385, - "loc": { - "start": { - "line": 13, - "column": 1 - }, - "end": { - "line": 15, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 301, - "end": 312, - "loc": { - "start": { - "line": 13, - "column": 1 - }, - "end": { - "line": 13, - "column": 12 - }, - "identifierName": "constructor" - }, - "name": "constructor" - }, - "kind": "constructor", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 315, - "end": 385, - "loc": { - "start": { - "line": 13, - "column": 15 - }, - "end": { - "line": 15, - "column": 2 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 326, - "end": 381, - "loc": { - "start": { - "line": 14, - "column": 8 - }, - "end": { - "line": 14, - "column": 63 - } - }, - "expression": { - "type": "CallExpression", - "start": 326, - "end": 380, - "loc": { - "start": { - "line": 14, - "column": 8 - }, - "end": { - "line": 14, - "column": 62 - } - }, - "callee": { - "type": "MemberExpression", - "start": 326, - "end": 350, - "loc": { - "start": { - "line": 14, - "column": 8 - }, - "end": { - "line": 14, - "column": 32 - } - }, - "object": { - "type": "MemberExpression", - "start": 326, - "end": 337, - "loc": { - "start": { - "line": 14, - "column": 8 - }, - "end": { - "line": 14, - "column": 19 - } - }, - "object": { - "type": "ThisExpression", - "start": 326, - "end": 330, - "loc": { - "start": { - "line": 14, - "column": 8 - }, - "end": { - "line": 14, - "column": 12 - } - } - }, - "property": { - "type": "Identifier", - "start": 331, - "end": 337, - "loc": { - "start": { - "line": 14, - "column": 13 - }, - "end": { - "line": 14, - "column": 19 - }, - "identifierName": "logger" - }, - "name": "logger" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 338, - "end": 350, - "loc": { - "start": { - "line": 14, - "column": 20 - }, - "end": { - "line": 14, - "column": 32 - }, - "identifierName": "registerType" - }, - "name": "registerType" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 351, - "end": 368, - "loc": { - "start": { - "line": 14, - "column": 33 - }, - "end": { - "line": 14, - "column": 50 - } - }, - "extra": { - "rawValue": "Parallax-Module", - "raw": "'Parallax-Module'" - }, - "value": "Parallax-Module" - }, - { - "type": "StringLiteral", - "start": 370, - "end": 379, - "loc": { - "start": { - "line": 14, - "column": 52 - }, - "end": { - "line": 14, - "column": 61 - } - }, - "extra": { - "rawValue": "#ff6600", - "raw": "'#ff6600'" - }, - "value": "#ff6600" - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n * An array of instances that use the parallax system.\r\n * @type {Array}\r\n ", - "start": 391, - "end": 485, - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 19, - "column": 7 - } - } - } - ] - }, - { - "type": "ClassProperty", - "start": 491, - "end": 506, - "loc": { - "start": { - "line": 20, - "column": 4 - }, - "end": { - "line": 20, - "column": 19 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 491, - "end": 500, - "loc": { - "start": { - "line": 20, - "column": 4 - }, - "end": { - "line": 20, - "column": 13 - }, - "identifierName": "instances" - }, - "name": "instances", - "leadingComments": null - }, - "value": { - "type": "ArrayExpression", - "start": 503, - "end": 505, - "loc": { - "start": { - "line": 20, - "column": 16 - }, - "end": { - "line": 20, - "column": 18 - } - }, - "elements": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n * An array of instances that use the parallax system.\r\n * @type {Array}\r\n ", - "start": 391, - "end": 485, - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 19, - "column": 7 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n * Weakmap to store info on instances used in this module.\r\n * @type {WeakMap}\r\n ", - "start": 512, - "end": 612, - "loc": { - "start": { - "line": 21, - "column": 4 - }, - "end": { - "line": 24, - "column": 7 - } - } - } - ] - }, - { - "type": "ClassProperty", - "start": 618, - "end": 650, - "loc": { - "start": { - "line": 25, - "column": 4 - }, - "end": { - "line": 25, - "column": 36 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 618, - "end": 633, - "loc": { - "start": { - "line": 25, - "column": 4 - }, - "end": { - "line": 25, - "column": 19 - }, - "identifierName": "instanceWeakMap" - }, - "name": "instanceWeakMap", - "leadingComments": null - }, - "value": { - "type": "NewExpression", - "start": 636, - "end": 649, - "loc": { - "start": { - "line": 25, - "column": 22 - }, - "end": { - "line": 25, - "column": 35 - } - }, - "callee": { - "type": "Identifier", - "start": 640, - "end": 647, - "loc": { - "start": { - "line": 25, - "column": 26 - }, - "end": { - "line": 25, - "column": 33 - }, - "identifierName": "WeakMap" - }, - "name": "WeakMap" - }, - "arguments": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n * Weakmap to store info on instances used in this module.\r\n * @type {WeakMap}\r\n ", - "start": 512, - "end": 612, - "loc": { - "start": { - "line": 21, - "column": 4 - }, - "end": { - "line": 24, - "column": 7 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n * Adds an instance to the parallax system.\r\n * Call this first and then add your instance to the map.\r\n * @param {Object} pInstance - The instance to add to the parallax system.\r\n * @param {Object} pParallaxInfo - The parallax info that tells this module how to control this instance.\r\n * @property {number} pParallaxInfo.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {number} pParallaxInfo.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {boolean} pParallaxInfo.loop - Whether this instance will loop endlessly.\r\n * @param {number} [pX] - The x position this instance will start at.\r\n * @param {number} [pY] - The y position this instance will start at.\r\n * @param {string} [pMap] - The map this instance will start at.\r\n ", - "start": 656, - "end": 1631, - "loc": { - "start": { - "line": 26, - "column": 4 - }, - "end": { - "line": 37, - "column": 7 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 1637, - "end": 2712, - "loc": { - "start": { - "line": 38, - "column": 4 - }, - "end": { - "line": 58, - "column": 5 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1637, - "end": 1640, - "loc": { - "start": { - "line": 38, - "column": 4 - }, - "end": { - "line": 38, - "column": 7 - }, - "identifierName": "add" - }, - "name": "add", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1641, - "end": 1650, - "loc": { - "start": { - "line": 38, - "column": 8 - }, - "end": { - "line": 38, - "column": 17 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - { - "type": "Identifier", - "start": 1652, - "end": 1665, - "loc": { - "start": { - "line": 38, - "column": 19 - }, - "end": { - "line": 38, - "column": 32 - }, - "identifierName": "pParallaxInfo" - }, - "name": "pParallaxInfo" - }, - { - "type": "Identifier", - "start": 1667, - "end": 1669, - "loc": { - "start": { - "line": 38, - "column": 34 - }, - "end": { - "line": 38, - "column": 36 - }, - "identifierName": "pX" - }, - "name": "pX" - }, - { - "type": "Identifier", - "start": 1671, - "end": 1673, - "loc": { - "start": { - "line": 38, - "column": 38 - }, - "end": { - "line": 38, - "column": 40 - }, - "identifierName": "pY" - }, - "name": "pY" - }, - { - "type": "Identifier", - "start": 1675, - "end": 1679, - "loc": { - "start": { - "line": 38, - "column": 42 - }, - "end": { - "line": 38, - "column": 46 - }, - "identifierName": "pMap" - }, - "name": "pMap" - } - ], - "body": { - "type": "BlockStatement", - "start": 1681, - "end": 2712, - "loc": { - "start": { - "line": 38, - "column": 48 - }, - "end": { - "line": 58, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 1692, - "end": 2705, - "loc": { - "start": { - "line": 39, - "column": 8 - }, - "end": { - "line": 57, - "column": 9 - } - }, - "test": { - "type": "Identifier", - "start": 1696, - "end": 1705, - "loc": { - "start": { - "line": 39, - "column": 12 - }, - "end": { - "line": 39, - "column": 21 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "consequent": { - "type": "BlockStatement", - "start": 1707, - "end": 2605, - "loc": { - "start": { - "line": 39, - "column": 23 - }, - "end": { - "line": 55, - "column": 9 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 1722, - "end": 2594, - "loc": { - "start": { - "line": 40, - "column": 12 - }, - "end": { - "line": 54, - "column": 13 - } - }, - "test": { - "type": "BinaryExpression", - "start": 1726, - "end": 1757, - "loc": { - "start": { - "line": 40, - "column": 16 - }, - "end": { - "line": 40, - "column": 47 - } - }, - "left": { - "type": "Identifier", - "start": 1726, - "end": 1739, - "loc": { - "start": { - "line": 40, - "column": 16 - }, - "end": { - "line": 40, - "column": 29 - }, - "identifierName": "pParallaxInfo" - }, - "name": "pParallaxInfo" - }, - "operator": "instanceof", - "right": { - "type": "Identifier", - "start": 1751, - "end": 1757, - "loc": { - "start": { - "line": 40, - "column": 41 - }, - "end": { - "line": 40, - "column": 47 - }, - "identifierName": "Object" - }, - "name": "Object" - } - }, - "consequent": { - "type": "BlockStatement", - "start": 1759, - "end": 2460, - "loc": { - "start": { - "line": 40, - "column": 49 - }, - "end": { - "line": 52, - "column": 13 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 1778, - "end": 2445, - "loc": { - "start": { - "line": 41, - "column": 16 - }, - "end": { - "line": 51, - "column": 17 - } - }, - "test": { - "type": "UnaryExpression", - "start": 1782, - "end": 1817, - "loc": { - "start": { - "line": 41, - "column": 20 - }, - "end": { - "line": 41, - "column": 55 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "CallExpression", - "start": 1783, - "end": 1817, - "loc": { - "start": { - "line": 41, - "column": 21 - }, - "end": { - "line": 41, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1783, - "end": 1806, - "loc": { - "start": { - "line": 41, - "column": 21 - }, - "end": { - "line": 41, - "column": 44 - } - }, - "object": { - "type": "MemberExpression", - "start": 1783, - "end": 1797, - "loc": { - "start": { - "line": 41, - "column": 21 - }, - "end": { - "line": 41, - "column": 35 - } - }, - "object": { - "type": "ThisExpression", - "start": 1783, - "end": 1787, - "loc": { - "start": { - "line": 41, - "column": 21 - }, - "end": { - "line": 41, - "column": 25 - } - } - }, - "property": { - "type": "Identifier", - "start": 1788, - "end": 1797, - "loc": { - "start": { - "line": 41, - "column": 26 - }, - "end": { - "line": 41, - "column": 35 - }, - "identifierName": "instances" - }, - "name": "instances" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 1798, - "end": 1806, - "loc": { - "start": { - "line": 41, - "column": 36 - }, - "end": { - "line": 41, - "column": 44 - }, - "identifierName": "includes" - }, - "name": "includes" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1807, - "end": 1816, - "loc": { - "start": { - "line": 41, - "column": 45 - }, - "end": { - "line": 41, - "column": 54 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - } - ] - }, - "extra": { - "parenthesizedArgument": false - } - }, - "consequent": { - "type": "BlockStatement", - "start": 1819, - "end": 2445, - "loc": { - "start": { - "line": 41, - "column": 57 - }, - "end": { - "line": 51, - "column": 17 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1842, - "end": 1895, - "loc": { - "start": { - "line": 42, - "column": 20 - }, - "end": { - "line": 42, - "column": 73 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1848, - "end": 1894, - "loc": { - "start": { - "line": 42, - "column": 26 - }, - "end": { - "line": 42, - "column": 72 - } - }, - "id": { - "type": "Identifier", - "start": 1848, - "end": 1849, - "loc": { - "start": { - "line": 42, - "column": 26 - }, - "end": { - "line": 42, - "column": 27 - }, - "identifierName": "x" - }, - "name": "x" - }, - "init": { - "type": "ConditionalExpression", - "start": 1852, - "end": 1894, - "loc": { - "start": { - "line": 42, - "column": 30 - }, - "end": { - "line": 42, - "column": 72 - } - }, - "test": { - "type": "BinaryExpression", - "start": 1852, - "end": 1875, - "loc": { - "start": { - "line": 42, - "column": 30 - }, - "end": { - "line": 42, - "column": 53 - } - }, - "left": { - "type": "UnaryExpression", - "start": 1852, - "end": 1862, - "loc": { - "start": { - "line": 42, - "column": 30 - }, - "end": { - "line": 42, - "column": 40 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 1859, - "end": 1861, - "loc": { - "start": { - "line": 42, - "column": 37 - }, - "end": { - "line": 42, - "column": 39 - }, - "identifierName": "pX" - }, - "name": "pX", - "extra": { - "parenthesized": true, - "parenStart": 1858 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 1867, - "end": 1875, - "loc": { - "start": { - "line": 42, - "column": 45 - }, - "end": { - "line": 42, - "column": 53 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" - }, - "value": "number" - } - }, - "consequent": { - "type": "Identifier", - "start": 1878, - "end": 1880, - "loc": { - "start": { - "line": 42, - "column": 56 - }, - "end": { - "line": 42, - "column": 58 - }, - "identifierName": "pX" - }, - "name": "pX" - }, - "alternate": { - "type": "MemberExpression", - "start": 1883, - "end": 1894, - "loc": { - "start": { - "line": 42, - "column": 61 - }, - "end": { - "line": 42, - "column": 72 - } - }, - "object": { - "type": "Identifier", - "start": 1883, - "end": 1892, - "loc": { - "start": { - "line": 42, - "column": 61 - }, - "end": { - "line": 42, - "column": 70 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 1893, - "end": 1894, - "loc": { - "start": { - "line": 42, - "column": 71 - }, - "end": { - "line": 42, - "column": 72 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1917, - "end": 1970, - "loc": { - "start": { - "line": 43, - "column": 20 - }, - "end": { - "line": 43, - "column": 73 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1923, - "end": 1969, - "loc": { - "start": { - "line": 43, - "column": 26 - }, - "end": { - "line": 43, - "column": 72 - } - }, - "id": { - "type": "Identifier", - "start": 1923, - "end": 1924, - "loc": { - "start": { - "line": 43, - "column": 26 - }, - "end": { - "line": 43, - "column": 27 - }, - "identifierName": "y" - }, - "name": "y" - }, - "init": { - "type": "ConditionalExpression", - "start": 1927, - "end": 1969, - "loc": { - "start": { - "line": 43, - "column": 30 - }, - "end": { - "line": 43, - "column": 72 - } - }, - "test": { - "type": "BinaryExpression", - "start": 1927, - "end": 1950, - "loc": { - "start": { - "line": 43, - "column": 30 - }, - "end": { - "line": 43, - "column": 53 - } - }, - "left": { - "type": "UnaryExpression", - "start": 1927, - "end": 1937, - "loc": { - "start": { - "line": 43, - "column": 30 - }, - "end": { - "line": 43, - "column": 40 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 1934, - "end": 1936, - "loc": { - "start": { - "line": 43, - "column": 37 - }, - "end": { - "line": 43, - "column": 39 - }, - "identifierName": "pY" - }, - "name": "pY", - "extra": { - "parenthesized": true, - "parenStart": 1933 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 1942, - "end": 1950, - "loc": { - "start": { - "line": 43, - "column": 45 - }, - "end": { - "line": 43, - "column": 53 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" - }, - "value": "number" - } - }, - "consequent": { - "type": "Identifier", - "start": 1953, - "end": 1955, - "loc": { - "start": { - "line": 43, - "column": 56 - }, - "end": { - "line": 43, - "column": 58 - }, - "identifierName": "pY" - }, - "name": "pY" - }, - "alternate": { - "type": "MemberExpression", - "start": 1958, - "end": 1969, - "loc": { - "start": { - "line": 43, - "column": 61 - }, - "end": { - "line": 43, - "column": 72 - } - }, - "object": { - "type": "Identifier", - "start": 1958, - "end": 1967, - "loc": { - "start": { - "line": 43, - "column": 61 - }, - "end": { - "line": 43, - "column": 70 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 1968, - "end": 1969, - "loc": { - "start": { - "line": 43, - "column": 71 - }, - "end": { - "line": 43, - "column": 72 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 1992, - "end": 2057, - "loc": { - "start": { - "line": 44, - "column": 20 - }, - "end": { - "line": 44, - "column": 85 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1998, - "end": 2056, - "loc": { - "start": { - "line": 44, - "column": 26 - }, - "end": { - "line": 44, - "column": 84 - } - }, - "id": { - "type": "Identifier", - "start": 1998, - "end": 2001, - "loc": { - "start": { - "line": 44, - "column": 26 - }, - "end": { - "line": 44, - "column": 29 - }, - "identifierName": "map" - }, - "name": "map" - }, - "init": { - "type": "ConditionalExpression", - "start": 2004, - "end": 2056, - "loc": { - "start": { - "line": 44, - "column": 32 - }, - "end": { - "line": 44, - "column": 84 - } - }, - "test": { - "type": "BinaryExpression", - "start": 2004, - "end": 2029, - "loc": { - "start": { - "line": 44, - "column": 32 - }, - "end": { - "line": 44, - "column": 57 - } - }, - "left": { - "type": "UnaryExpression", - "start": 2004, - "end": 2016, - "loc": { - "start": { - "line": 44, - "column": 32 - }, - "end": { - "line": 44, - "column": 44 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 2011, - "end": 2015, - "loc": { - "start": { - "line": 44, - "column": 39 - }, - "end": { - "line": 44, - "column": 43 - }, - "identifierName": "pMap" - }, - "name": "pMap", - "extra": { - "parenthesized": true, - "parenStart": 2010 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 2021, - "end": 2029, - "loc": { - "start": { - "line": 44, - "column": 49 - }, - "end": { - "line": 44, - "column": 57 - } - }, - "extra": { - "rawValue": "string", - "raw": "'string'" - }, - "value": "string" - } - }, - "consequent": { - "type": "Identifier", - "start": 2032, - "end": 2036, - "loc": { - "start": { - "line": 44, - "column": 60 - }, - "end": { - "line": 44, - "column": 64 - }, - "identifierName": "pMap" - }, - "name": "pMap" - }, - "alternate": { - "type": "MemberExpression", - "start": 2039, - "end": 2056, - "loc": { - "start": { - "line": 44, - "column": 67 - }, - "end": { - "line": 44, - "column": 84 - } - }, - "object": { - "type": "Identifier", - "start": 2039, - "end": 2048, - "loc": { - "start": { - "line": 44, - "column": 67 - }, - "end": { - "line": 44, - "column": 76 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 2049, - "end": 2056, - "loc": { - "start": { - "line": 44, - "column": 77 - }, - "end": { - "line": 44, - "column": 84 - }, - "identifierName": "mapName" - }, - "name": "mapName" - }, - "computed": false - } - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " Clone the parallax object", - "start": 2079, - "end": 2107, - "loc": { - "start": { - "line": 45, - "column": 20 - }, - "end": { - "line": 45, - "column": 48 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 2129, - "end": 2171, - "loc": { - "start": { - "line": 46, - "column": 20 - }, - "end": { - "line": 46, - "column": 62 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2135, - "end": 2170, - "loc": { - "start": { - "line": 46, - "column": 26 - }, - "end": { - "line": 46, - "column": 61 - } - }, - "id": { - "type": "Identifier", - "start": 2135, - "end": 2147, - "loc": { - "start": { - "line": 46, - "column": 26 - }, - "end": { - "line": 46, - "column": 38 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo", - "leadingComments": null - }, - "init": { - "type": "ObjectExpression", - "start": 2150, - "end": 2170, - "loc": { - "start": { - "line": 46, - "column": 41 - }, - "end": { - "line": 46, - "column": 61 - } - }, - "properties": [ - { - "type": "SpreadProperty", - "start": 2152, - "end": 2168, - "loc": { - "start": { - "line": 46, - "column": 43 - }, - "end": { - "line": 46, - "column": 59 - } - }, - "argument": { - "type": "Identifier", - "start": 2155, - "end": 2168, - "loc": { - "start": { - "line": 46, - "column": 46 - }, - "end": { - "line": 46, - "column": 59 - }, - "identifierName": "pParallaxInfo" - }, - "name": "pParallaxInfo" - } - } - ] - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " Clone the parallax object", - "start": 2079, - "end": 2107, - "loc": { - "start": { - "line": 45, - "column": 20 - }, - "end": { - "line": 45, - "column": 48 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 2193, - "end": 2239, - "loc": { - "start": { - "line": 47, - "column": 20 - }, - "end": { - "line": 47, - "column": 66 - } - }, - "expression": { - "type": "CallExpression", - "start": 2193, - "end": 2238, - "loc": { - "start": { - "line": 47, - "column": 20 - }, - "end": { - "line": 47, - "column": 65 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2193, - "end": 2202, - "loc": { - "start": { - "line": 47, - "column": 20 - }, - "end": { - "line": 47, - "column": 29 - } - }, - "object": { - "type": "ThisExpression", - "start": 2193, - "end": 2197, - "loc": { - "start": { - "line": 47, - "column": 20 - }, - "end": { - "line": 47, - "column": 24 - } - } - }, - "property": { - "type": "Identifier", - "start": 2198, - "end": 2202, - "loc": { - "start": { - "line": 47, - "column": 25 - }, - "end": { - "line": 47, - "column": 29 - }, - "identifierName": "init" - }, - "name": "init" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2203, - "end": 2212, - "loc": { - "start": { - "line": 47, - "column": 30 - }, - "end": { - "line": 47, - "column": 39 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - { - "type": "Identifier", - "start": 2214, - "end": 2226, - "loc": { - "start": { - "line": 47, - "column": 41 - }, - "end": { - "line": 47, - "column": 53 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - { - "type": "Identifier", - "start": 2228, - "end": 2229, - "loc": { - "start": { - "line": 47, - "column": 55 - }, - "end": { - "line": 47, - "column": 56 - }, - "identifierName": "x" - }, - "name": "x" - }, - { - "type": "Identifier", - "start": 2231, - "end": 2232, - "loc": { - "start": { - "line": 47, - "column": 58 - }, - "end": { - "line": 47, - "column": 59 - }, - "identifierName": "y" - }, - "name": "y" - }, - { - "type": "Identifier", - "start": 2234, - "end": 2237, - "loc": { - "start": { - "line": 47, - "column": 61 - }, - "end": { - "line": 47, - "column": 64 - }, - "identifierName": "map" - }, - "name": "map" - } - ] - }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " Set the parallax info to the instance", - "start": 2261, - "end": 2301, - "loc": { - "start": { - "line": 48, - "column": 20 - }, - "end": { - "line": 48, - "column": 60 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 2323, - "end": 2373, - "loc": { - "start": { - "line": 49, - "column": 20 - }, - "end": { - "line": 49, - "column": 70 - } - }, - "expression": { - "type": "CallExpression", - "start": 2323, - "end": 2372, - "loc": { - "start": { - "line": 49, - "column": 20 - }, - "end": { - "line": 49, - "column": 69 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2323, - "end": 2347, - "loc": { - "start": { - "line": 49, - "column": 20 - }, - "end": { - "line": 49, - "column": 44 - } - }, - "object": { - "type": "MemberExpression", - "start": 2323, - "end": 2343, - "loc": { - "start": { - "line": 49, - "column": 20 - }, - "end": { - "line": 49, - "column": 40 - } - }, - "object": { - "type": "ThisExpression", - "start": 2323, - "end": 2327, - "loc": { - "start": { - "line": 49, - "column": 20 - }, - "end": { - "line": 49, - "column": 24 - } - }, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 2328, - "end": 2343, - "loc": { - "start": { - "line": 49, - "column": 25 - }, - "end": { - "line": 49, - "column": 40 - }, - "identifierName": "instanceWeakMap" - }, - "name": "instanceWeakMap" - }, - "computed": false, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 2344, - "end": 2347, - "loc": { - "start": { - "line": 49, - "column": 41 - }, - "end": { - "line": 49, - "column": 44 - }, - "identifierName": "set" - }, - "name": "set" - }, - "computed": false, - "leadingComments": null - }, - "arguments": [ - { - "type": "Identifier", - "start": 2348, - "end": 2357, - "loc": { - "start": { - "line": 49, - "column": 45 - }, - "end": { - "line": 49, - "column": 54 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - { - "type": "Identifier", - "start": 2359, - "end": 2371, - "loc": { - "start": { - "line": 49, - "column": 56 - }, - "end": { - "line": 49, - "column": 68 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - } - ], - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Set the parallax info to the instance", - "start": 2261, - "end": 2301, - "loc": { - "start": { - "line": 48, - "column": 20 - }, - "end": { - "line": 48, - "column": 60 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 2395, - "end": 2426, - "loc": { - "start": { - "line": 50, - "column": 20 - }, - "end": { - "line": 50, - "column": 51 - } - }, - "expression": { - "type": "CallExpression", - "start": 2395, - "end": 2425, - "loc": { - "start": { - "line": 50, - "column": 20 - }, - "end": { - "line": 50, - "column": 50 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2395, - "end": 2414, - "loc": { - "start": { - "line": 50, - "column": 20 - }, - "end": { - "line": 50, - "column": 39 - } - }, - "object": { - "type": "MemberExpression", - "start": 2395, - "end": 2409, - "loc": { - "start": { - "line": 50, - "column": 20 - }, - "end": { - "line": 50, - "column": 34 - } - }, - "object": { - "type": "ThisExpression", - "start": 2395, - "end": 2399, - "loc": { - "start": { - "line": 50, - "column": 20 - }, - "end": { - "line": 50, - "column": 24 - } - } - }, - "property": { - "type": "Identifier", - "start": 2400, - "end": 2409, - "loc": { - "start": { - "line": 50, - "column": 25 - }, - "end": { - "line": 50, - "column": 34 - }, - "identifierName": "instances" - }, - "name": "instances" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 2410, - "end": 2414, - "loc": { - "start": { - "line": 50, - "column": 35 - }, - "end": { - "line": 50, - "column": 39 - }, - "identifierName": "push" - }, - "name": "push" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2415, - "end": 2424, - "loc": { - "start": { - "line": 50, - "column": 40 - }, - "end": { - "line": 50, - "column": 49 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - } - ] - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 2466, - "end": 2594, - "loc": { - "start": { - "line": 52, - "column": 19 - }, - "end": { - "line": 54, - "column": 13 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2485, - "end": 2579, - "loc": { - "start": { - "line": 53, - "column": 16 - }, - "end": { - "line": 53, - "column": 110 - } - }, - "expression": { - "type": "CallExpression", - "start": 2485, - "end": 2578, - "loc": { - "start": { - "line": 53, - "column": 16 - }, - "end": { - "line": 53, - "column": 109 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2485, - "end": 2528, - "loc": { - "start": { - "line": 53, - "column": 16 - }, - "end": { - "line": 53, - "column": 59 - } - }, - "object": { - "type": "CallExpression", - "start": 2485, - "end": 2522, - "loc": { - "start": { - "line": 53, - "column": 16 - }, - "end": { - "line": 53, - "column": 53 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2485, - "end": 2503, - "loc": { - "start": { - "line": 53, - "column": 16 - }, - "end": { - "line": 53, - "column": 34 - } - }, - "object": { - "type": "MemberExpression", - "start": 2485, - "end": 2496, - "loc": { - "start": { - "line": 53, - "column": 16 - }, - "end": { - "line": 53, - "column": 27 - } - }, - "object": { - "type": "ThisExpression", - "start": 2485, - "end": 2489, - "loc": { - "start": { - "line": 53, - "column": 16 - }, - "end": { - "line": 53, - "column": 20 - } - } - }, - "property": { - "type": "Identifier", - "start": 2490, - "end": 2496, - "loc": { - "start": { - "line": 53, - "column": 21 - }, - "end": { - "line": 53, - "column": 27 - }, - "identifierName": "logger" - }, - "name": "logger" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 2497, - "end": 2503, - "loc": { - "start": { - "line": 53, - "column": 28 - }, - "end": { - "line": 53, - "column": 34 - }, - "identifierName": "prefix" - }, - "name": "prefix" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2504, - "end": 2521, - "loc": { - "start": { - "line": 53, - "column": 35 - }, - "end": { - "line": 53, - "column": 52 - } - }, - "extra": { - "rawValue": "Parallax-Module", - "raw": "'Parallax-Module'" - }, - "value": "Parallax-Module" - } - ] - }, - "property": { - "type": "Identifier", - "start": 2523, - "end": 2528, - "loc": { - "start": { - "line": 53, - "column": 54 - }, - "end": { - "line": 53, - "column": 59 - }, - "identifierName": "error" - }, - "name": "error" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2529, - "end": 2577, - "loc": { - "start": { - "line": 53, - "column": 60 - }, - "end": { - "line": 53, - "column": 108 - } - }, - "extra": { - "rawValue": "No pParallaxInfo passed or invalid type found!", - "raw": "'No pParallaxInfo passed or invalid type found!'" - }, - "value": "No pParallaxInfo passed or invalid type found!" - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 2611, - "end": 2705, - "loc": { - "start": { - "line": 55, - "column": 15 - }, - "end": { - "line": 57, - "column": 9 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2626, - "end": 2694, - "loc": { - "start": { - "line": 56, - "column": 12 - }, - "end": { - "line": 56, - "column": 80 - } - }, - "expression": { - "type": "CallExpression", - "start": 2626, - "end": 2693, - "loc": { - "start": { - "line": 56, - "column": 12 - }, - "end": { - "line": 56, - "column": 79 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2626, - "end": 2669, - "loc": { - "start": { - "line": 56, - "column": 12 - }, - "end": { - "line": 56, - "column": 55 - } - }, - "object": { - "type": "CallExpression", - "start": 2626, - "end": 2663, - "loc": { - "start": { - "line": 56, - "column": 12 - }, - "end": { - "line": 56, - "column": 49 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2626, - "end": 2644, - "loc": { - "start": { - "line": 56, - "column": 12 - }, - "end": { - "line": 56, - "column": 30 - } - }, - "object": { - "type": "MemberExpression", - "start": 2626, - "end": 2637, - "loc": { - "start": { - "line": 56, - "column": 12 - }, - "end": { - "line": 56, - "column": 23 - } - }, - "object": { - "type": "ThisExpression", - "start": 2626, - "end": 2630, - "loc": { - "start": { - "line": 56, - "column": 12 - }, - "end": { - "line": 56, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 2631, - "end": 2637, - "loc": { - "start": { - "line": 56, - "column": 17 - }, - "end": { - "line": 56, - "column": 23 - }, - "identifierName": "logger" - }, - "name": "logger" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 2638, - "end": 2644, - "loc": { - "start": { - "line": 56, - "column": 24 - }, - "end": { - "line": 56, - "column": 30 - }, - "identifierName": "prefix" - }, - "name": "prefix" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2645, - "end": 2662, - "loc": { - "start": { - "line": 56, - "column": 31 - }, - "end": { - "line": 56, - "column": 48 - } - }, - "extra": { - "rawValue": "Parallax-Module", - "raw": "'Parallax-Module'" - }, - "value": "Parallax-Module" - } - ] - }, - "property": { - "type": "Identifier", - "start": 2664, - "end": 2669, - "loc": { - "start": { - "line": 56, - "column": 50 - }, - "end": { - "line": 56, - "column": 55 - }, - "identifierName": "error" - }, - "name": "error" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2670, - "end": 2692, - "loc": { - "start": { - "line": 56, - "column": 56 - }, - "end": { - "line": 56, - "column": 78 - } - }, - "extra": { - "rawValue": "No pInstance passed!", - "raw": "'No pInstance passed!'" - }, - "value": "No pInstance passed!" - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n * Adds an instance to the parallax system.\r\n * Call this first and then add your instance to the map.\r\n * @param {Object} pInstance - The instance to add to the parallax system.\r\n * @param {Object} pParallaxInfo - The parallax info that tells this module how to control this instance.\r\n * @property {number} pParallaxInfo.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {number} pParallaxInfo.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {boolean} pParallaxInfo.loop - Whether this instance will loop endlessly.\r\n * @param {number} [pX] - The x position this instance will start at.\r\n * @param {number} [pY] - The y position this instance will start at.\r\n * @param {string} [pMap] - The map this instance will start at.\r\n ", - "start": 656, - "end": 1631, - "loc": { - "start": { - "line": 26, - "column": 4 - }, - "end": { - "line": 37, - "column": 7 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n * Initializes this instance.\r\n * @param {Object} pInstance - The instance to initialize.\r\n * @param {Object} pParallaxInfo - The parallax info that tells this module how to control this instance.\r\n * @property {number} pParallaxInfo.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {number} pParallaxInfo.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {boolean} pParallaxInfo.loop - Whether this instance will loop endlessly.\r\n * @param {number} pX - The x position this parallax will start at.\r\n * @param {number} pY - The y position this parallax will start at.\r\n * @param {string} pMap - The map this instance will start at.\r\n * @private\r\n ", - "start": 2718, - "end": 3611, - "loc": { - "start": { - "line": 59, - "column": 4 - }, - "end": { - "line": 70, - "column": 7 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 3617, - "end": 5869, - "loc": { - "start": { - "line": 71, - "column": 4 - }, - "end": { - "line": 112, - "column": 5 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3617, - "end": 3621, - "loc": { - "start": { - "line": 71, - "column": 4 - }, - "end": { - "line": 71, - "column": 8 - }, - "identifierName": "init" - }, - "name": "init", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 3622, - "end": 3631, - "loc": { - "start": { - "line": 71, - "column": 9 - }, - "end": { - "line": 71, - "column": 18 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - { - "type": "Identifier", - "start": 3633, - "end": 3646, - "loc": { - "start": { - "line": 71, - "column": 20 - }, - "end": { - "line": 71, - "column": 33 - }, - "identifierName": "pParallaxInfo" - }, - "name": "pParallaxInfo" - }, - { - "type": "Identifier", - "start": 3648, - "end": 3650, - "loc": { - "start": { - "line": 71, - "column": 35 - }, - "end": { - "line": 71, - "column": 37 - }, - "identifierName": "pX" - }, - "name": "pX" - }, - { - "type": "Identifier", - "start": 3652, - "end": 3654, - "loc": { - "start": { - "line": 71, - "column": 39 - }, - "end": { - "line": 71, - "column": 41 - }, - "identifierName": "pY" - }, - "name": "pY" - }, - { - "type": "Identifier", - "start": 3656, - "end": 3660, - "loc": { - "start": { - "line": 71, - "column": 43 - }, - "end": { - "line": 71, - "column": 47 - }, - "identifierName": "pMap" - }, - "name": "pMap" - } - ], - "body": { - "type": "BlockStatement", - "start": 3662, - "end": 5869, - "loc": { - "start": { - "line": 71, - "column": 49 - }, - "end": { - "line": 112, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 3673, - "end": 5862, - "loc": { - "start": { - "line": 72, - "column": 8 - }, - "end": { - "line": 111, - "column": 9 - } - }, - "test": { - "type": "Identifier", - "start": 3677, - "end": 3681, - "loc": { - "start": { - "line": 72, - "column": 12 - }, - "end": { - "line": 72, - "column": 16 - }, - "identifierName": "VYLO" - }, - "name": "VYLO" - }, - "consequent": { - "type": "BlockStatement", - "start": 3683, - "end": 5696, - "loc": { - "start": { - "line": 72, - "column": 18 - }, - "end": { - "line": 109, - "column": 9 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 3740, - "end": 3785, - "loc": { - "start": { - "line": 74, - "column": 12 - }, - "end": { - "line": 74, - "column": 57 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 3740, - "end": 3784, - "loc": { - "start": { - "line": 74, - "column": 12 - }, - "end": { - "line": 74, - "column": 56 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 3740, - "end": 3765, - "loc": { - "start": { - "line": 74, - "column": 12 - }, - "end": { - "line": 74, - "column": 37 - } - }, - "object": { - "type": "Identifier", - "start": 3740, - "end": 3753, - "loc": { - "start": { - "line": 74, - "column": 12 - }, - "end": { - "line": 74, - "column": 25 - }, - "identifierName": "pParallaxInfo" - }, - "name": "pParallaxInfo", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 3754, - "end": 3765, - "loc": { - "start": { - "line": 74, - "column": 26 - }, - "end": { - "line": 74, - "column": 37 - }, - "identifierName": "_initialPos" - }, - "name": "_initialPos" - }, - "computed": false, - "leadingComments": null - }, - "right": { - "type": "ObjectExpression", - "start": 3768, - "end": 3784, - "loc": { - "start": { - "line": 74, - "column": 40 - }, - "end": { - "line": 74, - "column": 56 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3770, - "end": 3775, - "loc": { - "start": { - "line": 74, - "column": 42 - }, - "end": { - "line": 74, - "column": 47 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3770, - "end": 3771, - "loc": { - "start": { - "line": 74, - "column": 42 - }, - "end": { - "line": 74, - "column": 43 - }, - "identifierName": "x" - }, - "name": "x" - }, - "value": { - "type": "Identifier", - "start": 3773, - "end": 3775, - "loc": { - "start": { - "line": 74, - "column": 45 - }, - "end": { - "line": 74, - "column": 47 - }, - "identifierName": "pX" - }, - "name": "pX" - } - }, - { - "type": "ObjectProperty", - "start": 3777, - "end": 3782, - "loc": { - "start": { - "line": 74, - "column": 49 - }, - "end": { - "line": 74, - "column": 54 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3777, - "end": 3778, - "loc": { - "start": { - "line": 74, - "column": 49 - }, - "end": { - "line": 74, - "column": 50 - }, - "identifierName": "y" - }, - "name": "y" - }, - "value": { - "type": "Identifier", - "start": 3780, - "end": 3782, - "loc": { - "start": { - "line": 74, - "column": 52 - }, - "end": { - "line": 74, - "column": 54 - }, - "identifierName": "pY" - }, - "name": "pY" - } - } - ] - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Set the initial position.", - "start": 3698, - "end": 3726, - "loc": { - "start": { - "line": 73, - "column": 12 - }, - "end": { - "line": 73, - "column": 40 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " If this instance is set to loop, then it needs a left and right clone", - "start": 3799, - "end": 3871, - "loc": { - "start": { - "line": 75, - "column": 12 - }, - "end": { - "line": 75, - "column": 84 - } - } - } - ] - }, - { - "type": "IfStatement", - "start": 3885, - "end": 5584, - "loc": { - "start": { - "line": 76, - "column": 12 - }, - "end": { - "line": 105, - "column": 13 - } - }, - "test": { - "type": "MemberExpression", - "start": 3889, - "end": 3907, - "loc": { - "start": { - "line": 76, - "column": 16 - }, - "end": { - "line": 76, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 3889, - "end": 3902, - "loc": { - "start": { - "line": 76, - "column": 16 - }, - "end": { - "line": 76, - "column": 29 - }, - "identifierName": "pParallaxInfo" - }, - "name": "pParallaxInfo", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 3903, - "end": 3907, - "loc": { - "start": { - "line": 76, - "column": 30 - }, - "end": { - "line": 76, - "column": 34 - }, - "identifierName": "loop" - }, - "name": "loop" - }, - "computed": false, - "leadingComments": null - }, - "consequent": { - "type": "BlockStatement", - "start": 3909, - "end": 5584, - "loc": { - "start": { - "line": 76, - "column": 36 - }, - "end": { - "line": 105, - "column": 13 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 3978, - "end": 4016, - "loc": { - "start": { - "line": 78, - "column": 16 - }, - "end": { - "line": 78, - "column": 54 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 3984, - "end": 4015, - "loc": { - "start": { - "line": 78, - "column": 22 - }, - "end": { - "line": 78, - "column": 53 - } - }, - "id": { - "type": "Identifier", - "start": 3984, - "end": 3988, - "loc": { - "start": { - "line": 78, - "column": 22 - }, - "end": { - "line": 78, - "column": 26 - }, - "identifierName": "left" - }, - "name": "left", - "leadingComments": null - }, - "init": { - "type": "CallExpression", - "start": 3991, - "end": 4015, - "loc": { - "start": { - "line": 78, - "column": 29 - }, - "end": { - "line": 78, - "column": 53 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3991, - "end": 4003, - "loc": { - "start": { - "line": 78, - "column": 29 - }, - "end": { - "line": 78, - "column": 41 - } - }, - "object": { - "type": "Identifier", - "start": 3991, - "end": 3995, - "loc": { - "start": { - "line": 78, - "column": 29 - }, - "end": { - "line": 78, - "column": 33 - }, - "identifierName": "VYLO" - }, - "name": "VYLO" - }, - "property": { - "type": "Identifier", - "start": 3996, - "end": 4003, - "loc": { - "start": { - "line": 78, - "column": 34 - }, - "end": { - "line": 78, - "column": 41 - }, - "identifierName": "newDiob" - }, - "name": "newDiob" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 4004, - "end": 4014, - "loc": { - "start": { - "line": 78, - "column": 42 - }, - "end": { - "line": 78, - "column": 52 - } - }, - "extra": { - "rawValue": "Particle", - "raw": "'Particle'" - }, - "value": "Particle" - } - ] - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " Create a left and right clone", - "start": 3928, - "end": 3960, - "loc": { - "start": { - "line": 77, - "column": 16 - }, - "end": { - "line": 77, - "column": 48 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 4034, - "end": 4073, - "loc": { - "start": { - "line": 79, - "column": 16 - }, - "end": { - "line": 79, - "column": 55 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4040, - "end": 4072, - "loc": { - "start": { - "line": 79, - "column": 22 - }, - "end": { - "line": 79, - "column": 54 - } - }, - "id": { - "type": "Identifier", - "start": 4040, - "end": 4045, - "loc": { - "start": { - "line": 79, - "column": 22 - }, - "end": { - "line": 79, - "column": 27 - }, - "identifierName": "right" - }, - "name": "right" - }, - "init": { - "type": "CallExpression", - "start": 4048, - "end": 4072, - "loc": { - "start": { - "line": 79, - "column": 30 - }, - "end": { - "line": 79, - "column": 54 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4048, - "end": 4060, - "loc": { - "start": { - "line": 79, - "column": 30 - }, - "end": { - "line": 79, - "column": 42 - } - }, - "object": { - "type": "Identifier", - "start": 4048, - "end": 4052, - "loc": { - "start": { - "line": 79, - "column": 30 - }, - "end": { - "line": 79, - "column": 34 - }, - "identifierName": "VYLO" - }, - "name": "VYLO" - }, - "property": { - "type": "Identifier", - "start": 4053, - "end": 4060, - "loc": { - "start": { - "line": 79, - "column": 35 - }, - "end": { - "line": 79, - "column": 42 - }, - "identifierName": "newDiob" - }, - "name": "newDiob" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 4061, - "end": 4071, - "loc": { - "start": { - "line": 79, - "column": 43 - }, - "end": { - "line": 79, - "column": 53 - } - }, - "extra": { - "rawValue": "Particle", - "raw": "'Particle'" - }, - "value": "Particle" - } - ] - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " Make the left and right clone particle look the same as the initial instance", - "start": 4091, - "end": 4170, - "loc": { - "start": { - "line": 80, - "column": 16 - }, - "end": { - "line": 80, - "column": 95 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 4188, - "end": 4218, - "loc": { - "start": { - "line": 81, - "column": 16 - }, - "end": { - "line": 81, - "column": 46 - } - }, - "expression": { - "type": "CallExpression", - "start": 4188, - "end": 4217, - "loc": { - "start": { - "line": 81, - "column": 16 - }, - "end": { - "line": 81, - "column": 45 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4188, - "end": 4206, - "loc": { - "start": { - "line": 81, - "column": 16 - }, - "end": { - "line": 81, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 4188, - "end": 4192, - "loc": { - "start": { - "line": 81, - "column": 16 - }, - "end": { - "line": 81, - "column": 20 - }, - "identifierName": "left" - }, - "name": "left", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 4193, - "end": 4206, - "loc": { - "start": { - "line": 81, - "column": 21 - }, - "end": { - "line": 81, - "column": 34 - }, - "identifierName": "setAppearance" - }, - "name": "setAppearance" - }, - "computed": false, - "leadingComments": null - }, - "arguments": [ - { - "type": "Identifier", - "start": 4207, - "end": 4216, - "loc": { - "start": { - "line": 81, - "column": 35 - }, - "end": { - "line": 81, - "column": 44 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - } - ], - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Make the left and right clone particle look the same as the initial instance", - "start": 4091, - "end": 4170, - "loc": { - "start": { - "line": 80, - "column": 16 - }, - "end": { - "line": 80, - "column": 95 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 4236, - "end": 4267, - "loc": { - "start": { - "line": 82, - "column": 16 - }, - "end": { - "line": 82, - "column": 47 - } - }, - "expression": { - "type": "CallExpression", - "start": 4236, - "end": 4266, - "loc": { - "start": { - "line": 82, - "column": 16 - }, - "end": { - "line": 82, - "column": 46 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4236, - "end": 4255, - "loc": { - "start": { - "line": 82, - "column": 16 - }, - "end": { - "line": 82, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 4236, - "end": 4241, - "loc": { - "start": { - "line": 82, - "column": 16 - }, - "end": { - "line": 82, - "column": 21 - }, - "identifierName": "right" - }, - "name": "right" - }, - "property": { - "type": "Identifier", - "start": 4242, - "end": 4255, - "loc": { - "start": { - "line": 82, - "column": 22 - }, - "end": { - "line": 82, - "column": 35 - }, - "identifierName": "setAppearance" - }, - "name": "setAppearance" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4256, - "end": 4265, - "loc": { - "start": { - "line": 82, - "column": 36 - }, - "end": { - "line": 82, - "column": 45 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - } - ] - }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " Position the left clone", - "start": 4285, - "end": 4311, - "loc": { - "start": { - "line": 83, - "column": 16 - }, - "end": { - "line": 83, - "column": 42 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 4329, - "end": 4389, - "loc": { - "start": { - "line": 84, - "column": 16 - }, - "end": { - "line": 84, - "column": 76 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 4329, - "end": 4388, - "loc": { - "start": { - "line": 84, - "column": 16 - }, - "end": { - "line": 84, - "column": 75 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 4329, - "end": 4335, - "loc": { - "start": { - "line": 84, - "column": 16 - }, - "end": { - "line": 84, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 4329, - "end": 4333, - "loc": { - "start": { - "line": 84, - "column": 16 - }, - "end": { - "line": 84, - "column": 20 - }, - "identifierName": "left" - }, - "name": "left", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 4334, - "end": 4335, - "loc": { - "start": { - "line": 84, - "column": 21 - }, - "end": { - "line": 84, - "column": 22 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false, - "leadingComments": null - }, - "right": { - "type": "BinaryExpression", - "start": 4338, - "end": 4388, - "loc": { - "start": { - "line": 84, - "column": 25 - }, - "end": { - "line": 84, - "column": 75 - } - }, - "left": { - "type": "MemberExpression", - "start": 4338, - "end": 4365, - "loc": { - "start": { - "line": 84, - "column": 25 - }, - "end": { - "line": 84, - "column": 52 - } - }, - "object": { - "type": "MemberExpression", - "start": 4338, - "end": 4363, - "loc": { - "start": { - "line": 84, - "column": 25 - }, - "end": { - "line": 84, - "column": 50 - } - }, - "object": { - "type": "Identifier", - "start": 4338, - "end": 4351, - "loc": { - "start": { - "line": 84, - "column": 25 - }, - "end": { - "line": 84, - "column": 38 - }, - "identifierName": "pParallaxInfo" - }, - "name": "pParallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 4352, - "end": 4363, - "loc": { - "start": { - "line": 84, - "column": 39 - }, - "end": { - "line": 84, - "column": 50 - }, - "identifierName": "_initialPos" - }, - "name": "_initialPos" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 4364, - "end": 4365, - "loc": { - "start": { - "line": 84, - "column": 51 - }, - "end": { - "line": 84, - "column": 52 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 4368, - "end": 4388, - "loc": { - "start": { - "line": 84, - "column": 55 - }, - "end": { - "line": 84, - "column": 75 - } - }, - "object": { - "type": "MemberExpression", - "start": 4368, - "end": 4382, - "loc": { - "start": { - "line": 84, - "column": 55 - }, - "end": { - "line": 84, - "column": 69 - } - }, - "object": { - "type": "Identifier", - "start": 4368, - "end": 4377, - "loc": { - "start": { - "line": 84, - "column": 55 - }, - "end": { - "line": 84, - "column": 64 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 4378, - "end": 4382, - "loc": { - "start": { - "line": 84, - "column": 65 - }, - "end": { - "line": 84, - "column": 69 - }, - "identifierName": "icon" - }, - "name": "icon" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 4383, - "end": 4388, - "loc": { - "start": { - "line": 84, - "column": 70 - }, - "end": { - "line": 84, - "column": 75 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - } - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Position the left clone", - "start": 4285, - "end": 4311, - "loc": { - "start": { - "line": 83, - "column": 16 - }, - "end": { - "line": 83, - "column": 42 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 4407, - "end": 4444, - "loc": { - "start": { - "line": 85, - "column": 16 - }, - "end": { - "line": 85, - "column": 53 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 4407, - "end": 4443, - "loc": { - "start": { - "line": 85, - "column": 16 - }, - "end": { - "line": 85, - "column": 52 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 4407, - "end": 4413, - "loc": { - "start": { - "line": 85, - "column": 16 - }, - "end": { - "line": 85, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 4407, - "end": 4411, - "loc": { - "start": { - "line": 85, - "column": 16 - }, - "end": { - "line": 85, - "column": 20 - }, - "identifierName": "left" - }, - "name": "left" - }, - "property": { - "type": "Identifier", - "start": 4412, - "end": 4413, - "loc": { - "start": { - "line": 85, - "column": 21 - }, - "end": { - "line": 85, - "column": 22 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 4416, - "end": 4443, - "loc": { - "start": { - "line": 85, - "column": 25 - }, - "end": { - "line": 85, - "column": 52 - } - }, - "object": { - "type": "MemberExpression", - "start": 4416, - "end": 4441, - "loc": { - "start": { - "line": 85, - "column": 25 - }, - "end": { - "line": 85, - "column": 50 - } - }, - "object": { - "type": "Identifier", - "start": 4416, - "end": 4429, - "loc": { - "start": { - "line": 85, - "column": 25 - }, - "end": { - "line": 85, - "column": 38 - }, - "identifierName": "pParallaxInfo" - }, - "name": "pParallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 4430, - "end": 4441, - "loc": { - "start": { - "line": 85, - "column": 39 - }, - "end": { - "line": 85, - "column": 50 - }, - "identifierName": "_initialPos" - }, - "name": "_initialPos" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 4442, - "end": 4443, - "loc": { - "start": { - "line": 85, - "column": 51 - }, - "end": { - "line": 85, - "column": 52 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " Position the right clone", - "start": 4462, - "end": 4489, - "loc": { - "start": { - "line": 86, - "column": 16 - }, - "end": { - "line": 86, - "column": 43 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 4507, - "end": 4568, - "loc": { - "start": { - "line": 87, - "column": 16 - }, - "end": { - "line": 87, - "column": 77 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 4507, - "end": 4567, - "loc": { - "start": { - "line": 87, - "column": 16 - }, - "end": { - "line": 87, - "column": 76 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 4507, - "end": 4514, - "loc": { - "start": { - "line": 87, - "column": 16 - }, - "end": { - "line": 87, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 4507, - "end": 4512, - "loc": { - "start": { - "line": 87, - "column": 16 - }, - "end": { - "line": 87, - "column": 21 - }, - "identifierName": "right" - }, - "name": "right", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 4513, - "end": 4514, - "loc": { - "start": { - "line": 87, - "column": 22 - }, - "end": { - "line": 87, - "column": 23 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false, - "leadingComments": null - }, - "right": { - "type": "BinaryExpression", - "start": 4517, - "end": 4567, - "loc": { - "start": { - "line": 87, - "column": 26 - }, - "end": { - "line": 87, - "column": 76 - } - }, - "left": { - "type": "MemberExpression", - "start": 4517, - "end": 4544, - "loc": { - "start": { - "line": 87, - "column": 26 - }, - "end": { - "line": 87, - "column": 53 - } - }, - "object": { - "type": "MemberExpression", - "start": 4517, - "end": 4542, - "loc": { - "start": { - "line": 87, - "column": 26 - }, - "end": { - "line": 87, - "column": 51 - } - }, - "object": { - "type": "Identifier", - "start": 4517, - "end": 4530, - "loc": { - "start": { - "line": 87, - "column": 26 - }, - "end": { - "line": 87, - "column": 39 - }, - "identifierName": "pParallaxInfo" - }, - "name": "pParallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 4531, - "end": 4542, - "loc": { - "start": { - "line": 87, - "column": 40 - }, - "end": { - "line": 87, - "column": 51 - }, - "identifierName": "_initialPos" - }, - "name": "_initialPos" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 4543, - "end": 4544, - "loc": { - "start": { - "line": 87, - "column": 52 - }, - "end": { - "line": 87, - "column": 53 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 4547, - "end": 4567, - "loc": { - "start": { - "line": 87, - "column": 56 - }, - "end": { - "line": 87, - "column": 76 - } - }, - "object": { - "type": "MemberExpression", - "start": 4547, - "end": 4561, - "loc": { - "start": { - "line": 87, - "column": 56 - }, - "end": { - "line": 87, - "column": 70 - } - }, - "object": { - "type": "Identifier", - "start": 4547, - "end": 4556, - "loc": { - "start": { - "line": 87, - "column": 56 - }, - "end": { - "line": 87, - "column": 65 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 4557, - "end": 4561, - "loc": { - "start": { - "line": 87, - "column": 66 - }, - "end": { - "line": 87, - "column": 70 - }, - "identifierName": "icon" - }, - "name": "icon" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 4562, - "end": 4567, - "loc": { - "start": { - "line": 87, - "column": 71 - }, - "end": { - "line": 87, - "column": 76 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - } - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Position the right clone", - "start": 4462, - "end": 4489, - "loc": { - "start": { - "line": 86, - "column": 16 - }, - "end": { - "line": 86, - "column": 43 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 4586, - "end": 4624, - "loc": { - "start": { - "line": 88, - "column": 16 - }, - "end": { - "line": 88, - "column": 54 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 4586, - "end": 4623, - "loc": { - "start": { - "line": 88, - "column": 16 - }, - "end": { - "line": 88, - "column": 53 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 4586, - "end": 4593, - "loc": { - "start": { - "line": 88, - "column": 16 - }, - "end": { - "line": 88, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 4586, - "end": 4591, - "loc": { - "start": { - "line": 88, - "column": 16 - }, - "end": { - "line": 88, - "column": 21 - }, - "identifierName": "right" - }, - "name": "right" - }, - "property": { - "type": "Identifier", - "start": 4592, - "end": 4593, - "loc": { - "start": { - "line": 88, - "column": 22 - }, - "end": { - "line": 88, - "column": 23 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 4596, - "end": 4623, - "loc": { - "start": { - "line": 88, - "column": 26 - }, - "end": { - "line": 88, - "column": 53 - } - }, - "object": { - "type": "MemberExpression", - "start": 4596, - "end": 4621, - "loc": { - "start": { - "line": 88, - "column": 26 - }, - "end": { - "line": 88, - "column": 51 - } - }, - "object": { - "type": "Identifier", - "start": 4596, - "end": 4609, - "loc": { - "start": { - "line": 88, - "column": 26 - }, - "end": { - "line": 88, - "column": 39 - }, - "identifierName": "pParallaxInfo" - }, - "name": "pParallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 4610, - "end": 4621, - "loc": { - "start": { - "line": 88, - "column": 40 - }, - "end": { - "line": 88, - "column": 51 - }, - "identifierName": "_initialPos" - }, - "name": "_initialPos" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 4622, - "end": 4623, - "loc": { - "start": { - "line": 88, - "column": 52 - }, - "end": { - "line": 88, - "column": 53 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " Store the clones in a temporary array", - "start": 4642, - "end": 4682, - "loc": { - "start": { - "line": 89, - "column": 16 - }, - "end": { - "line": 89, - "column": 56 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 4700, - "end": 4731, - "loc": { - "start": { - "line": 90, - "column": 16 - }, - "end": { - "line": 90, - "column": 47 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4706, - "end": 4730, - "loc": { - "start": { - "line": 90, - "column": 22 - }, - "end": { - "line": 90, - "column": 46 - } - }, - "id": { - "type": "Identifier", - "start": 4706, - "end": 4714, - "loc": { - "start": { - "line": 90, - "column": 22 - }, - "end": { - "line": 90, - "column": 30 - }, - "identifierName": "children" - }, - "name": "children", - "leadingComments": null - }, - "init": { - "type": "ArrayExpression", - "start": 4717, - "end": 4730, - "loc": { - "start": { - "line": 90, - "column": 33 - }, - "end": { - "line": 90, - "column": 46 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 4718, - "end": 4722, - "loc": { - "start": { - "line": 90, - "column": 34 - }, - "end": { - "line": 90, - "column": 38 - }, - "identifierName": "left" - }, - "name": "left" - }, - { - "type": "Identifier", - "start": 4724, - "end": 4729, - "loc": { - "start": { - "line": 90, - "column": 40 - }, - "end": { - "line": 90, - "column": 45 - }, - "identifierName": "right" - }, - "name": "right" - } - ] - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " Store the clones in a temporary array", - "start": 4642, - "end": 4682, - "loc": { - "start": { - "line": 89, - "column": 16 - }, - "end": { - "line": 89, - "column": 56 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " Loop the clones and store their relative positions to the main instance", - "start": 4749, - "end": 4823, - "loc": { - "start": { - "line": 91, - "column": 16 - }, - "end": { - "line": 91, - "column": 90 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 4841, - "end": 5052, - "loc": { - "start": { - "line": 92, - "column": 16 - }, - "end": { - "line": 95, - "column": 19 - } - }, - "expression": { - "type": "CallExpression", - "start": 4841, - "end": 5051, - "loc": { - "start": { - "line": 92, - "column": 16 - }, - "end": { - "line": 95, - "column": 18 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4841, - "end": 4857, - "loc": { - "start": { - "line": 92, - "column": 16 - }, - "end": { - "line": 92, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 4841, - "end": 4849, - "loc": { - "start": { - "line": 92, - "column": 16 - }, - "end": { - "line": 92, - "column": 24 - }, - "identifierName": "children" - }, - "name": "children", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 4850, - "end": 4857, - "loc": { - "start": { - "line": 92, - "column": 25 - }, - "end": { - "line": 92, - "column": 32 - }, - "identifierName": "forEach" - }, - "name": "forEach" - }, - "computed": false, - "leadingComments": null - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 4858, - "end": 5050, - "loc": { - "start": { - "line": 92, - "column": 33 - }, - "end": { - "line": 95, - "column": 17 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 4859, - "end": 4865, - "loc": { - "start": { - "line": 92, - "column": 34 - }, - "end": { - "line": 92, - "column": 40 - }, - "identifierName": "pChild" - }, - "name": "pChild" - } - ], - "body": { - "type": "BlockStatement", - "start": 4870, - "end": 5050, - "loc": { - "start": { - "line": 92, - "column": 45 - }, - "end": { - "line": 95, - "column": 17 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 4893, - "end": 4951, - "loc": { - "start": { - "line": 93, - "column": 20 - }, - "end": { - "line": 93, - "column": 78 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 4893, - "end": 4950, - "loc": { - "start": { - "line": 93, - "column": 20 - }, - "end": { - "line": 93, - "column": 77 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 4893, - "end": 4909, - "loc": { - "start": { - "line": 93, - "column": 20 - }, - "end": { - "line": 93, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 4893, - "end": 4899, - "loc": { - "start": { - "line": 93, - "column": 20 - }, - "end": { - "line": 93, - "column": 26 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 4900, - "end": 4909, - "loc": { - "start": { - "line": 93, - "column": 27 - }, - "end": { - "line": 93, - "column": 36 - }, - "identifierName": "relativeX" - }, - "name": "relativeX" - }, - "computed": false - }, - "right": { - "type": "BinaryExpression", - "start": 4912, - "end": 4950, - "loc": { - "start": { - "line": 93, - "column": 39 - }, - "end": { - "line": 93, - "column": 77 - } - }, - "left": { - "type": "MemberExpression", - "start": 4912, - "end": 4920, - "loc": { - "start": { - "line": 93, - "column": 39 - }, - "end": { - "line": 93, - "column": 47 - } - }, - "object": { - "type": "Identifier", - "start": 4912, - "end": 4918, - "loc": { - "start": { - "line": 93, - "column": 39 - }, - "end": { - "line": 93, - "column": 45 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 4919, - "end": 4920, - "loc": { - "start": { - "line": 93, - "column": 46 - }, - "end": { - "line": 93, - "column": 47 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 4923, - "end": 4950, - "loc": { - "start": { - "line": 93, - "column": 50 - }, - "end": { - "line": 93, - "column": 77 - } - }, - "object": { - "type": "MemberExpression", - "start": 4923, - "end": 4948, - "loc": { - "start": { - "line": 93, - "column": 50 - }, - "end": { - "line": 93, - "column": 75 - } - }, - "object": { - "type": "Identifier", - "start": 4923, - "end": 4936, - "loc": { - "start": { - "line": 93, - "column": 50 - }, - "end": { - "line": 93, - "column": 63 - }, - "identifierName": "pParallaxInfo" - }, - "name": "pParallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 4937, - "end": 4948, - "loc": { - "start": { - "line": 93, - "column": 64 - }, - "end": { - "line": 93, - "column": 75 - }, - "identifierName": "_initialPos" - }, - "name": "_initialPos" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 4949, - "end": 4950, - "loc": { - "start": { - "line": 93, - "column": 76 - }, - "end": { - "line": 93, - "column": 77 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 4973, - "end": 5031, - "loc": { - "start": { - "line": 94, - "column": 20 - }, - "end": { - "line": 94, - "column": 78 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 4973, - "end": 5030, - "loc": { - "start": { - "line": 94, - "column": 20 - }, - "end": { - "line": 94, - "column": 77 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 4973, - "end": 4989, - "loc": { - "start": { - "line": 94, - "column": 20 - }, - "end": { - "line": 94, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 4973, - "end": 4979, - "loc": { - "start": { - "line": 94, - "column": 20 - }, - "end": { - "line": 94, - "column": 26 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 4980, - "end": 4989, - "loc": { - "start": { - "line": 94, - "column": 27 - }, - "end": { - "line": 94, - "column": 36 - }, - "identifierName": "relativeY" - }, - "name": "relativeY" - }, - "computed": false - }, - "right": { - "type": "BinaryExpression", - "start": 4992, - "end": 5030, - "loc": { - "start": { - "line": 94, - "column": 39 - }, - "end": { - "line": 94, - "column": 77 - } - }, - "left": { - "type": "MemberExpression", - "start": 4992, - "end": 5000, - "loc": { - "start": { - "line": 94, - "column": 39 - }, - "end": { - "line": 94, - "column": 47 - } - }, - "object": { - "type": "Identifier", - "start": 4992, - "end": 4998, - "loc": { - "start": { - "line": 94, - "column": 39 - }, - "end": { - "line": 94, - "column": 45 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 4999, - "end": 5000, - "loc": { - "start": { - "line": 94, - "column": 46 - }, - "end": { - "line": 94, - "column": 47 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 5003, - "end": 5030, - "loc": { - "start": { - "line": 94, - "column": 50 - }, - "end": { - "line": 94, - "column": 77 - } - }, - "object": { - "type": "MemberExpression", - "start": 5003, - "end": 5028, - "loc": { - "start": { - "line": 94, - "column": 50 - }, - "end": { - "line": 94, - "column": 75 - } - }, - "object": { - "type": "Identifier", - "start": 5003, - "end": 5016, - "loc": { - "start": { - "line": 94, - "column": 50 - }, - "end": { - "line": 94, - "column": 63 - }, - "identifierName": "pParallaxInfo" - }, - "name": "pParallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 5017, - "end": 5028, - "loc": { - "start": { - "line": 94, - "column": 64 - }, - "end": { - "line": 94, - "column": 75 - }, - "identifierName": "_initialPos" - }, - "name": "_initialPos" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 5029, - "end": 5030, - "loc": { - "start": { - "line": 94, - "column": 76 - }, - "end": { - "line": 94, - "column": 77 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - } - } - } - ], - "directives": [] - } - } - ], - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Loop the clones and store their relative positions to the main instance", - "start": 4749, - "end": 4823, - "loc": { - "start": { - "line": 91, - "column": 16 - }, - "end": { - "line": 91, - "column": 90 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " When the main instance moves, move the clones with their relative position to it.", - "start": 5070, - "end": 5154, - "loc": { - "start": { - "line": 96, - "column": 16 - }, - "end": { - "line": 96, - "column": 100 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 5172, - "end": 5569, - "loc": { - "start": { - "line": 97, - "column": 16 - }, - "end": { - "line": 104, - "column": 17 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 5172, - "end": 5569, - "loc": { - "start": { - "line": 97, - "column": 16 - }, - "end": { - "line": 104, - "column": 17 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 5172, - "end": 5193, - "loc": { - "start": { - "line": 97, - "column": 16 - }, - "end": { - "line": 97, - "column": 37 - } - }, - "object": { - "type": "Identifier", - "start": 5172, - "end": 5181, - "loc": { - "start": { - "line": 97, - "column": 16 - }, - "end": { - "line": 97, - "column": 25 - }, - "identifierName": "pInstance" - }, - "name": "pInstance", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 5182, - "end": 5193, - "loc": { - "start": { - "line": 97, - "column": 26 - }, - "end": { - "line": 97, - "column": 37 - }, - "identifierName": "onRelocated" - }, - "name": "onRelocated" - }, - "computed": false, - "leadingComments": null - }, - "right": { - "type": "FunctionExpression", - "start": 5196, - "end": 5569, - "loc": { - "start": { - "line": 97, - "column": 40 - }, - "end": { - "line": 104, - "column": 17 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 5205, - "end": 5207, - "loc": { - "start": { - "line": 97, - "column": 49 - }, - "end": { - "line": 97, - "column": 51 - }, - "identifierName": "pX" - }, - "name": "pX" - }, - { - "type": "Identifier", - "start": 5209, - "end": 5211, - "loc": { - "start": { - "line": 97, - "column": 53 - }, - "end": { - "line": 97, - "column": 55 - }, - "identifierName": "pY" - }, - "name": "pY" - } - ], - "body": { - "type": "BlockStatement", - "start": 5213, - "end": 5569, - "loc": { - "start": { - "line": 97, - "column": 57 - }, - "end": { - "line": 104, - "column": 17 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 5313, - "end": 5550, - "loc": { - "start": { - "line": 99, - "column": 20 - }, - "end": { - "line": 103, - "column": 23 - } - }, - "expression": { - "type": "CallExpression", - "start": 5313, - "end": 5549, - "loc": { - "start": { - "line": 99, - "column": 20 - }, - "end": { - "line": 103, - "column": 22 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5313, - "end": 5329, - "loc": { - "start": { - "line": 99, - "column": 20 - }, - "end": { - "line": 99, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 5313, - "end": 5321, - "loc": { - "start": { - "line": 99, - "column": 20 - }, - "end": { - "line": 99, - "column": 28 - }, - "identifierName": "children" - }, - "name": "children", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 5322, - "end": 5329, - "loc": { - "start": { - "line": 99, - "column": 29 - }, - "end": { - "line": 99, - "column": 36 - }, - "identifierName": "forEach" - }, - "name": "forEach" - }, - "computed": false, - "leadingComments": null - }, - "arguments": [ - { - "type": "ArrowFunctionExpression", - "start": 5330, - "end": 5548, - "loc": { - "start": { - "line": 99, - "column": 37 - }, - "end": { - "line": 103, - "column": 21 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 5331, - "end": 5337, - "loc": { - "start": { - "line": 99, - "column": 38 - }, - "end": { - "line": 99, - "column": 44 - }, - "identifierName": "pChild" - }, - "name": "pChild" - } - ], - "body": { - "type": "BlockStatement", - "start": 5342, - "end": 5548, - "loc": { - "start": { - "line": 99, - "column": 49 - }, - "end": { - "line": 103, - "column": 21 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 5369, - "end": 5406, - "loc": { - "start": { - "line": 100, - "column": 24 - }, - "end": { - "line": 100, - "column": 61 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 5369, - "end": 5405, - "loc": { - "start": { - "line": 100, - "column": 24 - }, - "end": { - "line": 100, - "column": 60 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 5369, - "end": 5377, - "loc": { - "start": { - "line": 100, - "column": 24 - }, - "end": { - "line": 100, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 5369, - "end": 5375, - "loc": { - "start": { - "line": 100, - "column": 24 - }, - "end": { - "line": 100, - "column": 30 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 5376, - "end": 5377, - "loc": { - "start": { - "line": 100, - "column": 31 - }, - "end": { - "line": 100, - "column": 32 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "right": { - "type": "BinaryExpression", - "start": 5380, - "end": 5405, - "loc": { - "start": { - "line": 100, - "column": 35 - }, - "end": { - "line": 100, - "column": 60 - } - }, - "left": { - "type": "MemberExpression", - "start": 5380, - "end": 5386, - "loc": { - "start": { - "line": 100, - "column": 35 - }, - "end": { - "line": 100, - "column": 41 - } - }, - "object": { - "type": "ThisExpression", - "start": 5380, - "end": 5384, - "loc": { - "start": { - "line": 100, - "column": 35 - }, - "end": { - "line": 100, - "column": 39 - } - } - }, - "property": { - "type": "Identifier", - "start": 5385, - "end": 5386, - "loc": { - "start": { - "line": 100, - "column": 40 - }, - "end": { - "line": 100, - "column": 41 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 5389, - "end": 5405, - "loc": { - "start": { - "line": 100, - "column": 44 - }, - "end": { - "line": 100, - "column": 60 - } - }, - "object": { - "type": "Identifier", - "start": 5389, - "end": 5395, - "loc": { - "start": { - "line": 100, - "column": 44 - }, - "end": { - "line": 100, - "column": 50 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 5396, - "end": 5405, - "loc": { - "start": { - "line": 100, - "column": 51 - }, - "end": { - "line": 100, - "column": 60 - }, - "identifierName": "relativeX" - }, - "name": "relativeX" - }, - "computed": false - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 5432, - "end": 5469, - "loc": { - "start": { - "line": 101, - "column": 24 - }, - "end": { - "line": 101, - "column": 61 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 5432, - "end": 5468, - "loc": { - "start": { - "line": 101, - "column": 24 - }, - "end": { - "line": 101, - "column": 60 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 5432, - "end": 5440, - "loc": { - "start": { - "line": 101, - "column": 24 - }, - "end": { - "line": 101, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 5432, - "end": 5438, - "loc": { - "start": { - "line": 101, - "column": 24 - }, - "end": { - "line": 101, - "column": 30 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 5439, - "end": 5440, - "loc": { - "start": { - "line": 101, - "column": 31 - }, - "end": { - "line": 101, - "column": 32 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "right": { - "type": "BinaryExpression", - "start": 5443, - "end": 5468, - "loc": { - "start": { - "line": 101, - "column": 35 - }, - "end": { - "line": 101, - "column": 60 - } - }, - "left": { - "type": "MemberExpression", - "start": 5443, - "end": 5449, - "loc": { - "start": { - "line": 101, - "column": 35 - }, - "end": { - "line": 101, - "column": 41 - } - }, - "object": { - "type": "ThisExpression", - "start": 5443, - "end": 5447, - "loc": { - "start": { - "line": 101, - "column": 35 - }, - "end": { - "line": 101, - "column": 39 - } - } - }, - "property": { - "type": "Identifier", - "start": 5448, - "end": 5449, - "loc": { - "start": { - "line": 101, - "column": 40 - }, - "end": { - "line": 101, - "column": 41 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 5452, - "end": 5468, - "loc": { - "start": { - "line": 101, - "column": 44 - }, - "end": { - "line": 101, - "column": 60 - } - }, - "object": { - "type": "Identifier", - "start": 5452, - "end": 5458, - "loc": { - "start": { - "line": 101, - "column": 44 - }, - "end": { - "line": 101, - "column": 50 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 5459, - "end": 5468, - "loc": { - "start": { - "line": 101, - "column": 51 - }, - "end": { - "line": 101, - "column": 60 - }, - "identifierName": "relativeY" - }, - "name": "relativeY" - }, - "computed": false - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 5495, - "end": 5525, - "loc": { - "start": { - "line": 102, - "column": 24 - }, - "end": { - "line": 102, - "column": 54 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 5495, - "end": 5524, - "loc": { - "start": { - "line": 102, - "column": 24 - }, - "end": { - "line": 102, - "column": 53 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 5495, - "end": 5509, - "loc": { - "start": { - "line": 102, - "column": 24 - }, - "end": { - "line": 102, - "column": 38 - } - }, - "object": { - "type": "Identifier", - "start": 5495, - "end": 5501, - "loc": { - "start": { - "line": 102, - "column": 24 - }, - "end": { - "line": 102, - "column": 30 - }, - "identifierName": "pChild" - }, - "name": "pChild" - }, - "property": { - "type": "Identifier", - "start": 5502, - "end": 5509, - "loc": { - "start": { - "line": 102, - "column": 31 - }, - "end": { - "line": 102, - "column": 38 - }, - "identifierName": "mapName" - }, - "name": "mapName" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 5512, - "end": 5524, - "loc": { - "start": { - "line": 102, - "column": 41 - }, - "end": { - "line": 102, - "column": 53 - } - }, - "object": { - "type": "ThisExpression", - "start": 5512, - "end": 5516, - "loc": { - "start": { - "line": 102, - "column": 41 - }, - "end": { - "line": 102, - "column": 45 - } - } - }, - "property": { - "type": "Identifier", - "start": 5517, - "end": 5524, - "loc": { - "start": { - "line": 102, - "column": 46 - }, - "end": { - "line": 102, - "column": 53 - }, - "identifierName": "mapName" - }, - "name": "mapName" - }, - "computed": false - } - } - } - ], - "directives": [] - } - } - ], - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Update the children's position when the parent moves", - "start": 5236, - "end": 5291, - "loc": { - "start": { - "line": 98, - "column": 20 - }, - "end": { - "line": 98, - "column": 75 - } - } - } - ] - } - ], - "directives": [] - } - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " When the main instance moves, move the clones with their relative position to it.", - "start": 5070, - "end": 5154, - "loc": { - "start": { - "line": 96, - "column": 16 - }, - "end": { - "line": 96, - "column": 100 - } - } - } - ] - } - ], - "directives": [] - }, - "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " If this instance is set to loop, then it needs a left and right clone", - "start": 3799, - "end": 3871, - "loc": { - "start": { - "line": 75, - "column": 12 - }, - "end": { - "line": 75, - "column": 84 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 5598, - "end": 5615, - "loc": { - "start": { - "line": 106, - "column": 12 - }, - "end": { - "line": 106, - "column": 29 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 5598, - "end": 5614, - "loc": { - "start": { - "line": 106, - "column": 12 - }, - "end": { - "line": 106, - "column": 28 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 5598, - "end": 5609, - "loc": { - "start": { - "line": 106, - "column": 12 - }, - "end": { - "line": 106, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 5598, - "end": 5607, - "loc": { - "start": { - "line": 106, - "column": 12 - }, - "end": { - "line": 106, - "column": 21 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 5608, - "end": 5609, - "loc": { - "start": { - "line": 106, - "column": 22 - }, - "end": { - "line": 106, - "column": 23 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "right": { - "type": "Identifier", - "start": 5612, - "end": 5614, - "loc": { - "start": { - "line": 106, - "column": 26 - }, - "end": { - "line": 106, - "column": 28 - }, - "identifierName": "pX" - }, - "name": "pX" - } - } - }, - { - "type": "ExpressionStatement", - "start": 5629, - "end": 5646, - "loc": { - "start": { - "line": 107, - "column": 12 - }, - "end": { - "line": 107, - "column": 29 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 5629, - "end": 5645, - "loc": { - "start": { - "line": 107, - "column": 12 - }, - "end": { - "line": 107, - "column": 28 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 5629, - "end": 5640, - "loc": { - "start": { - "line": 107, - "column": 12 - }, - "end": { - "line": 107, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 5629, - "end": 5638, - "loc": { - "start": { - "line": 107, - "column": 12 - }, - "end": { - "line": 107, - "column": 21 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 5639, - "end": 5640, - "loc": { - "start": { - "line": 107, - "column": 22 - }, - "end": { - "line": 107, - "column": 23 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "right": { - "type": "Identifier", - "start": 5643, - "end": 5645, - "loc": { - "start": { - "line": 107, - "column": 26 - }, - "end": { - "line": 107, - "column": 28 - }, - "identifierName": "pY" - }, - "name": "pY" - } - } - }, - { - "type": "ExpressionStatement", - "start": 5660, - "end": 5685, - "loc": { - "start": { - "line": 108, - "column": 12 - }, - "end": { - "line": 108, - "column": 37 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 5660, - "end": 5684, - "loc": { - "start": { - "line": 108, - "column": 12 - }, - "end": { - "line": 108, - "column": 36 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 5660, - "end": 5677, - "loc": { - "start": { - "line": 108, - "column": 12 - }, - "end": { - "line": 108, - "column": 29 - } - }, - "object": { - "type": "Identifier", - "start": 5660, - "end": 5669, - "loc": { - "start": { - "line": 108, - "column": 12 - }, - "end": { - "line": 108, - "column": 21 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 5670, - "end": 5677, - "loc": { - "start": { - "line": 108, - "column": 22 - }, - "end": { - "line": 108, - "column": 29 - }, - "identifierName": "mapName" - }, - "name": "mapName" - }, - "computed": false - }, - "right": { - "type": "Identifier", - "start": 5680, - "end": 5684, - "loc": { - "start": { - "line": 108, - "column": 32 - }, - "end": { - "line": 108, - "column": 36 - }, - "identifierName": "pMap" - }, - "name": "pMap" - } - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 5702, - "end": 5862, - "loc": { - "start": { - "line": 109, - "column": 15 - }, - "end": { - "line": 111, - "column": 9 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 5717, - "end": 5851, - "loc": { - "start": { - "line": 110, - "column": 12 - }, - "end": { - "line": 110, - "column": 146 - } - }, - "expression": { - "type": "CallExpression", - "start": 5717, - "end": 5850, - "loc": { - "start": { - "line": 110, - "column": 12 - }, - "end": { - "line": 110, - "column": 145 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5717, - "end": 5760, - "loc": { - "start": { - "line": 110, - "column": 12 - }, - "end": { - "line": 110, - "column": 55 - } - }, - "object": { - "type": "CallExpression", - "start": 5717, - "end": 5754, - "loc": { - "start": { - "line": 110, - "column": 12 - }, - "end": { - "line": 110, - "column": 49 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5717, - "end": 5735, - "loc": { - "start": { - "line": 110, - "column": 12 - }, - "end": { - "line": 110, - "column": 30 - } - }, - "object": { - "type": "MemberExpression", - "start": 5717, - "end": 5728, - "loc": { - "start": { - "line": 110, - "column": 12 - }, - "end": { - "line": 110, - "column": 23 - } - }, - "object": { - "type": "ThisExpression", - "start": 5717, - "end": 5721, - "loc": { - "start": { - "line": 110, - "column": 12 - }, - "end": { - "line": 110, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 5722, - "end": 5728, - "loc": { - "start": { - "line": 110, - "column": 17 - }, - "end": { - "line": 110, - "column": 23 - }, - "identifierName": "logger" - }, - "name": "logger" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 5729, - "end": 5735, - "loc": { - "start": { - "line": 110, - "column": 24 - }, - "end": { - "line": 110, - "column": 30 - }, - "identifierName": "prefix" - }, - "name": "prefix" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 5736, - "end": 5753, - "loc": { - "start": { - "line": 110, - "column": 31 - }, - "end": { - "line": 110, - "column": 48 - } - }, - "extra": { - "rawValue": "Parallax-Module", - "raw": "'Parallax-Module'" - }, - "value": "Parallax-Module" - } - ] - }, - "property": { - "type": "Identifier", - "start": 5755, - "end": 5760, - "loc": { - "start": { - "line": 110, - "column": 50 - }, - "end": { - "line": 110, - "column": 55 - }, - "identifierName": "error" - }, - "name": "error" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 5761, - "end": 5849, - "loc": { - "start": { - "line": 110, - "column": 56 - }, - "end": { - "line": 110, - "column": 144 - } - }, - "extra": { - "rawValue": "VYLO not found! This module depends on the VYLO object being in the global name space.", - "raw": "'VYLO not found! This module depends on the VYLO object being in the global name space.'" - }, - "value": "VYLO not found! This module depends on the VYLO object being in the global name space." - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n * Initializes this instance.\r\n * @param {Object} pInstance - The instance to initialize.\r\n * @param {Object} pParallaxInfo - The parallax info that tells this module how to control this instance.\r\n * @property {number} pParallaxInfo.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {number} pParallaxInfo.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {boolean} pParallaxInfo.loop - Whether this instance will loop endlessly.\r\n * @param {number} pX - The x position this parallax will start at.\r\n * @param {number} pY - The y position this parallax will start at.\r\n * @param {string} pMap - The map this instance will start at.\r\n * @private\r\n ", - "start": 2718, - "end": 3611, - "loc": { - "start": { - "line": 59, - "column": 4 - }, - "end": { - "line": 70, - "column": 7 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n * Removes an instance to the parallax system.\r\n * @param {Object} pInstance - The instance to remove to the parallax system.\r\n ", - "start": 5875, - "end": 6022, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 116, - "column": 7 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 6028, - "end": 6339, - "loc": { - "start": { - "line": 117, - "column": 4 - }, - "end": { - "line": 125, - "column": 5 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6028, - "end": 6034, - "loc": { - "start": { - "line": 117, - "column": 4 - }, - "end": { - "line": 117, - "column": 10 - }, - "identifierName": "remove" - }, - "name": "remove", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 6035, - "end": 6044, - "loc": { - "start": { - "line": 117, - "column": 11 - }, - "end": { - "line": 117, - "column": 20 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - } - ], - "body": { - "type": "BlockStatement", - "start": 6046, - "end": 6339, - "loc": { - "start": { - "line": 117, - "column": 22 - }, - "end": { - "line": 125, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 6057, - "end": 6332, - "loc": { - "start": { - "line": 118, - "column": 8 - }, - "end": { - "line": 124, - "column": 9 - } - }, - "test": { - "type": "Identifier", - "start": 6061, - "end": 6070, - "loc": { - "start": { - "line": 118, - "column": 12 - }, - "end": { - "line": 118, - "column": 21 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "consequent": { - "type": "BlockStatement", - "start": 6072, - "end": 6232, - "loc": { - "start": { - "line": 118, - "column": 23 - }, - "end": { - "line": 122, - "column": 9 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 6087, - "end": 6221, - "loc": { - "start": { - "line": 119, - "column": 12 - }, - "end": { - "line": 121, - "column": 13 - } - }, - "test": { - "type": "CallExpression", - "start": 6091, - "end": 6125, - "loc": { - "start": { - "line": 119, - "column": 16 - }, - "end": { - "line": 119, - "column": 50 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6091, - "end": 6114, - "loc": { - "start": { - "line": 119, - "column": 16 - }, - "end": { - "line": 119, - "column": 39 - } - }, - "object": { - "type": "MemberExpression", - "start": 6091, - "end": 6105, - "loc": { - "start": { - "line": 119, - "column": 16 - }, - "end": { - "line": 119, - "column": 30 - } - }, - "object": { - "type": "ThisExpression", - "start": 6091, - "end": 6095, - "loc": { - "start": { - "line": 119, - "column": 16 - }, - "end": { - "line": 119, - "column": 20 - } - } - }, - "property": { - "type": "Identifier", - "start": 6096, - "end": 6105, - "loc": { - "start": { - "line": 119, - "column": 21 - }, - "end": { - "line": 119, - "column": 30 - }, - "identifierName": "instances" - }, - "name": "instances" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 6106, - "end": 6114, - "loc": { - "start": { - "line": 119, - "column": 31 - }, - "end": { - "line": 119, - "column": 39 - }, - "identifierName": "includes" - }, - "name": "includes" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 6115, - "end": 6124, - "loc": { - "start": { - "line": 119, - "column": 40 - }, - "end": { - "line": 119, - "column": 49 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - } - ] - }, - "consequent": { - "type": "BlockStatement", - "start": 6127, - "end": 6221, - "loc": { - "start": { - "line": 119, - "column": 52 - }, - "end": { - "line": 121, - "column": 13 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 6146, - "end": 6206, - "loc": { - "start": { - "line": 120, - "column": 16 - }, - "end": { - "line": 120, - "column": 76 - } - }, - "expression": { - "type": "CallExpression", - "start": 6146, - "end": 6205, - "loc": { - "start": { - "line": 120, - "column": 16 - }, - "end": { - "line": 120, - "column": 75 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6146, - "end": 6167, - "loc": { - "start": { - "line": 120, - "column": 16 - }, - "end": { - "line": 120, - "column": 37 - } - }, - "object": { - "type": "MemberExpression", - "start": 6146, - "end": 6160, - "loc": { - "start": { - "line": 120, - "column": 16 - }, - "end": { - "line": 120, - "column": 30 - } - }, - "object": { - "type": "ThisExpression", - "start": 6146, - "end": 6150, - "loc": { - "start": { - "line": 120, - "column": 16 - }, - "end": { - "line": 120, - "column": 20 - } - } - }, - "property": { - "type": "Identifier", - "start": 6151, - "end": 6160, - "loc": { - "start": { - "line": 120, - "column": 21 - }, - "end": { - "line": 120, - "column": 30 - }, - "identifierName": "instances" - }, - "name": "instances" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 6161, - "end": 6167, - "loc": { - "start": { - "line": 120, - "column": 31 - }, - "end": { - "line": 120, - "column": 37 - }, - "identifierName": "splice" - }, - "name": "splice" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 6168, - "end": 6201, - "loc": { - "start": { - "line": 120, - "column": 38 - }, - "end": { - "line": 120, - "column": 71 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6168, - "end": 6190, - "loc": { - "start": { - "line": 120, - "column": 38 - }, - "end": { - "line": 120, - "column": 60 - } - }, - "object": { - "type": "MemberExpression", - "start": 6168, - "end": 6182, - "loc": { - "start": { - "line": 120, - "column": 38 - }, - "end": { - "line": 120, - "column": 52 - } - }, - "object": { - "type": "ThisExpression", - "start": 6168, - "end": 6172, - "loc": { - "start": { - "line": 120, - "column": 38 - }, - "end": { - "line": 120, - "column": 42 - } - } - }, - "property": { - "type": "Identifier", - "start": 6173, - "end": 6182, - "loc": { - "start": { - "line": 120, - "column": 43 - }, - "end": { - "line": 120, - "column": 52 - }, - "identifierName": "instances" - }, - "name": "instances" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 6183, - "end": 6190, - "loc": { - "start": { - "line": 120, - "column": 53 - }, - "end": { - "line": 120, - "column": 60 - }, - "identifierName": "indexOf" - }, - "name": "indexOf" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 6191, - "end": 6200, - "loc": { - "start": { - "line": 120, - "column": 61 - }, - "end": { - "line": 120, - "column": 70 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - } - ] - }, - { - "type": "NumericLiteral", - "start": 6203, - "end": 6204, - "loc": { - "start": { - "line": 120, - "column": 73 - }, - "end": { - "line": 120, - "column": 74 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - ] - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 6238, - "end": 6332, - "loc": { - "start": { - "line": 122, - "column": 15 - }, - "end": { - "line": 124, - "column": 9 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 6253, - "end": 6321, - "loc": { - "start": { - "line": 123, - "column": 12 - }, - "end": { - "line": 123, - "column": 80 - } - }, - "expression": { - "type": "CallExpression", - "start": 6253, - "end": 6320, - "loc": { - "start": { - "line": 123, - "column": 12 - }, - "end": { - "line": 123, - "column": 79 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6253, - "end": 6296, - "loc": { - "start": { - "line": 123, - "column": 12 - }, - "end": { - "line": 123, - "column": 55 - } - }, - "object": { - "type": "CallExpression", - "start": 6253, - "end": 6290, - "loc": { - "start": { - "line": 123, - "column": 12 - }, - "end": { - "line": 123, - "column": 49 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6253, - "end": 6271, - "loc": { - "start": { - "line": 123, - "column": 12 - }, - "end": { - "line": 123, - "column": 30 - } - }, - "object": { - "type": "MemberExpression", - "start": 6253, - "end": 6264, - "loc": { - "start": { - "line": 123, - "column": 12 - }, - "end": { - "line": 123, - "column": 23 - } - }, - "object": { - "type": "ThisExpression", - "start": 6253, - "end": 6257, - "loc": { - "start": { - "line": 123, - "column": 12 - }, - "end": { - "line": 123, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 6258, - "end": 6264, - "loc": { - "start": { - "line": 123, - "column": 17 - }, - "end": { - "line": 123, - "column": 23 - }, - "identifierName": "logger" - }, - "name": "logger" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 6265, - "end": 6271, - "loc": { - "start": { - "line": 123, - "column": 24 - }, - "end": { - "line": 123, - "column": 30 - }, - "identifierName": "prefix" - }, - "name": "prefix" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 6272, - "end": 6289, - "loc": { - "start": { - "line": 123, - "column": 31 - }, - "end": { - "line": 123, - "column": 48 - } - }, - "extra": { - "rawValue": "Parallax-Module", - "raw": "'Parallax-Module'" - }, - "value": "Parallax-Module" - } - ] - }, - "property": { - "type": "Identifier", - "start": 6291, - "end": 6296, - "loc": { - "start": { - "line": 123, - "column": 50 - }, - "end": { - "line": 123, - "column": 55 - }, - "identifierName": "error" - }, - "name": "error" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 6297, - "end": 6319, - "loc": { - "start": { - "line": 123, - "column": 56 - }, - "end": { - "line": 123, - "column": 78 - } - }, - "extra": { - "rawValue": "No pInstance passed!", - "raw": "'No pInstance passed!'" - }, - "value": "No pInstance passed!" - } - ] - } - } - ], - "directives": [] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n * Removes an instance to the parallax system.\r\n * @param {Object} pInstance - The instance to remove to the parallax system.\r\n ", - "start": 5875, - "end": 6022, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 116, - "column": 7 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n * Updates the parallax system\r\n * @param {number} pCameraX - The x position of the camera.\r\n * @param {number} pCameraY - The y position of the camera.\r\n ", - "start": 6345, - "end": 6523, - "loc": { - "start": { - "line": 126, - "column": 4 - }, - "end": { - "line": 130, - "column": 7 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 6529, - "end": 8334, - "loc": { - "start": { - "line": 131, - "column": 4 - }, - "end": { - "line": 169, - "column": 5 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6529, - "end": 6535, - "loc": { - "start": { - "line": 131, - "column": 4 - }, - "end": { - "line": 131, - "column": 10 - }, - "identifierName": "update" - }, - "name": "update", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "AssignmentPattern", - "start": 6536, - "end": 6548, - "loc": { - "start": { - "line": 131, - "column": 11 - }, - "end": { - "line": 131, - "column": 23 - } - }, - "left": { - "type": "Identifier", - "start": 6536, - "end": 6544, - "loc": { - "start": { - "line": 131, - "column": 11 - }, - "end": { - "line": 131, - "column": 19 - }, - "identifierName": "pCameraX" - }, - "name": "pCameraX" - }, - "right": { - "type": "NumericLiteral", - "start": 6547, - "end": 6548, - "loc": { - "start": { - "line": 131, - "column": 22 - }, - "end": { - "line": 131, - "column": 23 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - { - "type": "AssignmentPattern", - "start": 6550, - "end": 6562, - "loc": { - "start": { - "line": 131, - "column": 25 - }, - "end": { - "line": 131, - "column": 37 - } - }, - "left": { - "type": "Identifier", - "start": 6550, - "end": 6558, - "loc": { - "start": { - "line": 131, - "column": 25 - }, - "end": { - "line": 131, - "column": 33 - }, - "identifierName": "pCameraY" - }, - "name": "pCameraY" - }, - "right": { - "type": "NumericLiteral", - "start": 6561, - "end": 6562, - "loc": { - "start": { - "line": 131, - "column": 36 - }, - "end": { - "line": 131, - "column": 37 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 6564, - "end": 8334, - "loc": { - "start": { - "line": 131, - "column": 39 - }, - "end": { - "line": 169, - "column": 5 - } - }, - "body": [ - { - "type": "ForOfStatement", - "start": 6575, - "end": 8319, - "loc": { - "start": { - "line": 132, - "column": 8 - }, - "end": { - "line": 168, - "column": 9 - } - }, - "left": { - "type": "VariableDeclaration", - "start": 6580, - "end": 6594, - "loc": { - "start": { - "line": 132, - "column": 13 - }, - "end": { - "line": 132, - "column": 27 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6586, - "end": 6594, - "loc": { - "start": { - "line": 132, - "column": 19 - }, - "end": { - "line": 132, - "column": 27 - } - }, - "id": { - "type": "Identifier", - "start": 6586, - "end": 6594, - "loc": { - "start": { - "line": 132, - "column": 19 - }, - "end": { - "line": 132, - "column": 27 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "init": null - } - ], - "kind": "const" - }, - "right": { - "type": "MemberExpression", - "start": 6598, - "end": 6612, - "loc": { - "start": { - "line": 132, - "column": 31 - }, - "end": { - "line": 132, - "column": 45 - } - }, - "object": { - "type": "ThisExpression", - "start": 6598, - "end": 6602, - "loc": { - "start": { - "line": 132, - "column": 31 - }, - "end": { - "line": 132, - "column": 35 - } - } - }, - "property": { - "type": "Identifier", - "start": 6603, - "end": 6612, - "loc": { - "start": { - "line": 132, - "column": 36 - }, - "end": { - "line": 132, - "column": 45 - }, - "identifierName": "instances" - }, - "name": "instances" - }, - "computed": false - }, - "body": { - "type": "BlockStatement", - "start": 6614, - "end": 8319, - "loc": { - "start": { - "line": 132, - "column": 47 - }, - "end": { - "line": 168, - "column": 9 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 6629, - "end": 6685, - "loc": { - "start": { - "line": 133, - "column": 12 - }, - "end": { - "line": 133, - "column": 68 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6635, - "end": 6684, - "loc": { - "start": { - "line": 133, - "column": 18 - }, - "end": { - "line": 133, - "column": 67 - } - }, - "id": { - "type": "Identifier", - "start": 6635, - "end": 6647, - "loc": { - "start": { - "line": 133, - "column": 18 - }, - "end": { - "line": 133, - "column": 30 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "init": { - "type": "CallExpression", - "start": 6650, - "end": 6684, - "loc": { - "start": { - "line": 133, - "column": 33 - }, - "end": { - "line": 133, - "column": 67 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6650, - "end": 6674, - "loc": { - "start": { - "line": 133, - "column": 33 - }, - "end": { - "line": 133, - "column": 57 - } - }, - "object": { - "type": "MemberExpression", - "start": 6650, - "end": 6670, - "loc": { - "start": { - "line": 133, - "column": 33 - }, - "end": { - "line": 133, - "column": 53 - } - }, - "object": { - "type": "ThisExpression", - "start": 6650, - "end": 6654, - "loc": { - "start": { - "line": 133, - "column": 33 - }, - "end": { - "line": 133, - "column": 37 - } - } - }, - "property": { - "type": "Identifier", - "start": 6655, - "end": 6670, - "loc": { - "start": { - "line": 133, - "column": 38 - }, - "end": { - "line": 133, - "column": 53 - }, - "identifierName": "instanceWeakMap" - }, - "name": "instanceWeakMap" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 6671, - "end": 6674, - "loc": { - "start": { - "line": 133, - "column": 54 - }, - "end": { - "line": 133, - "column": 57 - }, - "identifierName": "get" - }, - "name": "get" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 6675, - "end": 6683, - "loc": { - "start": { - "line": 133, - "column": 58 - }, - "end": { - "line": 133, - "column": 66 - }, - "identifierName": "instance" - }, - "name": "instance" - } - ] - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " How far we moved from the start point", - "start": 6699, - "end": 6739, - "loc": { - "start": { - "line": 134, - "column": 12 - }, - "end": { - "line": 134, - "column": 52 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 6753, - "end": 6793, - "loc": { - "start": { - "line": 135, - "column": 12 - }, - "end": { - "line": 135, - "column": 52 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6759, - "end": 6792, - "loc": { - "start": { - "line": 135, - "column": 18 - }, - "end": { - "line": 135, - "column": 51 - } - }, - "id": { - "type": "Identifier", - "start": 6759, - "end": 6764, - "loc": { - "start": { - "line": 135, - "column": 18 - }, - "end": { - "line": 135, - "column": 23 - }, - "identifierName": "distX" - }, - "name": "distX", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 6767, - "end": 6792, - "loc": { - "start": { - "line": 135, - "column": 26 - }, - "end": { - "line": 135, - "column": 51 - } - }, - "left": { - "type": "Identifier", - "start": 6767, - "end": 6775, - "loc": { - "start": { - "line": 135, - "column": 26 - }, - "end": { - "line": 135, - "column": 34 - }, - "identifierName": "pCameraX" - }, - "name": "pCameraX" - }, - "operator": "*", - "right": { - "type": "MemberExpression", - "start": 6778, - "end": 6792, - "loc": { - "start": { - "line": 135, - "column": 37 - }, - "end": { - "line": 135, - "column": 51 - } - }, - "object": { - "type": "Identifier", - "start": 6778, - "end": 6790, - "loc": { - "start": { - "line": 135, - "column": 37 - }, - "end": { - "line": 135, - "column": 49 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 6791, - "end": 6792, - "loc": { - "start": { - "line": 135, - "column": 50 - }, - "end": { - "line": 135, - "column": 51 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " How far we moved from the start point", - "start": 6699, - "end": 6739, - "loc": { - "start": { - "line": 134, - "column": 12 - }, - "end": { - "line": 134, - "column": 52 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 6807, - "end": 6847, - "loc": { - "start": { - "line": 136, - "column": 12 - }, - "end": { - "line": 136, - "column": 52 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6813, - "end": 6846, - "loc": { - "start": { - "line": 136, - "column": 18 - }, - "end": { - "line": 136, - "column": 51 - } - }, - "id": { - "type": "Identifier", - "start": 6813, - "end": 6818, - "loc": { - "start": { - "line": 136, - "column": 18 - }, - "end": { - "line": 136, - "column": 23 - }, - "identifierName": "distY" - }, - "name": "distY" - }, - "init": { - "type": "BinaryExpression", - "start": 6821, - "end": 6846, - "loc": { - "start": { - "line": 136, - "column": 26 - }, - "end": { - "line": 136, - "column": 51 - } - }, - "left": { - "type": "Identifier", - "start": 6821, - "end": 6829, - "loc": { - "start": { - "line": 136, - "column": 26 - }, - "end": { - "line": 136, - "column": 34 - }, - "identifierName": "pCameraY" - }, - "name": "pCameraY" - }, - "operator": "*", - "right": { - "type": "MemberExpression", - "start": 6832, - "end": 6846, - "loc": { - "start": { - "line": 136, - "column": 37 - }, - "end": { - "line": 136, - "column": 51 - } - }, - "object": { - "type": "Identifier", - "start": 6832, - "end": 6844, - "loc": { - "start": { - "line": 136, - "column": 37 - }, - "end": { - "line": 136, - "column": 49 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 6845, - "end": 6846, - "loc": { - "start": { - "line": 136, - "column": 50 - }, - "end": { - "line": 136, - "column": 51 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " Position to set the instance to", - "start": 6861, - "end": 6895, - "loc": { - "start": { - "line": 137, - "column": 12 - }, - "end": { - "line": 137, - "column": 46 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 6909, - "end": 6952, - "loc": { - "start": { - "line": 138, - "column": 12 - }, - "end": { - "line": 138, - "column": 55 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6913, - "end": 6951, - "loc": { - "start": { - "line": 138, - "column": 16 - }, - "end": { - "line": 138, - "column": 54 - } - }, - "id": { - "type": "Identifier", - "start": 6913, - "end": 6914, - "loc": { - "start": { - "line": 138, - "column": 16 - }, - "end": { - "line": 138, - "column": 17 - }, - "identifierName": "x" - }, - "name": "x", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 6917, - "end": 6951, - "loc": { - "start": { - "line": 138, - "column": 20 - }, - "end": { - "line": 138, - "column": 54 - } - }, - "left": { - "type": "MemberExpression", - "start": 6917, - "end": 6943, - "loc": { - "start": { - "line": 138, - "column": 20 - }, - "end": { - "line": 138, - "column": 46 - } - }, - "object": { - "type": "MemberExpression", - "start": 6917, - "end": 6941, - "loc": { - "start": { - "line": 138, - "column": 20 - }, - "end": { - "line": 138, - "column": 44 - } - }, - "object": { - "type": "Identifier", - "start": 6917, - "end": 6929, - "loc": { - "start": { - "line": 138, - "column": 20 - }, - "end": { - "line": 138, - "column": 32 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 6930, - "end": 6941, - "loc": { - "start": { - "line": 138, - "column": 33 - }, - "end": { - "line": 138, - "column": 44 - }, - "identifierName": "_initialPos" - }, - "name": "_initialPos" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 6942, - "end": 6943, - "loc": { - "start": { - "line": 138, - "column": 45 - }, - "end": { - "line": 138, - "column": 46 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 6946, - "end": 6951, - "loc": { - "start": { - "line": 138, - "column": 49 - }, - "end": { - "line": 138, - "column": 54 - }, - "identifierName": "distX" - }, - "name": "distX" - } - }, - "leadingComments": null - } - ], - "kind": "let", - "leadingComments": [ - { - "type": "CommentLine", - "value": " Position to set the instance to", - "start": 6861, - "end": 6895, - "loc": { - "start": { - "line": 137, - "column": 12 - }, - "end": { - "line": 137, - "column": 46 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 6966, - "end": 7009, - "loc": { - "start": { - "line": 139, - "column": 12 - }, - "end": { - "line": 139, - "column": 55 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6970, - "end": 7008, - "loc": { - "start": { - "line": 139, - "column": 16 - }, - "end": { - "line": 139, - "column": 54 - } - }, - "id": { - "type": "Identifier", - "start": 6970, - "end": 6971, - "loc": { - "start": { - "line": 139, - "column": 16 - }, - "end": { - "line": 139, - "column": 17 - }, - "identifierName": "y" - }, - "name": "y" - }, - "init": { - "type": "BinaryExpression", - "start": 6974, - "end": 7008, - "loc": { - "start": { - "line": 139, - "column": 20 - }, - "end": { - "line": 139, - "column": 54 - } - }, - "left": { - "type": "MemberExpression", - "start": 6974, - "end": 7000, - "loc": { - "start": { - "line": 139, - "column": 20 - }, - "end": { - "line": 139, - "column": 46 - } - }, - "object": { - "type": "MemberExpression", - "start": 6974, - "end": 6998, - "loc": { - "start": { - "line": 139, - "column": 20 - }, - "end": { - "line": 139, - "column": 44 - } - }, - "object": { - "type": "Identifier", - "start": 6974, - "end": 6986, - "loc": { - "start": { - "line": 139, - "column": 20 - }, - "end": { - "line": 139, - "column": 32 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 6987, - "end": 6998, - "loc": { - "start": { - "line": 139, - "column": 33 - }, - "end": { - "line": 139, - "column": 44 - }, - "identifierName": "_initialPos" - }, - "name": "_initialPos" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 6999, - "end": 7000, - "loc": { - "start": { - "line": 139, - "column": 45 - }, - "end": { - "line": 139, - "column": 46 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 7003, - "end": 7008, - "loc": { - "start": { - "line": 139, - "column": 49 - }, - "end": { - "line": 139, - "column": 54 - }, - "identifierName": "distY" - }, - "name": "distY" - } - } - } - ], - "kind": "let", - "trailingComments": [ - { - "type": "CommentLine", - "value": " Move the instance with the camera if the parallax is set to 1", - "start": 7023, - "end": 7087, - "loc": { - "start": { - "line": 140, - "column": 12 - }, - "end": { - "line": 140, - "column": 76 - } - } - } - ] - }, - { - "type": "IfStatement", - "start": 7101, - "end": 7200, - "loc": { - "start": { - "line": 141, - "column": 12 - }, - "end": { - "line": 143, - "column": 13 - } - }, - "test": { - "type": "BinaryExpression", - "start": 7105, - "end": 7125, - "loc": { - "start": { - "line": 141, - "column": 16 - }, - "end": { - "line": 141, - "column": 36 - } - }, - "left": { - "type": "MemberExpression", - "start": 7105, - "end": 7119, - "loc": { - "start": { - "line": 141, - "column": 16 - }, - "end": { - "line": 141, - "column": 30 - } - }, - "object": { - "type": "Identifier", - "start": 7105, - "end": 7117, - "loc": { - "start": { - "line": 141, - "column": 16 - }, - "end": { - "line": 141, - "column": 28 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 7118, - "end": 7119, - "loc": { - "start": { - "line": 141, - "column": 29 - }, - "end": { - "line": 141, - "column": 30 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false, - "leadingComments": null - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 7124, - "end": 7125, - "loc": { - "start": { - "line": 141, - "column": 35 - }, - "end": { - "line": 141, - "column": 36 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "leadingComments": null - }, - "consequent": { - "type": "BlockStatement", - "start": 7127, - "end": 7200, - "loc": { - "start": { - "line": 141, - "column": 38 - }, - "end": { - "line": 143, - "column": 13 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7146, - "end": 7185, - "loc": { - "start": { - "line": 142, - "column": 16 - }, - "end": { - "line": 142, - "column": 55 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 7146, - "end": 7184, - "loc": { - "start": { - "line": 142, - "column": 16 - }, - "end": { - "line": 142, - "column": 54 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 7146, - "end": 7147, - "loc": { - "start": { - "line": 142, - "column": 16 - }, - "end": { - "line": 142, - "column": 17 - }, - "identifierName": "x" - }, - "name": "x" - }, - "right": { - "type": "BinaryExpression", - "start": 7150, - "end": 7184, - "loc": { - "start": { - "line": 142, - "column": 20 - }, - "end": { - "line": 142, - "column": 54 - } - }, - "left": { - "type": "Identifier", - "start": 7150, - "end": 7158, - "loc": { - "start": { - "line": 142, - "column": 20 - }, - "end": { - "line": 142, - "column": 28 - }, - "identifierName": "pCameraX" - }, - "name": "pCameraX" - }, - "operator": "-", - "right": { - "type": "BinaryExpression", - "start": 7161, - "end": 7184, - "loc": { - "start": { - "line": 142, - "column": 31 - }, - "end": { - "line": 142, - "column": 54 - } - }, - "left": { - "type": "MemberExpression", - "start": 7161, - "end": 7180, - "loc": { - "start": { - "line": 142, - "column": 31 - }, - "end": { - "line": 142, - "column": 50 - } - }, - "object": { - "type": "MemberExpression", - "start": 7161, - "end": 7174, - "loc": { - "start": { - "line": 142, - "column": 31 - }, - "end": { - "line": 142, - "column": 44 - } - }, - "object": { - "type": "Identifier", - "start": 7161, - "end": 7169, - "loc": { - "start": { - "line": 142, - "column": 31 - }, - "end": { - "line": 142, - "column": 39 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 7170, - "end": 7174, - "loc": { - "start": { - "line": 142, - "column": 40 - }, - "end": { - "line": 142, - "column": 44 - }, - "identifierName": "icon" - }, - "name": "icon" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 7175, - "end": 7180, - "loc": { - "start": { - "line": 142, - "column": 45 - }, - "end": { - "line": 142, - "column": 50 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 7183, - "end": 7184, - "loc": { - "start": { - "line": 142, - "column": 53 - }, - "end": { - "line": 142, - "column": 54 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - } - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Move the instance with the camera if the parallax is set to 1", - "start": 7023, - "end": 7087, - "loc": { - "start": { - "line": 140, - "column": 12 - }, - "end": { - "line": 140, - "column": 76 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " Move the instance with the camera if the parallax is set to 1", - "start": 7214, - "end": 7278, - "loc": { - "start": { - "line": 144, - "column": 12 - }, - "end": { - "line": 144, - "column": 76 - } - } - } - ] - }, - { - "type": "IfStatement", - "start": 7292, - "end": 7392, - "loc": { - "start": { - "line": 145, - "column": 12 - }, - "end": { - "line": 147, - "column": 13 - } - }, - "test": { - "type": "BinaryExpression", - "start": 7296, - "end": 7316, - "loc": { - "start": { - "line": 145, - "column": 16 - }, - "end": { - "line": 145, - "column": 36 - } - }, - "left": { - "type": "MemberExpression", - "start": 7296, - "end": 7310, - "loc": { - "start": { - "line": 145, - "column": 16 - }, - "end": { - "line": 145, - "column": 30 - } - }, - "object": { - "type": "Identifier", - "start": 7296, - "end": 7308, - "loc": { - "start": { - "line": 145, - "column": 16 - }, - "end": { - "line": 145, - "column": 28 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 7309, - "end": 7310, - "loc": { - "start": { - "line": 145, - "column": 29 - }, - "end": { - "line": 145, - "column": 30 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false, - "leadingComments": null - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 7315, - "end": 7316, - "loc": { - "start": { - "line": 145, - "column": 35 - }, - "end": { - "line": 145, - "column": 36 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "leadingComments": null - }, - "consequent": { - "type": "BlockStatement", - "start": 7318, - "end": 7392, - "loc": { - "start": { - "line": 145, - "column": 38 - }, - "end": { - "line": 147, - "column": 13 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7337, - "end": 7377, - "loc": { - "start": { - "line": 146, - "column": 16 - }, - "end": { - "line": 146, - "column": 56 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 7337, - "end": 7376, - "loc": { - "start": { - "line": 146, - "column": 16 - }, - "end": { - "line": 146, - "column": 55 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 7337, - "end": 7338, - "loc": { - "start": { - "line": 146, - "column": 16 - }, - "end": { - "line": 146, - "column": 17 - }, - "identifierName": "y" - }, - "name": "y" - }, - "right": { - "type": "BinaryExpression", - "start": 7341, - "end": 7376, - "loc": { - "start": { - "line": 146, - "column": 20 - }, - "end": { - "line": 146, - "column": 55 - } - }, - "left": { - "type": "Identifier", - "start": 7341, - "end": 7349, - "loc": { - "start": { - "line": 146, - "column": 20 - }, - "end": { - "line": 146, - "column": 28 - }, - "identifierName": "pCameraY" - }, - "name": "pCameraY" - }, - "operator": "-", - "right": { - "type": "BinaryExpression", - "start": 7352, - "end": 7376, - "loc": { - "start": { - "line": 146, - "column": 31 - }, - "end": { - "line": 146, - "column": 55 - } - }, - "left": { - "type": "MemberExpression", - "start": 7352, - "end": 7372, - "loc": { - "start": { - "line": 146, - "column": 31 - }, - "end": { - "line": 146, - "column": 51 - } - }, - "object": { - "type": "MemberExpression", - "start": 7352, - "end": 7365, - "loc": { - "start": { - "line": 146, - "column": 31 - }, - "end": { - "line": 146, - "column": 44 - } - }, - "object": { - "type": "Identifier", - "start": 7352, - "end": 7360, - "loc": { - "start": { - "line": 146, - "column": 31 - }, - "end": { - "line": 146, - "column": 39 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 7361, - "end": 7365, - "loc": { - "start": { - "line": 146, - "column": 40 - }, - "end": { - "line": 146, - "column": 44 - }, - "identifierName": "icon" - }, - "name": "icon" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 7366, - "end": 7372, - "loc": { - "start": { - "line": 146, - "column": 45 - }, - "end": { - "line": 146, - "column": 51 - }, - "identifierName": "height" - }, - "name": "height" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 7375, - "end": 7376, - "loc": { - "start": { - "line": 146, - "column": 54 - }, - "end": { - "line": 146, - "column": 55 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - } - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Move the instance with the camera if the parallax is set to 1", - "start": 7214, - "end": 7278, - "loc": { - "start": { - "line": 144, - "column": 12 - }, - "end": { - "line": 144, - "column": 76 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " Set the position", - "start": 7408, - "end": 7427, - "loc": { - "start": { - "line": 149, - "column": 12 - }, - "end": { - "line": 149, - "column": 31 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 7441, - "end": 7456, - "loc": { - "start": { - "line": 150, - "column": 12 - }, - "end": { - "line": 150, - "column": 27 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 7441, - "end": 7455, - "loc": { - "start": { - "line": 150, - "column": 12 - }, - "end": { - "line": 150, - "column": 26 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 7441, - "end": 7451, - "loc": { - "start": { - "line": 150, - "column": 12 - }, - "end": { - "line": 150, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 7441, - "end": 7449, - "loc": { - "start": { - "line": 150, - "column": 12 - }, - "end": { - "line": 150, - "column": 20 - }, - "identifierName": "instance" - }, - "name": "instance", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 7450, - "end": 7451, - "loc": { - "start": { - "line": 150, - "column": 21 - }, - "end": { - "line": 150, - "column": 22 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false, - "leadingComments": null - }, - "right": { - "type": "Identifier", - "start": 7454, - "end": 7455, - "loc": { - "start": { - "line": 150, - "column": 25 - }, - "end": { - "line": 150, - "column": 26 - }, - "identifierName": "x" - }, - "name": "x" - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Set the position", - "start": 7408, - "end": 7427, - "loc": { - "start": { - "line": 149, - "column": 12 - }, - "end": { - "line": 149, - "column": 31 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 7470, - "end": 7485, - "loc": { - "start": { - "line": 151, - "column": 12 - }, - "end": { - "line": 151, - "column": 27 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 7470, - "end": 7484, - "loc": { - "start": { - "line": 151, - "column": 12 - }, - "end": { - "line": 151, - "column": 26 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 7470, - "end": 7480, - "loc": { - "start": { - "line": 151, - "column": 12 - }, - "end": { - "line": 151, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 7470, - "end": 7478, - "loc": { - "start": { - "line": 151, - "column": 12 - }, - "end": { - "line": 151, - "column": 20 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 7479, - "end": 7480, - "loc": { - "start": { - "line": 151, - "column": 21 - }, - "end": { - "line": 151, - "column": 22 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "right": { - "type": "Identifier", - "start": 7483, - "end": 7484, - "loc": { - "start": { - "line": 151, - "column": 25 - }, - "end": { - "line": 151, - "column": 26 - }, - "identifierName": "y" - }, - "name": "y" - } - } - }, - { - "type": "IfStatement", - "start": 7501, - "end": 8308, - "loc": { - "start": { - "line": 153, - "column": 12 - }, - "end": { - "line": 167, - "column": 13 - } - }, - "test": { - "type": "MemberExpression", - "start": 7505, - "end": 7522, - "loc": { - "start": { - "line": 153, - "column": 16 - }, - "end": { - "line": 153, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 7505, - "end": 7517, - "loc": { - "start": { - "line": 153, - "column": 16 - }, - "end": { - "line": 153, - "column": 28 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 7518, - "end": 7522, - "loc": { - "start": { - "line": 153, - "column": 29 - }, - "end": { - "line": 153, - "column": 33 - }, - "identifierName": "loop" - }, - "name": "loop" - }, - "computed": false - }, - "consequent": { - "type": "BlockStatement", - "start": 7524, - "end": 8308, - "loc": { - "start": { - "line": 153, - "column": 35 - }, - "end": { - "line": 167, - "column": 13 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 7543, - "end": 8293, - "loc": { - "start": { - "line": 154, - "column": 16 - }, - "end": { - "line": 166, - "column": 17 - } - }, - "test": { - "type": "BinaryExpression", - "start": 7547, - "end": 7567, - "loc": { - "start": { - "line": 154, - "column": 20 - }, - "end": { - "line": 154, - "column": 40 - } - }, - "left": { - "type": "MemberExpression", - "start": 7547, - "end": 7561, - "loc": { - "start": { - "line": 154, - "column": 20 - }, - "end": { - "line": 154, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 7547, - "end": 7559, - "loc": { - "start": { - "line": 154, - "column": 20 - }, - "end": { - "line": 154, - "column": 32 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 7560, - "end": 7561, - "loc": { - "start": { - "line": 154, - "column": 33 - }, - "end": { - "line": 154, - "column": 34 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "!==", - "right": { - "type": "NumericLiteral", - "start": 7566, - "end": 7567, - "loc": { - "start": { - "line": 154, - "column": 39 - }, - "end": { - "line": 154, - "column": 40 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - }, - "consequent": { - "type": "BlockStatement", - "start": 7569, - "end": 8293, - "loc": { - "start": { - "line": 154, - "column": 42 - }, - "end": { - "line": 166, - "column": 17 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 7656, - "end": 7706, - "loc": { - "start": { - "line": 156, - "column": 20 - }, - "end": { - "line": 156, - "column": 70 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7662, - "end": 7705, - "loc": { - "start": { - "line": 156, - "column": 26 - }, - "end": { - "line": 156, - "column": 69 - } - }, - "id": { - "type": "Identifier", - "start": 7662, - "end": 7671, - "loc": { - "start": { - "line": 156, - "column": 26 - }, - "end": { - "line": 156, - "column": 35 - }, - "identifierName": "relativeX" - }, - "name": "relativeX", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 7674, - "end": 7705, - "loc": { - "start": { - "line": 156, - "column": 38 - }, - "end": { - "line": 156, - "column": 69 - } - }, - "left": { - "type": "Identifier", - "start": 7674, - "end": 7682, - "loc": { - "start": { - "line": 156, - "column": 38 - }, - "end": { - "line": 156, - "column": 46 - }, - "identifierName": "pCameraX" - }, - "name": "pCameraX" - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 7686, - "end": 7704, - "loc": { - "start": { - "line": 156, - "column": 50 - }, - "end": { - "line": 156, - "column": 68 - } - }, - "left": { - "type": "NumericLiteral", - "start": 7686, - "end": 7687, - "loc": { - "start": { - "line": 156, - "column": 50 - }, - "end": { - "line": 156, - "column": 51 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 7690, - "end": 7704, - "loc": { - "start": { - "line": 156, - "column": 54 - }, - "end": { - "line": 156, - "column": 68 - } - }, - "object": { - "type": "Identifier", - "start": 7690, - "end": 7702, - "loc": { - "start": { - "line": 156, - "column": 54 - }, - "end": { - "line": 156, - "column": 66 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 7703, - "end": 7704, - "loc": { - "start": { - "line": 156, - "column": 67 - }, - "end": { - "line": 156, - "column": 68 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "extra": { - "parenthesized": true, - "parenStart": 7685 - } - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " How far we moved relative to the camera", - "start": 7592, - "end": 7634, - "loc": { - "start": { - "line": 155, - "column": 20 - }, - "end": { - "line": 155, - "column": 62 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " The start pos + total width", - "start": 7728, - "end": 7758, - "loc": { - "start": { - "line": 157, - "column": 20 - }, - "end": { - "line": 157, - "column": 50 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 7780, - "end": 7842, - "loc": { - "start": { - "line": 158, - "column": 20 - }, - "end": { - "line": 158, - "column": 82 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7786, - "end": 7841, - "loc": { - "start": { - "line": 158, - "column": 26 - }, - "end": { - "line": 158, - "column": 81 - } - }, - "id": { - "type": "Identifier", - "start": 7786, - "end": 7790, - "loc": { - "start": { - "line": 158, - "column": 26 - }, - "end": { - "line": 158, - "column": 30 - }, - "identifierName": "endX" - }, - "name": "endX", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 7793, - "end": 7841, - "loc": { - "start": { - "line": 158, - "column": 33 - }, - "end": { - "line": 158, - "column": 81 - } - }, - "left": { - "type": "MemberExpression", - "start": 7793, - "end": 7819, - "loc": { - "start": { - "line": 158, - "column": 33 - }, - "end": { - "line": 158, - "column": 59 - } - }, - "object": { - "type": "MemberExpression", - "start": 7793, - "end": 7817, - "loc": { - "start": { - "line": 158, - "column": 33 - }, - "end": { - "line": 158, - "column": 57 - } - }, - "object": { - "type": "Identifier", - "start": 7793, - "end": 7805, - "loc": { - "start": { - "line": 158, - "column": 33 - }, - "end": { - "line": 158, - "column": 45 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 7806, - "end": 7817, - "loc": { - "start": { - "line": 158, - "column": 46 - }, - "end": { - "line": 158, - "column": 57 - }, - "identifierName": "_initialPos" - }, - "name": "_initialPos" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 7818, - "end": 7819, - "loc": { - "start": { - "line": 158, - "column": 58 - }, - "end": { - "line": 158, - "column": 59 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 7822, - "end": 7841, - "loc": { - "start": { - "line": 158, - "column": 62 - }, - "end": { - "line": 158, - "column": 81 - } - }, - "object": { - "type": "MemberExpression", - "start": 7822, - "end": 7835, - "loc": { - "start": { - "line": 158, - "column": 62 - }, - "end": { - "line": 158, - "column": 75 - } - }, - "object": { - "type": "Identifier", - "start": 7822, - "end": 7830, - "loc": { - "start": { - "line": 158, - "column": 62 - }, - "end": { - "line": 158, - "column": 70 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 7831, - "end": 7835, - "loc": { - "start": { - "line": 158, - "column": 71 - }, - "end": { - "line": 158, - "column": 75 - }, - "identifierName": "icon" - }, - "name": "icon" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 7836, - "end": 7841, - "loc": { - "start": { - "line": 158, - "column": 76 - }, - "end": { - "line": 158, - "column": 81 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " The start pos + total width", - "start": 7728, - "end": 7758, - "loc": { - "start": { - "line": 157, - "column": 20 - }, - "end": { - "line": 157, - "column": 50 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " The start pos - total width / 2", - "start": 7864, - "end": 7898, - "loc": { - "start": { - "line": 159, - "column": 20 - }, - "end": { - "line": 159, - "column": 54 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 7920, - "end": 7994, - "loc": { - "start": { - "line": 160, - "column": 20 - }, - "end": { - "line": 160, - "column": 94 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7926, - "end": 7993, - "loc": { - "start": { - "line": 160, - "column": 26 - }, - "end": { - "line": 160, - "column": 93 - } - }, - "id": { - "type": "Identifier", - "start": 7926, - "end": 7938, - "loc": { - "start": { - "line": 160, - "column": 26 - }, - "end": { - "line": 160, - "column": 38 - }, - "identifierName": "negativeEndX" - }, - "name": "negativeEndX", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 7941, - "end": 7993, - "loc": { - "start": { - "line": 160, - "column": 41 - }, - "end": { - "line": 160, - "column": 93 - } - }, - "left": { - "type": "MemberExpression", - "start": 7941, - "end": 7967, - "loc": { - "start": { - "line": 160, - "column": 41 - }, - "end": { - "line": 160, - "column": 67 - } - }, - "object": { - "type": "MemberExpression", - "start": 7941, - "end": 7965, - "loc": { - "start": { - "line": 160, - "column": 41 - }, - "end": { - "line": 160, - "column": 65 - } - }, - "object": { - "type": "Identifier", - "start": 7941, - "end": 7953, - "loc": { - "start": { - "line": 160, - "column": 41 - }, - "end": { - "line": 160, - "column": 53 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 7954, - "end": 7965, - "loc": { - "start": { - "line": 160, - "column": 54 - }, - "end": { - "line": 160, - "column": 65 - }, - "identifierName": "_initialPos" - }, - "name": "_initialPos" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 7966, - "end": 7967, - "loc": { - "start": { - "line": 160, - "column": 66 - }, - "end": { - "line": 160, - "column": 67 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "BinaryExpression", - "start": 7970, - "end": 7993, - "loc": { - "start": { - "line": 160, - "column": 70 - }, - "end": { - "line": 160, - "column": 93 - } - }, - "left": { - "type": "MemberExpression", - "start": 7970, - "end": 7989, - "loc": { - "start": { - "line": 160, - "column": 70 - }, - "end": { - "line": 160, - "column": 89 - } - }, - "object": { - "type": "MemberExpression", - "start": 7970, - "end": 7983, - "loc": { - "start": { - "line": 160, - "column": 70 - }, - "end": { - "line": 160, - "column": 83 - } - }, - "object": { - "type": "Identifier", - "start": 7970, - "end": 7978, - "loc": { - "start": { - "line": 160, - "column": 70 - }, - "end": { - "line": 160, - "column": 78 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 7979, - "end": 7983, - "loc": { - "start": { - "line": 160, - "column": 79 - }, - "end": { - "line": 160, - "column": 83 - }, - "identifierName": "icon" - }, - "name": "icon" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 7984, - "end": 7989, - "loc": { - "start": { - "line": 160, - "column": 84 - }, - "end": { - "line": 160, - "column": 89 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 7992, - "end": 7993, - "loc": { - "start": { - "line": 160, - "column": 92 - }, - "end": { - "line": 160, - "column": 93 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - } - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " The start pos - total width / 2", - "start": 7864, - "end": 7898, - "loc": { - "start": { - "line": 159, - "column": 20 - }, - "end": { - "line": 159, - "column": 54 - } - } - } - ] - }, - { - "type": "IfStatement", - "start": 8016, - "end": 8274, - "loc": { - "start": { - "line": 161, - "column": 20 - }, - "end": { - "line": 165, - "column": 21 - } - }, - "test": { - "type": "BinaryExpression", - "start": 8020, - "end": 8036, - "loc": { - "start": { - "line": 161, - "column": 24 - }, - "end": { - "line": 161, - "column": 40 - } - }, - "left": { - "type": "Identifier", - "start": 8020, - "end": 8029, - "loc": { - "start": { - "line": 161, - "column": 24 - }, - "end": { - "line": 161, - "column": 33 - }, - "identifierName": "relativeX" - }, - "name": "relativeX" - }, - "operator": ">", - "right": { - "type": "Identifier", - "start": 8032, - "end": 8036, - "loc": { - "start": { - "line": 161, - "column": 36 - }, - "end": { - "line": 161, - "column": 40 - }, - "identifierName": "endX" - }, - "name": "endX" - } - }, - "consequent": { - "type": "BlockStatement", - "start": 8038, - "end": 8138, - "loc": { - "start": { - "line": 161, - "column": 42 - }, - "end": { - "line": 163, - "column": 21 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 8065, - "end": 8115, - "loc": { - "start": { - "line": 162, - "column": 24 - }, - "end": { - "line": 162, - "column": 74 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 8065, - "end": 8114, - "loc": { - "start": { - "line": 162, - "column": 24 - }, - "end": { - "line": 162, - "column": 73 - } - }, - "operator": "+=", - "left": { - "type": "MemberExpression", - "start": 8065, - "end": 8091, - "loc": { - "start": { - "line": 162, - "column": 24 - }, - "end": { - "line": 162, - "column": 50 - } - }, - "object": { - "type": "MemberExpression", - "start": 8065, - "end": 8089, - "loc": { - "start": { - "line": 162, - "column": 24 - }, - "end": { - "line": 162, - "column": 48 - } - }, - "object": { - "type": "Identifier", - "start": 8065, - "end": 8077, - "loc": { - "start": { - "line": 162, - "column": 24 - }, - "end": { - "line": 162, - "column": 36 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 8078, - "end": 8089, - "loc": { - "start": { - "line": 162, - "column": 37 - }, - "end": { - "line": 162, - "column": 48 - }, - "identifierName": "_initialPos" - }, - "name": "_initialPos" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 8090, - "end": 8091, - "loc": { - "start": { - "line": 162, - "column": 49 - }, - "end": { - "line": 162, - "column": 50 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 8095, - "end": 8114, - "loc": { - "start": { - "line": 162, - "column": 54 - }, - "end": { - "line": 162, - "column": 73 - } - }, - "object": { - "type": "MemberExpression", - "start": 8095, - "end": 8108, - "loc": { - "start": { - "line": 162, - "column": 54 - }, - "end": { - "line": 162, - "column": 67 - } - }, - "object": { - "type": "Identifier", - "start": 8095, - "end": 8103, - "loc": { - "start": { - "line": 162, - "column": 54 - }, - "end": { - "line": 162, - "column": 62 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 8104, - "end": 8108, - "loc": { - "start": { - "line": 162, - "column": 63 - }, - "end": { - "line": 162, - "column": 67 - }, - "identifierName": "icon" - }, - "name": "icon" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 8109, - "end": 8114, - "loc": { - "start": { - "line": 162, - "column": 68 - }, - "end": { - "line": 162, - "column": 73 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - } - } - } - ], - "directives": [] - }, - "alternate": { - "type": "IfStatement", - "start": 8144, - "end": 8274, - "loc": { - "start": { - "line": 163, - "column": 27 - }, - "end": { - "line": 165, - "column": 21 - } - }, - "test": { - "type": "BinaryExpression", - "start": 8148, - "end": 8172, - "loc": { - "start": { - "line": 163, - "column": 31 - }, - "end": { - "line": 163, - "column": 55 - } - }, - "left": { - "type": "Identifier", - "start": 8148, - "end": 8157, - "loc": { - "start": { - "line": 163, - "column": 31 - }, - "end": { - "line": 163, - "column": 40 - }, - "identifierName": "relativeX" - }, - "name": "relativeX" - }, - "operator": "<", - "right": { - "type": "Identifier", - "start": 8160, - "end": 8172, - "loc": { - "start": { - "line": 163, - "column": 43 - }, - "end": { - "line": 163, - "column": 55 - }, - "identifierName": "negativeEndX" - }, - "name": "negativeEndX" - } - }, - "consequent": { - "type": "BlockStatement", - "start": 8174, - "end": 8274, - "loc": { - "start": { - "line": 163, - "column": 57 - }, - "end": { - "line": 165, - "column": 21 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 8201, - "end": 8251, - "loc": { - "start": { - "line": 164, - "column": 24 - }, - "end": { - "line": 164, - "column": 74 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 8201, - "end": 8250, - "loc": { - "start": { - "line": 164, - "column": 24 - }, - "end": { - "line": 164, - "column": 73 - } - }, - "operator": "-=", - "left": { - "type": "MemberExpression", - "start": 8201, - "end": 8227, - "loc": { - "start": { - "line": 164, - "column": 24 - }, - "end": { - "line": 164, - "column": 50 - } - }, - "object": { - "type": "MemberExpression", - "start": 8201, - "end": 8225, - "loc": { - "start": { - "line": 164, - "column": 24 - }, - "end": { - "line": 164, - "column": 48 - } - }, - "object": { - "type": "Identifier", - "start": 8201, - "end": 8213, - "loc": { - "start": { - "line": 164, - "column": 24 - }, - "end": { - "line": 164, - "column": 36 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 8214, - "end": 8225, - "loc": { - "start": { - "line": 164, - "column": 37 - }, - "end": { - "line": 164, - "column": 48 - }, - "identifierName": "_initialPos" - }, - "name": "_initialPos" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 8226, - "end": 8227, - "loc": { - "start": { - "line": 164, - "column": 49 - }, - "end": { - "line": 164, - "column": 50 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 8231, - "end": 8250, - "loc": { - "start": { - "line": 164, - "column": 54 - }, - "end": { - "line": 164, - "column": 73 - } - }, - "object": { - "type": "MemberExpression", - "start": 8231, - "end": 8244, - "loc": { - "start": { - "line": 164, - "column": 54 - }, - "end": { - "line": 164, - "column": 67 - } - }, - "object": { - "type": "Identifier", - "start": 8231, - "end": 8239, - "loc": { - "start": { - "line": 164, - "column": 54 - }, - "end": { - "line": 164, - "column": 62 - }, - "identifierName": "instance" - }, - "name": "instance" - }, - "property": { - "type": "Identifier", - "start": 8240, - "end": 8244, - "loc": { - "start": { - "line": 164, - "column": 63 - }, - "end": { - "line": 164, - "column": 67 - }, - "identifierName": "icon" - }, - "name": "icon" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 8245, - "end": 8250, - "loc": { - "start": { - "line": 164, - "column": 68 - }, - "end": { - "line": 164, - "column": 73 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - } - } - } - ], - "directives": [] - }, - "alternate": null - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n * Updates the parallax system\r\n * @param {number} pCameraX - The x position of the camera.\r\n * @param {number} pCameraY - The y position of the camera.\r\n ", - "start": 6345, - "end": 6523, - "loc": { - "start": { - "line": 126, - "column": 4 - }, - "end": { - "line": 130, - "column": 7 - } - } - } - ] - } - ] - }, - "__PseudoExport__": true, - "leadingComments": [], - "trailingComments": [] - }, - "specifiers": null, - "source": null, - "leadingComments": null - } - ], - "directives": [] - }, - "comments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * The version of the module.\r\n\t ", - "start": 81, - "end": 122, - "loc": { - "start": { - "line": 4, - "column": 1 - }, - "end": { - "line": 6, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "* The logger module this module uses to log errors / logs\r\n * @private\r\n * @type {Object}\r\n ", - "start": 162, - "end": 270, - "loc": { - "start": { - "line": 8, - "column": 4 - }, - "end": { - "line": 11, - "column": 7 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n * An array of instances that use the parallax system.\r\n * @type {Array}\r\n ", - "start": 391, - "end": 485, - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 19, - "column": 7 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n * Weakmap to store info on instances used in this module.\r\n * @type {WeakMap}\r\n ", - "start": 512, - "end": 612, - "loc": { - "start": { - "line": 21, - "column": 4 - }, - "end": { - "line": 24, - "column": 7 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n * Adds an instance to the parallax system.\r\n * Call this first and then add your instance to the map.\r\n * @param {Object} pInstance - The instance to add to the parallax system.\r\n * @param {Object} pParallaxInfo - The parallax info that tells this module how to control this instance.\r\n * @property {number} pParallaxInfo.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {number} pParallaxInfo.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {boolean} pParallaxInfo.loop - Whether this instance will loop endlessly.\r\n * @param {number} [pX] - The x position this instance will start at.\r\n * @param {number} [pY] - The y position this instance will start at.\r\n * @param {string} [pMap] - The map this instance will start at.\r\n ", - "start": 656, - "end": 1631, - "loc": { - "start": { - "line": 26, - "column": 4 - }, - "end": { - "line": 37, - "column": 7 - } - } - }, - { - "type": "CommentLine", - "value": " Clone the parallax object", - "start": 2079, - "end": 2107, - "loc": { - "start": { - "line": 45, - "column": 20 - }, - "end": { - "line": 45, - "column": 48 - } - } - }, - { - "type": "CommentLine", - "value": " Set the parallax info to the instance", - "start": 2261, - "end": 2301, - "loc": { - "start": { - "line": 48, - "column": 20 - }, - "end": { - "line": 48, - "column": 60 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n * Initializes this instance.\r\n * @param {Object} pInstance - The instance to initialize.\r\n * @param {Object} pParallaxInfo - The parallax info that tells this module how to control this instance.\r\n * @property {number} pParallaxInfo.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {number} pParallaxInfo.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {boolean} pParallaxInfo.loop - Whether this instance will loop endlessly.\r\n * @param {number} pX - The x position this parallax will start at.\r\n * @param {number} pY - The y position this parallax will start at.\r\n * @param {string} pMap - The map this instance will start at.\r\n * @private\r\n ", - "start": 2718, - "end": 3611, - "loc": { - "start": { - "line": 59, - "column": 4 - }, - "end": { - "line": 70, - "column": 7 - } - } - }, - { - "type": "CommentLine", - "value": " Set the initial position.", - "start": 3698, - "end": 3726, - "loc": { - "start": { - "line": 73, - "column": 12 - }, - "end": { - "line": 73, - "column": 40 - } - } - }, - { - "type": "CommentLine", - "value": " If this instance is set to loop, then it needs a left and right clone", - "start": 3799, - "end": 3871, - "loc": { - "start": { - "line": 75, - "column": 12 - }, - "end": { - "line": 75, - "column": 84 - } - } - }, - { - "type": "CommentLine", - "value": " Create a left and right clone", - "start": 3928, - "end": 3960, - "loc": { - "start": { - "line": 77, - "column": 16 - }, - "end": { - "line": 77, - "column": 48 - } - } - }, - { - "type": "CommentLine", - "value": " Make the left and right clone particle look the same as the initial instance", - "start": 4091, - "end": 4170, - "loc": { - "start": { - "line": 80, - "column": 16 - }, - "end": { - "line": 80, - "column": 95 - } - } - }, - { - "type": "CommentLine", - "value": " Position the left clone", - "start": 4285, - "end": 4311, - "loc": { - "start": { - "line": 83, - "column": 16 - }, - "end": { - "line": 83, - "column": 42 - } - } - }, - { - "type": "CommentLine", - "value": " Position the right clone", - "start": 4462, - "end": 4489, - "loc": { - "start": { - "line": 86, - "column": 16 - }, - "end": { - "line": 86, - "column": 43 - } - } - }, - { - "type": "CommentLine", - "value": " Store the clones in a temporary array", - "start": 4642, - "end": 4682, - "loc": { - "start": { - "line": 89, - "column": 16 - }, - "end": { - "line": 89, - "column": 56 - } - } - }, - { - "type": "CommentLine", - "value": " Loop the clones and store their relative positions to the main instance", - "start": 4749, - "end": 4823, - "loc": { - "start": { - "line": 91, - "column": 16 - }, - "end": { - "line": 91, - "column": 90 - } - } - }, - { - "type": "CommentLine", - "value": " When the main instance moves, move the clones with their relative position to it.", - "start": 5070, - "end": 5154, - "loc": { - "start": { - "line": 96, - "column": 16 - }, - "end": { - "line": 96, - "column": 100 - } - } - }, - { - "type": "CommentLine", - "value": " Update the children's position when the parent moves", - "start": 5236, - "end": 5291, - "loc": { - "start": { - "line": 98, - "column": 20 - }, - "end": { - "line": 98, - "column": 75 - } - } - }, - { - "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": 5875, - "end": 6022, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 116, - "column": 7 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n * Updates the parallax system\r\n * @param {number} pCameraX - The x position of the camera.\r\n * @param {number} pCameraY - The y position of the camera.\r\n ", - "start": 6345, - "end": 6523, - "loc": { - "start": { - "line": 126, - "column": 4 - }, - "end": { - "line": 130, - "column": 7 - } - } - }, - { - "type": "CommentLine", - "value": " How far we moved from the start point", - "start": 6699, - "end": 6739, - "loc": { - "start": { - "line": 134, - "column": 12 - }, - "end": { - "line": 134, - "column": 52 - } - } - }, - { - "type": "CommentLine", - "value": " Position to set the instance to", - "start": 6861, - "end": 6895, - "loc": { - "start": { - "line": 137, - "column": 12 - }, - "end": { - "line": 137, - "column": 46 - } - } - }, - { - "type": "CommentLine", - "value": " Move the instance with the camera if the parallax is set to 1", - "start": 7023, - "end": 7087, - "loc": { - "start": { - "line": 140, - "column": 12 - }, - "end": { - "line": 140, - "column": 76 - } - } - }, - { - "type": "CommentLine", - "value": " Move the instance with the camera if the parallax is set to 1", - "start": 7214, - "end": 7278, - "loc": { - "start": { - "line": 144, - "column": 12 - }, - "end": { - "line": 144, - "column": 76 - } - } - }, - { - "type": "CommentLine", - "value": " Set the position", - "start": 7408, - "end": 7427, - "loc": { - "start": { - "line": 149, - "column": 12 - }, - "end": { - "line": 149, - "column": 31 - } - } - }, - { - "type": "CommentLine", - "value": " How far we moved relative to the camera", - "start": 7592, - "end": 7634, - "loc": { - "start": { - "line": 155, - "column": 20 - }, - "end": { - "line": 155, - "column": 62 - } - } - }, - { - "type": "CommentLine", - "value": " The start pos + total width", - "start": 7728, - "end": 7758, - "loc": { - "start": { - "line": 157, - "column": 20 - }, - "end": { - "line": 157, - "column": 50 - } - } - }, - { - "type": "CommentLine", - "value": " The start pos - total width / 2", - "start": 7864, - "end": 7898, - "loc": { - "start": { - "line": 159, - "column": 20 - }, - "end": { - "line": 159, - "column": 54 - } - } - } - ], - "tokens": [ - { - "type": { - "label": "import", - "keyword": "import", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "import", - "start": 0, - "end": 6, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7, - "end": 8, - "loc": { - "start": { - "line": 1, - "column": 7 - }, - "end": { - "line": 1, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Logger", - "start": 9, - "end": 15, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16, - "end": 17, - "loc": { - "start": { - "line": 1, - "column": 16 - }, - "end": { - "line": 1, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "from", - "start": 18, - "end": 22, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 22 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "./vendor/logger.min.mjs", - "start": 23, - "end": 48, - "loc": { - "start": { - "line": 1, - "column": 23 - }, - "end": { - "line": 1, - "column": 48 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 48, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 48 - }, - "end": { - "line": 1, - "column": 49 - } - } - }, - { - "type": { - "label": "class", - "keyword": "class", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "class", - "start": 53, - "end": 58, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 3, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "ParallaxSingleton", - "start": 59, - "end": 76, - "loc": { - "start": { - "line": 3, - "column": 6 - }, - "end": { - "line": 3, - "column": 23 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 77, - "end": 78, - "loc": { - "start": { - "line": 3, - "column": 24 - }, - "end": { - "line": 3, - "column": 25 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * The version of the module.\r\n\t ", - "start": 81, - "end": 122, - "loc": { - "start": { - "line": 4, - "column": 1 - }, - "end": { - "line": 6, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "version", - "start": 125, - "end": 132, - "loc": { - "start": { - "line": 7, - "column": 1 - }, - "end": { - "line": 7, - "column": 8 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 133, - "end": 134, - "loc": { - "start": { - "line": 7, - "column": 9 - }, - "end": { - "line": 7, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "VERSION_REPLACE_ME", - "start": 135, - "end": 155, - "loc": { - "start": { - "line": 7, - "column": 11 - }, - "end": { - "line": 7, - "column": 31 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 155, - "end": 156, - "loc": { - "start": { - "line": 7, - "column": 31 - }, - "end": { - "line": 7, - "column": 32 - } - } - }, - { - "type": "CommentBlock", - "value": "* The logger module this module uses to log errors / logs\r\n * @private\r\n * @type {Object}\r\n ", - "start": 162, - "end": 270, - "loc": { - "start": { - "line": 8, - "column": 4 - }, - "end": { - "line": 11, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "logger", - "start": 276, - "end": 282, - "loc": { - "start": { - "line": 12, - "column": 4 - }, - "end": { - "line": 12, - "column": 10 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 283, - "end": 284, - "loc": { - "start": { - "line": 12, - "column": 11 - }, - "end": { - "line": 12, - "column": 12 - } - } - }, - { - "type": { - "label": "new", - "keyword": "new", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "new", - "start": 285, - "end": 288, - "loc": { - "start": { - "line": 12, - "column": 13 - }, - "end": { - "line": 12, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Logger", - "start": 289, - "end": 295, - "loc": { - "start": { - "line": 12, - "column": 17 - }, - "end": { - "line": 12, - "column": 23 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 295, - "end": 296, - "loc": { - "start": { - "line": 12, - "column": 23 - }, - "end": { - "line": 12, - "column": 24 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 296, - "end": 297, - "loc": { - "start": { - "line": 12, - "column": 24 - }, - "end": { - "line": 12, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 297, - "end": 298, - "loc": { - "start": { - "line": 12, - "column": 25 - }, - "end": { - "line": 12, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "constructor", - "start": 301, - "end": 312, - "loc": { - "start": { - "line": 13, - "column": 1 - }, - "end": { - "line": 13, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 312, - "end": 313, - "loc": { - "start": { - "line": 13, - "column": 12 - }, - "end": { - "line": 13, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 313, - "end": 314, - "loc": { - "start": { - "line": 13, - "column": 13 - }, - "end": { - "line": 13, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 315, - "end": 316, - "loc": { - "start": { - "line": 13, - "column": 15 - }, - "end": { - "line": 13, - "column": 16 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 326, - "end": 330, - "loc": { - "start": { - "line": 14, - "column": 8 - }, - "end": { - "line": 14, - "column": 12 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 330, - "end": 331, - "loc": { - "start": { - "line": 14, - "column": 12 - }, - "end": { - "line": 14, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "logger", - "start": 331, - "end": 337, - "loc": { - "start": { - "line": 14, - "column": 13 - }, - "end": { - "line": 14, - "column": 19 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 337, - "end": 338, - "loc": { - "start": { - "line": 14, - "column": 19 - }, - "end": { - "line": 14, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "registerType", - "start": 338, - "end": 350, - "loc": { - "start": { - "line": 14, - "column": 20 - }, - "end": { - "line": 14, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 350, - "end": 351, - "loc": { - "start": { - "line": 14, - "column": 32 - }, - "end": { - "line": 14, - "column": 33 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Parallax-Module", - "start": 351, - "end": 368, - "loc": { - "start": { - "line": 14, - "column": 33 - }, - "end": { - "line": 14, - "column": 50 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 368, - "end": 369, - "loc": { - "start": { - "line": 14, - "column": 50 - }, - "end": { - "line": 14, - "column": 51 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "#ff6600", - "start": 370, - "end": 379, - "loc": { - "start": { - "line": 14, - "column": 52 - }, - "end": { - "line": 14, - "column": 61 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 379, - "end": 380, - "loc": { - "start": { - "line": 14, - "column": 61 - }, - "end": { - "line": 14, - "column": 62 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 380, - "end": 381, - "loc": { - "start": { - "line": 14, - "column": 62 - }, - "end": { - "line": 14, - "column": 63 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 384, - "end": 385, - "loc": { - "start": { - "line": 15, - "column": 1 - }, - "end": { - "line": 15, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n * An array of instances that use the parallax system.\r\n * @type {Array}\r\n ", - "start": 391, - "end": 485, - "loc": { - "start": { - "line": 16, - "column": 4 - }, - "end": { - "line": 19, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "instances", - "start": 491, - "end": 500, - "loc": { - "start": { - "line": 20, - "column": 4 - }, - "end": { - "line": 20, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 501, - "end": 502, - "loc": { - "start": { - "line": 20, - "column": 14 - }, - "end": { - "line": 20, - "column": 15 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 503, - "end": 504, - "loc": { - "start": { - "line": 20, - "column": 16 - }, - "end": { - "line": 20, - "column": 17 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 504, - "end": 505, - "loc": { - "start": { - "line": 20, - "column": 17 - }, - "end": { - "line": 20, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 505, - "end": 506, - "loc": { - "start": { - "line": 20, - "column": 18 - }, - "end": { - "line": 20, - "column": 19 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n * Weakmap to store info on instances used in this module.\r\n * @type {WeakMap}\r\n ", - "start": 512, - "end": 612, - "loc": { - "start": { - "line": 21, - "column": 4 - }, - "end": { - "line": 24, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "instanceWeakMap", - "start": 618, - "end": 633, - "loc": { - "start": { - "line": 25, - "column": 4 - }, - "end": { - "line": 25, - "column": 19 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 634, - "end": 635, - "loc": { - "start": { - "line": 25, - "column": 20 - }, - "end": { - "line": 25, - "column": 21 - } - } - }, - { - "type": { - "label": "new", - "keyword": "new", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "new", - "start": 636, - "end": 639, - "loc": { - "start": { - "line": 25, - "column": 22 - }, - "end": { - "line": 25, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "WeakMap", - "start": 640, - "end": 647, - "loc": { - "start": { - "line": 25, - "column": 26 - }, - "end": { - "line": 25, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 647, - "end": 648, - "loc": { - "start": { - "line": 25, - "column": 33 - }, - "end": { - "line": 25, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 648, - "end": 649, - "loc": { - "start": { - "line": 25, - "column": 34 - }, - "end": { - "line": 25, - "column": 35 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 649, - "end": 650, - "loc": { - "start": { - "line": 25, - "column": 35 - }, - "end": { - "line": 25, - "column": 36 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n * Adds an instance to the parallax system.\r\n * Call this first and then add your instance to the map.\r\n * @param {Object} pInstance - The instance to add to the parallax system.\r\n * @param {Object} pParallaxInfo - The parallax info that tells this module how to control this instance.\r\n * @property {number} pParallaxInfo.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {number} pParallaxInfo.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {boolean} pParallaxInfo.loop - Whether this instance will loop endlessly.\r\n * @param {number} [pX] - The x position this instance will start at.\r\n * @param {number} [pY] - The y position this instance will start at.\r\n * @param {string} [pMap] - The map this instance will start at.\r\n ", - "start": 656, - "end": 1631, - "loc": { - "start": { - "line": 26, - "column": 4 - }, - "end": { - "line": 37, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "add", - "start": 1637, - "end": 1640, - "loc": { - "start": { - "line": 38, - "column": 4 - }, - "end": { - "line": 38, - "column": 7 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1640, - "end": 1641, - "loc": { - "start": { - "line": 38, - "column": 7 - }, - "end": { - "line": 38, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 1641, - "end": 1650, - "loc": { - "start": { - "line": 38, - "column": 8 - }, - "end": { - "line": 38, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1650, - "end": 1651, - "loc": { - "start": { - "line": 38, - "column": 17 - }, - "end": { - "line": 38, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pParallaxInfo", - "start": 1652, - "end": 1665, - "loc": { - "start": { - "line": 38, - "column": 19 - }, - "end": { - "line": 38, - "column": 32 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1665, - "end": 1666, - "loc": { - "start": { - "line": 38, - "column": 32 - }, - "end": { - "line": 38, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pX", - "start": 1667, - "end": 1669, - "loc": { - "start": { - "line": 38, - "column": 34 - }, - "end": { - "line": 38, - "column": 36 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1669, - "end": 1670, - "loc": { - "start": { - "line": 38, - "column": 36 - }, - "end": { - "line": 38, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pY", - "start": 1671, - "end": 1673, - "loc": { - "start": { - "line": 38, - "column": 38 - }, - "end": { - "line": 38, - "column": 40 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1673, - "end": 1674, - "loc": { - "start": { - "line": 38, - "column": 40 - }, - "end": { - "line": 38, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMap", - "start": 1675, - "end": 1679, - "loc": { - "start": { - "line": 38, - "column": 42 - }, - "end": { - "line": 38, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1679, - "end": 1680, - "loc": { - "start": { - "line": 38, - "column": 46 - }, - "end": { - "line": 38, - "column": 47 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1681, - "end": 1682, - "loc": { - "start": { - "line": 38, - "column": 48 - }, - "end": { - "line": 38, - "column": 49 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 1692, - "end": 1694, - "loc": { - "start": { - "line": 39, - "column": 8 - }, - "end": { - "line": 39, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1695, - "end": 1696, - "loc": { - "start": { - "line": 39, - "column": 11 - }, - "end": { - "line": 39, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 1696, - "end": 1705, - "loc": { - "start": { - "line": 39, - "column": 12 - }, - "end": { - "line": 39, - "column": 21 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1705, - "end": 1706, - "loc": { - "start": { - "line": 39, - "column": 21 - }, - "end": { - "line": 39, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1707, - "end": 1708, - "loc": { - "start": { - "line": 39, - "column": 23 - }, - "end": { - "line": 39, - "column": 24 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 1722, - "end": 1724, - "loc": { - "start": { - "line": 40, - "column": 12 - }, - "end": { - "line": 40, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1725, - "end": 1726, - "loc": { - "start": { - "line": 40, - "column": 15 - }, - "end": { - "line": 40, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pParallaxInfo", - "start": 1726, - "end": 1739, - "loc": { - "start": { - "line": 40, - "column": 16 - }, - "end": { - "line": 40, - "column": 29 - } - } - }, - { - "type": { - "label": "instanceof", - "keyword": "instanceof", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": "instanceof", - "start": 1740, - "end": 1750, - "loc": { - "start": { - "line": 40, - "column": 30 - }, - "end": { - "line": 40, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Object", - "start": 1751, - "end": 1757, - "loc": { - "start": { - "line": 40, - "column": 41 - }, - "end": { - "line": 40, - "column": 47 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1757, - "end": 1758, - "loc": { - "start": { - "line": 40, - "column": 47 - }, - "end": { - "line": 40, - "column": 48 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1759, - "end": 1760, - "loc": { - "start": { - "line": 40, - "column": 49 - }, - "end": { - "line": 40, - "column": 50 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 1778, - "end": 1780, - "loc": { - "start": { - "line": 41, - "column": 16 - }, - "end": { - "line": 41, - "column": 18 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1781, - "end": 1782, - "loc": { - "start": { - "line": 41, - "column": 19 - }, - "end": { - "line": 41, - "column": 20 - } - } - }, - { - "type": { - "label": "prefix", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "!", - "start": 1782, - "end": 1783, - "loc": { - "start": { - "line": 41, - "column": 20 - }, - "end": { - "line": 41, - "column": 21 - } - } - }, - { - "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": 1783, - "end": 1787, - "loc": { - "start": { - "line": 41, - "column": 21 - }, - "end": { - "line": 41, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1787, - "end": 1788, - "loc": { - "start": { - "line": 41, - "column": 25 - }, - "end": { - "line": 41, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "instances", - "start": 1788, - "end": 1797, - "loc": { - "start": { - "line": 41, - "column": 26 - }, - "end": { - "line": 41, - "column": 35 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1797, - "end": 1798, - "loc": { - "start": { - "line": 41, - "column": 35 - }, - "end": { - "line": 41, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "includes", - "start": 1798, - "end": 1806, - "loc": { - "start": { - "line": 41, - "column": 36 - }, - "end": { - "line": 41, - "column": 44 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1806, - "end": 1807, - "loc": { - "start": { - "line": 41, - "column": 44 - }, - "end": { - "line": 41, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 1807, - "end": 1816, - "loc": { - "start": { - "line": 41, - "column": 45 - }, - "end": { - "line": 41, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1816, - "end": 1817, - "loc": { - "start": { - "line": 41, - "column": 54 - }, - "end": { - "line": 41, - "column": 55 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1817, - "end": 1818, - "loc": { - "start": { - "line": 41, - "column": 55 - }, - "end": { - "line": 41, - "column": 56 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1819, - "end": 1820, - "loc": { - "start": { - "line": 41, - "column": 57 - }, - "end": { - "line": 41, - "column": 58 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1842, - "end": 1847, - "loc": { - "start": { - "line": 42, - "column": 20 - }, - "end": { - "line": 42, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 1848, - "end": 1849, - "loc": { - "start": { - "line": 42, - "column": 26 - }, - "end": { - "line": 42, - "column": 27 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1850, - "end": 1851, - "loc": { - "start": { - "line": 42, - "column": 28 - }, - "end": { - "line": 42, - "column": 29 - } - } - }, - { - "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": 1852, - "end": 1858, - "loc": { - "start": { - "line": 42, - "column": 30 - }, - "end": { - "line": 42, - "column": 36 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1858, - "end": 1859, - "loc": { - "start": { - "line": 42, - "column": 36 - }, - "end": { - "line": 42, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pX", - "start": 1859, - "end": 1861, - "loc": { - "start": { - "line": 42, - "column": 37 - }, - "end": { - "line": 42, - "column": 39 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1861, - "end": 1862, - "loc": { - "start": { - "line": 42, - "column": 39 - }, - "end": { - "line": 42, - "column": 40 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 1863, - "end": 1866, - "loc": { - "start": { - "line": 42, - "column": 41 - }, - "end": { - "line": 42, - "column": 44 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "number", - "start": 1867, - "end": 1875, - "loc": { - "start": { - "line": 42, - "column": 45 - }, - "end": { - "line": 42, - "column": 53 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1876, - "end": 1877, - "loc": { - "start": { - "line": 42, - "column": 54 - }, - "end": { - "line": 42, - "column": 55 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pX", - "start": 1878, - "end": 1880, - "loc": { - "start": { - "line": 42, - "column": 56 - }, - "end": { - "line": 42, - "column": 58 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1881, - "end": 1882, - "loc": { - "start": { - "line": 42, - "column": 59 - }, - "end": { - "line": 42, - "column": 60 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 1883, - "end": 1892, - "loc": { - "start": { - "line": 42, - "column": 61 - }, - "end": { - "line": 42, - "column": 70 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1892, - "end": 1893, - "loc": { - "start": { - "line": 42, - "column": 70 - }, - "end": { - "line": 42, - "column": 71 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 1893, - "end": 1894, - "loc": { - "start": { - "line": 42, - "column": 71 - }, - "end": { - "line": 42, - "column": 72 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1894, - "end": 1895, - "loc": { - "start": { - "line": 42, - "column": 72 - }, - "end": { - "line": 42, - "column": 73 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1917, - "end": 1922, - "loc": { - "start": { - "line": 43, - "column": 20 - }, - "end": { - "line": 43, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 1923, - "end": 1924, - "loc": { - "start": { - "line": 43, - "column": 26 - }, - "end": { - "line": 43, - "column": 27 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1925, - "end": 1926, - "loc": { - "start": { - "line": 43, - "column": 28 - }, - "end": { - "line": 43, - "column": 29 - } - } - }, - { - "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": 1927, - "end": 1933, - "loc": { - "start": { - "line": 43, - "column": 30 - }, - "end": { - "line": 43, - "column": 36 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1933, - "end": 1934, - "loc": { - "start": { - "line": 43, - "column": 36 - }, - "end": { - "line": 43, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pY", - "start": 1934, - "end": 1936, - "loc": { - "start": { - "line": 43, - "column": 37 - }, - "end": { - "line": 43, - "column": 39 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1936, - "end": 1937, - "loc": { - "start": { - "line": 43, - "column": 39 - }, - "end": { - "line": 43, - "column": 40 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 1938, - "end": 1941, - "loc": { - "start": { - "line": 43, - "column": 41 - }, - "end": { - "line": 43, - "column": 44 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "number", - "start": 1942, - "end": 1950, - "loc": { - "start": { - "line": 43, - "column": 45 - }, - "end": { - "line": 43, - "column": 53 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1951, - "end": 1952, - "loc": { - "start": { - "line": 43, - "column": 54 - }, - "end": { - "line": 43, - "column": 55 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pY", - "start": 1953, - "end": 1955, - "loc": { - "start": { - "line": 43, - "column": 56 - }, - "end": { - "line": 43, - "column": 58 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1956, - "end": 1957, - "loc": { - "start": { - "line": 43, - "column": 59 - }, - "end": { - "line": 43, - "column": 60 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 1958, - "end": 1967, - "loc": { - "start": { - "line": 43, - "column": 61 - }, - "end": { - "line": 43, - "column": 70 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1967, - "end": 1968, - "loc": { - "start": { - "line": 43, - "column": 70 - }, - "end": { - "line": 43, - "column": 71 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 1968, - "end": 1969, - "loc": { - "start": { - "line": 43, - "column": 71 - }, - "end": { - "line": 43, - "column": 72 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1969, - "end": 1970, - "loc": { - "start": { - "line": 43, - "column": 72 - }, - "end": { - "line": 43, - "column": 73 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 1992, - "end": 1997, - "loc": { - "start": { - "line": 44, - "column": 20 - }, - "end": { - "line": 44, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "map", - "start": 1998, - "end": 2001, - "loc": { - "start": { - "line": 44, - "column": 26 - }, - "end": { - "line": 44, - "column": 29 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 2002, - "end": 2003, - "loc": { - "start": { - "line": 44, - "column": 30 - }, - "end": { - "line": 44, - "column": 31 - } - } - }, - { - "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": 2004, - "end": 2010, - "loc": { - "start": { - "line": 44, - "column": 32 - }, - "end": { - "line": 44, - "column": 38 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2010, - "end": 2011, - "loc": { - "start": { - "line": 44, - "column": 38 - }, - "end": { - "line": 44, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMap", - "start": 2011, - "end": 2015, - "loc": { - "start": { - "line": 44, - "column": 39 - }, - "end": { - "line": 44, - "column": 43 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2015, - "end": 2016, - "loc": { - "start": { - "line": 44, - "column": 43 - }, - "end": { - "line": 44, - "column": 44 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 2017, - "end": 2020, - "loc": { - "start": { - "line": 44, - "column": 45 - }, - "end": { - "line": 44, - "column": 48 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "string", - "start": 2021, - "end": 2029, - "loc": { - "start": { - "line": 44, - "column": 49 - }, - "end": { - "line": 44, - "column": 57 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2030, - "end": 2031, - "loc": { - "start": { - "line": 44, - "column": 58 - }, - "end": { - "line": 44, - "column": 59 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMap", - "start": 2032, - "end": 2036, - "loc": { - "start": { - "line": 44, - "column": 60 - }, - "end": { - "line": 44, - "column": 64 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2037, - "end": 2038, - "loc": { - "start": { - "line": 44, - "column": 65 - }, - "end": { - "line": 44, - "column": 66 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 2039, - "end": 2048, - "loc": { - "start": { - "line": 44, - "column": 67 - }, - "end": { - "line": 44, - "column": 76 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2048, - "end": 2049, - "loc": { - "start": { - "line": 44, - "column": 76 - }, - "end": { - "line": 44, - "column": 77 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "mapName", - "start": 2049, - "end": 2056, - "loc": { - "start": { - "line": 44, - "column": 77 - }, - "end": { - "line": 44, - "column": 84 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2056, - "end": 2057, - "loc": { - "start": { - "line": 44, - "column": 84 - }, - "end": { - "line": 44, - "column": 85 - } - } - }, - { - "type": "CommentLine", - "value": " Clone the parallax object", - "start": 2079, - "end": 2107, - "loc": { - "start": { - "line": 45, - "column": 20 - }, - "end": { - "line": 45, - "column": 48 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 2129, - "end": 2134, - "loc": { - "start": { - "line": 46, - "column": 20 - }, - "end": { - "line": 46, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parallaxInfo", - "start": 2135, - "end": 2147, - "loc": { - "start": { - "line": 46, - "column": 26 - }, - "end": { - "line": 46, - "column": 38 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 2148, - "end": 2149, - "loc": { - "start": { - "line": 46, - "column": 39 - }, - "end": { - "line": 46, - "column": 40 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2150, - "end": 2151, - "loc": { - "start": { - "line": 46, - "column": 41 - }, - "end": { - "line": 46, - "column": 42 - } - } - }, - { - "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2152, - "end": 2155, - "loc": { - "start": { - "line": 46, - "column": 43 - }, - "end": { - "line": 46, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pParallaxInfo", - "start": 2155, - "end": 2168, - "loc": { - "start": { - "line": 46, - "column": 46 - }, - "end": { - "line": 46, - "column": 59 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2169, - "end": 2170, - "loc": { - "start": { - "line": 46, - "column": 60 - }, - "end": { - "line": 46, - "column": 61 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2170, - "end": 2171, - "loc": { - "start": { - "line": 46, - "column": 61 - }, - "end": { - "line": 46, - "column": 62 - } - } - }, - { - "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": 2193, - "end": 2197, - "loc": { - "start": { - "line": 47, - "column": 20 - }, - "end": { - "line": 47, - "column": 24 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2197, - "end": 2198, - "loc": { - "start": { - "line": 47, - "column": 24 - }, - "end": { - "line": 47, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "init", - "start": 2198, - "end": 2202, - "loc": { - "start": { - "line": 47, - "column": 25 - }, - "end": { - "line": 47, - "column": 29 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2202, - "end": 2203, - "loc": { - "start": { - "line": 47, - "column": 29 - }, - "end": { - "line": 47, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 2203, - "end": 2212, - "loc": { - "start": { - "line": 47, - "column": 30 - }, - "end": { - "line": 47, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2212, - "end": 2213, - "loc": { - "start": { - "line": 47, - "column": 39 - }, - "end": { - "line": 47, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parallaxInfo", - "start": 2214, - "end": 2226, - "loc": { - "start": { - "line": 47, - "column": 41 - }, - "end": { - "line": 47, - "column": 53 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2226, - "end": 2227, - "loc": { - "start": { - "line": 47, - "column": 53 - }, - "end": { - "line": 47, - "column": 54 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 2228, - "end": 2229, - "loc": { - "start": { - "line": 47, - "column": 55 - }, - "end": { - "line": 47, - "column": 56 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2229, - "end": 2230, - "loc": { - "start": { - "line": 47, - "column": 56 - }, - "end": { - "line": 47, - "column": 57 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 2231, - "end": 2232, - "loc": { - "start": { - "line": 47, - "column": 58 - }, - "end": { - "line": 47, - "column": 59 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2232, - "end": 2233, - "loc": { - "start": { - "line": 47, - "column": 59 - }, - "end": { - "line": 47, - "column": 60 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "map", - "start": 2234, - "end": 2237, - "loc": { - "start": { - "line": 47, - "column": 61 - }, - "end": { - "line": 47, - "column": 64 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2237, - "end": 2238, - "loc": { - "start": { - "line": 47, - "column": 64 - }, - "end": { - "line": 47, - "column": 65 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2238, - "end": 2239, - "loc": { - "start": { - "line": 47, - "column": 65 - }, - "end": { - "line": 47, - "column": 66 - } - } - }, - { - "type": "CommentLine", - "value": " Set the parallax info to the instance", - "start": 2261, - "end": 2301, - "loc": { - "start": { - "line": 48, - "column": 20 - }, - "end": { - "line": 48, - "column": 60 - } - } - }, - { - "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": 2323, - "end": 2327, - "loc": { - "start": { - "line": 49, - "column": 20 - }, - "end": { - "line": 49, - "column": 24 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2327, - "end": 2328, - "loc": { - "start": { - "line": 49, - "column": 24 - }, - "end": { - "line": 49, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "instanceWeakMap", - "start": 2328, - "end": 2343, - "loc": { - "start": { - "line": 49, - "column": 25 - }, - "end": { - "line": 49, - "column": 40 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2343, - "end": 2344, - "loc": { - "start": { - "line": 49, - "column": 40 - }, - "end": { - "line": 49, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "set", - "start": 2344, - "end": 2347, - "loc": { - "start": { - "line": 49, - "column": 41 - }, - "end": { - "line": 49, - "column": 44 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2347, - "end": 2348, - "loc": { - "start": { - "line": 49, - "column": 44 - }, - "end": { - "line": 49, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 2348, - "end": 2357, - "loc": { - "start": { - "line": 49, - "column": 45 - }, - "end": { - "line": 49, - "column": 54 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2357, - "end": 2358, - "loc": { - "start": { - "line": 49, - "column": 54 - }, - "end": { - "line": 49, - "column": 55 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parallaxInfo", - "start": 2359, - "end": 2371, - "loc": { - "start": { - "line": 49, - "column": 56 - }, - "end": { - "line": 49, - "column": 68 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2371, - "end": 2372, - "loc": { - "start": { - "line": 49, - "column": 68 - }, - "end": { - "line": 49, - "column": 69 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2372, - "end": 2373, - "loc": { - "start": { - "line": 49, - "column": 69 - }, - "end": { - "line": 49, - "column": 70 - } - } - }, - { - "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": 2395, - "end": 2399, - "loc": { - "start": { - "line": 50, - "column": 20 - }, - "end": { - "line": 50, - "column": 24 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2399, - "end": 2400, - "loc": { - "start": { - "line": 50, - "column": 24 - }, - "end": { - "line": 50, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "instances", - "start": 2400, - "end": 2409, - "loc": { - "start": { - "line": 50, - "column": 25 - }, - "end": { - "line": 50, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2409, - "end": 2410, - "loc": { - "start": { - "line": 50, - "column": 34 - }, - "end": { - "line": 50, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "push", - "start": 2410, - "end": 2414, - "loc": { - "start": { - "line": 50, - "column": 35 - }, - "end": { - "line": 50, - "column": 39 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2414, - "end": 2415, - "loc": { - "start": { - "line": 50, - "column": 39 - }, - "end": { - "line": 50, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 2415, - "end": 2424, - "loc": { - "start": { - "line": 50, - "column": 40 - }, - "end": { - "line": 50, - "column": 49 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2424, - "end": 2425, - "loc": { - "start": { - "line": 50, - "column": 49 - }, - "end": { - "line": 50, - "column": 50 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2425, - "end": 2426, - "loc": { - "start": { - "line": 50, - "column": 50 - }, - "end": { - "line": 50, - "column": 51 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2444, - "end": 2445, - "loc": { - "start": { - "line": 51, - "column": 16 - }, - "end": { - "line": 51, - "column": 17 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2459, - "end": 2460, - "loc": { - "start": { - "line": 52, - "column": 12 - }, - "end": { - "line": 52, - "column": 13 - } - } - }, - { - "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": 2461, - "end": 2465, - "loc": { - "start": { - "line": 52, - "column": 14 - }, - "end": { - "line": 52, - "column": 18 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2466, - "end": 2467, - "loc": { - "start": { - "line": 52, - "column": 19 - }, - "end": { - "line": 52, - "column": 20 - } - } - }, - { - "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": 2485, - "end": 2489, - "loc": { - "start": { - "line": 53, - "column": 16 - }, - "end": { - "line": 53, - "column": 20 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2489, - "end": 2490, - "loc": { - "start": { - "line": 53, - "column": 20 - }, - "end": { - "line": 53, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "logger", - "start": 2490, - "end": 2496, - "loc": { - "start": { - "line": 53, - "column": 21 - }, - "end": { - "line": 53, - "column": 27 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2496, - "end": 2497, - "loc": { - "start": { - "line": 53, - "column": 27 - }, - "end": { - "line": 53, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "prefix", - "start": 2497, - "end": 2503, - "loc": { - "start": { - "line": 53, - "column": 28 - }, - "end": { - "line": 53, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2503, - "end": 2504, - "loc": { - "start": { - "line": 53, - "column": 34 - }, - "end": { - "line": 53, - "column": 35 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Parallax-Module", - "start": 2504, - "end": 2521, - "loc": { - "start": { - "line": 53, - "column": 35 - }, - "end": { - "line": 53, - "column": 52 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2521, - "end": 2522, - "loc": { - "start": { - "line": 53, - "column": 52 - }, - "end": { - "line": 53, - "column": 53 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2522, - "end": 2523, - "loc": { - "start": { - "line": 53, - "column": 53 - }, - "end": { - "line": 53, - "column": 54 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "error", - "start": 2523, - "end": 2528, - "loc": { - "start": { - "line": 53, - "column": 54 - }, - "end": { - "line": 53, - "column": 59 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2528, - "end": 2529, - "loc": { - "start": { - "line": 53, - "column": 59 - }, - "end": { - "line": 53, - "column": 60 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "No pParallaxInfo passed or invalid type found!", - "start": 2529, - "end": 2577, - "loc": { - "start": { - "line": 53, - "column": 60 - }, - "end": { - "line": 53, - "column": 108 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2577, - "end": 2578, - "loc": { - "start": { - "line": 53, - "column": 108 - }, - "end": { - "line": 53, - "column": 109 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2578, - "end": 2579, - "loc": { - "start": { - "line": 53, - "column": 109 - }, - "end": { - "line": 53, - "column": 110 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2593, - "end": 2594, - "loc": { - "start": { - "line": 54, - "column": 12 - }, - "end": { - "line": 54, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2604, - "end": 2605, - "loc": { - "start": { - "line": 55, - "column": 8 - }, - "end": { - "line": 55, - "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": 2606, - "end": 2610, - "loc": { - "start": { - "line": 55, - "column": 10 - }, - "end": { - "line": 55, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2611, - "end": 2612, - "loc": { - "start": { - "line": 55, - "column": 15 - }, - "end": { - "line": 55, - "column": 16 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 2626, - "end": 2630, - "loc": { - "start": { - "line": 56, - "column": 12 - }, - "end": { - "line": 56, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2630, - "end": 2631, - "loc": { - "start": { - "line": 56, - "column": 16 - }, - "end": { - "line": 56, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "logger", - "start": 2631, - "end": 2637, - "loc": { - "start": { - "line": 56, - "column": 17 - }, - "end": { - "line": 56, - "column": 23 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2637, - "end": 2638, - "loc": { - "start": { - "line": 56, - "column": 23 - }, - "end": { - "line": 56, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "prefix", - "start": 2638, - "end": 2644, - "loc": { - "start": { - "line": 56, - "column": 24 - }, - "end": { - "line": 56, - "column": 30 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2644, - "end": 2645, - "loc": { - "start": { - "line": 56, - "column": 30 - }, - "end": { - "line": 56, - "column": 31 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Parallax-Module", - "start": 2645, - "end": 2662, - "loc": { - "start": { - "line": 56, - "column": 31 - }, - "end": { - "line": 56, - "column": 48 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2662, - "end": 2663, - "loc": { - "start": { - "line": 56, - "column": 48 - }, - "end": { - "line": 56, - "column": 49 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2663, - "end": 2664, - "loc": { - "start": { - "line": 56, - "column": 49 - }, - "end": { - "line": 56, - "column": 50 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "error", - "start": 2664, - "end": 2669, - "loc": { - "start": { - "line": 56, - "column": 50 - }, - "end": { - "line": 56, - "column": 55 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2669, - "end": 2670, - "loc": { - "start": { - "line": 56, - "column": 55 - }, - "end": { - "line": 56, - "column": 56 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "No pInstance passed!", - "start": 2670, - "end": 2692, - "loc": { - "start": { - "line": 56, - "column": 56 - }, - "end": { - "line": 56, - "column": 78 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2692, - "end": 2693, - "loc": { - "start": { - "line": 56, - "column": 78 - }, - "end": { - "line": 56, - "column": 79 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2693, - "end": 2694, - "loc": { - "start": { - "line": 56, - "column": 79 - }, - "end": { - "line": 56, - "column": 80 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2704, - "end": 2705, - "loc": { - "start": { - "line": 57, - "column": 8 - }, - "end": { - "line": 57, - "column": 9 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2711, - "end": 2712, - "loc": { - "start": { - "line": 58, - "column": 4 - }, - "end": { - "line": 58, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n * Initializes this instance.\r\n * @param {Object} pInstance - The instance to initialize.\r\n * @param {Object} pParallaxInfo - The parallax info that tells this module how to control this instance.\r\n * @property {number} pParallaxInfo.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {number} pParallaxInfo.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {boolean} pParallaxInfo.loop - Whether this instance will loop endlessly.\r\n * @param {number} pX - The x position this parallax will start at.\r\n * @param {number} pY - The y position this parallax will start at.\r\n * @param {string} pMap - The map this instance will start at.\r\n * @private\r\n ", - "start": 2718, - "end": 3611, - "loc": { - "start": { - "line": 59, - "column": 4 - }, - "end": { - "line": 70, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "init", - "start": 3617, - "end": 3621, - "loc": { - "start": { - "line": 71, - "column": 4 - }, - "end": { - "line": 71, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3621, - "end": 3622, - "loc": { - "start": { - "line": 71, - "column": 8 - }, - "end": { - "line": 71, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 3622, - "end": 3631, - "loc": { - "start": { - "line": 71, - "column": 9 - }, - "end": { - "line": 71, - "column": 18 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3631, - "end": 3632, - "loc": { - "start": { - "line": 71, - "column": 18 - }, - "end": { - "line": 71, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pParallaxInfo", - "start": 3633, - "end": 3646, - "loc": { - "start": { - "line": 71, - "column": 20 - }, - "end": { - "line": 71, - "column": 33 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3646, - "end": 3647, - "loc": { - "start": { - "line": 71, - "column": 33 - }, - "end": { - "line": 71, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pX", - "start": 3648, - "end": 3650, - "loc": { - "start": { - "line": 71, - "column": 35 - }, - "end": { - "line": 71, - "column": 37 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3650, - "end": 3651, - "loc": { - "start": { - "line": 71, - "column": 37 - }, - "end": { - "line": 71, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pY", - "start": 3652, - "end": 3654, - "loc": { - "start": { - "line": 71, - "column": 39 - }, - "end": { - "line": 71, - "column": 41 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3654, - "end": 3655, - "loc": { - "start": { - "line": 71, - "column": 41 - }, - "end": { - "line": 71, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMap", - "start": 3656, - "end": 3660, - "loc": { - "start": { - "line": 71, - "column": 43 - }, - "end": { - "line": 71, - "column": 47 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3660, - "end": 3661, - "loc": { - "start": { - "line": 71, - "column": 47 - }, - "end": { - "line": 71, - "column": 48 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3662, - "end": 3663, - "loc": { - "start": { - "line": 71, - "column": 49 - }, - "end": { - "line": 71, - "column": 50 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 3673, - "end": 3675, - "loc": { - "start": { - "line": 72, - "column": 8 - }, - "end": { - "line": 72, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3676, - "end": 3677, - "loc": { - "start": { - "line": 72, - "column": 11 - }, - "end": { - "line": 72, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "VYLO", - "start": 3677, - "end": 3681, - "loc": { - "start": { - "line": 72, - "column": 12 - }, - "end": { - "line": 72, - "column": 16 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3681, - "end": 3682, - "loc": { - "start": { - "line": 72, - "column": 16 - }, - "end": { - "line": 72, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3683, - "end": 3684, - "loc": { - "start": { - "line": 72, - "column": 18 - }, - "end": { - "line": 72, - "column": 19 - } - } - }, - { - "type": "CommentLine", - "value": " Set the initial position.", - "start": 3698, - "end": 3726, - "loc": { - "start": { - "line": 73, - "column": 12 - }, - "end": { - "line": 73, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pParallaxInfo", - "start": 3740, - "end": 3753, - "loc": { - "start": { - "line": 74, - "column": 12 - }, - "end": { - "line": 74, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3753, - "end": 3754, - "loc": { - "start": { - "line": 74, - "column": 25 - }, - "end": { - "line": 74, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "_initialPos", - "start": 3754, - "end": 3765, - "loc": { - "start": { - "line": 74, - "column": 26 - }, - "end": { - "line": 74, - "column": 37 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 3766, - "end": 3767, - "loc": { - "start": { - "line": 74, - "column": 38 - }, - "end": { - "line": 74, - "column": 39 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3768, - "end": 3769, - "loc": { - "start": { - "line": 74, - "column": 40 - }, - "end": { - "line": 74, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 3770, - "end": 3771, - "loc": { - "start": { - "line": 74, - "column": 42 - }, - "end": { - "line": 74, - "column": 43 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3771, - "end": 3772, - "loc": { - "start": { - "line": 74, - "column": 43 - }, - "end": { - "line": 74, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pX", - "start": 3773, - "end": 3775, - "loc": { - "start": { - "line": 74, - "column": 45 - }, - "end": { - "line": 74, - "column": 47 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3775, - "end": 3776, - "loc": { - "start": { - "line": 74, - "column": 47 - }, - "end": { - "line": 74, - "column": 48 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 3777, - "end": 3778, - "loc": { - "start": { - "line": 74, - "column": 49 - }, - "end": { - "line": 74, - "column": 50 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3778, - "end": 3779, - "loc": { - "start": { - "line": 74, - "column": 50 - }, - "end": { - "line": 74, - "column": 51 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pY", - "start": 3780, - "end": 3782, - "loc": { - "start": { - "line": 74, - "column": 52 - }, - "end": { - "line": 74, - "column": 54 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3783, - "end": 3784, - "loc": { - "start": { - "line": 74, - "column": 55 - }, - "end": { - "line": 74, - "column": 56 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3784, - "end": 3785, - "loc": { - "start": { - "line": 74, - "column": 56 - }, - "end": { - "line": 74, - "column": 57 - } - } - }, - { - "type": "CommentLine", - "value": " If this instance is set to loop, then it needs a left and right clone", - "start": 3799, - "end": 3871, - "loc": { - "start": { - "line": 75, - "column": 12 - }, - "end": { - "line": 75, - "column": 84 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 3885, - "end": 3887, - "loc": { - "start": { - "line": 76, - "column": 12 - }, - "end": { - "line": 76, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3888, - "end": 3889, - "loc": { - "start": { - "line": 76, - "column": 15 - }, - "end": { - "line": 76, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pParallaxInfo", - "start": 3889, - "end": 3902, - "loc": { - "start": { - "line": 76, - "column": 16 - }, - "end": { - "line": 76, - "column": 29 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3902, - "end": 3903, - "loc": { - "start": { - "line": 76, - "column": 29 - }, - "end": { - "line": 76, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "loop", - "start": 3903, - "end": 3907, - "loc": { - "start": { - "line": 76, - "column": 30 - }, - "end": { - "line": 76, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3907, - "end": 3908, - "loc": { - "start": { - "line": 76, - "column": 34 - }, - "end": { - "line": 76, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3909, - "end": 3910, - "loc": { - "start": { - "line": 76, - "column": 36 - }, - "end": { - "line": 76, - "column": 37 - } - } - }, - { - "type": "CommentLine", - "value": " Create a left and right clone", - "start": 3928, - "end": 3960, - "loc": { - "start": { - "line": 77, - "column": 16 - }, - "end": { - "line": 77, - "column": 48 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 3978, - "end": 3983, - "loc": { - "start": { - "line": 78, - "column": 16 - }, - "end": { - "line": 78, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "left", - "start": 3984, - "end": 3988, - "loc": { - "start": { - "line": 78, - "column": 22 - }, - "end": { - "line": 78, - "column": 26 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 3989, - "end": 3990, - "loc": { - "start": { - "line": 78, - "column": 27 - }, - "end": { - "line": 78, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "VYLO", - "start": 3991, - "end": 3995, - "loc": { - "start": { - "line": 78, - "column": 29 - }, - "end": { - "line": 78, - "column": 33 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3995, - "end": 3996, - "loc": { - "start": { - "line": 78, - "column": 33 - }, - "end": { - "line": 78, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "newDiob", - "start": 3996, - "end": 4003, - "loc": { - "start": { - "line": 78, - "column": 34 - }, - "end": { - "line": 78, - "column": 41 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4003, - "end": 4004, - "loc": { - "start": { - "line": 78, - "column": 41 - }, - "end": { - "line": 78, - "column": 42 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Particle", - "start": 4004, - "end": 4014, - "loc": { - "start": { - "line": 78, - "column": 42 - }, - "end": { - "line": 78, - "column": 52 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4014, - "end": 4015, - "loc": { - "start": { - "line": 78, - "column": 52 - }, - "end": { - "line": 78, - "column": 53 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4015, - "end": 4016, - "loc": { - "start": { - "line": 78, - "column": 53 - }, - "end": { - "line": 78, - "column": 54 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 4034, - "end": 4039, - "loc": { - "start": { - "line": 79, - "column": 16 - }, - "end": { - "line": 79, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "right", - "start": 4040, - "end": 4045, - "loc": { - "start": { - "line": 79, - "column": 22 - }, - "end": { - "line": 79, - "column": 27 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 4046, - "end": 4047, - "loc": { - "start": { - "line": 79, - "column": 28 - }, - "end": { - "line": 79, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "VYLO", - "start": 4048, - "end": 4052, - "loc": { - "start": { - "line": 79, - "column": 30 - }, - "end": { - "line": 79, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4052, - "end": 4053, - "loc": { - "start": { - "line": 79, - "column": 34 - }, - "end": { - "line": 79, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "newDiob", - "start": 4053, - "end": 4060, - "loc": { - "start": { - "line": 79, - "column": 35 - }, - "end": { - "line": 79, - "column": 42 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4060, - "end": 4061, - "loc": { - "start": { - "line": 79, - "column": 42 - }, - "end": { - "line": 79, - "column": 43 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Particle", - "start": 4061, - "end": 4071, - "loc": { - "start": { - "line": 79, - "column": 43 - }, - "end": { - "line": 79, - "column": 53 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4071, - "end": 4072, - "loc": { - "start": { - "line": 79, - "column": 53 - }, - "end": { - "line": 79, - "column": 54 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4072, - "end": 4073, - "loc": { - "start": { - "line": 79, - "column": 54 - }, - "end": { - "line": 79, - "column": 55 - } - } - }, - { - "type": "CommentLine", - "value": " Make the left and right clone particle look the same as the initial instance", - "start": 4091, - "end": 4170, - "loc": { - "start": { - "line": 80, - "column": 16 - }, - "end": { - "line": 80, - "column": 95 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "left", - "start": 4188, - "end": 4192, - "loc": { - "start": { - "line": 81, - "column": 16 - }, - "end": { - "line": 81, - "column": 20 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4192, - "end": 4193, - "loc": { - "start": { - "line": 81, - "column": 20 - }, - "end": { - "line": 81, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "setAppearance", - "start": 4193, - "end": 4206, - "loc": { - "start": { - "line": 81, - "column": 21 - }, - "end": { - "line": 81, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4206, - "end": 4207, - "loc": { - "start": { - "line": 81, - "column": 34 - }, - "end": { - "line": 81, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 4207, - "end": 4216, - "loc": { - "start": { - "line": 81, - "column": 35 - }, - "end": { - "line": 81, - "column": 44 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4216, - "end": 4217, - "loc": { - "start": { - "line": 81, - "column": 44 - }, - "end": { - "line": 81, - "column": 45 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4217, - "end": 4218, - "loc": { - "start": { - "line": 81, - "column": 45 - }, - "end": { - "line": 81, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "right", - "start": 4236, - "end": 4241, - "loc": { - "start": { - "line": 82, - "column": 16 - }, - "end": { - "line": 82, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4241, - "end": 4242, - "loc": { - "start": { - "line": 82, - "column": 21 - }, - "end": { - "line": 82, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "setAppearance", - "start": 4242, - "end": 4255, - "loc": { - "start": { - "line": 82, - "column": 22 - }, - "end": { - "line": 82, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4255, - "end": 4256, - "loc": { - "start": { - "line": 82, - "column": 35 - }, - "end": { - "line": 82, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 4256, - "end": 4265, - "loc": { - "start": { - "line": 82, - "column": 36 - }, - "end": { - "line": 82, - "column": 45 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4265, - "end": 4266, - "loc": { - "start": { - "line": 82, - "column": 45 - }, - "end": { - "line": 82, - "column": 46 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4266, - "end": 4267, - "loc": { - "start": { - "line": 82, - "column": 46 - }, - "end": { - "line": 82, - "column": 47 - } - } - }, - { - "type": "CommentLine", - "value": " Position the left clone", - "start": 4285, - "end": 4311, - "loc": { - "start": { - "line": 83, - "column": 16 - }, - "end": { - "line": 83, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "left", - "start": 4329, - "end": 4333, - "loc": { - "start": { - "line": 84, - "column": 16 - }, - "end": { - "line": 84, - "column": 20 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4333, - "end": 4334, - "loc": { - "start": { - "line": 84, - "column": 20 - }, - "end": { - "line": 84, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 4334, - "end": 4335, - "loc": { - "start": { - "line": 84, - "column": 21 - }, - "end": { - "line": 84, - "column": 22 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 4336, - "end": 4337, - "loc": { - "start": { - "line": 84, - "column": 23 - }, - "end": { - "line": 84, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pParallaxInfo", - "start": 4338, - "end": 4351, - "loc": { - "start": { - "line": 84, - "column": 25 - }, - "end": { - "line": 84, - "column": 38 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4351, - "end": 4352, - "loc": { - "start": { - "line": 84, - "column": 38 - }, - "end": { - "line": 84, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "_initialPos", - "start": 4352, - "end": 4363, - "loc": { - "start": { - "line": 84, - "column": 39 - }, - "end": { - "line": 84, - "column": 50 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4363, - "end": 4364, - "loc": { - "start": { - "line": 84, - "column": 50 - }, - "end": { - "line": 84, - "column": 51 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 4364, - "end": 4365, - "loc": { - "start": { - "line": 84, - "column": 51 - }, - "end": { - "line": 84, - "column": 52 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 4366, - "end": 4367, - "loc": { - "start": { - "line": 84, - "column": 53 - }, - "end": { - "line": 84, - "column": 54 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 4368, - "end": 4377, - "loc": { - "start": { - "line": 84, - "column": 55 - }, - "end": { - "line": 84, - "column": 64 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4377, - "end": 4378, - "loc": { - "start": { - "line": 84, - "column": 64 - }, - "end": { - "line": 84, - "column": 65 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "icon", - "start": 4378, - "end": 4382, - "loc": { - "start": { - "line": 84, - "column": 65 - }, - "end": { - "line": 84, - "column": 69 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4382, - "end": 4383, - "loc": { - "start": { - "line": 84, - "column": 69 - }, - "end": { - "line": 84, - "column": 70 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "width", - "start": 4383, - "end": 4388, - "loc": { - "start": { - "line": 84, - "column": 70 - }, - "end": { - "line": 84, - "column": 75 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4388, - "end": 4389, - "loc": { - "start": { - "line": 84, - "column": 75 - }, - "end": { - "line": 84, - "column": 76 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "left", - "start": 4407, - "end": 4411, - "loc": { - "start": { - "line": 85, - "column": 16 - }, - "end": { - "line": 85, - "column": 20 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4411, - "end": 4412, - "loc": { - "start": { - "line": 85, - "column": 20 - }, - "end": { - "line": 85, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 4412, - "end": 4413, - "loc": { - "start": { - "line": 85, - "column": 21 - }, - "end": { - "line": 85, - "column": 22 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 4414, - "end": 4415, - "loc": { - "start": { - "line": 85, - "column": 23 - }, - "end": { - "line": 85, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pParallaxInfo", - "start": 4416, - "end": 4429, - "loc": { - "start": { - "line": 85, - "column": 25 - }, - "end": { - "line": 85, - "column": 38 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4429, - "end": 4430, - "loc": { - "start": { - "line": 85, - "column": 38 - }, - "end": { - "line": 85, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "_initialPos", - "start": 4430, - "end": 4441, - "loc": { - "start": { - "line": 85, - "column": 39 - }, - "end": { - "line": 85, - "column": 50 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4441, - "end": 4442, - "loc": { - "start": { - "line": 85, - "column": 50 - }, - "end": { - "line": 85, - "column": 51 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 4442, - "end": 4443, - "loc": { - "start": { - "line": 85, - "column": 51 - }, - "end": { - "line": 85, - "column": 52 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4443, - "end": 4444, - "loc": { - "start": { - "line": 85, - "column": 52 - }, - "end": { - "line": 85, - "column": 53 - } - } - }, - { - "type": "CommentLine", - "value": " Position the right clone", - "start": 4462, - "end": 4489, - "loc": { - "start": { - "line": 86, - "column": 16 - }, - "end": { - "line": 86, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "right", - "start": 4507, - "end": 4512, - "loc": { - "start": { - "line": 87, - "column": 16 - }, - "end": { - "line": 87, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4512, - "end": 4513, - "loc": { - "start": { - "line": 87, - "column": 21 - }, - "end": { - "line": 87, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 4513, - "end": 4514, - "loc": { - "start": { - "line": 87, - "column": 22 - }, - "end": { - "line": 87, - "column": 23 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 4515, - "end": 4516, - "loc": { - "start": { - "line": 87, - "column": 24 - }, - "end": { - "line": 87, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pParallaxInfo", - "start": 4517, - "end": 4530, - "loc": { - "start": { - "line": 87, - "column": 26 - }, - "end": { - "line": 87, - "column": 39 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4530, - "end": 4531, - "loc": { - "start": { - "line": 87, - "column": 39 - }, - "end": { - "line": 87, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "_initialPos", - "start": 4531, - "end": 4542, - "loc": { - "start": { - "line": 87, - "column": 40 - }, - "end": { - "line": 87, - "column": 51 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4542, - "end": 4543, - "loc": { - "start": { - "line": 87, - "column": 51 - }, - "end": { - "line": 87, - "column": 52 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 4543, - "end": 4544, - "loc": { - "start": { - "line": 87, - "column": 52 - }, - "end": { - "line": 87, - "column": 53 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 4545, - "end": 4546, - "loc": { - "start": { - "line": 87, - "column": 54 - }, - "end": { - "line": 87, - "column": 55 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 4547, - "end": 4556, - "loc": { - "start": { - "line": 87, - "column": 56 - }, - "end": { - "line": 87, - "column": 65 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4556, - "end": 4557, - "loc": { - "start": { - "line": 87, - "column": 65 - }, - "end": { - "line": 87, - "column": 66 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "icon", - "start": 4557, - "end": 4561, - "loc": { - "start": { - "line": 87, - "column": 66 - }, - "end": { - "line": 87, - "column": 70 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4561, - "end": 4562, - "loc": { - "start": { - "line": 87, - "column": 70 - }, - "end": { - "line": 87, - "column": 71 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "width", - "start": 4562, - "end": 4567, - "loc": { - "start": { - "line": 87, - "column": 71 - }, - "end": { - "line": 87, - "column": 76 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4567, - "end": 4568, - "loc": { - "start": { - "line": 87, - "column": 76 - }, - "end": { - "line": 87, - "column": 77 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "right", - "start": 4586, - "end": 4591, - "loc": { - "start": { - "line": 88, - "column": 16 - }, - "end": { - "line": 88, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4591, - "end": 4592, - "loc": { - "start": { - "line": 88, - "column": 21 - }, - "end": { - "line": 88, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 4592, - "end": 4593, - "loc": { - "start": { - "line": 88, - "column": 22 - }, - "end": { - "line": 88, - "column": 23 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 4594, - "end": 4595, - "loc": { - "start": { - "line": 88, - "column": 24 - }, - "end": { - "line": 88, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pParallaxInfo", - "start": 4596, - "end": 4609, - "loc": { - "start": { - "line": 88, - "column": 26 - }, - "end": { - "line": 88, - "column": 39 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4609, - "end": 4610, - "loc": { - "start": { - "line": 88, - "column": 39 - }, - "end": { - "line": 88, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "_initialPos", - "start": 4610, - "end": 4621, - "loc": { - "start": { - "line": 88, - "column": 40 - }, - "end": { - "line": 88, - "column": 51 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4621, - "end": 4622, - "loc": { - "start": { - "line": 88, - "column": 51 - }, - "end": { - "line": 88, - "column": 52 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 4622, - "end": 4623, - "loc": { - "start": { - "line": 88, - "column": 52 - }, - "end": { - "line": 88, - "column": 53 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4623, - "end": 4624, - "loc": { - "start": { - "line": 88, - "column": 53 - }, - "end": { - "line": 88, - "column": 54 - } - } - }, - { - "type": "CommentLine", - "value": " Store the clones in a temporary array", - "start": 4642, - "end": 4682, - "loc": { - "start": { - "line": 89, - "column": 16 - }, - "end": { - "line": 89, - "column": 56 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 4700, - "end": 4705, - "loc": { - "start": { - "line": 90, - "column": 16 - }, - "end": { - "line": 90, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "children", - "start": 4706, - "end": 4714, - "loc": { - "start": { - "line": 90, - "column": 22 - }, - "end": { - "line": 90, - "column": 30 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 4715, - "end": 4716, - "loc": { - "start": { - "line": 90, - "column": 31 - }, - "end": { - "line": 90, - "column": 32 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4717, - "end": 4718, - "loc": { - "start": { - "line": 90, - "column": 33 - }, - "end": { - "line": 90, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "left", - "start": 4718, - "end": 4722, - "loc": { - "start": { - "line": 90, - "column": 34 - }, - "end": { - "line": 90, - "column": 38 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4722, - "end": 4723, - "loc": { - "start": { - "line": 90, - "column": 38 - }, - "end": { - "line": 90, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "right", - "start": 4724, - "end": 4729, - "loc": { - "start": { - "line": 90, - "column": 40 - }, - "end": { - "line": 90, - "column": 45 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4729, - "end": 4730, - "loc": { - "start": { - "line": 90, - "column": 45 - }, - "end": { - "line": 90, - "column": 46 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4730, - "end": 4731, - "loc": { - "start": { - "line": 90, - "column": 46 - }, - "end": { - "line": 90, - "column": 47 - } - } - }, - { - "type": "CommentLine", - "value": " Loop the clones and store their relative positions to the main instance", - "start": 4749, - "end": 4823, - "loc": { - "start": { - "line": 91, - "column": 16 - }, - "end": { - "line": 91, - "column": 90 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "children", - "start": 4841, - "end": 4849, - "loc": { - "start": { - "line": 92, - "column": 16 - }, - "end": { - "line": 92, - "column": 24 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4849, - "end": 4850, - "loc": { - "start": { - "line": 92, - "column": 24 - }, - "end": { - "line": 92, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "forEach", - "start": 4850, - "end": 4857, - "loc": { - "start": { - "line": 92, - "column": 25 - }, - "end": { - "line": 92, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4857, - "end": 4858, - "loc": { - "start": { - "line": 92, - "column": 32 - }, - "end": { - "line": 92, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4858, - "end": 4859, - "loc": { - "start": { - "line": 92, - "column": 33 - }, - "end": { - "line": 92, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChild", - "start": 4859, - "end": 4865, - "loc": { - "start": { - "line": 92, - "column": 34 - }, - "end": { - "line": 92, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4865, - "end": 4866, - "loc": { - "start": { - "line": 92, - "column": 40 - }, - "end": { - "line": 92, - "column": 41 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4867, - "end": 4869, - "loc": { - "start": { - "line": 92, - "column": 42 - }, - "end": { - "line": 92, - "column": 44 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4870, - "end": 4871, - "loc": { - "start": { - "line": 92, - "column": 45 - }, - "end": { - "line": 92, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChild", - "start": 4893, - "end": 4899, - "loc": { - "start": { - "line": 93, - "column": 20 - }, - "end": { - "line": 93, - "column": 26 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4899, - "end": 4900, - "loc": { - "start": { - "line": 93, - "column": 26 - }, - "end": { - "line": 93, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "relativeX", - "start": 4900, - "end": 4909, - "loc": { - "start": { - "line": 93, - "column": 27 - }, - "end": { - "line": 93, - "column": 36 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 4910, - "end": 4911, - "loc": { - "start": { - "line": 93, - "column": 37 - }, - "end": { - "line": 93, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChild", - "start": 4912, - "end": 4918, - "loc": { - "start": { - "line": 93, - "column": 39 - }, - "end": { - "line": 93, - "column": 45 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4918, - "end": 4919, - "loc": { - "start": { - "line": 93, - "column": 45 - }, - "end": { - "line": 93, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 4919, - "end": 4920, - "loc": { - "start": { - "line": 93, - "column": 46 - }, - "end": { - "line": 93, - "column": 47 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 4921, - "end": 4922, - "loc": { - "start": { - "line": 93, - "column": 48 - }, - "end": { - "line": 93, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pParallaxInfo", - "start": 4923, - "end": 4936, - "loc": { - "start": { - "line": 93, - "column": 50 - }, - "end": { - "line": 93, - "column": 63 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4936, - "end": 4937, - "loc": { - "start": { - "line": 93, - "column": 63 - }, - "end": { - "line": 93, - "column": 64 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "_initialPos", - "start": 4937, - "end": 4948, - "loc": { - "start": { - "line": 93, - "column": 64 - }, - "end": { - "line": 93, - "column": 75 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4948, - "end": 4949, - "loc": { - "start": { - "line": 93, - "column": 75 - }, - "end": { - "line": 93, - "column": 76 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 4949, - "end": 4950, - "loc": { - "start": { - "line": 93, - "column": 76 - }, - "end": { - "line": 93, - "column": 77 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4950, - "end": 4951, - "loc": { - "start": { - "line": 93, - "column": 77 - }, - "end": { - "line": 93, - "column": 78 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChild", - "start": 4973, - "end": 4979, - "loc": { - "start": { - "line": 94, - "column": 20 - }, - "end": { - "line": 94, - "column": 26 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4979, - "end": 4980, - "loc": { - "start": { - "line": 94, - "column": 26 - }, - "end": { - "line": 94, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "relativeY", - "start": 4980, - "end": 4989, - "loc": { - "start": { - "line": 94, - "column": 27 - }, - "end": { - "line": 94, - "column": 36 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 4990, - "end": 4991, - "loc": { - "start": { - "line": 94, - "column": 37 - }, - "end": { - "line": 94, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChild", - "start": 4992, - "end": 4998, - "loc": { - "start": { - "line": 94, - "column": 39 - }, - "end": { - "line": 94, - "column": 45 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4998, - "end": 4999, - "loc": { - "start": { - "line": 94, - "column": 45 - }, - "end": { - "line": 94, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 4999, - "end": 5000, - "loc": { - "start": { - "line": 94, - "column": 46 - }, - "end": { - "line": 94, - "column": 47 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 5001, - "end": 5002, - "loc": { - "start": { - "line": 94, - "column": 48 - }, - "end": { - "line": 94, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pParallaxInfo", - "start": 5003, - "end": 5016, - "loc": { - "start": { - "line": 94, - "column": 50 - }, - "end": { - "line": 94, - "column": 63 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5016, - "end": 5017, - "loc": { - "start": { - "line": 94, - "column": 63 - }, - "end": { - "line": 94, - "column": 64 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "_initialPos", - "start": 5017, - "end": 5028, - "loc": { - "start": { - "line": 94, - "column": 64 - }, - "end": { - "line": 94, - "column": 75 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5028, - "end": 5029, - "loc": { - "start": { - "line": 94, - "column": 75 - }, - "end": { - "line": 94, - "column": 76 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 5029, - "end": 5030, - "loc": { - "start": { - "line": 94, - "column": 76 - }, - "end": { - "line": 94, - "column": 77 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5030, - "end": 5031, - "loc": { - "start": { - "line": 94, - "column": 77 - }, - "end": { - "line": 94, - "column": 78 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5049, - "end": 5050, - "loc": { - "start": { - "line": 95, - "column": 16 - }, - "end": { - "line": 95, - "column": 17 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5050, - "end": 5051, - "loc": { - "start": { - "line": 95, - "column": 17 - }, - "end": { - "line": 95, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5051, - "end": 5052, - "loc": { - "start": { - "line": 95, - "column": 18 - }, - "end": { - "line": 95, - "column": 19 - } - } - }, - { - "type": "CommentLine", - "value": " When the main instance moves, move the clones with their relative position to it.", - "start": 5070, - "end": 5154, - "loc": { - "start": { - "line": 96, - "column": 16 - }, - "end": { - "line": 96, - "column": 100 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 5172, - "end": 5181, - "loc": { - "start": { - "line": 97, - "column": 16 - }, - "end": { - "line": 97, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5181, - "end": 5182, - "loc": { - "start": { - "line": 97, - "column": 25 - }, - "end": { - "line": 97, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "onRelocated", - "start": 5182, - "end": 5193, - "loc": { - "start": { - "line": 97, - "column": 26 - }, - "end": { - "line": 97, - "column": 37 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 5194, - "end": 5195, - "loc": { - "start": { - "line": 97, - "column": 38 - }, - "end": { - "line": 97, - "column": 39 - } - } - }, - { - "type": { - "label": "function", - "keyword": "function", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "function", - "start": 5196, - "end": 5204, - "loc": { - "start": { - "line": 97, - "column": 40 - }, - "end": { - "line": 97, - "column": 48 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5204, - "end": 5205, - "loc": { - "start": { - "line": 97, - "column": 48 - }, - "end": { - "line": 97, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pX", - "start": 5205, - "end": 5207, - "loc": { - "start": { - "line": 97, - "column": 49 - }, - "end": { - "line": 97, - "column": 51 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5207, - "end": 5208, - "loc": { - "start": { - "line": 97, - "column": 51 - }, - "end": { - "line": 97, - "column": 52 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pY", - "start": 5209, - "end": 5211, - "loc": { - "start": { - "line": 97, - "column": 53 - }, - "end": { - "line": 97, - "column": 55 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5211, - "end": 5212, - "loc": { - "start": { - "line": 97, - "column": 55 - }, - "end": { - "line": 97, - "column": 56 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5213, - "end": 5214, - "loc": { - "start": { - "line": 97, - "column": 57 - }, - "end": { - "line": 97, - "column": 58 - } - } - }, - { - "type": "CommentLine", - "value": " Update the children's position when the parent moves", - "start": 5236, - "end": 5291, - "loc": { - "start": { - "line": 98, - "column": 20 - }, - "end": { - "line": 98, - "column": 75 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "children", - "start": 5313, - "end": 5321, - "loc": { - "start": { - "line": 99, - "column": 20 - }, - "end": { - "line": 99, - "column": 28 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5321, - "end": 5322, - "loc": { - "start": { - "line": 99, - "column": 28 - }, - "end": { - "line": 99, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "forEach", - "start": 5322, - "end": 5329, - "loc": { - "start": { - "line": 99, - "column": 29 - }, - "end": { - "line": 99, - "column": 36 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5329, - "end": 5330, - "loc": { - "start": { - "line": 99, - "column": 36 - }, - "end": { - "line": 99, - "column": 37 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5330, - "end": 5331, - "loc": { - "start": { - "line": 99, - "column": 37 - }, - "end": { - "line": 99, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChild", - "start": 5331, - "end": 5337, - "loc": { - "start": { - "line": 99, - "column": 38 - }, - "end": { - "line": 99, - "column": 44 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5337, - "end": 5338, - "loc": { - "start": { - "line": 99, - "column": 44 - }, - "end": { - "line": 99, - "column": 45 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5339, - "end": 5341, - "loc": { - "start": { - "line": 99, - "column": 46 - }, - "end": { - "line": 99, - "column": 48 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5342, - "end": 5343, - "loc": { - "start": { - "line": 99, - "column": 49 - }, - "end": { - "line": 99, - "column": 50 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChild", - "start": 5369, - "end": 5375, - "loc": { - "start": { - "line": 100, - "column": 24 - }, - "end": { - "line": 100, - "column": 30 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5375, - "end": 5376, - "loc": { - "start": { - "line": 100, - "column": 30 - }, - "end": { - "line": 100, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 5376, - "end": 5377, - "loc": { - "start": { - "line": 100, - "column": 31 - }, - "end": { - "line": 100, - "column": 32 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 5378, - "end": 5379, - "loc": { - "start": { - "line": 100, - "column": 33 - }, - "end": { - "line": 100, - "column": 34 - } - } - }, - { - "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": 5380, - "end": 5384, - "loc": { - "start": { - "line": 100, - "column": 35 - }, - "end": { - "line": 100, - "column": 39 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5384, - "end": 5385, - "loc": { - "start": { - "line": 100, - "column": 39 - }, - "end": { - "line": 100, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 5385, - "end": 5386, - "loc": { - "start": { - "line": 100, - "column": 40 - }, - "end": { - "line": 100, - "column": 41 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 5387, - "end": 5388, - "loc": { - "start": { - "line": 100, - "column": 42 - }, - "end": { - "line": 100, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChild", - "start": 5389, - "end": 5395, - "loc": { - "start": { - "line": 100, - "column": 44 - }, - "end": { - "line": 100, - "column": 50 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5395, - "end": 5396, - "loc": { - "start": { - "line": 100, - "column": 50 - }, - "end": { - "line": 100, - "column": 51 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "relativeX", - "start": 5396, - "end": 5405, - "loc": { - "start": { - "line": 100, - "column": 51 - }, - "end": { - "line": 100, - "column": 60 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5405, - "end": 5406, - "loc": { - "start": { - "line": 100, - "column": 60 - }, - "end": { - "line": 100, - "column": 61 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChild", - "start": 5432, - "end": 5438, - "loc": { - "start": { - "line": 101, - "column": 24 - }, - "end": { - "line": 101, - "column": 30 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5438, - "end": 5439, - "loc": { - "start": { - "line": 101, - "column": 30 - }, - "end": { - "line": 101, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 5439, - "end": 5440, - "loc": { - "start": { - "line": 101, - "column": 31 - }, - "end": { - "line": 101, - "column": 32 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 5441, - "end": 5442, - "loc": { - "start": { - "line": 101, - "column": 33 - }, - "end": { - "line": 101, - "column": 34 - } - } - }, - { - "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": 5443, - "end": 5447, - "loc": { - "start": { - "line": 101, - "column": 35 - }, - "end": { - "line": 101, - "column": 39 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5447, - "end": 5448, - "loc": { - "start": { - "line": 101, - "column": 39 - }, - "end": { - "line": 101, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 5448, - "end": 5449, - "loc": { - "start": { - "line": 101, - "column": 40 - }, - "end": { - "line": 101, - "column": 41 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 5450, - "end": 5451, - "loc": { - "start": { - "line": 101, - "column": 42 - }, - "end": { - "line": 101, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChild", - "start": 5452, - "end": 5458, - "loc": { - "start": { - "line": 101, - "column": 44 - }, - "end": { - "line": 101, - "column": 50 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5458, - "end": 5459, - "loc": { - "start": { - "line": 101, - "column": 50 - }, - "end": { - "line": 101, - "column": 51 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "relativeY", - "start": 5459, - "end": 5468, - "loc": { - "start": { - "line": 101, - "column": 51 - }, - "end": { - "line": 101, - "column": 60 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5468, - "end": 5469, - "loc": { - "start": { - "line": 101, - "column": 60 - }, - "end": { - "line": 101, - "column": 61 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChild", - "start": 5495, - "end": 5501, - "loc": { - "start": { - "line": 102, - "column": 24 - }, - "end": { - "line": 102, - "column": 30 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5501, - "end": 5502, - "loc": { - "start": { - "line": 102, - "column": 30 - }, - "end": { - "line": 102, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "mapName", - "start": 5502, - "end": 5509, - "loc": { - "start": { - "line": 102, - "column": 31 - }, - "end": { - "line": 102, - "column": 38 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 5510, - "end": 5511, - "loc": { - "start": { - "line": 102, - "column": 39 - }, - "end": { - "line": 102, - "column": 40 - } - } - }, - { - "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": 5512, - "end": 5516, - "loc": { - "start": { - "line": 102, - "column": 41 - }, - "end": { - "line": 102, - "column": 45 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5516, - "end": 5517, - "loc": { - "start": { - "line": 102, - "column": 45 - }, - "end": { - "line": 102, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "mapName", - "start": 5517, - "end": 5524, - "loc": { - "start": { - "line": 102, - "column": 46 - }, - "end": { - "line": 102, - "column": 53 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5524, - "end": 5525, - "loc": { - "start": { - "line": 102, - "column": 53 - }, - "end": { - "line": 102, - "column": 54 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5547, - "end": 5548, - "loc": { - "start": { - "line": 103, - "column": 20 - }, - "end": { - "line": 103, - "column": 21 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5548, - "end": 5549, - "loc": { - "start": { - "line": 103, - "column": 21 - }, - "end": { - "line": 103, - "column": 22 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5549, - "end": 5550, - "loc": { - "start": { - "line": 103, - "column": 22 - }, - "end": { - "line": 103, - "column": 23 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5568, - "end": 5569, - "loc": { - "start": { - "line": 104, - "column": 16 - }, - "end": { - "line": 104, - "column": 17 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5583, - "end": 5584, - "loc": { - "start": { - "line": 105, - "column": 12 - }, - "end": { - "line": 105, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 5598, - "end": 5607, - "loc": { - "start": { - "line": 106, - "column": 12 - }, - "end": { - "line": 106, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5607, - "end": 5608, - "loc": { - "start": { - "line": 106, - "column": 21 - }, - "end": { - "line": 106, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 5608, - "end": 5609, - "loc": { - "start": { - "line": 106, - "column": 22 - }, - "end": { - "line": 106, - "column": 23 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 5610, - "end": 5611, - "loc": { - "start": { - "line": 106, - "column": 24 - }, - "end": { - "line": 106, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pX", - "start": 5612, - "end": 5614, - "loc": { - "start": { - "line": 106, - "column": 26 - }, - "end": { - "line": 106, - "column": 28 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5614, - "end": 5615, - "loc": { - "start": { - "line": 106, - "column": 28 - }, - "end": { - "line": 106, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 5629, - "end": 5638, - "loc": { - "start": { - "line": 107, - "column": 12 - }, - "end": { - "line": 107, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5638, - "end": 5639, - "loc": { - "start": { - "line": 107, - "column": 21 - }, - "end": { - "line": 107, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 5639, - "end": 5640, - "loc": { - "start": { - "line": 107, - "column": 22 - }, - "end": { - "line": 107, - "column": 23 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 5641, - "end": 5642, - "loc": { - "start": { - "line": 107, - "column": 24 - }, - "end": { - "line": 107, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pY", - "start": 5643, - "end": 5645, - "loc": { - "start": { - "line": 107, - "column": 26 - }, - "end": { - "line": 107, - "column": 28 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5645, - "end": 5646, - "loc": { - "start": { - "line": 107, - "column": 28 - }, - "end": { - "line": 107, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 5660, - "end": 5669, - "loc": { - "start": { - "line": 108, - "column": 12 - }, - "end": { - "line": 108, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5669, - "end": 5670, - "loc": { - "start": { - "line": 108, - "column": 21 - }, - "end": { - "line": 108, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "mapName", - "start": 5670, - "end": 5677, - "loc": { - "start": { - "line": 108, - "column": 22 - }, - "end": { - "line": 108, - "column": 29 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 5678, - "end": 5679, - "loc": { - "start": { - "line": 108, - "column": 30 - }, - "end": { - "line": 108, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMap", - "start": 5680, - "end": 5684, - "loc": { - "start": { - "line": 108, - "column": 32 - }, - "end": { - "line": 108, - "column": 36 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5684, - "end": 5685, - "loc": { - "start": { - "line": 108, - "column": 36 - }, - "end": { - "line": 108, - "column": 37 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5695, - "end": 5696, - "loc": { - "start": { - "line": 109, - "column": 8 - }, - "end": { - "line": 109, - "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": 5697, - "end": 5701, - "loc": { - "start": { - "line": 109, - "column": 10 - }, - "end": { - "line": 109, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5702, - "end": 5703, - "loc": { - "start": { - "line": 109, - "column": 15 - }, - "end": { - "line": 109, - "column": 16 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 5717, - "end": 5721, - "loc": { - "start": { - "line": 110, - "column": 12 - }, - "end": { - "line": 110, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5721, - "end": 5722, - "loc": { - "start": { - "line": 110, - "column": 16 - }, - "end": { - "line": 110, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "logger", - "start": 5722, - "end": 5728, - "loc": { - "start": { - "line": 110, - "column": 17 - }, - "end": { - "line": 110, - "column": 23 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5728, - "end": 5729, - "loc": { - "start": { - "line": 110, - "column": 23 - }, - "end": { - "line": 110, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "prefix", - "start": 5729, - "end": 5735, - "loc": { - "start": { - "line": 110, - "column": 24 - }, - "end": { - "line": 110, - "column": 30 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5735, - "end": 5736, - "loc": { - "start": { - "line": 110, - "column": 30 - }, - "end": { - "line": 110, - "column": 31 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Parallax-Module", - "start": 5736, - "end": 5753, - "loc": { - "start": { - "line": 110, - "column": 31 - }, - "end": { - "line": 110, - "column": 48 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5753, - "end": 5754, - "loc": { - "start": { - "line": 110, - "column": 48 - }, - "end": { - "line": 110, - "column": 49 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5754, - "end": 5755, - "loc": { - "start": { - "line": 110, - "column": 49 - }, - "end": { - "line": 110, - "column": 50 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "error", - "start": 5755, - "end": 5760, - "loc": { - "start": { - "line": 110, - "column": 50 - }, - "end": { - "line": 110, - "column": 55 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5760, - "end": 5761, - "loc": { - "start": { - "line": 110, - "column": 55 - }, - "end": { - "line": 110, - "column": 56 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "VYLO not found! This module depends on the VYLO object being in the global name space.", - "start": 5761, - "end": 5849, - "loc": { - "start": { - "line": 110, - "column": 56 - }, - "end": { - "line": 110, - "column": 144 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5849, - "end": 5850, - "loc": { - "start": { - "line": 110, - "column": 144 - }, - "end": { - "line": 110, - "column": 145 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5850, - "end": 5851, - "loc": { - "start": { - "line": 110, - "column": 145 - }, - "end": { - "line": 110, - "column": 146 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5861, - "end": 5862, - "loc": { - "start": { - "line": 111, - "column": 8 - }, - "end": { - "line": 111, - "column": 9 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5868, - "end": 5869, - "loc": { - "start": { - "line": 112, - "column": 4 - }, - "end": { - "line": 112, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n * Removes an instance to the parallax system.\r\n * @param {Object} pInstance - The instance to remove to the parallax system.\r\n ", - "start": 5875, - "end": 6022, - "loc": { - "start": { - "line": 113, - "column": 4 - }, - "end": { - "line": 116, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "remove", - "start": 6028, - "end": 6034, - "loc": { - "start": { - "line": 117, - "column": 4 - }, - "end": { - "line": 117, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6034, - "end": 6035, - "loc": { - "start": { - "line": 117, - "column": 10 - }, - "end": { - "line": 117, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 6035, - "end": 6044, - "loc": { - "start": { - "line": 117, - "column": 11 - }, - "end": { - "line": 117, - "column": 20 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6044, - "end": 6045, - "loc": { - "start": { - "line": 117, - "column": 20 - }, - "end": { - "line": 117, - "column": 21 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6046, - "end": 6047, - "loc": { - "start": { - "line": 117, - "column": 22 - }, - "end": { - "line": 117, - "column": 23 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 6057, - "end": 6059, - "loc": { - "start": { - "line": 118, - "column": 8 - }, - "end": { - "line": 118, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6060, - "end": 6061, - "loc": { - "start": { - "line": 118, - "column": 11 - }, - "end": { - "line": 118, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 6061, - "end": 6070, - "loc": { - "start": { - "line": 118, - "column": 12 - }, - "end": { - "line": 118, - "column": 21 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6070, - "end": 6071, - "loc": { - "start": { - "line": 118, - "column": 21 - }, - "end": { - "line": 118, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6072, - "end": 6073, - "loc": { - "start": { - "line": 118, - "column": 23 - }, - "end": { - "line": 118, - "column": 24 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 6087, - "end": 6089, - "loc": { - "start": { - "line": 119, - "column": 12 - }, - "end": { - "line": 119, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6090, - "end": 6091, - "loc": { - "start": { - "line": 119, - "column": 15 - }, - "end": { - "line": 119, - "column": 16 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 6091, - "end": 6095, - "loc": { - "start": { - "line": 119, - "column": 16 - }, - "end": { - "line": 119, - "column": 20 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6095, - "end": 6096, - "loc": { - "start": { - "line": 119, - "column": 20 - }, - "end": { - "line": 119, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "instances", - "start": 6096, - "end": 6105, - "loc": { - "start": { - "line": 119, - "column": 21 - }, - "end": { - "line": 119, - "column": 30 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6105, - "end": 6106, - "loc": { - "start": { - "line": 119, - "column": 30 - }, - "end": { - "line": 119, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "includes", - "start": 6106, - "end": 6114, - "loc": { - "start": { - "line": 119, - "column": 31 - }, - "end": { - "line": 119, - "column": 39 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6114, - "end": 6115, - "loc": { - "start": { - "line": 119, - "column": 39 - }, - "end": { - "line": 119, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 6115, - "end": 6124, - "loc": { - "start": { - "line": 119, - "column": 40 - }, - "end": { - "line": 119, - "column": 49 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6124, - "end": 6125, - "loc": { - "start": { - "line": 119, - "column": 49 - }, - "end": { - "line": 119, - "column": 50 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6125, - "end": 6126, - "loc": { - "start": { - "line": 119, - "column": 50 - }, - "end": { - "line": 119, - "column": 51 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6127, - "end": 6128, - "loc": { - "start": { - "line": 119, - "column": 52 - }, - "end": { - "line": 119, - "column": 53 - } - } - }, - { - "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": 6146, - "end": 6150, - "loc": { - "start": { - "line": 120, - "column": 16 - }, - "end": { - "line": 120, - "column": 20 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6150, - "end": 6151, - "loc": { - "start": { - "line": 120, - "column": 20 - }, - "end": { - "line": 120, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "instances", - "start": 6151, - "end": 6160, - "loc": { - "start": { - "line": 120, - "column": 21 - }, - "end": { - "line": 120, - "column": 30 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6160, - "end": 6161, - "loc": { - "start": { - "line": 120, - "column": 30 - }, - "end": { - "line": 120, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "splice", - "start": 6161, - "end": 6167, - "loc": { - "start": { - "line": 120, - "column": 31 - }, - "end": { - "line": 120, - "column": 37 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6167, - "end": 6168, - "loc": { - "start": { - "line": 120, - "column": 37 - }, - "end": { - "line": 120, - "column": 38 - } - } - }, - { - "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": 6168, - "end": 6172, - "loc": { - "start": { - "line": 120, - "column": 38 - }, - "end": { - "line": 120, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6172, - "end": 6173, - "loc": { - "start": { - "line": 120, - "column": 42 - }, - "end": { - "line": 120, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "instances", - "start": 6173, - "end": 6182, - "loc": { - "start": { - "line": 120, - "column": 43 - }, - "end": { - "line": 120, - "column": 52 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6182, - "end": 6183, - "loc": { - "start": { - "line": 120, - "column": 52 - }, - "end": { - "line": 120, - "column": 53 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "indexOf", - "start": 6183, - "end": 6190, - "loc": { - "start": { - "line": 120, - "column": 53 - }, - "end": { - "line": 120, - "column": 60 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6190, - "end": 6191, - "loc": { - "start": { - "line": 120, - "column": 60 - }, - "end": { - "line": 120, - "column": 61 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 6191, - "end": 6200, - "loc": { - "start": { - "line": 120, - "column": 61 - }, - "end": { - "line": 120, - "column": 70 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6200, - "end": 6201, - "loc": { - "start": { - "line": 120, - "column": 70 - }, - "end": { - "line": 120, - "column": 71 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6201, - "end": 6202, - "loc": { - "start": { - "line": 120, - "column": 71 - }, - "end": { - "line": 120, - "column": 72 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 6203, - "end": 6204, - "loc": { - "start": { - "line": 120, - "column": 73 - }, - "end": { - "line": 120, - "column": 74 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6204, - "end": 6205, - "loc": { - "start": { - "line": 120, - "column": 74 - }, - "end": { - "line": 120, - "column": 75 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6205, - "end": 6206, - "loc": { - "start": { - "line": 120, - "column": 75 - }, - "end": { - "line": 120, - "column": 76 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6220, - "end": 6221, - "loc": { - "start": { - "line": 121, - "column": 12 - }, - "end": { - "line": 121, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6231, - "end": 6232, - "loc": { - "start": { - "line": 122, - "column": 8 - }, - "end": { - "line": 122, - "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": 6233, - "end": 6237, - "loc": { - "start": { - "line": 122, - "column": 10 - }, - "end": { - "line": 122, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6238, - "end": 6239, - "loc": { - "start": { - "line": 122, - "column": 15 - }, - "end": { - "line": 122, - "column": 16 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 6253, - "end": 6257, - "loc": { - "start": { - "line": 123, - "column": 12 - }, - "end": { - "line": 123, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6257, - "end": 6258, - "loc": { - "start": { - "line": 123, - "column": 16 - }, - "end": { - "line": 123, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "logger", - "start": 6258, - "end": 6264, - "loc": { - "start": { - "line": 123, - "column": 17 - }, - "end": { - "line": 123, - "column": 23 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6264, - "end": 6265, - "loc": { - "start": { - "line": 123, - "column": 23 - }, - "end": { - "line": 123, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "prefix", - "start": 6265, - "end": 6271, - "loc": { - "start": { - "line": 123, - "column": 24 - }, - "end": { - "line": 123, - "column": 30 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6271, - "end": 6272, - "loc": { - "start": { - "line": 123, - "column": 30 - }, - "end": { - "line": 123, - "column": 31 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Parallax-Module", - "start": 6272, - "end": 6289, - "loc": { - "start": { - "line": 123, - "column": 31 - }, - "end": { - "line": 123, - "column": 48 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6289, - "end": 6290, - "loc": { - "start": { - "line": 123, - "column": 48 - }, - "end": { - "line": 123, - "column": 49 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6290, - "end": 6291, - "loc": { - "start": { - "line": 123, - "column": 49 - }, - "end": { - "line": 123, - "column": 50 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "error", - "start": 6291, - "end": 6296, - "loc": { - "start": { - "line": 123, - "column": 50 - }, - "end": { - "line": 123, - "column": 55 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6296, - "end": 6297, - "loc": { - "start": { - "line": 123, - "column": 55 - }, - "end": { - "line": 123, - "column": 56 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "No pInstance passed!", - "start": 6297, - "end": 6319, - "loc": { - "start": { - "line": 123, - "column": 56 - }, - "end": { - "line": 123, - "column": 78 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6319, - "end": 6320, - "loc": { - "start": { - "line": 123, - "column": 78 - }, - "end": { - "line": 123, - "column": 79 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6320, - "end": 6321, - "loc": { - "start": { - "line": 123, - "column": 79 - }, - "end": { - "line": 123, - "column": 80 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6331, - "end": 6332, - "loc": { - "start": { - "line": 124, - "column": 8 - }, - "end": { - "line": 124, - "column": 9 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6338, - "end": 6339, - "loc": { - "start": { - "line": 125, - "column": 4 - }, - "end": { - "line": 125, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n * Updates the parallax system\r\n * @param {number} pCameraX - The x position of the camera.\r\n * @param {number} pCameraY - The y position of the camera.\r\n ", - "start": 6345, - "end": 6523, - "loc": { - "start": { - "line": 126, - "column": 4 - }, - "end": { - "line": 130, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "update", - "start": 6529, - "end": 6535, - "loc": { - "start": { - "line": 131, - "column": 4 - }, - "end": { - "line": 131, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6535, - "end": 6536, - "loc": { - "start": { - "line": 131, - "column": 10 - }, - "end": { - "line": 131, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pCameraX", - "start": 6536, - "end": 6544, - "loc": { - "start": { - "line": 131, - "column": 11 - }, - "end": { - "line": 131, - "column": 19 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 6545, - "end": 6546, - "loc": { - "start": { - "line": 131, - "column": 20 - }, - "end": { - "line": 131, - "column": 21 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 6547, - "end": 6548, - "loc": { - "start": { - "line": 131, - "column": 22 - }, - "end": { - "line": 131, - "column": 23 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6548, - "end": 6549, - "loc": { - "start": { - "line": 131, - "column": 23 - }, - "end": { - "line": 131, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pCameraY", - "start": 6550, - "end": 6558, - "loc": { - "start": { - "line": 131, - "column": 25 - }, - "end": { - "line": 131, - "column": 33 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 6559, - "end": 6560, - "loc": { - "start": { - "line": 131, - "column": 34 - }, - "end": { - "line": 131, - "column": 35 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 6561, - "end": 6562, - "loc": { - "start": { - "line": 131, - "column": 36 - }, - "end": { - "line": 131, - "column": 37 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6562, - "end": 6563, - "loc": { - "start": { - "line": 131, - "column": 37 - }, - "end": { - "line": 131, - "column": 38 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6564, - "end": 6565, - "loc": { - "start": { - "line": 131, - "column": 39 - }, - "end": { - "line": 131, - "column": 40 - } - } - }, - { - "type": { - "label": "for", - "keyword": "for", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": true, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "for", - "start": 6575, - "end": 6578, - "loc": { - "start": { - "line": 132, - "column": 8 - }, - "end": { - "line": 132, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6579, - "end": 6580, - "loc": { - "start": { - "line": 132, - "column": 12 - }, - "end": { - "line": 132, - "column": 13 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 6580, - "end": 6585, - "loc": { - "start": { - "line": 132, - "column": 13 - }, - "end": { - "line": 132, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "instance", - "start": 6586, - "end": 6594, - "loc": { - "start": { - "line": 132, - "column": 19 - }, - "end": { - "line": 132, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "of", - "start": 6595, - "end": 6597, - "loc": { - "start": { - "line": 132, - "column": 28 - }, - "end": { - "line": 132, - "column": 30 - } - } - }, - { - "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": 6598, - "end": 6602, - "loc": { - "start": { - "line": 132, - "column": 31 - }, - "end": { - "line": 132, - "column": 35 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6602, - "end": 6603, - "loc": { - "start": { - "line": 132, - "column": 35 - }, - "end": { - "line": 132, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "instances", - "start": 6603, - "end": 6612, - "loc": { - "start": { - "line": 132, - "column": 36 - }, - "end": { - "line": 132, - "column": 45 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6612, - "end": 6613, - "loc": { - "start": { - "line": 132, - "column": 45 - }, - "end": { - "line": 132, - "column": 46 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6614, - "end": 6615, - "loc": { - "start": { - "line": 132, - "column": 47 - }, - "end": { - "line": 132, - "column": 48 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 6629, - "end": 6634, - "loc": { - "start": { - "line": 133, - "column": 12 - }, - "end": { - "line": 133, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parallaxInfo", - "start": 6635, - "end": 6647, - "loc": { - "start": { - "line": 133, - "column": 18 - }, - "end": { - "line": 133, - "column": 30 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 6648, - "end": 6649, - "loc": { - "start": { - "line": 133, - "column": 31 - }, - "end": { - "line": 133, - "column": 32 - } - } - }, - { - "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": 6650, - "end": 6654, - "loc": { - "start": { - "line": 133, - "column": 33 - }, - "end": { - "line": 133, - "column": 37 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6654, - "end": 6655, - "loc": { - "start": { - "line": 133, - "column": 37 - }, - "end": { - "line": 133, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "instanceWeakMap", - "start": 6655, - "end": 6670, - "loc": { - "start": { - "line": 133, - "column": 38 - }, - "end": { - "line": 133, - "column": 53 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6670, - "end": 6671, - "loc": { - "start": { - "line": 133, - "column": 53 - }, - "end": { - "line": 133, - "column": 54 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "get", - "start": 6671, - "end": 6674, - "loc": { - "start": { - "line": 133, - "column": 54 - }, - "end": { - "line": 133, - "column": 57 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6674, - "end": 6675, - "loc": { - "start": { - "line": 133, - "column": 57 - }, - "end": { - "line": 133, - "column": 58 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "instance", - "start": 6675, - "end": 6683, - "loc": { - "start": { - "line": 133, - "column": 58 - }, - "end": { - "line": 133, - "column": 66 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6683, - "end": 6684, - "loc": { - "start": { - "line": 133, - "column": 66 - }, - "end": { - "line": 133, - "column": 67 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6684, - "end": 6685, - "loc": { - "start": { - "line": 133, - "column": 67 - }, - "end": { - "line": 133, - "column": 68 - } - } - }, - { - "type": "CommentLine", - "value": " How far we moved from the start point", - "start": 6699, - "end": 6739, - "loc": { - "start": { - "line": 134, - "column": 12 - }, - "end": { - "line": 134, - "column": 52 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 6753, - "end": 6758, - "loc": { - "start": { - "line": 135, - "column": 12 - }, - "end": { - "line": 135, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "distX", - "start": 6759, - "end": 6764, - "loc": { - "start": { - "line": 135, - "column": 18 - }, - "end": { - "line": 135, - "column": 23 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 6765, - "end": 6766, - "loc": { - "start": { - "line": 135, - "column": 24 - }, - "end": { - "line": 135, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pCameraX", - "start": 6767, - "end": 6775, - "loc": { - "start": { - "line": 135, - "column": 26 - }, - "end": { - "line": 135, - "column": 34 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 6776, - "end": 6777, - "loc": { - "start": { - "line": 135, - "column": 35 - }, - "end": { - "line": 135, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parallaxInfo", - "start": 6778, - "end": 6790, - "loc": { - "start": { - "line": 135, - "column": 37 - }, - "end": { - "line": 135, - "column": 49 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6790, - "end": 6791, - "loc": { - "start": { - "line": 135, - "column": 49 - }, - "end": { - "line": 135, - "column": 50 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 6791, - "end": 6792, - "loc": { - "start": { - "line": 135, - "column": 50 - }, - "end": { - "line": 135, - "column": 51 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6792, - "end": 6793, - "loc": { - "start": { - "line": 135, - "column": 51 - }, - "end": { - "line": 135, - "column": 52 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 6807, - "end": 6812, - "loc": { - "start": { - "line": 136, - "column": 12 - }, - "end": { - "line": 136, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "distY", - "start": 6813, - "end": 6818, - "loc": { - "start": { - "line": 136, - "column": 18 - }, - "end": { - "line": 136, - "column": 23 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 6819, - "end": 6820, - "loc": { - "start": { - "line": 136, - "column": 24 - }, - "end": { - "line": 136, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pCameraY", - "start": 6821, - "end": 6829, - "loc": { - "start": { - "line": 136, - "column": 26 - }, - "end": { - "line": 136, - "column": 34 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 6830, - "end": 6831, - "loc": { - "start": { - "line": 136, - "column": 35 - }, - "end": { - "line": 136, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parallaxInfo", - "start": 6832, - "end": 6844, - "loc": { - "start": { - "line": 136, - "column": 37 - }, - "end": { - "line": 136, - "column": 49 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6844, - "end": 6845, - "loc": { - "start": { - "line": 136, - "column": 49 - }, - "end": { - "line": 136, - "column": 50 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 6845, - "end": 6846, - "loc": { - "start": { - "line": 136, - "column": 50 - }, - "end": { - "line": 136, - "column": 51 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6846, - "end": 6847, - "loc": { - "start": { - "line": 136, - "column": 51 - }, - "end": { - "line": 136, - "column": 52 - } - } - }, - { - "type": "CommentLine", - "value": " Position to set the instance to", - "start": 6861, - "end": 6895, - "loc": { - "start": { - "line": 137, - "column": 12 - }, - "end": { - "line": 137, - "column": 46 - } - } - }, - { - "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "let", - "start": 6909, - "end": 6912, - "loc": { - "start": { - "line": 138, - "column": 12 - }, - "end": { - "line": 138, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 6913, - "end": 6914, - "loc": { - "start": { - "line": 138, - "column": 16 - }, - "end": { - "line": 138, - "column": 17 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 6915, - "end": 6916, - "loc": { - "start": { - "line": 138, - "column": 18 - }, - "end": { - "line": 138, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parallaxInfo", - "start": 6917, - "end": 6929, - "loc": { - "start": { - "line": 138, - "column": 20 - }, - "end": { - "line": 138, - "column": 32 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6929, - "end": 6930, - "loc": { - "start": { - "line": 138, - "column": 32 - }, - "end": { - "line": 138, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "_initialPos", - "start": 6930, - "end": 6941, - "loc": { - "start": { - "line": 138, - "column": 33 - }, - "end": { - "line": 138, - "column": 44 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6941, - "end": 6942, - "loc": { - "start": { - "line": 138, - "column": 44 - }, - "end": { - "line": 138, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 6942, - "end": 6943, - "loc": { - "start": { - "line": 138, - "column": 45 - }, - "end": { - "line": 138, - "column": 46 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 6944, - "end": 6945, - "loc": { - "start": { - "line": 138, - "column": 47 - }, - "end": { - "line": 138, - "column": 48 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "distX", - "start": 6946, - "end": 6951, - "loc": { - "start": { - "line": 138, - "column": 49 - }, - "end": { - "line": 138, - "column": 54 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6951, - "end": 6952, - "loc": { - "start": { - "line": 138, - "column": 54 - }, - "end": { - "line": 138, - "column": 55 - } - } - }, - { - "type": { - "label": "let", - "keyword": "let", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "let", - "start": 6966, - "end": 6969, - "loc": { - "start": { - "line": 139, - "column": 12 - }, - "end": { - "line": 139, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 6970, - "end": 6971, - "loc": { - "start": { - "line": 139, - "column": 16 - }, - "end": { - "line": 139, - "column": 17 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 6972, - "end": 6973, - "loc": { - "start": { - "line": 139, - "column": 18 - }, - "end": { - "line": 139, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parallaxInfo", - "start": 6974, - "end": 6986, - "loc": { - "start": { - "line": 139, - "column": 20 - }, - "end": { - "line": 139, - "column": 32 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6986, - "end": 6987, - "loc": { - "start": { - "line": 139, - "column": 32 - }, - "end": { - "line": 139, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "_initialPos", - "start": 6987, - "end": 6998, - "loc": { - "start": { - "line": 139, - "column": 33 - }, - "end": { - "line": 139, - "column": 44 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6998, - "end": 6999, - "loc": { - "start": { - "line": 139, - "column": 44 - }, - "end": { - "line": 139, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 6999, - "end": 7000, - "loc": { - "start": { - "line": 139, - "column": 45 - }, - "end": { - "line": 139, - "column": 46 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 7001, - "end": 7002, - "loc": { - "start": { - "line": 139, - "column": 47 - }, - "end": { - "line": 139, - "column": 48 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "distY", - "start": 7003, - "end": 7008, - "loc": { - "start": { - "line": 139, - "column": 49 - }, - "end": { - "line": 139, - "column": 54 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7008, - "end": 7009, - "loc": { - "start": { - "line": 139, - "column": 54 - }, - "end": { - "line": 139, - "column": 55 - } - } - }, - { - "type": "CommentLine", - "value": " Move the instance with the camera if the parallax is set to 1", - "start": 7023, - "end": 7087, - "loc": { - "start": { - "line": 140, - "column": 12 - }, - "end": { - "line": 140, - "column": 76 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 7101, - "end": 7103, - "loc": { - "start": { - "line": 141, - "column": 12 - }, - "end": { - "line": 141, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7104, - "end": 7105, - "loc": { - "start": { - "line": 141, - "column": 15 - }, - "end": { - "line": 141, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parallaxInfo", - "start": 7105, - "end": 7117, - "loc": { - "start": { - "line": 141, - "column": 16 - }, - "end": { - "line": 141, - "column": 28 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7117, - "end": 7118, - "loc": { - "start": { - "line": 141, - "column": 28 - }, - "end": { - "line": 141, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 7118, - "end": 7119, - "loc": { - "start": { - "line": 141, - "column": 29 - }, - "end": { - "line": 141, - "column": 30 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 7120, - "end": 7123, - "loc": { - "start": { - "line": 141, - "column": 31 - }, - "end": { - "line": 141, - "column": 34 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 7124, - "end": 7125, - "loc": { - "start": { - "line": 141, - "column": 35 - }, - "end": { - "line": 141, - "column": 36 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7125, - "end": 7126, - "loc": { - "start": { - "line": 141, - "column": 36 - }, - "end": { - "line": 141, - "column": 37 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7127, - "end": 7128, - "loc": { - "start": { - "line": 141, - "column": 38 - }, - "end": { - "line": 141, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 7146, - "end": 7147, - "loc": { - "start": { - "line": 142, - "column": 16 - }, - "end": { - "line": 142, - "column": 17 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 7148, - "end": 7149, - "loc": { - "start": { - "line": 142, - "column": 18 - }, - "end": { - "line": 142, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pCameraX", - "start": 7150, - "end": 7158, - "loc": { - "start": { - "line": 142, - "column": 20 - }, - "end": { - "line": 142, - "column": 28 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 7159, - "end": 7160, - "loc": { - "start": { - "line": 142, - "column": 29 - }, - "end": { - "line": 142, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "instance", - "start": 7161, - "end": 7169, - "loc": { - "start": { - "line": 142, - "column": 31 - }, - "end": { - "line": 142, - "column": 39 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7169, - "end": 7170, - "loc": { - "start": { - "line": 142, - "column": 39 - }, - "end": { - "line": 142, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "icon", - "start": 7170, - "end": 7174, - "loc": { - "start": { - "line": 142, - "column": 40 - }, - "end": { - "line": 142, - "column": 44 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7174, - "end": 7175, - "loc": { - "start": { - "line": 142, - "column": 44 - }, - "end": { - "line": 142, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "width", - "start": 7175, - "end": 7180, - "loc": { - "start": { - "line": 142, - "column": 45 - }, - "end": { - "line": 142, - "column": 50 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 7181, - "end": 7182, - "loc": { - "start": { - "line": 142, - "column": 51 - }, - "end": { - "line": 142, - "column": 52 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 7183, - "end": 7184, - "loc": { - "start": { - "line": 142, - "column": 53 - }, - "end": { - "line": 142, - "column": 54 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7184, - "end": 7185, - "loc": { - "start": { - "line": 142, - "column": 54 - }, - "end": { - "line": 142, - "column": 55 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7199, - "end": 7200, - "loc": { - "start": { - "line": 143, - "column": 12 - }, - "end": { - "line": 143, - "column": 13 - } - } - }, - { - "type": "CommentLine", - "value": " Move the instance with the camera if the parallax is set to 1", - "start": 7214, - "end": 7278, - "loc": { - "start": { - "line": 144, - "column": 12 - }, - "end": { - "line": 144, - "column": 76 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 7292, - "end": 7294, - "loc": { - "start": { - "line": 145, - "column": 12 - }, - "end": { - "line": 145, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7295, - "end": 7296, - "loc": { - "start": { - "line": 145, - "column": 15 - }, - "end": { - "line": 145, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parallaxInfo", - "start": 7296, - "end": 7308, - "loc": { - "start": { - "line": 145, - "column": 16 - }, - "end": { - "line": 145, - "column": 28 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7308, - "end": 7309, - "loc": { - "start": { - "line": 145, - "column": 28 - }, - "end": { - "line": 145, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 7309, - "end": 7310, - "loc": { - "start": { - "line": 145, - "column": 29 - }, - "end": { - "line": 145, - "column": 30 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 7311, - "end": 7314, - "loc": { - "start": { - "line": 145, - "column": 31 - }, - "end": { - "line": 145, - "column": 34 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 7315, - "end": 7316, - "loc": { - "start": { - "line": 145, - "column": 35 - }, - "end": { - "line": 145, - "column": 36 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7316, - "end": 7317, - "loc": { - "start": { - "line": 145, - "column": 36 - }, - "end": { - "line": 145, - "column": 37 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7318, - "end": 7319, - "loc": { - "start": { - "line": 145, - "column": 38 - }, - "end": { - "line": 145, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 7337, - "end": 7338, - "loc": { - "start": { - "line": 146, - "column": 16 - }, - "end": { - "line": 146, - "column": 17 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 7339, - "end": 7340, - "loc": { - "start": { - "line": 146, - "column": 18 - }, - "end": { - "line": 146, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pCameraY", - "start": 7341, - "end": 7349, - "loc": { - "start": { - "line": 146, - "column": 20 - }, - "end": { - "line": 146, - "column": 28 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 7350, - "end": 7351, - "loc": { - "start": { - "line": 146, - "column": 29 - }, - "end": { - "line": 146, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "instance", - "start": 7352, - "end": 7360, - "loc": { - "start": { - "line": 146, - "column": 31 - }, - "end": { - "line": 146, - "column": 39 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7360, - "end": 7361, - "loc": { - "start": { - "line": 146, - "column": 39 - }, - "end": { - "line": 146, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "icon", - "start": 7361, - "end": 7365, - "loc": { - "start": { - "line": 146, - "column": 40 - }, - "end": { - "line": 146, - "column": 44 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7365, - "end": 7366, - "loc": { - "start": { - "line": 146, - "column": 44 - }, - "end": { - "line": 146, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "height", - "start": 7366, - "end": 7372, - "loc": { - "start": { - "line": 146, - "column": 45 - }, - "end": { - "line": 146, - "column": 51 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 7373, - "end": 7374, - "loc": { - "start": { - "line": 146, - "column": 52 - }, - "end": { - "line": 146, - "column": 53 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 7375, - "end": 7376, - "loc": { - "start": { - "line": 146, - "column": 54 - }, - "end": { - "line": 146, - "column": 55 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7376, - "end": 7377, - "loc": { - "start": { - "line": 146, - "column": 55 - }, - "end": { - "line": 146, - "column": 56 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7391, - "end": 7392, - "loc": { - "start": { - "line": 147, - "column": 12 - }, - "end": { - "line": 147, - "column": 13 - } - } - }, - { - "type": "CommentLine", - "value": " Set the position", - "start": 7408, - "end": 7427, - "loc": { - "start": { - "line": 149, - "column": 12 - }, - "end": { - "line": 149, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "instance", - "start": 7441, - "end": 7449, - "loc": { - "start": { - "line": 150, - "column": 12 - }, - "end": { - "line": 150, - "column": 20 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7449, - "end": 7450, - "loc": { - "start": { - "line": 150, - "column": 20 - }, - "end": { - "line": 150, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 7450, - "end": 7451, - "loc": { - "start": { - "line": 150, - "column": 21 - }, - "end": { - "line": 150, - "column": 22 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 7452, - "end": 7453, - "loc": { - "start": { - "line": 150, - "column": 23 - }, - "end": { - "line": 150, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 7454, - "end": 7455, - "loc": { - "start": { - "line": 150, - "column": 25 - }, - "end": { - "line": 150, - "column": 26 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7455, - "end": 7456, - "loc": { - "start": { - "line": 150, - "column": 26 - }, - "end": { - "line": 150, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "instance", - "start": 7470, - "end": 7478, - "loc": { - "start": { - "line": 151, - "column": 12 - }, - "end": { - "line": 151, - "column": 20 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7478, - "end": 7479, - "loc": { - "start": { - "line": 151, - "column": 20 - }, - "end": { - "line": 151, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 7479, - "end": 7480, - "loc": { - "start": { - "line": 151, - "column": 21 - }, - "end": { - "line": 151, - "column": 22 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 7481, - "end": 7482, - "loc": { - "start": { - "line": 151, - "column": 23 - }, - "end": { - "line": 151, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 7483, - "end": 7484, - "loc": { - "start": { - "line": 151, - "column": 25 - }, - "end": { - "line": 151, - "column": 26 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7484, - "end": 7485, - "loc": { - "start": { - "line": 151, - "column": 26 - }, - "end": { - "line": 151, - "column": 27 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 7501, - "end": 7503, - "loc": { - "start": { - "line": 153, - "column": 12 - }, - "end": { - "line": 153, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7504, - "end": 7505, - "loc": { - "start": { - "line": 153, - "column": 15 - }, - "end": { - "line": 153, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parallaxInfo", - "start": 7505, - "end": 7517, - "loc": { - "start": { - "line": 153, - "column": 16 - }, - "end": { - "line": 153, - "column": 28 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7517, - "end": 7518, - "loc": { - "start": { - "line": 153, - "column": 28 - }, - "end": { - "line": 153, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "loop", - "start": 7518, - "end": 7522, - "loc": { - "start": { - "line": 153, - "column": 29 - }, - "end": { - "line": 153, - "column": 33 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7522, - "end": 7523, - "loc": { - "start": { - "line": 153, - "column": 33 - }, - "end": { - "line": 153, - "column": 34 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7524, - "end": 7525, - "loc": { - "start": { - "line": 153, - "column": 35 - }, - "end": { - "line": 153, - "column": 36 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 7543, - "end": 7545, - "loc": { - "start": { - "line": 154, - "column": 16 - }, - "end": { - "line": 154, - "column": 18 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7546, - "end": 7547, - "loc": { - "start": { - "line": 154, - "column": 19 - }, - "end": { - "line": 154, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parallaxInfo", - "start": 7547, - "end": 7559, - "loc": { - "start": { - "line": 154, - "column": 20 - }, - "end": { - "line": 154, - "column": 32 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7559, - "end": 7560, - "loc": { - "start": { - "line": 154, - "column": 32 - }, - "end": { - "line": 154, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 7560, - "end": 7561, - "loc": { - "start": { - "line": 154, - "column": 33 - }, - "end": { - "line": 154, - "column": 34 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "!==", - "start": 7562, - "end": 7565, - "loc": { - "start": { - "line": 154, - "column": 35 - }, - "end": { - "line": 154, - "column": 38 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 7566, - "end": 7567, - "loc": { - "start": { - "line": 154, - "column": 39 - }, - "end": { - "line": 154, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7567, - "end": 7568, - "loc": { - "start": { - "line": 154, - "column": 40 - }, - "end": { - "line": 154, - "column": 41 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7569, - "end": 7570, - "loc": { - "start": { - "line": 154, - "column": 42 - }, - "end": { - "line": 154, - "column": 43 - } - } - }, - { - "type": "CommentLine", - "value": " How far we moved relative to the camera", - "start": 7592, - "end": 7634, - "loc": { - "start": { - "line": 155, - "column": 20 - }, - "end": { - "line": 155, - "column": 62 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 7656, - "end": 7661, - "loc": { - "start": { - "line": 156, - "column": 20 - }, - "end": { - "line": 156, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "relativeX", - "start": 7662, - "end": 7671, - "loc": { - "start": { - "line": 156, - "column": 26 - }, - "end": { - "line": 156, - "column": 35 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 7672, - "end": 7673, - "loc": { - "start": { - "line": 156, - "column": 36 - }, - "end": { - "line": 156, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pCameraX", - "start": 7674, - "end": 7682, - "loc": { - "start": { - "line": 156, - "column": 38 - }, - "end": { - "line": 156, - "column": 46 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 7683, - "end": 7684, - "loc": { - "start": { - "line": 156, - "column": 47 - }, - "end": { - "line": 156, - "column": 48 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7685, - "end": 7686, - "loc": { - "start": { - "line": 156, - "column": 49 - }, - "end": { - "line": 156, - "column": 50 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 7686, - "end": 7687, - "loc": { - "start": { - "line": 156, - "column": 50 - }, - "end": { - "line": 156, - "column": 51 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 7688, - "end": 7689, - "loc": { - "start": { - "line": 156, - "column": 52 - }, - "end": { - "line": 156, - "column": 53 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parallaxInfo", - "start": 7690, - "end": 7702, - "loc": { - "start": { - "line": 156, - "column": 54 - }, - "end": { - "line": 156, - "column": 66 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7702, - "end": 7703, - "loc": { - "start": { - "line": 156, - "column": 66 - }, - "end": { - "line": 156, - "column": 67 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 7703, - "end": 7704, - "loc": { - "start": { - "line": 156, - "column": 67 - }, - "end": { - "line": 156, - "column": 68 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7704, - "end": 7705, - "loc": { - "start": { - "line": 156, - "column": 68 - }, - "end": { - "line": 156, - "column": 69 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7705, - "end": 7706, - "loc": { - "start": { - "line": 156, - "column": 69 - }, - "end": { - "line": 156, - "column": 70 - } - } - }, - { - "type": "CommentLine", - "value": " The start pos + total width", - "start": 7728, - "end": 7758, - "loc": { - "start": { - "line": 157, - "column": 20 - }, - "end": { - "line": 157, - "column": 50 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 7780, - "end": 7785, - "loc": { - "start": { - "line": 158, - "column": 20 - }, - "end": { - "line": 158, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "endX", - "start": 7786, - "end": 7790, - "loc": { - "start": { - "line": 158, - "column": 26 - }, - "end": { - "line": 158, - "column": 30 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 7791, - "end": 7792, - "loc": { - "start": { - "line": 158, - "column": 31 - }, - "end": { - "line": 158, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parallaxInfo", - "start": 7793, - "end": 7805, - "loc": { - "start": { - "line": 158, - "column": 33 - }, - "end": { - "line": 158, - "column": 45 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7805, - "end": 7806, - "loc": { - "start": { - "line": 158, - "column": 45 - }, - "end": { - "line": 158, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "_initialPos", - "start": 7806, - "end": 7817, - "loc": { - "start": { - "line": 158, - "column": 46 - }, - "end": { - "line": 158, - "column": 57 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7817, - "end": 7818, - "loc": { - "start": { - "line": 158, - "column": 57 - }, - "end": { - "line": 158, - "column": 58 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 7818, - "end": 7819, - "loc": { - "start": { - "line": 158, - "column": 58 - }, - "end": { - "line": 158, - "column": 59 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 7820, - "end": 7821, - "loc": { - "start": { - "line": 158, - "column": 60 - }, - "end": { - "line": 158, - "column": 61 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "instance", - "start": 7822, - "end": 7830, - "loc": { - "start": { - "line": 158, - "column": 62 - }, - "end": { - "line": 158, - "column": 70 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7830, - "end": 7831, - "loc": { - "start": { - "line": 158, - "column": 70 - }, - "end": { - "line": 158, - "column": 71 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "icon", - "start": 7831, - "end": 7835, - "loc": { - "start": { - "line": 158, - "column": 71 - }, - "end": { - "line": 158, - "column": 75 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7835, - "end": 7836, - "loc": { - "start": { - "line": 158, - "column": 75 - }, - "end": { - "line": 158, - "column": 76 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "width", - "start": 7836, - "end": 7841, - "loc": { - "start": { - "line": 158, - "column": 76 - }, - "end": { - "line": 158, - "column": 81 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7841, - "end": 7842, - "loc": { - "start": { - "line": 158, - "column": 81 - }, - "end": { - "line": 158, - "column": 82 - } - } - }, - { - "type": "CommentLine", - "value": " The start pos - total width / 2", - "start": 7864, - "end": 7898, - "loc": { - "start": { - "line": 159, - "column": 20 - }, - "end": { - "line": 159, - "column": 54 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 7920, - "end": 7925, - "loc": { - "start": { - "line": 160, - "column": 20 - }, - "end": { - "line": 160, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "negativeEndX", - "start": 7926, - "end": 7938, - "loc": { - "start": { - "line": 160, - "column": 26 - }, - "end": { - "line": 160, - "column": 38 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 7939, - "end": 7940, - "loc": { - "start": { - "line": 160, - "column": 39 - }, - "end": { - "line": 160, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parallaxInfo", - "start": 7941, - "end": 7953, - "loc": { - "start": { - "line": 160, - "column": 41 - }, - "end": { - "line": 160, - "column": 53 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7953, - "end": 7954, - "loc": { - "start": { - "line": 160, - "column": 53 - }, - "end": { - "line": 160, - "column": 54 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "_initialPos", - "start": 7954, - "end": 7965, - "loc": { - "start": { - "line": 160, - "column": 54 - }, - "end": { - "line": 160, - "column": 65 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7965, - "end": 7966, - "loc": { - "start": { - "line": 160, - "column": 65 - }, - "end": { - "line": 160, - "column": 66 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 7966, - "end": 7967, - "loc": { - "start": { - "line": 160, - "column": 66 - }, - "end": { - "line": 160, - "column": 67 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 7968, - "end": 7969, - "loc": { - "start": { - "line": 160, - "column": 68 - }, - "end": { - "line": 160, - "column": 69 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "instance", - "start": 7970, - "end": 7978, - "loc": { - "start": { - "line": 160, - "column": 70 - }, - "end": { - "line": 160, - "column": 78 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7978, - "end": 7979, - "loc": { - "start": { - "line": 160, - "column": 78 - }, - "end": { - "line": 160, - "column": 79 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "icon", - "start": 7979, - "end": 7983, - "loc": { - "start": { - "line": 160, - "column": 79 - }, - "end": { - "line": 160, - "column": 83 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7983, - "end": 7984, - "loc": { - "start": { - "line": 160, - "column": 83 - }, - "end": { - "line": 160, - "column": 84 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "width", - "start": 7984, - "end": 7989, - "loc": { - "start": { - "line": 160, - "column": 84 - }, - "end": { - "line": 160, - "column": 89 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 7990, - "end": 7991, - "loc": { - "start": { - "line": 160, - "column": 90 - }, - "end": { - "line": 160, - "column": 91 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 7992, - "end": 7993, - "loc": { - "start": { - "line": 160, - "column": 92 - }, - "end": { - "line": 160, - "column": 93 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7993, - "end": 7994, - "loc": { - "start": { - "line": 160, - "column": 93 - }, - "end": { - "line": 160, - "column": 94 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 8016, - "end": 8018, - "loc": { - "start": { - "line": 161, - "column": 20 - }, - "end": { - "line": 161, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8019, - "end": 8020, - "loc": { - "start": { - "line": 161, - "column": 23 - }, - "end": { - "line": 161, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "relativeX", - "start": 8020, - "end": 8029, - "loc": { - "start": { - "line": 161, - "column": 24 - }, - "end": { - "line": 161, - "column": 33 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": ">", - "start": 8030, - "end": 8031, - "loc": { - "start": { - "line": 161, - "column": 34 - }, - "end": { - "line": 161, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "endX", - "start": 8032, - "end": 8036, - "loc": { - "start": { - "line": 161, - "column": 36 - }, - "end": { - "line": 161, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8036, - "end": 8037, - "loc": { - "start": { - "line": 161, - "column": 40 - }, - "end": { - "line": 161, - "column": 41 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8038, - "end": 8039, - "loc": { - "start": { - "line": 161, - "column": 42 - }, - "end": { - "line": 161, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parallaxInfo", - "start": 8065, - "end": 8077, - "loc": { - "start": { - "line": 162, - "column": 24 - }, - "end": { - "line": 162, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8077, - "end": 8078, - "loc": { - "start": { - "line": 162, - "column": 36 - }, - "end": { - "line": 162, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "_initialPos", - "start": 8078, - "end": 8089, - "loc": { - "start": { - "line": 162, - "column": 37 - }, - "end": { - "line": 162, - "column": 48 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8089, - "end": 8090, - "loc": { - "start": { - "line": 162, - "column": 48 - }, - "end": { - "line": 162, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 8090, - "end": 8091, - "loc": { - "start": { - "line": 162, - "column": 49 - }, - "end": { - "line": 162, - "column": 50 - } - } - }, - { - "type": { - "label": "_=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "+=", - "start": 8092, - "end": 8094, - "loc": { - "start": { - "line": 162, - "column": 51 - }, - "end": { - "line": 162, - "column": 53 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "instance", - "start": 8095, - "end": 8103, - "loc": { - "start": { - "line": 162, - "column": 54 - }, - "end": { - "line": 162, - "column": 62 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8103, - "end": 8104, - "loc": { - "start": { - "line": 162, - "column": 62 - }, - "end": { - "line": 162, - "column": 63 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "icon", - "start": 8104, - "end": 8108, - "loc": { - "start": { - "line": 162, - "column": 63 - }, - "end": { - "line": 162, - "column": 67 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8108, - "end": 8109, - "loc": { - "start": { - "line": 162, - "column": 67 - }, - "end": { - "line": 162, - "column": 68 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "width", - "start": 8109, - "end": 8114, - "loc": { - "start": { - "line": 162, - "column": 68 - }, - "end": { - "line": 162, - "column": 73 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8114, - "end": 8115, - "loc": { - "start": { - "line": 162, - "column": 73 - }, - "end": { - "line": 162, - "column": 74 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8137, - "end": 8138, - "loc": { - "start": { - "line": 163, - "column": 20 - }, - "end": { - "line": 163, - "column": 21 - } - } - }, - { - "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": 8139, - "end": 8143, - "loc": { - "start": { - "line": 163, - "column": 22 - }, - "end": { - "line": 163, - "column": 26 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 8144, - "end": 8146, - "loc": { - "start": { - "line": 163, - "column": 27 - }, - "end": { - "line": 163, - "column": 29 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8147, - "end": 8148, - "loc": { - "start": { - "line": 163, - "column": 30 - }, - "end": { - "line": 163, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "relativeX", - "start": 8148, - "end": 8157, - "loc": { - "start": { - "line": 163, - "column": 31 - }, - "end": { - "line": 163, - "column": 40 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": "<", - "start": 8158, - "end": 8159, - "loc": { - "start": { - "line": 163, - "column": 41 - }, - "end": { - "line": 163, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "negativeEndX", - "start": 8160, - "end": 8172, - "loc": { - "start": { - "line": 163, - "column": 43 - }, - "end": { - "line": 163, - "column": 55 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8172, - "end": 8173, - "loc": { - "start": { - "line": 163, - "column": 55 - }, - "end": { - "line": 163, - "column": 56 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8174, - "end": 8175, - "loc": { - "start": { - "line": 163, - "column": 57 - }, - "end": { - "line": 163, - "column": 58 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parallaxInfo", - "start": 8201, - "end": 8213, - "loc": { - "start": { - "line": 164, - "column": 24 - }, - "end": { - "line": 164, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8213, - "end": 8214, - "loc": { - "start": { - "line": 164, - "column": 36 - }, - "end": { - "line": 164, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "_initialPos", - "start": 8214, - "end": 8225, - "loc": { - "start": { - "line": 164, - "column": 37 - }, - "end": { - "line": 164, - "column": 48 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8225, - "end": 8226, - "loc": { - "start": { - "line": 164, - "column": 48 - }, - "end": { - "line": 164, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 8226, - "end": 8227, - "loc": { - "start": { - "line": 164, - "column": 49 - }, - "end": { - "line": 164, - "column": 50 - } - } - }, - { - "type": { - "label": "_=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "-=", - "start": 8228, - "end": 8230, - "loc": { - "start": { - "line": 164, - "column": 51 - }, - "end": { - "line": 164, - "column": 53 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "instance", - "start": 8231, - "end": 8239, - "loc": { - "start": { - "line": 164, - "column": 54 - }, - "end": { - "line": 164, - "column": 62 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8239, - "end": 8240, - "loc": { - "start": { - "line": 164, - "column": 62 - }, - "end": { - "line": 164, - "column": 63 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "icon", - "start": 8240, - "end": 8244, - "loc": { - "start": { - "line": 164, - "column": 63 - }, - "end": { - "line": 164, - "column": 67 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8244, - "end": 8245, - "loc": { - "start": { - "line": 164, - "column": 67 - }, - "end": { - "line": 164, - "column": 68 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "width", - "start": 8245, - "end": 8250, - "loc": { - "start": { - "line": 164, - "column": 68 - }, - "end": { - "line": 164, - "column": 73 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8250, - "end": 8251, - "loc": { - "start": { - "line": 164, - "column": 73 - }, - "end": { - "line": 164, - "column": 74 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8273, - "end": 8274, - "loc": { - "start": { - "line": 165, - "column": 20 - }, - "end": { - "line": 165, - "column": 21 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8292, - "end": 8293, - "loc": { - "start": { - "line": 166, - "column": 16 - }, - "end": { - "line": 166, - "column": 17 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8307, - "end": 8308, - "loc": { - "start": { - "line": 167, - "column": 12 - }, - "end": { - "line": 167, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8318, - "end": 8319, - "loc": { - "start": { - "line": 168, - "column": 8 - }, - "end": { - "line": 168, - "column": 9 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8333, - "end": 8334, - "loc": { - "start": { - "line": 169, - "column": 4 - }, - "end": { - "line": 169, - "column": 5 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8336, - "end": 8337, - "loc": { - "start": { - "line": 170, - "column": 0 - }, - "end": { - "line": 170, - "column": 1 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 8341, - "end": 8346, - "loc": { - "start": { - "line": 172, - "column": 0 - }, - "end": { - "line": 172, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Parallax", - "start": 8347, - "end": 8355, - "loc": { - "start": { - "line": 172, - "column": 6 - }, - "end": { - "line": 172, - "column": 14 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 8356, - "end": 8357, - "loc": { - "start": { - "line": 172, - "column": 15 - }, - "end": { - "line": 172, - "column": 16 - } - } - }, - { - "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": 8358, - "end": 8361, - "loc": { - "start": { - "line": 172, - "column": 17 - }, - "end": { - "line": 172, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "ParallaxSingleton", - "start": 8362, - "end": 8379, - "loc": { - "start": { - "line": 172, - "column": 21 - }, - "end": { - "line": 172, - "column": 38 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8379, - "end": 8380, - "loc": { - "start": { - "line": 172, - "column": 38 - }, - "end": { - "line": 172, - "column": 39 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8380, - "end": 8381, - "loc": { - "start": { - "line": 172, - "column": 39 - }, - "end": { - "line": 172, - "column": 40 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8381, - "end": 8382, - "loc": { - "start": { - "line": 172, - "column": 40 - }, - "end": { - "line": 172, - "column": 41 - } - } - }, - { - "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": 8384, - "end": 8390, - "loc": { - "start": { - "line": 173, - "column": 0 - }, - "end": { - "line": 173, - "column": 6 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8391, - "end": 8392, - "loc": { - "start": { - "line": 173, - "column": 7 - }, - "end": { - "line": 173, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Parallax", - "start": 8393, - "end": 8401, - "loc": { - "start": { - "line": 173, - "column": 9 - }, - "end": { - "line": 173, - "column": 17 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8402, - "end": 8403, - "loc": { - "start": { - "line": 173, - "column": 18 - }, - "end": { - "line": 173, - "column": 19 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8403, - "end": 8404, - "loc": { - "start": { - "line": 173, - "column": 19 - }, - "end": { - "line": 173, - "column": 20 - } - } - }, - { - "type": { - "label": "eof", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8404, - "end": 8404, - "loc": { - "start": { - "line": 173, - "column": 20 - }, - "end": { - "line": 173, - "column": 20 - } - } - } - ] -} \ No newline at end of file diff --git a/docs/class/src/parallax.mjs~ParallaxSingleton.html b/docs/class/src/parallax.mjs~ParallaxSingleton.html deleted file mode 100644 index 81b6fa2..0000000 --- a/docs/class/src/parallax.mjs~ParallaxSingleton.html +++ /dev/null @@ -1,935 +0,0 @@ - - - - - - ParallaxSingleton | Parallax - - - - - - - -
- - - Reference - Source - - -
- - - -
-
- public - class - - - - | source -
- -
-

ParallaxSingleton

- -
- You can directly use an instance of this class. - - Parallax -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - -

Constructor Summary

- - - - - - - - - -
Public Constructor
- public - - - - - -
-

- - - - constructor() -

-
-
- - - -
-
- - -
-
-

Member Summary

- - - - - - - - - - - - - - - - - - - -
Public Members
- public - - - - - -
-

- - - - instanceWeakMap: WeakMap -

-
-
- - -

Weakmap to store info on instances used in this module.

-
-
-
- - -
- public - - - - - -
-

- - - - instances: Array -

-
-
- - -

An array of instances that use the parallax system.

-
-
-
- - -
- public - - - - - -
-

- - - - version: * -

-
-
- - -

The version of the module.

-
-
-
- - -
- - - - - - - - - - -
Private Members
- private - - - - - -
-

- - - - logger: Object -

-
-
- - -

The logger module this module uses to log errors / logs

-
-
-
- - -
-
-

Method Summary

- - - - - - - - - - - - - - - - - - - -
Public Methods
- public - - - - - -
-

- - - - add(pInstance: Object, pParallaxInfo: Object, pX: number, pY: number, pMap: string) -

-
-
- - -

Adds an instance to the parallax system.

-
-
-
- - -
- public - - - - - -
-

- - - - remove(pInstance: Object) -

-
-
- - -

Removes an instance to the parallax system.

-
-
-
- - -
- public - - - - - -
-

- - - - update(pCameraX: number, pCameraY: number) -

-
-
- - -

Updates the parallax system

-
-
-
- - -
- - - - - - - - - - -
Private Methods
- private - - - - - -
-

- - - - init(pInstance: Object, pParallaxInfo: Object, pX: number, pY: number, pMap: string) -

-
-
- - -

Initializes this instance.

-
-
-
- - -
-
- - - - - -

Public Constructors

- -
-

- public - - - - - - constructor() - - - - source - -

- - - - - - - - -
-
- - - - - - - - - - - - - - - - - -
-
-

Public Members

- -
-

- public - - - - - - instanceWeakMap: WeakMap - - - - source - -

- - - - -

Weakmap to store info on instances used in this module.

-
- - - -
-
- - - - - - - - - - - - - - - - - -
-
-

- public - - - - - - instances: Array - - - - source - -

- - - - -

An array of instances that use the parallax system.

-
- - - -
-
- - - - - - - - - - - - - - - - - -
-
-

- public - - - - - - version: * - - - - source - -

- - - - -

The version of the module.

-
- - - -
-
- - - - - - - - - - - - - - - - - -
-

Private Members

- -
-

- private - - - - - - logger: Object - - - - source - -

- - - - -

The logger module this module uses to log errors / logs

-
- - - -
-
- - - - - - - - - - - - - - - - - -
-
-

Public Methods

- -
-

- public - - - - - - add(pInstance: Object, pParallaxInfo: Object, pX: number, pY: number, pMap: string) - - - - source - -

- - - - -

Adds an instance to the parallax system. -Call this first and then add your instance to the map.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pInstanceObject

The instance to add to the parallax system.

-
pParallaxInfoObject

The parallax info that tells this module how to control this instance.

-
pXnumber
  • optional

The x position this instance will start at.

-
pYnumber
  • optional

The y position this instance will start at.

-
pMapstring
  • optional

The map this instance will start at.

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - - - - - - remove(pInstance: Object) - - - - source - -

- - - - -

Removes an instance to the parallax system.

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pInstanceObject

The instance to remove to the parallax system.

-
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - - - - - - update(pCameraX: number, pCameraY: number) - - - - source - -

- - - - -

Updates the parallax system

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pCameraXnumber

The x position of the camera.

-
pCameraYnumber

The y position of the camera.

-
-
-
- - - - - - - - - - - - - - - - - -
-

Private Methods

- -
-

- private - - - - - - init(pInstance: Object, pParallaxInfo: Object, pX: number, pY: number, pMap: string) - - - - source - -

- - - - -

Initializes this instance.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pInstanceObject

The instance to initialize.

-
pParallaxInfoObject

The parallax info that tells this module how to control this instance.

-
pXnumber

The x position this parallax will start at.

-
pYnumber

The y position this parallax will start at.

-
pMapstring

The map this instance will start at.

-
-
-
- - - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - - - diff --git a/docs/css/github.css b/docs/css/github.css deleted file mode 100644 index db9ca23..0000000 --- a/docs/css/github.css +++ /dev/null @@ -1,83 +0,0 @@ -/* github markdown */ -.github-markdown { - font-size: 16px; -} - -.github-markdown h1, -.github-markdown h2, -.github-markdown h3, -.github-markdown h4, -.github-markdown h5 { - margin-top: 1em; - margin-bottom: 16px; - font-weight: bold; - padding: 0; -} - -.github-markdown h1:nth-of-type(1) { - margin-top: 0; -} - -.github-markdown h1 { - font-size: 2em; - padding-bottom: 0.3em; -} - -.github-markdown h2 { - font-size: 1.75em; - padding-bottom: 0.3em; -} - -.github-markdown h3 { - font-size: 1.5em; -} - -.github-markdown h4 { - font-size: 1.25em; -} - -.github-markdown h5 { - font-size: 1em; -} - -.github-markdown ul, .github-markdown ol { - padding-left: 2em; -} - -.github-markdown pre > code { - font-size: 0.85em; -} - -.github-markdown table { - margin-bottom: 1em; - border-collapse: collapse; - border-spacing: 0; -} - -.github-markdown table tr { - background-color: #fff; - border-top: 1px solid #ccc; -} - -.github-markdown table th, -.github-markdown table td { - padding: 6px 13px; - border: 1px solid #ddd; -} - -.github-markdown table tr:nth-child(2n) { - background-color: #f8f8f8; -} - -.github-markdown hr { - border-right: 0; - border-bottom: 1px solid #e5e5e5; - border-left: 0; - border-top: 0; -} - -/** badge(.svg) does not have border */ -.github-markdown img:not([src*=".svg"]) { - max-width: 100%; - box-shadow: 1px 1px 1px rgba(0,0,0,0.5); -} diff --git a/docs/css/identifiers.css b/docs/css/identifiers.css deleted file mode 100644 index 52c8461..0000000 --- a/docs/css/identifiers.css +++ /dev/null @@ -1,37 +0,0 @@ -.identifiers-wrap { - display: flex; - align-items: flex-start; -} - -.identifier-dir-tree { - background: #fff; - border: solid 1px #ddd; - border-radius: 0.25em; - top: 52px; - position: -webkit-sticky; - position: sticky; - max-height: calc(100vh - 155px); - overflow-y: scroll; - min-width: 200px; - margin-left: 1em; -} - -.identifier-dir-tree-header { - padding: 0.5em; - background-color: #fafafa; - border-bottom: solid 1px #ddd; -} - -.identifier-dir-tree-content { - padding: 0 0.5em 0; -} - -.identifier-dir-tree-content > div { - padding-top: 0.25em; - padding-bottom: 0.25em; -} - -.identifier-dir-tree-content a { - color: inherit; -} - diff --git a/docs/css/manual.css b/docs/css/manual.css deleted file mode 100644 index 138a07f..0000000 --- a/docs/css/manual.css +++ /dev/null @@ -1,134 +0,0 @@ -.github-markdown .manual-toc { - padding-left: 0; -} - -.manual-index .manual-cards { - display: flex; - flex-wrap: wrap; -} - -.manual-index .manual-card-wrap { - width: 280px; - padding: 10px 20px 10px 0; - box-sizing: border-box; -} - -.manual-index .manual-card-wrap > h1 { - margin: 0; - font-size: 1em; - font-weight: 600; - padding: 0.2em 0 0.2em 0.5em; - border-radius: 0.1em 0.1em 0 0; - border: none; -} - -.manual-index .manual-card-wrap > h1 span { - color: #555; -} - -.manual-index .manual-card { - height: 200px; - overflow: hidden; - border: solid 1px rgba(230, 230, 230, 0.84); - border-radius: 0 0 0.1em 0.1em; - padding: 8px; - position: relative; -} - -.manual-index .manual-card > div { - transform: scale(0.4); - transform-origin: 0 0; - width: 250%; -} - -.manual-index .manual-card > a { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - background: rgba(210, 210, 210, 0.1); -} - -.manual-index .manual-card > a:hover { - background: none; -} - -.manual-index .manual-badge { - margin: 0; -} - -.manual-index .manual-user-index { - margin-bottom: 1em; - border-bottom: solid 1px #ddd; -} - -.manual-root .navigation { - padding-left: 4px; - margin-top: 4px; -} - -.navigation .manual-toc-root > div { - padding-left: 0.25em; - padding-right: 0.75em; -} - -.github-markdown .manual-toc-title a { - color: inherit; -} - -.manual-breadcrumb-list { - font-size: 0.8em; - margin-bottom: 1em; -} - -.manual-toc-title a:hover { - color: #039BE5; -} - -.manual-toc li { - margin: 0.75em 0; - list-style-type: none; -} - -.navigation .manual-toc [class^="indent-h"] a { - color: #666; -} - -.navigation .manual-toc .indent-h1 a { - color: #555; - font-weight: 600; - display: block; -} - -.manual-toc .indent-h1 { - display: block; - margin: 0.4em 0 0 0.25em; - padding: 0.2em 0 0.2em 0.5em; - border-radius: 0.1em; -} - -.manual-root .navigation .manual-toc li:not(.indent-h1) { - margin-top: 0.5em; -} - -.manual-toc .indent-h2 { - display: none; - margin-left: 1.5em; -} -.manual-toc .indent-h3 { - display: none; - margin-left: 2.5em; -} -.manual-toc .indent-h4 { - display: none; - margin-left: 3.5em; -} -.manual-toc .indent-h5 { - display: none; - margin-left: 4.5em; -} - -.manual-nav li { - margin: 0.75em 0; -} diff --git a/docs/css/prettify-tomorrow.css b/docs/css/prettify-tomorrow.css deleted file mode 100644 index b6f92a7..0000000 --- a/docs/css/prettify-tomorrow.css +++ /dev/null @@ -1,132 +0,0 @@ -/* Tomorrow Theme */ -/* Original theme - https://github.com/chriskempson/tomorrow-theme */ -/* Pretty printing styles. Used with prettify.js. */ -/* SPAN elements with the classes below are added by prettyprint. */ -/* plain text */ -.pln { - color: #4d4d4c; } - -@media screen { - /* string content */ - .str { - color: #718c00; } - - /* a keyword */ - .kwd { - color: #8959a8; } - - /* a comment */ - .com { - color: #8e908c; } - - /* a type name */ - .typ { - color: #4271ae; } - - /* a literal value */ - .lit { - color: #f5871f; } - - /* punctuation */ - .pun { - color: #4d4d4c; } - - /* lisp open bracket */ - .opn { - color: #4d4d4c; } - - /* lisp close bracket */ - .clo { - color: #4d4d4c; } - - /* a markup tag name */ - .tag { - color: #c82829; } - - /* a markup attribute name */ - .atn { - color: #f5871f; } - - /* a markup attribute value */ - .atv { - color: #3e999f; } - - /* a declaration */ - .dec { - color: #f5871f; } - - /* a variable name */ - .var { - color: #c82829; } - - /* a function name */ - .fun { - color: #4271ae; } } -/* Use higher contrast and text-weight for printable form. */ -@media print, projection { - .str { - color: #060; } - - .kwd { - color: #006; - font-weight: bold; } - - .com { - color: #600; - font-style: italic; } - - .typ { - color: #404; - font-weight: bold; } - - .lit { - color: #044; } - - .pun, .opn, .clo { - color: #440; } - - .tag { - color: #006; - font-weight: bold; } - - .atn { - color: #404; } - - .atv { - color: #060; } } -/* Style */ -/* -pre.prettyprint { - background: white; - font-family: Consolas, Monaco, 'Andale Mono', monospace; - font-size: 12px; - line-height: 1.5; - border: 1px solid #ccc; - padding: 10px; } -*/ - -/* Specify class=linenums on a pre to get line numbering */ -ol.linenums { - margin-top: 0; - margin-bottom: 0; } - -/* IE indents via margin-left */ -li.L0, -li.L1, -li.L2, -li.L3, -li.L4, -li.L5, -li.L6, -li.L7, -li.L8, -li.L9 { - /* */ } - -/* Alternate shading for lines */ -li.L1, -li.L3, -li.L5, -li.L7, -li.L9 { - /* */ } diff --git a/docs/css/search.css b/docs/css/search.css deleted file mode 100644 index 9940a54..0000000 --- a/docs/css/search.css +++ /dev/null @@ -1,84 +0,0 @@ -/* search box */ -.search-box { - position: absolute; - top: 10px; - right: 50px; - padding-right: 8px; - padding-bottom: 10px; - line-height: normal; - font-size: 12px; -} - -.search-box img { - width: 20px; - vertical-align: top; -} - -.search-input { - display: inline; - visibility: hidden; - width: 0; - padding: 2px; - height: 1.5em; - outline: none; - background: transparent; - border: 1px #0af; - border-style: none none solid none; - vertical-align: bottom; -} - -.search-input-edge { - display: none; - width: 1px; - height: 5px; - background-color: #0af; - vertical-align: bottom; -} - -.search-result { - position: absolute; - display: none; - height: 600px; - width: 100%; - padding: 0; - margin-top: 5px; - margin-left: 24px; - background: white; - box-shadow: 1px 1px 4px rgb(0,0,0); - white-space: nowrap; - overflow-y: scroll; -} - -.search-result-import-path { - color: #aaa; - font-size: 12px; -} - -.search-result li { - list-style: none; - padding: 2px 4px; -} - -.search-result li a { - display: block; -} - -.search-result li.selected { - background: #ddd; -} - -.search-result li.search-separator { - background: rgb(37, 138, 175); - color: white; -} - -.search-box.active .search-input { - visibility: visible; - transition: width 0.2s ease-out; - width: 300px; -} - -.search-box.active .search-input-edge { - display: inline-block; -} - diff --git a/docs/css/source.css b/docs/css/source.css deleted file mode 100644 index 3b9c92d..0000000 --- a/docs/css/source.css +++ /dev/null @@ -1,55 +0,0 @@ -table.files-summary { - width: 100%; - margin: 10px 0; - border-spacing: 0; - border: 0; - border-collapse: collapse; - text-align: right; -} - -table.files-summary tbody tr:hover { - background: #eee; -} - -table.files-summary td:first-child, -table.files-summary td:nth-of-type(2) { - text-align: left; -} - -table.files-summary[data-use-coverage="false"] td.coverage { - display: none; -} - -table.files-summary thead { - background: #fafafa; -} - -table.files-summary td { - border: solid 1px #ddd; - padding: 4px 10px; - vertical-align: top; -} - -table.files-summary td.identifiers > span { - display: block; - margin-top: 4px; -} -table.files-summary td.identifiers > span:first-child { - margin-top: 0; -} - -table.files-summary .coverage-count { - font-size: 12px; - color: #aaa; - display: inline-block; - min-width: 40px; -} - -.total-coverage-count { - position: relative; - bottom: 2px; - font-size: 12px; - color: #666; - font-weight: 500; - padding-left: 5px; -} diff --git a/docs/css/style.css b/docs/css/style.css deleted file mode 100644 index fe3b2d9..0000000 --- a/docs/css/style.css +++ /dev/null @@ -1,608 +0,0 @@ -@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,700); -@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400italic,600,700); -@import url(./manual.css); -@import url(./source.css); -@import url(./test.css); -@import url(./identifiers.css); -@import url(./github.css); -@import url(./search.css); - -* { - margin: 0; - padding: 0; - text-decoration: none; -} - -html -{ - font-family: 'Source Sans Pro', 'Roboto', sans-serif; - overflow: auto; - /*font-size: 14px;*/ - /*color: #4d4e53;*/ - /*color: rgba(0, 0, 0, .68);*/ - color: #555; - background-color: #fff; -} - -a { - /*color: #0095dd;*/ - /*color:rgb(37, 138, 175);*/ - color: #039BE5; -} - -code a:hover { - text-decoration: underline; -} - -ul, ol { - padding-left: 20px; -} - -ul li { - list-style: disc; - margin: 4px 0; -} - -ol li { - margin: 4px 0; -} - -h1 { - margin-bottom: 10px; - font-size: 34px; - font-weight: 300; - border-bottom: solid 1px #ddd; -} - -h2 { - margin-top: 24px; - margin-bottom: 10px; - font-size: 20px; - border-bottom: solid 1px #ddd; - font-weight: 300; -} - -h3 { - position: relative; - font-size: 16px; - margin-bottom: 12px; - padding: 4px; - font-weight: 300; -} - -details { - cursor: pointer; -} - -del { - text-decoration: line-through; -} - -p { - margin-bottom: 15px; - line-height: 1.5; -} - -code { - font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; -} - -pre > code { - display: block; -} - -pre.prettyprint, pre > code { - padding: 4px; - margin: 1em 0; - background-color: #f5f5f5; - border-radius: 3px; -} - -pre.prettyprint > code { - margin: 0; -} - -p > code, -li > code { - padding: 0.2em 0.5em; - margin: 0; - font-size: 85%; - background-color: rgba(0,0,0,0.04); - border-radius: 3px; -} - -.code { - font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; - font-size: 13px; -} - -.import-path pre.prettyprint, -.import-path pre.prettyprint code { - margin: 0; - padding: 0; - border: none; - background: white; -} - -.layout-container { - /*display: flex;*/ - /*flex-direction: row;*/ - /*justify-content: flex-start;*/ - /*align-items: stretch;*/ -} - -.layout-container > header { - display: flex; - height: 40px; - line-height: 40px; - font-size: 16px; - padding: 0 10px; - margin: 0; - position: fixed; - width: 100%; - z-index: 1; - background-color: #fafafa; - top: 0; - border-bottom: solid 1px #ddd; -} -.layout-container > header > a{ - margin: 0 5px; - color: #444; -} - -.layout-container > header > a.repo-url-github { - font-size: 0; - display: inline-block; - width: 20px; - height: 38px; - background: url("../image/github.png") no-repeat center; - background-size: 20px; - vertical-align: top; -} - -.navigation { - position: fixed; - top: 0; - left: 0; - box-sizing: border-box; - width: 250px; - height: 100%; - padding-top: 40px; - padding-left: 15px; - padding-bottom: 2em; - margin-top:1em; - overflow-x: scroll; - box-shadow: rgba(255, 255, 255, 1) -1px 0 0 inset; - border-right: 1px solid #ddd; -} - -.navigation ul { - padding: 0; -} - -.navigation li { - list-style: none; - margin: 4px 0; - white-space: nowrap; -} - -.navigation li a { - color: #666; -} - -.navigation .nav-dir-path { - display: block; - margin-top: 0.7em; - margin-bottom: 0.25em; - font-weight: 600; -} - -.kind-class, -.kind-interface, -.kind-function, -.kind-typedef, -.kind-variable, -.kind-external { - margin-left: 0.75em; - width: 1.2em; - height: 1.2em; - display: inline-block; - text-align: center; - border-radius: 0.2em; - margin-right: 0.2em; - font-weight: bold; - line-height: 1.2em; -} - -.kind-class { - color: #009800; - background-color: #bfe5bf; -} - -.kind-interface { - color: #fbca04; - background-color: #fef2c0; -} - -.kind-function { - color: #6b0090; - background-color: #d6bdde; -} - -.kind-variable { - color: #eb6420; - background-color: #fad8c7; -} - -.kind-typedef { - color: #db001e; - background-color: #edbec3; -} - -.kind-external { - color: #0738c3; - background-color: #bbcbea; -} - -.summary span[class^="kind-"] { - margin-left: 0; -} - -h1 .version, -h1 .url a { - font-size: 14px; - color: #aaa; -} - -.content { - margin-top: 40px; - margin-left: 250px; - padding: 10px 50px 10px 20px; -} - -.header-notice { - font-size: 14px; - color: #aaa; - margin: 0; -} - -.expression-extends .prettyprint { - margin-left: 10px; - background: white; -} - -.extends-chain { - border-bottom: 1px solid#ddd; - padding-bottom: 10px; - margin-bottom: 10px; -} - -.extends-chain span:nth-of-type(1) { - padding-left: 10px; -} - -.extends-chain > div { - margin: 5px 0; -} - -.description table { - font-size: 14px; - border-spacing: 0; - border: 0; - border-collapse: collapse; -} - -.description thead { - background: #999; - color: white; -} - -.description table td, -.description table th { - border: solid 1px #ddd; - padding: 4px; - font-weight: normal; -} - -.flat-list ul { - padding-left: 0; -} - -.flat-list li { - display: inline; - list-style: none; -} - -table.summary { - width: 100%; - margin: 10px 0; - border-spacing: 0; - border: 0; - border-collapse: collapse; -} - -table.summary thead { - background: #fafafa; -} - -table.summary td { - border: solid 1px #ddd; - padding: 4px 10px; -} - -table.summary tbody td:nth-child(1) { - text-align: right; - white-space: nowrap; - min-width: 64px; - vertical-align: top; -} - -table.summary tbody td:nth-child(2) { - width: 100%; - border-right: none; -} - -table.summary tbody td:nth-child(3) { - white-space: nowrap; - border-left: none; - vertical-align: top; -} - -table.summary td > div:nth-of-type(2) { - padding-top: 4px; - padding-left: 15px; -} - -table.summary td p { - margin-bottom: 0; -} - -.inherited-summary thead td { - padding-left: 2px; -} - -.inherited-summary thead a { - color: white; -} - -.inherited-summary .summary tbody { - display: none; -} - -.inherited-summary .summary .toggle { - padding: 0 4px; - font-size: 12px; - cursor: pointer; -} -.inherited-summary .summary .toggle.closed:before { - content: "â–¶"; -} -.inherited-summary .summary .toggle.opened:before { - content: "â–¼"; -} - -.member, .method { - margin-bottom: 24px; -} - -table.params { - width: 100%; - margin: 10px 0; - border-spacing: 0; - border: 0; - border-collapse: collapse; -} - -table.params thead { - background: #eee; - color: #aaa; -} - -table.params td { - padding: 4px; - border: solid 1px #ddd; -} - -table.params td p { - margin: 0; -} - -.content .detail > * { - margin: 15px 0; -} - -.content .detail > h3 { - color: black; - background-color: #f0f0f0; -} - -.content .detail > div { - margin-left: 10px; -} - -.content .detail > .import-path { - margin-top: -8px; -} - -.content .detail + .detail { - margin-top: 30px; -} - -.content .detail .throw td:first-child { - padding-right: 10px; -} - -.content .detail h4 + :not(pre) { - padding-left: 0; - margin-left: 10px; -} - -.content .detail h4 + ul li { - list-style: none; -} - -.return-param * { - display: inline; -} - -.argument-params { - margin-bottom: 20px; -} - -.return-type { - padding-right: 10px; - font-weight: normal; -} - -.return-desc { - margin-left: 10px; - margin-top: 4px; -} - -.return-desc p { - margin: 0; -} - -.deprecated, .experimental, .instance-docs { - border-left: solid 5px orange; - padding-left: 4px; - margin: 4px 0; -} - -tr.listen p, -tr.throw p, -tr.emit p{ - margin-bottom: 10px; -} - -.version, .since { - color: #aaa; -} - -h3 .right-info { - position: absolute; - right: 4px; - font-size: 14px; -} - -.version + .since:before { - content: '| '; -} - -.see { - margin-top: 10px; -} - -.see h4 { - margin: 4px 0; -} - -.content .detail h4 + .example-doc { - margin: 6px 0; -} - -.example-caption { - position: relative; - bottom: -1px; - display: inline-block; - padding: 4px; - font-style: italic; - background-color: #f5f5f5; - font-weight: bold; - border-radius: 3px; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; -} - -.example-caption + pre.source-code { - margin-top: 0; - border-top-left-radius: 0; -} - -footer, .file-footer { - text-align: right; - font-style: italic; - font-weight: 100; - font-size: 13px; - margin-right: 50px; - margin-left: 270px; - border-top: 1px solid #ddd; - padding-top: 30px; - margin-top: 20px; - padding-bottom: 10px; -} - -footer img { - width: 24px; - vertical-align: middle; - padding-left: 4px; - position: relative; - top: -3px; - opacity: 0.6; -} - -pre.source-code { - padding: 4px; -} - -pre.raw-source-code > code { - padding: 0; - margin: 0; - font-size: 12px; - background: #fff; - border: solid 1px #ddd; - line-height: 1.5; -} - -pre.raw-source-code > code > ol { - counter-reset:number; - list-style:none; - margin:0; - padding:0; - overflow: hidden; -} - -pre.raw-source-code > code > ol li:before { - counter-increment: number; - content: counter(number); - display: inline-block; - min-width: 3em; - color: #aaa; - text-align: right; - padding-right: 1em; -} - -pre.source-code.line-number { - padding: 0; -} - -pre.source-code ol { - background: #eee; - padding-left: 40px; -} - -pre.source-code li { - background: white; - padding-left: 4px; - list-style: decimal; - margin: 0; -} - -pre.source-code.line-number li.active { - background: rgb(255, 255, 150) !important; -} - -pre.source-code.line-number li.error-line { - background: #ffb8bf; -} - -.inner-link-active { - /*background: rgb(255, 255, 150) !important;*/ - background: #039BE5 !important; - color: #fff !important; - padding-left: 0.1em !important; -} - -.inner-link-active a { - color: inherit; -} diff --git a/docs/css/test.css b/docs/css/test.css deleted file mode 100644 index 8ce1266..0000000 --- a/docs/css/test.css +++ /dev/null @@ -1,58 +0,0 @@ -table.test-summary thead { - background: #fafafa; -} - -table.test-summary thead .test-description { - width: 50%; -} - -table.test-summary { - width: 100%; - margin: 10px 0; - border-spacing: 0; - border: 0; - border-collapse: collapse; -} - -table.test-summary thead .test-count { - width: 3em; -} - -table.test-summary tbody tr:hover { - background-color: #eee; -} - -table.test-summary td { - border: solid 1px #ddd; - padding: 4px 10px; - vertical-align: top; -} - -table.test-summary td p { - margin: 0; -} - -table.test-summary tr.test-interface .toggle { - display: inline-block; - float: left; - margin-right: 4px; - cursor: pointer; - font-size: 0.8em; - padding-top: 0.25em; -} - -table.test-summary tr.test-interface .toggle.opened:before { - content: 'â–¼'; -} - -table.test-summary tr.test-interface .toggle.closed:before { - content: 'â–¶'; -} - -table.test-summary .test-target > span { - display: block; - margin-top: 4px; -} -table.test-summary .test-target > span:first-child { - margin-top: 0; -} diff --git a/docs/file/src/parallax.mjs.html b/docs/file/src/parallax.mjs.html deleted file mode 100644 index e3b5b8f..0000000 --- a/docs/file/src/parallax.mjs.html +++ /dev/null @@ -1,227 +0,0 @@ - - - - - - src/parallax.mjs | Parallax - - - - - - - -
- - - Reference - Source - - -
- - - -

src/parallax.mjs

-
import { Logger } from './vendor/logger.min.mjs';
-
-class ParallaxSingleton {
-	/**
-	 * The version of the module.
-	 */
-	version = "VERSION_REPLACE_ME";
-    /** The logger module this module uses to log errors / logs
-     * @private
-     * @type {Object}
-     */
-    logger = new Logger();
-	constructor() {
-        this.logger.registerType('Parallax-Module', '#ff6600');
-	}
-    /**
-     * An array of instances that use the parallax system.
-     * @type {Array}
-     */
-    instances = [];
-    /**
-     * Weakmap to store info on instances used in this module.
-     * @type {WeakMap}
-     */
-    instanceWeakMap = new WeakMap();
-    /**
-     * Adds an instance to the parallax system.
-     * Call this first and then add your instance to the map.
-     * @param {Object} pInstance - The instance to add to the parallax system.
-     * @param {Object} pParallaxInfo - The parallax info that tells this module how to control this instance.
-     * @property {number} pParallaxInfo.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.
-     * @property {number} pParallaxInfo.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.
-     * @property {boolean} pParallaxInfo.loop - Whether this instance will loop endlessly.
-     * @param {number} [pX] - The x position this instance will start at.
-     * @param {number} [pY] - The y position this instance will start at.
-     * @param {string} [pMap] - The map this instance will start at.
-     */
-    add(pInstance, pParallaxInfo, pX, pY, pMap) {
-        if (pInstance) {
-            if (pParallaxInfo instanceof Object) {
-                if (!this.instances.includes(pInstance)) {
-                    const x = typeof(pX) === 'number' ? pX : pInstance.x;
-                    const y = typeof(pY) === 'number' ? pY : pInstance.y;
-                    const map = typeof(pMap) === 'string' ? pMap : pInstance.mapName;
-                    // Clone the parallax object
-                    const parallaxInfo = { ...pParallaxInfo };
-                    this.init(pInstance, parallaxInfo, x, y, map);
-                    // Set the parallax info to the instance
-                    this.instanceWeakMap.set(pInstance, parallaxInfo);
-                    this.instances.push(pInstance);
-                }
-            } else {
-                this.logger.prefix('Parallax-Module').error('No pParallaxInfo passed or invalid type found!');
-            }
-        } else {
-            this.logger.prefix('Parallax-Module').error('No pInstance passed!');
-        }
-    }
-    /**
-     * Initializes this instance.
-     * @param {Object} pInstance - The instance to initialize.
-     * @param {Object} pParallaxInfo - The parallax info that tells this module how to control this instance.
-     * @property {number} pParallaxInfo.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.
-     * @property {number} pParallaxInfo.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.
-     * @property {boolean} pParallaxInfo.loop - Whether this instance will loop endlessly.
-     * @param {number} pX - The x position this parallax will start at.
-     * @param {number} pY - The y position this parallax will start at.
-     * @param {string} pMap - The map this instance will start at.
-     * @private
-     */
-    init(pInstance, pParallaxInfo, pX, pY, pMap) {
-        if (VYLO) {
-            // Set the initial position.
-            pParallaxInfo._initialPos = { x: pX, y: pY };
-            // If this instance is set to loop, then it needs a left and right clone
-            if (pParallaxInfo.loop) {
-                // Create a left and right clone
-                const left = VYLO.newDiob('Particle');
-                const right = VYLO.newDiob('Particle');
-                // Make the left and right clone particle look the same as the initial instance
-                left.setAppearance(pInstance);
-                right.setAppearance(pInstance);
-                // Position the left clone
-                left.x = pParallaxInfo._initialPos.x - pInstance.icon.width;
-                left.y = pParallaxInfo._initialPos.y;
-                // Position the right clone
-                right.x = pParallaxInfo._initialPos.x + pInstance.icon.width;
-                right.y = pParallaxInfo._initialPos.y;
-                // Store the clones in a temporary array
-                const children = [left, right];
-                // Loop the clones and store their relative positions to the main instance
-                children.forEach((pChild) => {
-                    pChild.relativeX = pChild.x - pParallaxInfo._initialPos.x;
-                    pChild.relativeY = pChild.y - pParallaxInfo._initialPos.y;
-                });
-                // When the main instance moves, move the clones with their relative position to it.
-                pInstance.onRelocated = function(pX, pY) {
-                    // Update the children's position when the parent moves
-                    children.forEach((pChild) => {
-                        pChild.x = this.x + pChild.relativeX;
-                        pChild.y = this.y + pChild.relativeY;
-                        pChild.mapName = this.mapName;
-                    });
-                }
-            }
-            pInstance.x = pX;
-            pInstance.y = pY;
-            pInstance.mapName = pMap;
-        } else {
-            this.logger.prefix('Parallax-Module').error('VYLO not found! This module depends on the VYLO object being in the global name space.');
-        }
-    }
-    /**
-     * Removes an instance to the parallax system.
-     * @param {Object} pInstance - The instance to remove to the parallax system.
-     */
-    remove(pInstance) {
-        if (pInstance) {
-            if (this.instances.includes(pInstance)) {
-                this.instances.splice(this.instances.indexOf(pInstance), 1);
-            }
-        } else {
-            this.logger.prefix('Parallax-Module').error('No pInstance passed!');
-        }
-    }
-    /**
-     * Updates the parallax system
-     * @param {number} pCameraX - The x position of the camera.
-     * @param {number} pCameraY - The y position of the camera.
-     */
-    update(pCameraX = 0, pCameraY = 0) {
-        for (const instance of this.instances) {
-            const parallaxInfo = this.instanceWeakMap.get(instance);
-            // How far we moved from the start point
-            const distX = pCameraX * parallaxInfo.x;
-            const distY = pCameraY * parallaxInfo.y;
-            // Position to set the instance to
-            let x = parallaxInfo._initialPos.x + distX;
-            let y = parallaxInfo._initialPos.y + distY;
-            // Move the instance with the camera if the parallax is set to 1
-            if (parallaxInfo.x === 1) {
-                x = pCameraX - instance.icon.width / 2;
-            }
-            // Move the instance with the camera if the parallax is set to 1
-            if (parallaxInfo.y === 1) {
-                y = pCameraY - instance.icon.height / 2;
-            }
-
-            // Set the position
-            instance.x = x;
-            instance.y = y;
-
-            if (parallaxInfo.loop) {
-                if (parallaxInfo.x !== 1) {
-                    // How far we moved relative to the camera
-                    const relativeX = pCameraX * (1 - parallaxInfo.x);
-                    // The start pos + total width
-                    const endX = parallaxInfo._initialPos.x + instance.icon.width;
-                    // The start pos - total width / 2
-                    const negativeEndX = parallaxInfo._initialPos.x - instance.icon.width / 2;
-                    if (relativeX > endX) {
-                        parallaxInfo._initialPos.x += instance.icon.width;
-                    } else if (relativeX < negativeEndX) {
-                        parallaxInfo._initialPos.x -= instance.icon.width;
-                    }
-                }
-            }
-        }        
-    }
-}
-
-const Parallax = new ParallaxSingleton();
-export { Parallax };
- -
- - - - - - - - - - - - diff --git a/docs/identifiers.html b/docs/identifiers.html deleted file mode 100644 index fd09650..0000000 --- a/docs/identifiers.html +++ /dev/null @@ -1,127 +0,0 @@ - - - - - - Reference | Parallax - - - - - - - -
- - - Reference - Source - - -
- - - -

References

- -
-
- -
- -
- - - - - - - - - - - - - - -
summary
- public - - - - - -
-

- C - - - ParallaxSingleton -

-
-
- - - -
-
- - -
- public - - - - - -
-

- V - - - Parallax: ParallaxSingleton -

-
-
- - - -
-
- - -
-
-
-
- - -
-
- - - - - - - - - - - - diff --git a/docs/image/badge.svg b/docs/image/badge.svg deleted file mode 100644 index b18426b..0000000 --- a/docs/image/badge.svg +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - document - document - @ratio@ - @ratio@ - - diff --git a/docs/image/brand_logo.png b/docs/image/brand_logo.png deleted file mode 100644 index ad5eb327d671acd3655c245e08c12d997e384bb0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 20934 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 HDWM4f{q=~h diff --git a/docs/image/esdoc-logo-mini-black.png b/docs/image/esdoc-logo-mini-black.png deleted file mode 100644 index 5d5f9a254a27bdd14a2156eb3c66fbe2daa89459..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5651 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 diff --git a/docs/image/esdoc-logo-mini.png b/docs/image/esdoc-logo-mini.png deleted file mode 100644 index 76ba5b7d8e547bb469f0479736e96707453718b4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6504 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 XLyRvu{aX3a{{tgEGu={c*U0|?Dtn-9 diff --git a/docs/image/manual-badge.svg b/docs/image/manual-badge.svg deleted file mode 100644 index 4029606..0000000 --- a/docs/image/manual-badge.svg +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - manual - manual - @value@ - @value@ - - diff --git a/docs/image/search.png b/docs/image/search.png deleted file mode 100644 index f5d84b697dad0c856a822c2df0a0da46ee3e9be3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12704 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%0DL>M5GrSuBf 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 Vu(5TF{pSVFvnSfBRgWw~{|7^yU3&lk diff --git a/docs/index.html b/docs/index.html deleted file mode 100644 index 5bc844d..0000000 --- a/docs/index.html +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - Home | Parallax - - - - - - - -
- - - Reference - Source - - -
- - - -

Parallax

A parallax module that will enable effortless integration of depth effects into your game.

-
-
- - - - - - - - - - - - diff --git a/docs/index.json b/docs/index.json deleted file mode 100644 index 4e152c3..0000000 --- a/docs/index.json +++ /dev/null @@ -1,975 +0,0 @@ -[ - { - "__docId__": 1, - "kind": "external", - "name": "Infinity", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~Infinity", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 2, - "kind": "external", - "name": "NaN", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~NaN", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 3, - "kind": "external", - "name": "undefined", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~undefined", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 4, - "kind": "external", - "name": "null", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~null", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 5, - "kind": "external", - "name": "Object", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~Object", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 6, - "kind": "external", - "name": "object", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~object", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 7, - "kind": "external", - "name": "Function", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~Function", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 8, - "kind": "external", - "name": "function", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~function", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 9, - "kind": "external", - "name": "Boolean", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~Boolean", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 10, - "kind": "external", - "name": "boolean", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~boolean", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 11, - "kind": "external", - "name": "Symbol", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~Symbol", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 12, - "kind": "external", - "name": "Error", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~Error", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 13, - "kind": "external", - "name": "EvalError", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~EvalError", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 14, - "kind": "external", - "name": "InternalError", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~InternalError", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 15, - "kind": "external", - "name": "RangeError", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~RangeError", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 16, - "kind": "external", - "name": "ReferenceError", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~ReferenceError", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 17, - "kind": "external", - "name": "SyntaxError", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~SyntaxError", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 18, - "kind": "external", - "name": "TypeError", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~TypeError", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 19, - "kind": "external", - "name": "URIError", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~URIError", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 20, - "kind": "external", - "name": "Number", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~Number", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 21, - "kind": "external", - "name": "number", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~number", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 22, - "kind": "external", - "name": "Date", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~Date", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 23, - "kind": "external", - "name": "String", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~String", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 24, - "kind": "external", - "name": "string", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~string", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 25, - "kind": "external", - "name": "RegExp", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~RegExp", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 26, - "kind": "external", - "name": "Array", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~Array", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 27, - "kind": "external", - "name": "Int8Array", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~Int8Array", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 28, - "kind": "external", - "name": "Uint8Array", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~Uint8Array", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 29, - "kind": "external", - "name": "Uint8ClampedArray", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~Uint8ClampedArray", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 30, - "kind": "external", - "name": "Int16Array", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~Int16Array", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 31, - "kind": "external", - "name": "Uint16Array", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~Uint16Array", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 32, - "kind": "external", - "name": "Int32Array", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~Int32Array", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 33, - "kind": "external", - "name": "Uint32Array", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~Uint32Array", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 34, - "kind": "external", - "name": "Float32Array", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~Float32Array", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 35, - "kind": "external", - "name": "Float64Array", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~Float64Array", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 36, - "kind": "external", - "name": "Map", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~Map", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 37, - "kind": "external", - "name": "Set", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~Set", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 38, - "kind": "external", - "name": "WeakMap", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~WeakMap", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 39, - "kind": "external", - "name": "WeakSet", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~WeakSet", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 40, - "kind": "external", - "name": "ArrayBuffer", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~ArrayBuffer", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 41, - "kind": "external", - "name": "DataView", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~DataView", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 42, - "kind": "external", - "name": "JSON", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~JSON", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 43, - "kind": "external", - "name": "Promise", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~Promise", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 44, - "kind": "external", - "name": "Generator", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~Generator", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 45, - "kind": "external", - "name": "GeneratorFunction", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~GeneratorFunction", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 46, - "kind": "external", - "name": "Reflect", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~Reflect", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 47, - "kind": "external", - "name": "Proxy", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy", - "memberof": "src/.external-ecmascript.js", - "static": true, - "longname": "src/.external-ecmascript.js~Proxy", - "access": "public", - "description": "", - "builtinExternal": true - }, - { - "__docId__": 48, - "kind": "file", - "name": "src/parallax.mjs", - "content": "import { Logger } from './vendor/logger.min.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\tconstructor() {\r\n this.logger.registerType('Parallax-Module', '#ff6600');\r\n\t}\r\n /**\r\n * An array of instances that use the parallax system.\r\n * @type {Array}\r\n */\r\n instances = [];\r\n /**\r\n * Weakmap to store info on instances used in this module.\r\n * @type {WeakMap}\r\n */\r\n instanceWeakMap = new WeakMap();\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} pParallaxInfo - The parallax info that tells this module how to control this instance.\r\n * @property {number} pParallaxInfo.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {number} pParallaxInfo.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {boolean} pParallaxInfo.loop - Whether this instance will loop endlessly.\r\n * @param {number} [pX] - The x position this instance will start at.\r\n * @param {number} [pY] - The y position this instance will start at.\r\n * @param {string} [pMap] - The map this instance will start at.\r\n */\r\n add(pInstance, pParallaxInfo, pX, pY, pMap) {\r\n if (pInstance) {\r\n if (pParallaxInfo instanceof Object) {\r\n if (!this.instances.includes(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 = { ...pParallaxInfo };\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.push(pInstance);\r\n }\r\n } else {\r\n this.logger.prefix('Parallax-Module').error('No pParallaxInfo passed or invalid type found!');\r\n }\r\n } else {\r\n this.logger.prefix('Parallax-Module').error('No pInstance passed!');\r\n }\r\n }\r\n /**\r\n * Initializes this instance.\r\n * @param {Object} pInstance - The instance to initialize.\r\n * @param {Object} pParallaxInfo - The parallax info that tells this module how to control this instance.\r\n * @property {number} pParallaxInfo.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {number} pParallaxInfo.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {boolean} pParallaxInfo.loop - Whether this instance will loop endlessly.\r\n * @param {number} pX - The x position this parallax will start at.\r\n * @param {number} pY - The y position this parallax will start at.\r\n * @param {string} pMap - The map this instance will start at.\r\n * @private\r\n */\r\n init(pInstance, pParallaxInfo, pX, pY, pMap) {\r\n if (VYLO) {\r\n // Set the initial position.\r\n pParallaxInfo._initialPos = { x: pX, y: pY };\r\n // If this instance is set to loop, then it needs a left and right clone\r\n if (pParallaxInfo.loop) {\r\n // Create a left and right clone\r\n const left = VYLO.newDiob('Particle');\r\n const right = VYLO.newDiob('Particle');\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 // Position the left clone\r\n left.x = pParallaxInfo._initialPos.x - pInstance.icon.width;\r\n left.y = pParallaxInfo._initialPos.y;\r\n // Position the right clone\r\n right.x = pParallaxInfo._initialPos.x + pInstance.icon.width;\r\n right.y = pParallaxInfo._initialPos.y;\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 - pParallaxInfo._initialPos.x;\r\n pChild.relativeY = pChild.y - pParallaxInfo._initialPos.y;\r\n });\r\n // When the main instance moves, move the clones with their relative position to it.\r\n pInstance.onRelocated = function(pX, pY) {\r\n // Update the children's position when the parent moves\r\n children.forEach((pChild) => {\r\n pChild.x = this.x + pChild.relativeX;\r\n pChild.y = this.y + pChild.relativeY;\r\n pChild.mapName = this.mapName;\r\n });\r\n }\r\n }\r\n pInstance.x = pX;\r\n pInstance.y = pY;\r\n pInstance.mapName = pMap;\r\n } else {\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 }\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 if (this.instances.includes(pInstance)) {\r\n this.instances.splice(this.instances.indexOf(pInstance), 1);\r\n }\r\n } else {\r\n this.logger.prefix('Parallax-Module').error('No pInstance passed!');\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 for (const instance of this.instances) {\r\n const parallaxInfo = this.instanceWeakMap.get(instance);\r\n // How far we moved from the start point\r\n const distX = pCameraX * parallaxInfo.x;\r\n const distY = pCameraY * parallaxInfo.y;\r\n // Position to set the instance to\r\n let x = parallaxInfo._initialPos.x + distX;\r\n let y = parallaxInfo._initialPos.y + distY;\r\n // Move the instance with the camera if the parallax is set to 1\r\n if (parallaxInfo.x === 1) {\r\n x = pCameraX - instance.icon.width / 2;\r\n }\r\n // Move the instance with the camera if the parallax is set to 1\r\n if (parallaxInfo.y === 1) {\r\n y = pCameraY - instance.icon.height / 2;\r\n }\r\n\r\n // Set the position\r\n instance.x = x;\r\n instance.y = y;\r\n\r\n if (parallaxInfo.loop) {\r\n if (parallaxInfo.x !== 1) {\r\n // How far we moved relative to the camera\r\n const relativeX = pCameraX * (1 - parallaxInfo.x);\r\n // The start pos + total width\r\n const endX = parallaxInfo._initialPos.x + instance.icon.width;\r\n // The start pos - total width / 2\r\n const negativeEndX = parallaxInfo._initialPos.x - instance.icon.width / 2;\r\n if (relativeX > endX) {\r\n parallaxInfo._initialPos.x += instance.icon.width;\r\n } else if (relativeX < negativeEndX) {\r\n parallaxInfo._initialPos.x -= instance.icon.width;\r\n }\r\n }\r\n }\r\n } \r\n }\r\n}\r\n\r\nconst Parallax = new ParallaxSingleton();\r\nexport { Parallax };", - "static": true, - "longname": "C:/Users/jared/Documents/Github/Parallax/src/parallax.mjs", - "access": "public", - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 49, - "kind": "variable", - "name": "Parallax", - "memberof": "src/parallax.mjs", - "static": true, - "longname": "src/parallax.mjs~Parallax", - "access": "public", - "export": true, - "importPath": "parallax/src/parallax.mjs", - "importStyle": "{Parallax}", - "description": null, - "lineNumber": 172, - "undocument": true, - "type": { - "types": [ - "src/parallax.mjs~ParallaxSingleton" - ] - } - }, - { - "__docId__": 50, - "kind": "class", - "name": "ParallaxSingleton", - "memberof": "src/parallax.mjs", - "static": true, - "longname": "src/parallax.mjs~ParallaxSingleton", - "access": "public", - "export": true, - "importPath": "parallax/src/parallax.mjs", - "importStyle": null, - "description": null, - "lineNumber": 3, - "pseudoExport": true, - "undocument": true, - "interface": false - }, - { - "__docId__": 51, - "kind": "member", - "name": "version", - "memberof": "src/parallax.mjs~ParallaxSingleton", - "static": false, - "longname": "src/parallax.mjs~ParallaxSingleton#version", - "access": "public", - "description": "The version of the module.", - "lineNumber": 7, - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 52, - "kind": "member", - "name": "logger", - "memberof": "src/parallax.mjs~ParallaxSingleton", - "static": false, - "longname": "src/parallax.mjs~ParallaxSingleton#logger", - "access": "private", - "description": "The logger module this module uses to log errors / logs", - "lineNumber": 12, - "type": { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 53, - "kind": "constructor", - "name": "constructor", - "memberof": "src/parallax.mjs~ParallaxSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/parallax.mjs~ParallaxSingleton#constructor", - "access": "public", - "description": null, - "lineNumber": 13, - "undocument": true - }, - { - "__docId__": 54, - "kind": "member", - "name": "instances", - "memberof": "src/parallax.mjs~ParallaxSingleton", - "static": false, - "longname": "src/parallax.mjs~ParallaxSingleton#instances", - "access": "public", - "description": "An array of instances that use the parallax system.", - "lineNumber": 20, - "type": { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 55, - "kind": "member", - "name": "instanceWeakMap", - "memberof": "src/parallax.mjs~ParallaxSingleton", - "static": false, - "longname": "src/parallax.mjs~ParallaxSingleton#instanceWeakMap", - "access": "public", - "description": "Weakmap to store info on instances used in this module.", - "lineNumber": 25, - "type": { - "nullable": null, - "types": [ - "WeakMap" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 56, - "kind": "method", - "name": "add", - "memberof": "src/parallax.mjs~ParallaxSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/parallax.mjs~ParallaxSingleton#add", - "access": "public", - "description": "Adds an instance to the parallax system.\nCall this first and then add your instance to the map.", - "lineNumber": 38, - "params": [ - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "pInstance", - "description": "The instance to add to the parallax system." - }, - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "pParallaxInfo", - "description": "The parallax info that tells this module how to control this instance." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": true, - "name": "pX", - "description": "The x position this instance will start at." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": true, - "name": "pY", - "description": "The y position this instance will start at." - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": true, - "name": "pMap", - "description": "The map this instance will start at." - } - ], - "properties": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pParallaxInfo.x", - "description": "The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pParallaxInfo.y", - "description": "The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera." - }, - { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "optional": false, - "name": "pParallaxInfo.loop", - "description": "Whether this instance will loop endlessly." - } - ], - "return": null - }, - { - "__docId__": 57, - "kind": "method", - "name": "init", - "memberof": "src/parallax.mjs~ParallaxSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/parallax.mjs~ParallaxSingleton#init", - "access": "private", - "description": "Initializes this instance.", - "lineNumber": 71, - "params": [ - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "pInstance", - "description": "The instance to initialize." - }, - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "pParallaxInfo", - "description": "The parallax info that tells this module how to control this instance." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pX", - "description": "The x position this parallax will start at." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pY", - "description": "The y position this parallax will start at." - }, - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "pMap", - "description": "The map this instance will start at." - } - ], - "properties": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pParallaxInfo.x", - "description": "The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pParallaxInfo.y", - "description": "The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera." - }, - { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "optional": false, - "name": "pParallaxInfo.loop", - "description": "Whether this instance will loop endlessly." - } - ], - "return": null - }, - { - "__docId__": 58, - "kind": "method", - "name": "remove", - "memberof": "src/parallax.mjs~ParallaxSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/parallax.mjs~ParallaxSingleton#remove", - "access": "public", - "description": "Removes an instance to the parallax system.", - "lineNumber": 117, - "params": [ - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "pInstance", - "description": "The instance to remove to the parallax system." - } - ], - "return": null - }, - { - "__docId__": 59, - "kind": "method", - "name": "update", - "memberof": "src/parallax.mjs~ParallaxSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/parallax.mjs~ParallaxSingleton#update", - "access": "public", - "description": "Updates the parallax system", - "lineNumber": 131, - "params": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pCameraX", - "description": "The x position of the camera." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pCameraY", - "description": "The y position of the camera." - } - ], - "return": null - }, - { - "kind": "index", - "content": "# Parallax\r\nA parallax module that will enable effortless integration of depth effects into your game.\r\n", - "longname": "C:\\Users\\jared\\Documents\\Github\\Parallax\\README.md", - "name": "./README.md", - "static": true, - "access": "public" - }, - { - "kind": "packageJSON", - "content": "{\r\n \"name\": \"parallax\",\r\n \"version\": \"1.0.0\",\r\n \"description\": \"A parallax module that will enable effortless integration of depth effects into your game.\",\r\n \"private\": true,\r\n \"scripts\": {\r\n \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\",\r\n \"build\": \"npx webpack && npm run build:minify && node add-version-script.js && node add-banner-script.js\",\r\n \"build:minify\": \"uglifyjs dist/parallax.min.mjs -m -c --comments -o dist/parallax.min.mjs\",\r\n \"build:prod\": \"npx webpack --mode production && npm run build:minify && node add-version-script.js && node add-banner-script.js && npm run build:docs\",\r\n \"build:docs\": \"esdoc -c esdoc.json\"\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\": \"git+https://github.com/EvitcaStudio/Parallax\"\r\n },\r\n \"devDependencies\": {\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 \"uglify-js\": \"^3.17.4\",\r\n \"webpack\": \"^5.90.3\",\r\n \"webpack-cli\": \"^5.1.4\"\r\n }\r\n}\r\n", - "longname": "C:\\Users\\jared\\Documents\\Github\\Parallax\\package.json", - "name": "package.json", - "static": true, - "access": "public" - } -] \ No newline at end of file diff --git a/docs/script/inherited-summary.js b/docs/script/inherited-summary.js deleted file mode 100644 index 0a35b6d..0000000 --- a/docs/script/inherited-summary.js +++ /dev/null @@ -1,28 +0,0 @@ -(function(){ - function toggle(ev) { - var button = ev.target; - var parent = ev.target.parentElement; - while(parent) { - if (parent.tagName === 'TABLE' && parent.classList.contains('summary')) break; - parent = parent.parentElement; - } - - if (!parent) return; - - var tbody = parent.querySelector('tbody'); - if (button.classList.contains('opened')) { - button.classList.remove('opened'); - button.classList.add('closed'); - tbody.style.display = 'none'; - } else { - button.classList.remove('closed'); - button.classList.add('opened'); - tbody.style.display = 'block'; - } - } - - var buttons = document.querySelectorAll('.inherited-summary thead .toggle'); - for (var i = 0; i < buttons.length; i++) { - buttons[i].addEventListener('click', toggle); - } -})(); diff --git a/docs/script/inner-link.js b/docs/script/inner-link.js deleted file mode 100644 index ad1c942..0000000 --- a/docs/script/inner-link.js +++ /dev/null @@ -1,32 +0,0 @@ -// inner link(#foo) can not correctly scroll, because page has fixed header, -// so, I manually scroll. -(function(){ - var matched = location.hash.match(/errorLines=([\d,]+)/); - if (matched) return; - - function adjust() { - window.scrollBy(0, -55); - var el = document.querySelector('.inner-link-active'); - if (el) el.classList.remove('inner-link-active'); - - // ``[ ] . ' " @`` are not valid in DOM id. so must escape these. - var id = location.hash.replace(/([\[\].'"@$])/g, '\\$1'); - var el = document.querySelector(id); - if (el) el.classList.add('inner-link-active'); - } - - window.addEventListener('hashchange', adjust); - - if (location.hash) { - setTimeout(adjust, 0); - } -})(); - -(function(){ - var els = document.querySelectorAll('[href^="#"]'); - var href = location.href.replace(/#.*$/, ''); // remove existed hash - for (var i = 0; i < els.length; i++) { - var el = els[i]; - el.href = href + el.getAttribute('href'); // because el.href is absolute path - } -})(); diff --git a/docs/script/manual.js b/docs/script/manual.js deleted file mode 100644 index de0bfe2..0000000 --- a/docs/script/manual.js +++ /dev/null @@ -1,12 +0,0 @@ -(function(){ - var matched = location.pathname.match(/\/(manual\/.*\.html)$/); - if (!matched) return; - - var currentName = matched[1]; - var cssClass = '.navigation .manual-toc li[data-link="' + currentName + '"]'; - var styleText = cssClass + '{ display: block; }\n'; - styleText += cssClass + '.indent-h1 a { color: #039BE5 }'; - var style = document.createElement('style'); - style.textContent = styleText; - document.querySelector('head').appendChild(style); -})(); diff --git a/docs/script/patch-for-local.js b/docs/script/patch-for-local.js deleted file mode 100644 index 5756d13..0000000 --- a/docs/script/patch-for-local.js +++ /dev/null @@ -1,8 +0,0 @@ -(function(){ - if (location.protocol === 'file:') { - var elms = document.querySelectorAll('a[href="./"]'); - for (var i = 0; i < elms.length; i++) { - elms[i].href = './index.html'; - } - } -})(); diff --git a/docs/script/prettify/Apache-License-2.0.txt b/docs/script/prettify/Apache-License-2.0.txt deleted file mode 100644 index d645695..0000000 --- a/docs/script/prettify/Apache-License-2.0.txt +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/docs/script/prettify/prettify.js b/docs/script/prettify/prettify.js deleted file mode 100644 index 3b74b5b..0000000 --- a/docs/script/prettify/prettify.js +++ /dev/null @@ -1,46 +0,0 @@ -!function(){/* - - Copyright (C) 2006 Google Inc. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ -window.PR_SHOULD_USE_CONTINUATION=!0; -(function(){function T(a){function d(e){var b=e.charCodeAt(0);if(92!==b)return b;var a=e.charAt(1);return(b=w[a])?b:"0"<=a&&"7">=a?parseInt(e.substring(1),8):"u"===a||"x"===a?parseInt(e.substring(2),16):e.charCodeAt(1)}function f(e){if(32>e)return(16>e?"\\x0":"\\x")+e.toString(16);e=String.fromCharCode(e);return"\\"===e||"-"===e||"]"===e||"^"===e?"\\"+e:e}function b(e){var b=e.substring(1,e.length-1).match(/\\u[0-9A-Fa-f]{4}|\\x[0-9A-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\s\S]|-|[^-\\]/g);e= -[];var a="^"===b[0],c=["["];a&&c.push("^");for(var a=a?1:0,g=b.length;ak||122k||90k||122h[0]&&(h[1]+1>h[0]&&c.push("-"),c.push(f(h[1])));c.push("]");return c.join("")}function v(e){for(var a=e.source.match(/(?:\[(?:[^\x5C\x5D]|\\[\s\S])*\]|\\u[A-Fa-f0-9]{4}|\\x[A-Fa-f0-9]{2}|\\[0-9]+|\\[^ux0-9]|\(\?[:!=]|[\(\)\^]|[^\x5B\x5C\(\)\^]+)/g),c=a.length,d=[],g=0,h=0;g/,null])):d.push(["com",/^#[^\r\n]*/,null,"#"]));a.cStyleComments&&(f.push(["com",/^\/\/[^\r\n]*/,null]),f.push(["com",/^\/\*[\s\S]*?(?:\*\/|$)/,null]));if(b=a.regexLiterals){var v=(b=1|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*("+ -("/(?=[^/*"+b+"])(?:[^/\\x5B\\x5C"+b+"]|\\x5C"+v+"|\\x5B(?:[^\\x5C\\x5D"+b+"]|\\x5C"+v+")*(?:\\x5D|$))+/")+")")])}(b=a.types)&&f.push(["typ",b]);b=(""+a.keywords).replace(/^ | $/g,"");b.length&&f.push(["kwd",new RegExp("^(?:"+b.replace(/[\s,]+/g,"|")+")\\b"),null]);d.push(["pln",/^\s+/,null," \r\n\t\u00a0"]);b="^.[^\\s\\w.$@'\"`/\\\\]*";a.regexLiterals&&(b+="(?!s*/)");f.push(["lit",/^@[a-z_$][a-z_$@0-9]*/i,null],["typ",/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],["pln",/^[a-z_$][a-z_$@0-9]*/i, -null],["lit",/^(?:0x[a-f0-9]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+\-]?\d+)?)[a-z]*/i,null,"0123456789"],["pln",/^\\[\s\S]?/,null],["pun",new RegExp(b),null]);return G(d,f)}function L(a,d,f){function b(a){var c=a.nodeType;if(1==c&&!A.test(a.className))if("br"===a.nodeName)v(a),a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)b(a);else if((3==c||4==c)&&f){var d=a.nodeValue,q=d.match(n);q&&(c=d.substring(0,q.index),a.nodeValue=c,(d=d.substring(q.index+q[0].length))&& -a.parentNode.insertBefore(l.createTextNode(d),a.nextSibling),v(a),c||a.parentNode.removeChild(a))}}function v(a){function b(a,c){var d=c?a.cloneNode(!1):a,k=a.parentNode;if(k){var k=b(k,1),e=a.nextSibling;k.appendChild(d);for(var f=e;f;f=e)e=f.nextSibling,k.appendChild(f)}return d}for(;!a.nextSibling;)if(a=a.parentNode,!a)return;a=b(a.nextSibling,0);for(var d;(d=a.parentNode)&&1===d.nodeType;)a=d;c.push(a)}for(var A=/(?:^|\s)nocode(?:\s|$)/,n=/\r\n?|\n/,l=a.ownerDocument,m=l.createElement("li");a.firstChild;)m.appendChild(a.firstChild); -for(var c=[m],p=0;p=+v[1],d=/\n/g,A=a.a,n=A.length,f=0,l=a.c,m=l.length,b=0,c=a.g,p=c.length,w=0;c[p]=n;var r,e;for(e=r=0;e=h&&(b+=2);f>=k&&(w+=2)}}finally{g&&(g.style.display=a)}}catch(x){E.console&&console.log(x&&x.stack||x)}}var E=window,C=["break,continue,do,else,for,if,return,while"], -F=[[C,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],H=[F,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"], -O=[F,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],P=[F,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"], -F=[F,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],Q=[C,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],R=[C,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],C=[C,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"], -S=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,W=/\S/,X=y({keywords:[H,P,O,F,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",Q,R,C],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),I={};t(X,["default-code"]);t(G([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),"default-markup htm html mxml xhtml xml xsl".split(" "));t(G([["pln",/^[\s]+/,null," \t\r\n"],["atv",/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null, -"\"'"]],[["tag",/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],["pun",/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]);t(G([],[["atv",/^[\s\S]+/]]),["uq.val"]);t(y({keywords:H, -hashComments:!0,cStyleComments:!0,types:S}),"c cc cpp cxx cyc m".split(" "));t(y({keywords:"null,true,false"}),["json"]);t(y({keywords:P,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:S}),["cs"]);t(y({keywords:O,cStyleComments:!0}),["java"]);t(y({keywords:C,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]);t(y({keywords:Q,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]);t(y({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END", -hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]);t(y({keywords:R,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]);t(y({keywords:F,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]);t(y({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0, -regexLiterals:!0}),["coffee"]);t(G([],[["str",/^[\s\S]+/]]),["regex"]);var Y=E.PR={createSimpleLexer:G,registerLangHandler:t,sourceDecorator:y,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ",prettyPrintOne:E.prettyPrintOne=function(a,d,f){f=f||!1;d=d||null;var b=document.createElement("div");b.innerHTML="
"+a+"
"; -b=b.firstChild;f&&L(b,f,!0);M({j:d,m:f,h:b,l:1,a:null,i:null,c:null,g:null});return b.innerHTML},prettyPrint:E.prettyPrint=function(a,d){function f(){for(var b=E.PR_SHOULD_USE_CONTINUATION?c.now()+250:Infinity;p' + pair[2] + ''); - } - } - - var innerHTML = ''; - for (kind in html) { - var list = html[kind]; - if (!list.length) continue; - innerHTML += '
  • ' + kind + '
  • \n' + list.join('\n'); - } - result.innerHTML = innerHTML; - if (innerHTML) result.style.display = 'block'; - selectedIndex = -1; - }); - - // down, up and enter key are pressed, select search result. - input.addEventListener('keydown', function(ev){ - if (ev.keyCode === 40) { - // arrow down - var current = result.children[selectedIndex]; - var selected = result.children[selectedIndex + 1]; - if (selected && selected.classList.contains('search-separator')) { - var selected = result.children[selectedIndex + 2]; - selectedIndex++; - } - - if (selected) { - if (current) current.classList.remove('selected'); - selectedIndex++; - selected.classList.add('selected'); - } - } else if (ev.keyCode === 38) { - // arrow up - var current = result.children[selectedIndex]; - var selected = result.children[selectedIndex - 1]; - if (selected && selected.classList.contains('search-separator')) { - var selected = result.children[selectedIndex - 2]; - selectedIndex--; - } - - if (selected) { - if (current) current.classList.remove('selected'); - selectedIndex--; - selected.classList.add('selected'); - } - } else if (ev.keyCode === 13) { - // enter - var current = result.children[selectedIndex]; - if (current) { - var link = current.querySelector('a'); - if (link) location.href = link.href; - } - } else { - return; - } - - ev.preventDefault(); - }); - - // select search result when search result is mouse over. - result.addEventListener('mousemove', function(ev){ - var current = result.children[selectedIndex]; - if (current) current.classList.remove('selected'); - - var li = ev.target; - while (li) { - if (li.nodeName === 'LI') break; - li = li.parentElement; - } - - if (li) { - selectedIndex = Array.prototype.indexOf.call(result.children, li); - li.classList.add('selected'); - } - }); - - // clear search result when body is clicked. - document.body.addEventListener('click', function(ev){ - selectedIndex = -1; - result.style.display = 'none'; - result.innerHTML = ''; - }); - -})(); diff --git a/docs/script/search_index.js b/docs/script/search_index.js deleted file mode 100644 index d3a31a3..0000000 --- a/docs/script/search_index.js +++ /dev/null @@ -1,356 +0,0 @@ -window.esdocSearchIndex = [ - [ - "parallax/src/parallax.mjs~parallax", - "variable/index.html#static-variable-Parallax", - "Parallax parallax/src/parallax.mjs", - "variable" - ], - [ - "parallax/src/parallax.mjs~parallaxsingleton", - "class/src/parallax.mjs~ParallaxSingleton.html", - "ParallaxSingleton parallax/src/parallax.mjs", - "class" - ], - [ - "src/.external-ecmascript.js~array", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array", - "src/.external-ecmascript.js~Array", - "external" - ], - [ - "src/.external-ecmascript.js~arraybuffer", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer", - "src/.external-ecmascript.js~ArrayBuffer", - "external" - ], - [ - "src/.external-ecmascript.js~boolean", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", - "src/.external-ecmascript.js~Boolean", - "external" - ], - [ - "src/.external-ecmascript.js~dataview", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView", - "src/.external-ecmascript.js~DataView", - "external" - ], - [ - "src/.external-ecmascript.js~date", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date", - "src/.external-ecmascript.js~Date", - "external" - ], - [ - "src/.external-ecmascript.js~error", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", - "src/.external-ecmascript.js~Error", - "external" - ], - [ - "src/.external-ecmascript.js~evalerror", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError", - "src/.external-ecmascript.js~EvalError", - "external" - ], - [ - "src/.external-ecmascript.js~float32array", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array", - "src/.external-ecmascript.js~Float32Array", - "external" - ], - [ - "src/.external-ecmascript.js~float64array", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array", - "src/.external-ecmascript.js~Float64Array", - "external" - ], - [ - "src/.external-ecmascript.js~function", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", - "src/.external-ecmascript.js~Function", - "external" - ], - [ - "src/.external-ecmascript.js~generator", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator", - "src/.external-ecmascript.js~Generator", - "external" - ], - [ - "src/.external-ecmascript.js~generatorfunction", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction", - "src/.external-ecmascript.js~GeneratorFunction", - "external" - ], - [ - "src/.external-ecmascript.js~infinity", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity", - "src/.external-ecmascript.js~Infinity", - "external" - ], - [ - "src/.external-ecmascript.js~int16array", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array", - "src/.external-ecmascript.js~Int16Array", - "external" - ], - [ - "src/.external-ecmascript.js~int32array", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array", - "src/.external-ecmascript.js~Int32Array", - "external" - ], - [ - "src/.external-ecmascript.js~int8array", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array", - "src/.external-ecmascript.js~Int8Array", - "external" - ], - [ - "src/.external-ecmascript.js~internalerror", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError", - "src/.external-ecmascript.js~InternalError", - "external" - ], - [ - "src/.external-ecmascript.js~json", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON", - "src/.external-ecmascript.js~JSON", - "external" - ], - [ - "src/.external-ecmascript.js~map", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map", - "src/.external-ecmascript.js~Map", - "external" - ], - [ - "src/.external-ecmascript.js~nan", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN", - "src/.external-ecmascript.js~NaN", - "external" - ], - [ - "src/.external-ecmascript.js~number", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", - "src/.external-ecmascript.js~Number", - "external" - ], - [ - "src/.external-ecmascript.js~object", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", - "src/.external-ecmascript.js~Object", - "external" - ], - [ - "src/.external-ecmascript.js~promise", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise", - "src/.external-ecmascript.js~Promise", - "external" - ], - [ - "src/.external-ecmascript.js~proxy", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy", - "src/.external-ecmascript.js~Proxy", - "external" - ], - [ - "src/.external-ecmascript.js~rangeerror", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError", - "src/.external-ecmascript.js~RangeError", - "external" - ], - [ - "src/.external-ecmascript.js~referenceerror", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError", - "src/.external-ecmascript.js~ReferenceError", - "external" - ], - [ - "src/.external-ecmascript.js~reflect", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect", - "src/.external-ecmascript.js~Reflect", - "external" - ], - [ - "src/.external-ecmascript.js~regexp", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp", - "src/.external-ecmascript.js~RegExp", - "external" - ], - [ - "src/.external-ecmascript.js~set", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set", - "src/.external-ecmascript.js~Set", - "external" - ], - [ - "src/.external-ecmascript.js~string", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", - "src/.external-ecmascript.js~String", - "external" - ], - [ - "src/.external-ecmascript.js~symbol", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol", - "src/.external-ecmascript.js~Symbol", - "external" - ], - [ - "src/.external-ecmascript.js~syntaxerror", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError", - "src/.external-ecmascript.js~SyntaxError", - "external" - ], - [ - "src/.external-ecmascript.js~typeerror", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError", - "src/.external-ecmascript.js~TypeError", - "external" - ], - [ - "src/.external-ecmascript.js~urierror", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError", - "src/.external-ecmascript.js~URIError", - "external" - ], - [ - "src/.external-ecmascript.js~uint16array", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array", - "src/.external-ecmascript.js~Uint16Array", - "external" - ], - [ - "src/.external-ecmascript.js~uint32array", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array", - "src/.external-ecmascript.js~Uint32Array", - "external" - ], - [ - "src/.external-ecmascript.js~uint8array", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array", - "src/.external-ecmascript.js~Uint8Array", - "external" - ], - [ - "src/.external-ecmascript.js~uint8clampedarray", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray", - "src/.external-ecmascript.js~Uint8ClampedArray", - "external" - ], - [ - "src/.external-ecmascript.js~weakmap", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap", - "src/.external-ecmascript.js~WeakMap", - "external" - ], - [ - "src/.external-ecmascript.js~weakset", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet", - "src/.external-ecmascript.js~WeakSet", - "external" - ], - [ - "src/.external-ecmascript.js~boolean", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", - "src/.external-ecmascript.js~boolean", - "external" - ], - [ - "src/.external-ecmascript.js~function", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", - "src/.external-ecmascript.js~function", - "external" - ], - [ - "src/.external-ecmascript.js~null", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null", - "src/.external-ecmascript.js~null", - "external" - ], - [ - "src/.external-ecmascript.js~number", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", - "src/.external-ecmascript.js~number", - "external" - ], - [ - "src/.external-ecmascript.js~object", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", - "src/.external-ecmascript.js~object", - "external" - ], - [ - "src/.external-ecmascript.js~string", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", - "src/.external-ecmascript.js~string", - "external" - ], - [ - "src/.external-ecmascript.js~undefined", - "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined", - "src/.external-ecmascript.js~undefined", - "external" - ], - [ - "src/parallax.mjs", - "file/src/parallax.mjs.html", - "src/parallax.mjs", - "file" - ], - [ - "src/parallax.mjs~parallaxsingleton#add", - "class/src/parallax.mjs~ParallaxSingleton.html#instance-method-add", - "src/parallax.mjs~ParallaxSingleton#add", - "method" - ], - [ - "src/parallax.mjs~parallaxsingleton#constructor", - "class/src/parallax.mjs~ParallaxSingleton.html#instance-constructor-constructor", - "src/parallax.mjs~ParallaxSingleton#constructor", - "method" - ], - [ - "src/parallax.mjs~parallaxsingleton#init", - "class/src/parallax.mjs~ParallaxSingleton.html#instance-method-init", - "src/parallax.mjs~ParallaxSingleton#init", - "method" - ], - [ - "src/parallax.mjs~parallaxsingleton#instanceweakmap", - "class/src/parallax.mjs~ParallaxSingleton.html#instance-member-instanceWeakMap", - "src/parallax.mjs~ParallaxSingleton#instanceWeakMap", - "member" - ], - [ - "src/parallax.mjs~parallaxsingleton#instances", - "class/src/parallax.mjs~ParallaxSingleton.html#instance-member-instances", - "src/parallax.mjs~ParallaxSingleton#instances", - "member" - ], - [ - "src/parallax.mjs~parallaxsingleton#logger", - "class/src/parallax.mjs~ParallaxSingleton.html#instance-member-logger", - "src/parallax.mjs~ParallaxSingleton#logger", - "member" - ], - [ - "src/parallax.mjs~parallaxsingleton#remove", - "class/src/parallax.mjs~ParallaxSingleton.html#instance-method-remove", - "src/parallax.mjs~ParallaxSingleton#remove", - "method" - ], - [ - "src/parallax.mjs~parallaxsingleton#update", - "class/src/parallax.mjs~ParallaxSingleton.html#instance-method-update", - "src/parallax.mjs~ParallaxSingleton#update", - "method" - ], - [ - "src/parallax.mjs~parallaxsingleton#version", - "class/src/parallax.mjs~ParallaxSingleton.html#instance-member-version", - "src/parallax.mjs~ParallaxSingleton#version", - "member" - ] -] \ No newline at end of file diff --git a/docs/script/test-summary.js b/docs/script/test-summary.js deleted file mode 100644 index 2abad3b..0000000 --- a/docs/script/test-summary.js +++ /dev/null @@ -1,54 +0,0 @@ -(function(){ - function toggle(ev) { - var button = ev.target; - var parent = ev.target.parentElement; - while(parent) { - if (parent.tagName === 'TR' && parent.classList.contains('test-interface')) break; - parent = parent.parentElement; - } - - if (!parent) return; - - var direction; - if (button.classList.contains('opened')) { - button.classList.remove('opened'); - button.classList.add('closed'); - direction = 'closed'; - } else { - button.classList.remove('closed'); - button.classList.add('opened'); - direction = 'opened'; - } - - var targetDepth = parseInt(parent.dataset.testDepth, 10) + 1; - var nextElement = parent.nextElementSibling; - while (nextElement) { - var depth = parseInt(nextElement.dataset.testDepth, 10); - if (depth >= targetDepth) { - if (direction === 'opened') { - if (depth === targetDepth) nextElement.style.display = ''; - } else if (direction === 'closed') { - nextElement.style.display = 'none'; - var innerButton = nextElement.querySelector('.toggle'); - if (innerButton && innerButton.classList.contains('opened')) { - innerButton.classList.remove('opened'); - innerButton.classList.add('closed'); - } - } - } else { - break; - } - nextElement = nextElement.nextElementSibling; - } - } - - var buttons = document.querySelectorAll('.test-summary tr.test-interface .toggle'); - for (var i = 0; i < buttons.length; i++) { - buttons[i].addEventListener('click', toggle); - } - - var topDescribes = document.querySelectorAll('.test-summary tr[data-test-depth="0"]'); - for (var i = 0; i < topDescribes.length; i++) { - topDescribes[i].style.display = ''; - } -})(); diff --git a/docs/source.html b/docs/source.html deleted file mode 100644 index 38552b7..0000000 --- a/docs/source.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - Source | Parallax - - - - - - - -
    - - - Reference - Source - - -
    - - - -

    Source

    - - - - - - - - - - - - - - - - - - - - - - - -
    FileIdentifierDocumentSizeLinesUpdated
    src/parallax.mjsParallax -ParallaxSingleton-8404 byte1722024-03-01 06:17:58 (UTC)
    -
    - - - - - - - - - - - - diff --git a/docs/variable/index.html b/docs/variable/index.html deleted file mode 100644 index a8375ca..0000000 --- a/docs/variable/index.html +++ /dev/null @@ -1,134 +0,0 @@ - - - - - - Variable | Parallax - - - - - - - -
    - - - Reference - Source - - -
    - - - -

    Variable

    -
    - - - - - - - - - -
    Static Public Summary
    - public - - - - - -
    -

    - - - - Parallax: ParallaxSingleton -

    -
    -
    - - - -
    -
    - - -
    -
    -

    Static Public

    - -
    -

    - public - - - - - - Parallax: ParallaxSingleton - - - - source - -

    - -
    import {Parallax} from 'parallax/src/parallax.mjs'
    - - - - - - -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - - - - - - - - diff --git a/src/parallax.mjs b/src/parallax.mjs index b7217f7..8fcbbce 100644 --- a/src/parallax.mjs +++ b/src/parallax.mjs @@ -71,7 +71,7 @@ class ParallaxSingleton { init(pInstance, pParallaxInfo, pX, pY, pMap) { if (VYLO) { // Set the initial position. - pParallaxInfo._initialPos = { x: pX, y: pY }; + pParallaxInfo.initialPos = { x: pX, y: pY }; // If this instance is set to loop, then it needs a left and right clone if (pParallaxInfo.loop) { // Create a left and right clone @@ -81,17 +81,17 @@ class ParallaxSingleton { left.setAppearance(pInstance); right.setAppearance(pInstance); // Position the left clone - left.x = pParallaxInfo._initialPos.x - pInstance.icon.width; - left.y = pParallaxInfo._initialPos.y; + left.x = pX - pInstance.icon.width; + left.y = pY; // Position the right clone - right.x = pParallaxInfo._initialPos.x + pInstance.icon.width; - right.y = pParallaxInfo._initialPos.y; + right.x = pX + pInstance.icon.width; + right.y = pY; // Store the clones in a temporary array const children = [left, right]; // Loop the clones and store their relative positions to the main instance children.forEach((pChild) => { - pChild.relativeX = pChild.x - pParallaxInfo._initialPos.x; - pChild.relativeY = pChild.y - pParallaxInfo._initialPos.y; + pChild.relativeX = pChild.x - pX; + pChild.relativeY = pChild.y - pY; }); // When the main instance moves, move the clones with their relative position to it. pInstance.onRelocated = function(pX, pY) { @@ -127,16 +127,19 @@ class ParallaxSingleton { * Updates the parallax system * @param {number} pCameraX - The x position of the camera. * @param {number} pCameraY - The y position of the camera. + * @param {number} pSimulatedPosition - The simulated position. This is used to simulate a position larger than possible, but internally it treats it as its downscaled position. + * One such reason for using this paramater would be to simulate a map larger than you actually have, to convince the parallax that it is infinite. */ - update(pCameraX = 0, pCameraY = 0) { + update(pCameraX = 0, pCameraY = 0, pSimulatedPosition) { for (const instance of this.instances) { const parallaxInfo = this.instanceWeakMap.get(instance); // How far we moved from the start point const distX = pCameraX * parallaxInfo.x; const distY = pCameraY * parallaxInfo.y; // Position to set the instance to - let x = parallaxInfo._initialPos.x + distX; - let y = parallaxInfo._initialPos.y + distY; + let x = parallaxInfo.initialPos.x + (pSimulatedPosition ? distX - pSimulatedPosition : distX); + let y = parallaxInfo.initialPos.y + distY; + // Move the instance with the camera if the parallax is set to 1 if (parallaxInfo.x === 1) { x = pCameraX - instance.icon.width / 2; @@ -155,13 +158,13 @@ class ParallaxSingleton { // How far we moved relative to the camera const relativeX = pCameraX * (1 - parallaxInfo.x); // The start pos + total width - const endX = parallaxInfo._initialPos.x + instance.icon.width; + const endX = parallaxInfo.initialPos.x + instance.icon.width; // The start pos - total width / 2 - const negativeEndX = parallaxInfo._initialPos.x - instance.icon.width / 2; + const negativeEndX = parallaxInfo.initialPos.x - instance.icon.width / 2; if (relativeX > endX) { - parallaxInfo._initialPos.x += instance.icon.width; + parallaxInfo.initialPos.x += instance.icon.width; } else if (relativeX < negativeEndX) { - parallaxInfo._initialPos.x -= instance.icon.width; + parallaxInfo.initialPos.x -= instance.icon.width; } } }